
body {

  margin: 0;
  padding: 0;

  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  line-height: 1.666rem;

  color: #222;

  margin:auto;

  background-color: #adb6ab;
}

h1, h2, h3, h4, h5 {

  margin: 0;
  padding: 0em;
  line-height: 2rem;
}

h1:not(.pt) {

  font-size: 2.5em;
  color: #dbe0e2;
  font-weight: normal;
  text-transform: uppercase;

  text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.8);

  padding: 0.3em 0em;
  margin: 0em 0em 0em 0.5em;

  font-family: 'Ysabeau Office', sans-serif;
}

h1.pt {

  color: #1c2d50;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.6em;
  
  padding: 0.3em 0.6em 0.3em 1.5em;
  margin-bottom: 2em;
}

h1.pt span {

  padding: 0.2em 0.4em;
  background-color: rgba(255, 255, 255, 0.3);
}

div.fixed {

  position: fixed;

  padding: 10px;

  right: 10px;
  bottom: 10px;

  mix-blend-mode: multiply;

  width: 240px;
  height: 240px;
  z-index: 200;

  transition: 0.2s ease-out all;
}


div.fixed img {

  width: 100%;
}

section {
  
  position: relative;

  width: 100%;
  height: 102vh;

  padding: 3em 0em 0em 0em;

  justify-content: center;
  align-items: center;
}

#page1 {

  position: fixed;
  background-image: url(./img/modern_house_page1.jpg);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;

}

#page1 h1 {

  opacity: 1;
  transition: 0.3s ease-in all;
}

.mid1 #page1 h1 {

  padding-left: 4em;
  opacity: 0;
}

.page {

  min-height: 400px;
  width: 100%;
}


#page2 {

  position: absolute;
  
  top: 100vh;

  background-image: url(./img/Inside_page2.jpg);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;

  border-top: 5px solid rgba(255, 255, 255, 0.5);
}

.sp2 #page2,
.sp3 #page2 {
  position: fixed;
  top: 0px;
}

#page2 h1, h2, h3, h4 {
  opacity: 1;
  transition: 0.2s linear all;
}

.mid2 #page2 h3 {

  opacity: 0;
}

.mid3 #page2 h2 {

  opacity: 0;
}


.mid4 #page2 h1 {

  opacity: 0;
}

#page3 {

  position: absolute;

  top: 200vh;

  background-image: url(./img/livingRoom_darkBack.jpg);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  
  border-top: 5px solid rgba(255, 255, 255, 0.5);
}

.page > div {

  display: inline-block;
  margin: 1em;
  padding: 1em;

  text-align: right;
  width: 66%;

}

.page > div  h1 {

  color: #fff;
  font-weight: bold;
  margin-bottom: 0.4em;
  font-size: 2.0em;
}

.page > div  h2 span {

  padding: 0.3em 0.4em;
  background-color: rgba(255, 255, 255, 0.7);
}

.page > div  h3 {

  margin-top: 2em;
  padding: 0.8em;
  color: #fff;
  font-weight: normal;
  font-size: 1.1em !important;
  line-height: 1.8em;

  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.5);
  background-color: rgba(0, 0, 0, 0.7);
}


.page  h4,
.page  h5 {

  width: 100%;
  padding: 5em 0em 1em 0em;
  /*margin-bottom: -5em;*/
  color: #fff;
  font-family: 'Ysabeau Office', sans-serif;

  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.7);
  font-size: 1.8em;
  text-align: center;
}

.page  h4:nth-child(2) {
  
  color: #b9c5df;
  padding-top: 0;
}

.page  h5 {
  margin-top: 1em;
  padding-top: 0;
}

.page  h5 span {

  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8em;
  padding: 0em 0.4em 0.4em 0.4em;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
}

a {
  color: #fff;
}


/* medium screen text breaks */
@media screen and (max-width: 80rem) {

  #page1 h1:first-child {
    margin-top: 3em;
  }

  h1 {
    font-size: 1.6em !important;
  }

  h1.pt  {
    font-size: 1.3em !important;
  }
}

@media screen and (max-width: 1000px) {

  section {
    padding-top: 0em;
  }

  .page > div {
      
      width: 90%;
  }

  .mid1 .fixed,
  .sp2 .fixed,
  .sp3 .fixed {

    opacity: 0;
  }
}

@media screen and (max-height: 700px) {

  h2 {
    font-size: 1.2rem;
  }

  #page2 > div {
    
    margin: 0;
  }

  #page2 h3 {
    line-height: 1.4em;
    font-size: 1em !important;
    margin-top: 1em;
  }

  #page3 h4 {
    padding-top: 2rem;
  }
}

/* mobile */
@media screen and (max-width: 650px) {

  .fixed {
    width: 100px !important;
    height: 100px !important;
  }

  .page > div {
    margin: 0em;
    padding: 0em;

    width: 100%;
  }

  h1, h2, h3, h4 {
    margin-right: 0;
    margin-left: 0;
  }

  h1 {
    font-size: 1.2em !important;
    text-align: center;
  }

  .page > div h2 span {

    padding: 0.3em;
    width: 100%;
    display: inline-block;
    font-size: 0.7em;
    text-align: center;
  }

  .page > div h3 {

    text-align: center;
  }
}