html {
    font-size: 62.5%;
    font-family: sans-serif;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Biotif';
    src: url('assets/Biotif-Bold.eot');
    src: url('assets/Biotif-Bold.eot?#iefix') format('embedded-opentype'),
    url('assets/Biotif-Bold.woff2') format('woff2'),
    url('assets/Biotif-Bold.woff') format('woff'),
    url('assets/Biotif-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nickainley Normal';
    src: url('assets/Nickainley-Normal.eot');
    src: url('assets/Nickainley-Normal.eot?#iefix') format('embedded-opentype'),
    url('assets/Nickainley-Normal.woff2') format('woff2'),
    url('assets/Nickainley-Normal.woff') format('woff'),
    url('assets/Nickainley-Normal.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


body,
button,
input,
select,
optgroup,
textarea {
    color: white;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.2;
    font-weight: normal;
    font-style: normal;
    font-size: 1.5rem;
    letter-spacing: -0.015rem;
}

body {
    background-color: #088069;
    margin: 0;
    overflow-x: hidden;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
@media screen and (min-width:750px) {
    main {
        display: flex;
        justify-content: space-around;
    }
}
@media screen and (min-width:790px) {
    main {
        padding: 0;
    }
}

nav {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10;
    text-align: center;
  width: 2rem;
}
nav ul {
    display: block;
    list-style: none;
}

nav ul li {
  position: absolute;
  top: 0;
  font-size: 1.3rem;
  left: 50%;
  transform: translateX(-50%);
}
nav ul li:nth-of-type(2) {
  top: 2rem;
}
nav ul li:nth-of-type(3) {
  top: 4rem;
}
nav ul li:nth-of-type(4) {
  top: 6rem;
}

nav ul li a {
  transition: font-size 0.3s;
  color: white;
  text-decoration: none;
}
@media screen and (min-width:750px) {
  nav ul li a:active,
  nav ul li a:focus,
  nav ul li a:visited {
    color: white;
  }
  nav ul li a:hover {
    font-size: 1.5rem;
  }
}

button,
button:focus,
button:active {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
  position: absolute;
  transition: all .3s ease;
  font-size: 3rem;
  color: black;
  font-family: 'Biotif', sans-serif;
  font-weight: normal;
  text-align: center;
  margin-top: 7rem;
  opacity: 1;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
}
button.hidden {
  opacity: 0;
  z-index: -1;
}
button svg {
  position: absolute;
  left: -7rem;
  top: -10rem;
  transform: scale(1);
  transition: all .3s ease;
}
button svg rect {
  transition: all .2s ease;
  fill: black;
}

@media screen and (min-width:750px) {
  button {
    cursor: pointer;
  }
  button:hover {
    color: white;
  }
  button:hover svg {
    transform: scale(1.05);
  }
  button:hover svg rect {
    fill: white;
  }
}

.animation-wrapper,
.text-wrapper {
    width: 100%;
    padding: 3rem;
    position: relative;
    height: 100vh;
    text-align: center;
    color: black;
}
.text-wrapper {
  background-color: #ff452b;
  margin: 0 -2rem;
  height: auto;
  width: calc(100% + 4rem);
}

.text {
    font-family: 'Biotif', sans-serif;
    font-size: 1.6rem;
    color: white;
    opacity: 0;
    z-index: -1;
    transition: all .3s ease;
    margin-bottom: 5rem;
}
.text p {
  margin-top: 3rem;
  transition: all 1s ease;
  opacity: 0;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 2rem;
}
.text.active {
  opacity: 1;
  text-indent: 0;
  z-index: 10;
}
.text.active p {
  margin-top: 0;
  opacity: 1;
  letter-spacing: 0.3rem;
}
.text.active p:nth-of-type(2) {
  transition: all 1s ease 0.1s;
}
.text.active p:nth-of-type(3) {
  transition: all 1s ease 0.2s;
}
.text.active p:nth-of-type(4) {
  transition: all 1s ease 0.3s;
}
.text.active p:nth-of-type(5) {
  transition: all 1s ease 0.4s;
}
.text.active p:nth-of-type(6) {
  transition: all 1s ease 0.5s;
}

h1 {
    font-family: 'Nickainley Normal', sans-serif;
    font-size: 5rem;
    font-weight: normal;
  line-height: 1;
}
@media screen and (min-width: 750px) {
  h1 {
    font-size: 6vw;
    margin: 23vh 0 5rem;
    transition: margin .5s ease 0.1s;
  }
  h1.active {
    margin: 15vh 0 5rem;
  }
}
@media screen and (min-width: 1200px) {
  h1 {
    font-size: 9rem;
  }
}
@media screen and (max-height: 700px) {
  h1 {
    margin: 11vh 0 5rem;
  }
  h1.active {
    margin: 5vh 0 5rem;
  }
}

.external-link {
  color: white;
  font-size: 1.1rem;
  position: absolute;
  bottom: 2rem;
  left: 2rem
}
.external-link a {
  color: white;
  text-decoration: underline;
}
.external-link a:active,
.external-link a:visited,
.external-link a:focus {
  color: white;

}

@media screen and (min-width:750px) {
    .animation-wrapper {
        width: 50%;
      overflow-y: hidden;
    }
    .text-wrapper {
        width: 48%;
        height: 100vh;
        margin: 0;
    }
}

#people,
#earth,
#banner {
    width: 100%;
    position: absolute;
    left: 50%;
    /*top: -46rem;*/

  bottom: 24vh;
    transform: translateX(-50%);
    z-index: -1;
}
@media screen and (min-width: 550px) {
  #people,
  #earth,
  #banner {
    bottom: 6rem;
  }
}
@media screen and (min-width: 750px) {
    #people,
    #earth,
    #banner {
        width: 100%;
        bottom: 15vh;
      /*top: auto;*/
    }
}
@media screen and (max-height: 750px) and (min-width: 750px) {
  #people,
  #earth,
  #banner {
    width: 80%;
  }
}

#people {
    z-index: 1;
}

#banner {
    z-index: 0;
}

.logo-wrapper {
  margin: 5rem 0;
  left: 2rem;
  bottom: 2rem;
  width: 87%;
  display: inline-block;
  align-items: center;
  z-index: 20;
}
.logo-wrapper img {
  margin-right: 2rem;
  height: auto;
  width: 8rem;
}
.logo-wrapper img:last-of-type {
  margin-top: 1rem;
}
.logo-be {
  bottom: 3rem;
  right: 2rem;
  width: 3rem;
  height: auto;
}
@media screen and (min-width: 400px) {
  .logo-wrapper img {
    width: 16rem;
  }
}
@media screen and (min-width: 750px) {
  .logo-wrapper,
  .logo-be {
    width: auto;
    margin: 0;
    position: fixed;
  }
  .logo-be {
    width: 4rem;
  }
  .logo-wrapper {
    display: flex;
  }
  .logo-wrapper img {
    width: 19rem;
    margin-right: 4rem;
  }
}

.gradient-A,
.gradient-B,
.gradient-mobile {
  background: transparent url(assets/SPF_Ecard_2022_Degrade.png) no-repeat center / cover;
  z-index: -1;
}
.gradient-A,
.gradient-B {
  display: none;
  position: fixed;
}
.gradient-mobile {
  background: transparent url(assets/SPF_Ecard_2022_Degrade.png) no-repeat center top / 240%;
  height: 55rem;
  position: absolute;
  width: 100%;
  left: 0;
  top: -24rem;
}

@media screen and (min-width: 750px) {
  .gradient-mobile {
    display: none;
  }
  .gradient-A,
  .gradient-B {
    display: block;
    top: 80%;
    width: 150rem;
    height: 150rem;
  }
  .gradient-A {
    transform: rotate(45deg);
    left: -100%;
  }
  .gradient-B {
    transform: rotate(-45deg);
    right: -100%;
  }
}
@media screen and (min-width: 1200px) {
  .gradient-A {
    left: -57%;
  }
  .gradient-B {
    right: -57%;

  }
}
@media screen and (min-width: 1500px) {
  .gradient-A {
    left: -47%;
  }
  .gradient-B {
    right: -47%;

  }
}
@media screen and (min-width: 1800px) {
  .gradient-A {
    left: -37%;
  }
  .gradient-B {
    right: -37%;

  }
}
