@import "global";
*
{
  @include box-sizing(border-box);
}
html
{
    height: 100%;
    font-size: $font-size;
}
body
{
    font-family: 'Raleway', sans-serif;
    line-height: 1.3333;
    min-height: 100%;
    position: relative;
}
.bg-image-full
{
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  width: 100vw;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  @include background-size(cover);
}
iframe, img { max-width: 100%; }
iframe { margin: 0 auto; display: block; }
code { font-family: monospace; }

h1, h2, h3
{
    margin-bottom: $spacing-vertical;
}
h1 { font-size: 2.0em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.2em; margin-bottom: $spacing-vertical / 2; }
sup, sub {
 vertical-align: baseline;
 position: relative;
 top: -0.4em;
}
sub { top: 0.4em; }

.hide { display: none; }
.spacer1 { margin-bottom: $spacing-vertical; }
.spacer2 { margin-bottom: $spacing-vertical * 2; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.meta { font-size: 0.8em; }
.meta-large { font-size: 1.2em; }
.clear { clear: both; }

.link-primary
{
  color: $color-primary;
  text-decoration: underline;
  .icon:first-child
  {
    padding-right: 5px;
  }
  .icon:last-child
  {
    padding-left: 5px;
  }
}
a:hover img
{
  opacity: 0.75;
}

.control-group
{
}
.control-item
{
  display: inline-block;
  margin-left: 15px;
  margin-right: 15px;
  &:first-child
  {
    margin-left: 0;
  }
  &:last-child
  {
    margin-right: 0;
  }
  &.no-label
  {
    margin-left: 10px;
    margin-right: 10px;
  }
}

.btn-primary, .btn-alt
{
  cursor: pointer;
  display: inline-block;
  height: $spacing-vertical * 1.5;
  line-height: $spacing-vertical * 1.5;
  padding: 0 15px;
  text-decoration: none;
  border: 0 none;
  text-align: center;
}
.btn-primary
{
  color: white;
  @include linear-gradient(lighten($color-primary, 5), darken($color-primary, 5));
  background-color: $color-primary;
  border: 1px solid black;
}
.btn-alt
{
  @include linear-gradient(lighten($color-light-alt, 5), darken($color-light-alt, 5));
  color: hsl(hue($color-primary), 85, 15);
  border: 1px solid darken($color-primary, 10);
}
.btn-full-width
{
  width: 100%;
}
.no-label .btn-label
{
  @include offscreen();
}

.tiles
{
    > .tile
    {
        float: left;
        margin-right: 20px;
        margin-bottom: $spacing-vertical;
    }
    @include clearfix();
}

.table-layout
{
  td 
  {
    padding: 3px 5px $spacing-vertical - 3px;
    vertical-align: middle;
  }
}

@media (max-width: $mobile-width-threshold)
{
  .fullscreen
  {
    display: none;
  }
}
@media (min-width: $mobile-width-threshold)
{
  .mobile
  {
    display: none;
  }
}


body
{
  @include display-flex();
  @include flex-flow(column);
  min-height: 100vh;
  main
  {
    @include flex(2);
  }
}