/***** Universal ****************/

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/******Fonts**********************/

@font-face {
  font-family: 'OpenSans-Regular';
  src: url("../fonts/OpenSans-Regular.ttf") format('truetype');
}

@font-face {
  font-family:'MarkPro-Medium';
  src: url("../fonts/MarkPro-Medium.otf") format('opentype');
}

@font-face {
  font-family:'MarkPro-Light';
  src:url("../fonts/MarkPro-Light.otf") format('opentype');
}

/*****Base Styles*********************/

html {
  height: 100%;
  width: 100%;
  margin: auto;
  padding:0;
  font-size:16px;
}

body {
  background: black;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: fixed;
}

header {
  padding: 1.875rem /** or 30px as per comps**/;
  display: flex;
  justify-content: center;
}

footer {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding:0 1.875rem 1.875rem 1.875rem /**30px R,L,Bottom **/;
  }

h1 {
  font-family: MarkPro-Medium, sans-serif;
  font-size:1rem;
  line-height:1.5;
  letter-spacing:.5;
  color: #fff;
}

a {
  text-decoration: none;
  color:inherit;
}

p {
  font-family: MarkPro-Light, sans-serif;
  font-size: 1rem;
  line-height:1.5;
  letter-spacing:1.333;
  color: #fff;
}
/*********Classes***********************/

.wrap {
  min-height: 100vh;
  height: auto;
  width: 100vw;
  margin: 0;
}

.logo {
  width:220px;
  margin: auto;
}

.info {
  border-bottom: 2px solid transparent;
  transition: border-bottom-color 0.25s;
}

/*******about Page Style *******/

.aboutPage {
  display: flex;
  justify-content: center;
  height: 100%;
  width:100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  padding: 8vw;
  height: calc(98vh - 54px);
}

#aboutCopy {
  transition: opacity 1s;
}

/*********** Loader Styles **************/

div.loading {
  position:fixed;
  left: 0;
  top: 0;
  width: 100%;
  height:100%;
  background-color:black;
  z-index: 1;
  display: flex;
  justify-content:center;
  align-items:center;
  transition: opacity 0.5s;
}

div.loading img {
  animation: loader 2s linear;
  width: 220px;
}

/**this 'hides' the div after the js adds .hidden - pointer-events allows user to still click items below the div **/

div.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes loader {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/********** Slider Styles ************/

.slider {
  max-width: 100vw;
  margin: 20px auto;
  width: 100vw;
  height: 100vh;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.slide1,.slide2,.slide3 {
  position: absolute;
  width: 100%;
  height: 100%;
}
.slide1 {
  background: url(../assets/SPECTRUM_3_4_Tall@0,75x.jpg)no-repeat center;
      background-size: cover;
    animation:fade 14s linear infinite;
-webkit-animation:fade 14s linear infinite;
 }
.slide2 {
  background: url(../assets/PJG_M_3_4_Sky@0,75x.jpg)no-repeat center;
      background-size: cover;
    animation:fade2 14s linear infinite;
-webkit-animation:fade2 14s linear infinite;
}
.slide3 {
    background: url(../assets/Lumber_Rm_3_4_01@0,5x.jpg)no-repeat center;
      background-size: cover;
    animation:fade3 14s linear infinite;
-webkit-animation:fade3 14s linear infinite;
}
@keyframes fade
{
  0%   {opacity:1}
  28%  {opacity: 1; animation-timing-function: cubic-bezier(0,.99,.6,.99);}
  33.333% { opacity: 0; animation-timing-function: cubic-bezier(0,.99,.6,.99); }
  66.666% { opacity: 0}
  100% { opacity: 1}
}
@keyframes fade2
{
  0%   {opacity:0}
  28% {opacity: 0; animation-timing-function: cubic-bezier(0,.99,.6,.99); }
  33.333% { opacity: 1; animation-timing-function: cubic-bezier(0,.99,.6,.99);}
  61% {opacity: 1; animation-timing-function: cubic-bezier(0,.99,.6,.99);}
  66.666% { opacity: 0; animation-timing-function: cubic-bezier(0,.99,.6,.99);}
  100% { opacity: 0}
}
@keyframes fade3
{
  0%   {opacity:0}
  33.333% { opacity: 0}
  61% {opacity: 0; animation-timing-function: cubic-bezier(0,.99,.6,.99);}
  66.666% { opacity: 1; animation-timing-function: cubic-bezier(0,.99,.6,.99);}
  95% {opacity: 1; animation-timing-function: cubic-bezier(0,.99,.6,.99);}
  100% { opacity: 0; animation-timing-function: cubic-bezier(0,.99,.6,.99);}
}

/** had to make the opacity transitions occur over a shorter period of time so decreased the difference between percetanges to control when the fade-outs between slides occur and allow the images to hold for 8s each over 24s**/

/**********Mediaqueries *************/

@media (hover:hover) {
  .info {
    border-bottom: 2px solid transparent;
  } /**** base styles applied in case browser doesn't support hover ****/
  .info:hover {
    border-bottom: 2px solid #fff;
  }
} /*** makes it so hover states only apply when pointer events are accepted - negates sticky hover states ***/

@media (min-width:768px) {

  div.loading img {
    width: 240px;
  }

  header {
    padding: 3.75rem /** 60px R,L,B**/;
  }

  footer {
    padding: 0 3.75rem 3.75rem 3.75rem /** 60px R,L,B **/;
  }

  .logo {
    width: 240px;
  }

  .slide1 {
    background: url(../assets/SPECTRUM_D_16_10_Overview_Angle@0,75x.jpg) no-repeat center;
    background-size: cover;
    height: 100%;
    width: 100%;
  }

  .slide2 {
    background: url(../assets/PJG_D_16_10_Sky@0,75x.jpg)no-repeat center;
    background-size: cover;
  }

  .slide3 {
    background: url(../assets/Lumber_Rm_16_10_01@0,5x.jpg)no-repeat center;
    background-size: cover;
  }

  .aboutPage {
    padding: 16vw;
  }

  p {
    font-size: 1.5rem;
  }

  #aboutCopy {
    max-width: 800px;
  }


}


@media (min-width:1024px) {

  .aboutPage {
    display: flex;
    flex-direction: column;
    justify-content:center;
    align-items:center;
  }
}
