*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  border:0;
}

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: Anurati;
  src: url(https://cdn.glitch.com/6c0b5eb0-fb06-4eaa-a795-f7034ab636f7%2FAnurati-Regular.otf?v=1622476632088);
}

h1{
  color: #f2f2f2;
  font-size: 50pt;
  font-family: Anurati;
}

h2{
  color: #f2f2f2;
  font-family: 'Open Sans', sans-serif;
  font-weight:bold;
  font-size: 25pt;
  line-height: 25pt;
}

h3{
  color: #f2f2f2;
  font-family: 'Open Sans', sans-serif;
  font-weight:normal;
  font-size: 14px;
  line-height: 14px;
}

h4{
  color: #f2f2f2;
  font-family: 'Open Sans', sans-serif;
  font-weight:lighter;
  font-size: 24pt;
  line-height: 36pt;
}

h5{
  color: #f2f2f2;
  font-family: 'Open Sans', sans-serif;
  font-weight:normal;
  font-size: 12pt;
  line-height: 12px;
}

p{
  color: #f2f2f2;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-weight:lighter;
  font-size: 16pt;
  line-height: 22pt;
}

a{
  color: #f2f2f2;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-weight: normal;
  font-size: 14pt;
}

nav a{
  color: #f2f2f2;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-weight: lighter;
  font-size: 16pt;
  line-height: 18pt;
  margin-right:32px;
}

body{
  width: 100%;
  background-color:#0f030f;
}

nav{
  width:100%;
  top:0;
  left:0px;
  position: fixed;
  padding: 5%;
  display: flex;
  flex-direction: row;
  z-index: 3;
  background: rgba(255, 255, 255, 0.21);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: top 0.5s;
}

#mainContainer{
  padding-top:25vh;
  background-color: #183D2D;
}

#intro{
  width:100%;
  background-color: #0f030f;
  overflow:hidden;
}

canvas{
  z-index:2;
  position:absolute;
  display:block;
}

#curve{
  background-color: #0f030f;
  display:block;
}

#phrase{
  width:100%;
  padding-bottom:24vh;
  display:none;
  text-align: center;
}

#phrase h4{
  color:#2f232f;
}

#name{
  width:auto;
  padding-top:64px;
  text-align: center;
  padding-bottom:50vw;
}

#name p{
  margin-left: 24px;
  margin-right: 24px;
}


main{
  width: 100%;
  overflow:hidden;
  background-color: #0f030f;
}

#casestudies{
  display: flex;
  flex-direction:column;
  margin: auto;
  align-items: center;
  z-index:4;
}

.caseStudy{
  width: 100%;
  margin: auto;
  margin-bottom: 80px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

.casestudy-photo{
  width: 100%;
  margin-bottom: 16px;
}

.casestudy-photo img{
  width: 100%;
}

.casestudy-info{
  width:90%;
  margin:0 24px;
}

.casestudy-info-text{
  margin-bottom: 32px;
}

.casestudy-info-text h5, h2{
  padding-bottom: 16px;
}

.casestudy-info-button{
  border: 1px #ffffff solid;
  width: fit-content;
  border-radius: 25px;
  padding: 8px 16px;
} 

.scroll-wrapper {
  width: 100vw;
  margin: auto;
  overflow: hidden;
  text-align: center;
  margin-bottom: 40px;
}

.scroll-track {
  margin-top: 24px;
  width: initial;
  display: flex;
}

.scroll-track img {
  width: 200px;
  margin: 0% 40px;
  object-fit: contain;
  flex-shrink: 0;
  animation: scroll-left 10s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-1400px);
  }
}

footer{
  width:100%;
  bottom: 0;
  padding: 16px 24px 32px 24px;
}
  
footer a{
  color: #a0a0a0;
  text-decoration: none;
  font-weight: normal;
  font-size: 12pt;
}

footer a:hover{
  text-decoration: underline;
}

footer p{
  font-size: 12pt;
}

/*Mobil horizontal | 490-768*/
@media (min-width: 490px) {
  h1 {
    font-size: 80pt;
  }

  h2 {
    font-size: 40pt;
    line-height: 50pt;
  }

  h5 {
    font-size: 10pt;
    line-height: 13px;
  }
  
  nav{
  padding:24px;
  }
  
  .caseStudy{
    width:auto;
    margin: 0px 24px 80px;
  }
  
  .casestudy-photo img{
    border-radius:16px;
  }
}

/*iPad vertical | 768-1040*/
@media (min-width: 768px) {
  h5 {
    font-size: 16pt;
    line-height: 18px;
  }
  
  nav{
  padding:32px;
  }
  
  #phrase{
    padding-bottom:17vw;
  }
  
  #casestudies{
    margin-bottom:24px;
  }

  footer{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
  }
}

/*Desktop and iPad horizontal*/
@media (min-width: 1040px) {
  h5 {
    font-size: 16pt;
    line-height: 18px;
  }
  
  p{
  font-size: 18pt;
  line-height: 24pt;
}
  
  #mainContainer{
    padding-top:15vh;
  }
  
  #phrase{
    height:35vh;
    padding-top:10vh;
  }
  
  #name{
    width:60%;
    margin:auto;
    padding-top:0px;
    padding-bottom:20vw;
  }
  
  .caseStudy{
    width:90%;
    margin: 20px 24px 80px 24px;
    flex-direction:row;
  }
  
  .casestudy-info{
    width:40%;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
  }

  .casestudy-photo{
    width: 60%;
    margin-bottom: 0px;
  }

  .casestudy-photo img{
    width: 100%;
  }

  .casestudy-info-text{
    margin-bottom: 24px;
  }

  .scroll-track {
    width:1360px;
    overflow: hidden;
    text-align: center;
    margin: auto;
    margin-top: 32px;
  } 
  .scroll-track img {
    animation: none;
  }
}

@media (min-width: 1440px) {
  h1 {
    font-size: 95pt;
  }

  h2 {
    font-size: 75px;
    line-height: 100px;
  }

  h5 {
    font-size: 16px;
    line-height: 16px;
  }

  p {
    font-size: 20px;
    line-height: 28px;
  }
  
  a {
    font-size: 20px;
  }

  #m{
    font-size: 24pt;
  }
  
  #phrase{
    height:45vh;
    padding-top:10vh;
  }
  
  #name p{
    font-size: 25px;
  }
  
  .casestudy-info-button {
    border: 1px #0f030f solid;
    bottom:0;
  }
  
  .casestudy-info-button:hover {
    border: 1px #ffffff solid;
    font-weight: bold;
    transition: 0.2s ease-in;
    /* animation-name: buttonborder;
    animation-duration: 0.5s; */
  }
  
  #footer-quote{
    visibility:visible;
  }
  
  #footer-quote:hover{
    opacity: 0;
    transition: opacity 0.3s ease;
  }
}
