* {
  --primary: #F9F2DA;
  --secondary: #463329;
  --tertiary: #3E312A;
  --quaternary: #190e07;
}

html {
  height: 100%;
  max-width: 100%;
} 

body {
  background-color: var(--primary) !important;
}

p {
  font-family:'Darker Grotesque', sans-serif;
  color:var(--tertiary);
  font-size:23pt;
}

/* Navbar */
.navbar-container {
  position: absolute;
}

.menu {
  margin: 0;
  padding: 1.2rem;
  padding-bottom: 0;
  overflow: hidden;
}

.menu h3 {
  font-family:'Jomhuria', serif;
  font-weight: 100;
  font-size: 46pt;
  color:var(--secondary);
  float: left;
  padding: 0 16px;
  line-height: 36pt;
}

.menu ul {
  list-style: none;
}

.menu ul li {
  float: right;
}

.menu ul li a {
  display: block;
  color:var(--tertiary);
  text-align: center;
  padding: 0 16px;
  text-decoration: none;
}

/* Hero */
.hero {
  height: 90vh;
  position: relative;
  background-image: url('/assets/img/hero_bg.png');
  background-size: cover;
  background-position: center;
}

.tagline {
  height: 90%;
  background-image: url('/assets/img/tagline-h.svg');
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center top;
}

/* About Page */
.about {
  height: 100%;
}

.about h3 {
  font-family:'Jomhuria', serif;
  color:var(--secondary);
  font-size:40pt;
}

.about-content {
  margin: 0;
  padding: 5rem 20rem;
}

/* Projects Page */
.projects {
  height: 640px;
  background-image: url('/assets/img/portfolio_bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Carousel */
#carousel-wrapper {
  height: 640px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  #menu {
    height: 500px;
    width: 1000px;
    overflow: hidden;
    font-weight: 700;
    line-height: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    transition: all 0.6s ease-in-out;

    #current-option {
      position: relative;
      width: 100%;
      height: 100%;
      transform: translate(-25%, 0%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: hidden;

      #current-option-text1 {
        font-family:'Jomhuria', serif;
        color:var(--secondary);
        font-size: 3rem;
        line-height: 2rem;
        font-weight: 100;
        width: 250px;
        height: 200px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;

        &::before {
          content: attr(data-next-text);
          position: absolute;
          transform: translate(0%, 380px);
          width: 100%;
          height: 200px;
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          justify-content: flex-start;
        }

        &::after {
          content: attr(data-previous-text);
          position: absolute;
          transform: translate(0%, -380px);
          width: 100%;
          height: 200px;
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          justify-content: flex-start;
        }
      }

      #current-option-text2 {
        font-family:'Darker Grotesque', sans-serif;
        color:var(--tertiary);
        font-size: 1.5rem;
        font-weight: 100;
        width: 220px;
        height: 40px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;

        &::before {
          content: attr(data-next-text);
          position: absolute;
          transform: translate(0%, 380px);
          width: 100%;
          height: 40px;
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          justify-content: flex-end;
        }

        &::after {
          content: attr(data-previous-text);
          position: absolute;
          transform: translate(0%, -380px);
          width: 100%;
          height: 40px;
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          justify-content: flex-end;
        }
      }
    }

    #previous-option {
      width: 1.5rem;
      height: 1.5rem;
      border: none;
      display: block;
      cursor: pointer;
      background: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 256 256'%3E%3Cpolygon points='225.813,48.907 128,146.72 30.187,48.907 0,79.093 128,207.093 256,79.093' fill='%233E312A'%3E%3C/polygon%3E%3C/svg%3E");
      background-size: cover;
      position: absolute;
      transform: translate(410px, 50px);
    }

    #next-option {
      width: 1.5rem;
      height: 1.5rem;
      border: none;
      display: block;
      cursor: pointer;
      background: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 256 256'%3E%3Cpolygon points='225.813,48.907 128,146.72 30.187,48.907 0,79.093 128,207.093 256,79.093' fill='%233E312A'%3E%3C/polygon%3E%3C/svg%3E");
      background-size: cover;
      position: absolute;
      transform: translate(410px, -50px) rotate(180deg);
    }
  }

  #image {
    height: 400px;
    width: 400px;
    border-radius: 5px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 101;
    position: absolute;
    transform: translate(140px, 0);
  }

  &.anim-next {
    pointer-events: none;

    #current-option-text1 {
      animation: next-text 0.65s 0.085s;
    }

    #current-option-text2 {
      animation: next-text 0.65s 0.085s;
    }

    #previous-option {
      animation: next-top-arrow 0.65s 0.085s;
    }

    #next-option {
      animation: next-bottom-arrow 0.65s 0.085s;
    }
    
    #image {
      animation: next-image 0.65s 0.085s;
    }
  }

  &.anim-previous {
    pointer-events: none;

    #current-option-text1 {
      animation: previous-text 0.65s 0.085s;
    }

    #current-option-text2 {
      animation: previous-text 0.65s 0.085s;
    }

    #previous-option {
      animation: previous-top-arrow 0.65s 0.085s;
    }

    #next-option {
      animation: previous-bottom-arrow 0.65s 0.085s;
    }
    
    #image {
      animation: previous-image 0.65s 0.085s;
    }
  }
}

@keyframes previous-text {
  50%,
  55% {
    transform: translate(0%, 390px);
  }
  to {
    transform: translate(0%, 380px);
  }
}

@keyframes previous-top-arrow {
  50% {
    transform: translate(410px, 53px);
  }
}

@keyframes previous-bottom-arrow {
  50% {
    transform: translate(410px, -47px) rotate(180deg);
  }
}

@keyframes previous-image {
  0% {
    transform: translate(140px, 0) scale(1);
    opacity: 1;
  }
  70% {
    transform: translate(140px, 0) scale(1.1);
    opacity: 0;
  }
  100% {
    transform: translate(140px, 0) scale(1);
    opacity: 1;
  }
}

@keyframes next-text {
  50%,
  55% {
    transform: translate(0%, -390px);
  }
  to {
    transform: translate(0%, -380px);
  }
}

@keyframes next-top-arrow {
  50% {
    transform: translate(410px, 47px);
  }
}

@keyframes next-bottom-arrow {
  50% {
    transform: translate(410px, -53px) rotate(180deg);
  }
}

@keyframes next-image {
  0% {
    transform: translate(140px, 0) scale(1);
    opacity: 1;
  }
  70% {
    transform: translate(140px, 0) scale(1.1);
    opacity: 0;
  }
  100% {
    transform: translate(140px, 0) scale(1);
    opacity: 1;
  }
}

/* Contact Page */
.contact-wrapper {
  margin: auto;
  padding: 5%;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

/* left side */
.form-horizontal {
  width: 40rem;
  padding: 0 2rem;
  font: 16px 'Darker Grotesque';
  display: inline-block;
  position: relative;
}

.contact-left, textarea {
  letter-spacing: 1px;
}

.contact-left {    
  display: block;
  width: 100%;
  height: calc(2.25rem + 2px);
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tertiary);
  background-color: var(--primary);
  background-clip: padding-box;
  border: 4px solid var(--secondary);
  border-radius: .25rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;}

.message {
  height: 200px;
  margin: 0;
}

.btn {
  background-color: var(--tertiary);
}

.btn-send {
  color: var(--primary);
}

.send-button {
  margin-top: 16px;
  height: 34px;
  width: 100%;
  overflow: hidden;
  transition: all .2s ease-in-out;
}

.button {
  height: 34px;
  transition: all .2s ease-in-out;
}

.send-text {
  display: block;
  margin-top: 5px;
  font: 14px 'Darker Grotesque';
  color:var(--primary);
  letter-spacing: 2px;
}

.button:hover {
  transform: translate3d(0px, -30px, 0px);
}

.direct-contact-container {
  display: inline-block;
  max-width: 400px;
}

/* right side */
.contact-btn {
  width: 40rem;
  padding: 0 2rem;
}

.download {
  padding-bottom: 5px;
}

.pdfbutton {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px auto;
  padding: 10px;
  background-color: var(--secondary);
  color: var(--primary);
  border-radius: 5px;
  font: 20px 'Darker Grotesque';
}

.pdfbutton:hover {
  background-color: var(--quaternary);
  color: var(--primary);
  text-decoration: none;
}


/* Social Media Icons */
.social-media-list {
  position: relative;
  font-size: 2.3rem;
  text-align: center;
  width: 100%;
  margin: 0;
  padding: 5px;
}

.social-media-list li a {
  color: var(--primary);
  padding: 5px;
}

.social-media-list li {
  display: inline-block;
  height: 70px;
  width: 70px;
  margin: 10px;
  line-height: 70px;
  border-radius: 50%;
  color: var(--primary);
  background-color: var(--secondary);
  cursor: pointer; 
  transition: all .2s ease-in-out;
}

.social-media-list li:hover {
  background-color: var(--quaternary);
}

.social-media-list li:hover:after {
  opacity: 1;  
  transform: scale(1.12);
  transition-timing-function: cubic-bezier(0.37,0.74,0.15,1.65);
}

.social-media-list li:hover a {
  color: var(--primary);
}

.line {
  border: 2px solid var(--secondary);
  border-radius: 3px;
  margin: 0 5px;
}

/* Small Desktop */
@media (min-width: 1200px){
  /* About */
  .about-content {
    padding: 5rem 5rem;
  }

  /* Contact */
  .form-horizontal {
    padding: 0 2rem 2rem 2rem;
  }
}

/* Tablet */
@media screen and (max-width: 1200px){
  .tagline {
    background-image: url('/assets/img/tagline-v.svg');
  }

  /* About Page */
  .about-content {
    padding: 5rem 5rem;
  }

  /* Projects Page */
  #carousel-wrapper {
    #menu {
      #previous-option {
        transform: translate(-50px, 250px) rotate(90deg);
      }

      #next-option {
        transform: translate(50px, 250px) rotate(-90deg);
      }
    }
  }

  @keyframes previous-top-arrow {
    50% {
      transform: translate(-53px, 250px) rotate(90deg);
    }
  }
  
  @keyframes previous-bottom-arrow {
    50% {
      transform: translate(47px, 250px) rotate(-90deg);
    }
  }
  
  @keyframes next-top-arrow {
    50% {
      transform: translate(-47px, 250px) rotate(90deg);
    }
  }
  
  @keyframes next-bottom-arrow {
    50% {
      transform: translate(53px, 250px) rotate(-90deg);
    }
  }

  /* Contact */
  .form-horizontal {
    padding: 0 2rem 2rem 2rem;
  }
}

/* Phone */
@media screen and (max-width: 900px) {    
  p {
    font-size: 18pt;
  }
  
  /* About Page */
  .about-content {
    padding: 5rem 2rem;
  }

  /* Projects Page */
  #carousel-wrapper {
    height: 640px;
  
    #menu {
      height: 500px;
      width: 575px;
  
      #current-option {
        height: 100px;
        transform: translate(0, 130px);
  
        #current-option-text1 {
          height: 10px;
  
          &::before {
            content: attr(data-next-text);
            position: absolute;
            transform: translate(0%, 380px);
            width: 100%;
            height: 200px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
          }
  
          &::after {
            content: attr(data-previous-text);
            position: absolute;
            transform: translate(0%, -380px);
            width: 100%;
            height: 200px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
          }
        }
  
        #current-option-text2 {
          font-family:'Darker Grotesque', sans-serif;
          color:var(--tertiary);
          font-size: 1.5rem;
          font-weight: 100;
          width: 250px;
          height: 40px;
          display: flex;
          flex-direction: column;
          align-items: flex-start;
          justify-content: flex-end;
  
          &::before {
            content: attr(data-next-text);
            position: absolute;
            transform: translate(0%, 380px);
            width: 100%;
            height: 40px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-end;
          }
  
          &::after {
            content: attr(data-previous-text);
            position: absolute;
            transform: translate(0%, -380px);
            width: 100%;
            height: 40px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-end;
          }
        }
      }
      #previous-option {
        transform: translate(-50px, 200px) rotate(90deg);
      }

      #next-option {
        transform: translate(50px, 200px) rotate(-90deg);
      }
    }
  
    #image {
      height: 300px;
      width: 300px;
      transform: translate(0, -70px);
    }
  
    &.anim-previous {
      pointer-events: none;
  
      #current-option-text1 {
        animation: previous-text 0.65s 0.085s;
      }
  
      #current-option-text2 {
        animation: previous-text 0.65s 0.085s;
      }
      
      #image {
        animation: previous-image 0.65s 0.085s;
      }
    }
  }
  
  @keyframes previous-text {
    50%,
    55% {
      transform: translate(0%, 390px);
    }
    to {
      transform: translate(0%, 380px);
    }
  }
  
  @keyframes previous-image {
    0% {
      transform: translate(0, -70px) scale(1);
      opacity: 1;
    }
    70% {
      transform: translate(0, -70px) scale(1.1);
      opacity: 0;
    }
    100% {
      transform: translate(0, -70px) scale(1);
      opacity: 1;
    }
  }
  
  @keyframes next-text {
    50%,
    55% {
      transform: translate(0%, -390px);
    }
    to {
      transform: translate(0%, -380px);
    }
  }
  
  @keyframes next-image {
    0% {
      transform: translate(0, -70px) scale(1);
      opacity: 1;
    }
    70% {
      transform: translate(0, -70px) scale(1.1);
      opacity: 0;
    }
    100% {
      transform: translate(0, -70px) scale(1);
      opacity: 1;
    }
  }

  @keyframes previous-top-arrow {
    50% {
      transform: translate(-53px, 200px) rotate(90deg);
    }
  }
  
  @keyframes previous-bottom-arrow {
    50% {
      transform: translate(47px, 200px) rotate(-90deg);
    }
  }
  
  @keyframes next-top-arrow {
    50% {
      transform: translate(-47px, 200px) rotate(90deg);
    }
  }
  
  @keyframes next-bottom-arrow {
    50% {
      transform: translate(53px, 200px) rotate(-90deg);
    }
  }

  /* Contact */
  .contact-wrapper {
    padding: 10%;
  }

  .form-horizontal {
    padding: 0 0 2rem 0;
  }

  .contact-btn {
    padding: 0;
  }

  .social-media-list li {
    margin: 10px 5px;
  }
}
