:root {
    --dark-gray: #333333;
    --light-gray: #fafafa;
    --green: #99F7B4;
    --pink: #F148FA;
    --lt-blue: #46CCFF;
    --blue: #0000FF;
}

html {
    scroll-behavior: smooth;
}

br {
    line-height: 2em;
}
@font-face {
    font-family: "C800";
    src: url(../fonts/c800-webfont.woff2);
}
body {
    margin: 0;
    padding: 0;
    font-family: "Noto Serif Display", serif;
    font-size: 1.3em;
}

#skip {
    opacity: 0;
    position: fixed;
    top: 0
}

#skip:focus {
    opacity: 1;
}

section {
    position: sticky;
    top: 0;
    min-height: 100vh;
}

@media screen and (max-width: 900px) {
  section {
    position: relative;
    min-height: 0px;
  }

  #hero, #section1 {
    position: sticky;
  }
}

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

/*fade in when enter viewport, and option to disable for accessibility*/
.animate {
    opacity: 0;
}
.in-view {
    animation: fadein 2s ease;
    animation-fill-mode: forwards;
}

@media screen and (prefers-reduced-motion: reduce) {
    .animate { animation: none !important; }
  }


/*nav styling coming soon!!*/
nav {
    /*display: none;*/
    display: block;
    position: fixed;
    bottom: 0;
    z-index: 100;
    width: 100vw;
    background-color: #fafafac0;
    animation: fadein 2s ease 2s;
    animation-fill-mode: backwards;
}

nav ul {
    align-items: center;
    margin: 5px 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

nav ul li {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

@media screen and (max-width: 800px) {
    nav {
        top: 0;
        animation: none;
        background: none;
        height: 0;
    }

    nav ul, nav ul li {
        height: 0;
        margin: 0;
    }

    nav ul li a {
        display: inline-block;
        height: 0;
        opacity: 0;
    }

    nav ul li a:focus {
        opacity: 1;
        height: auto;
        background-color: white;
    }
}


nav ul li a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: 0.5s;
}

nav ul li a:hover {
    color: var(--pink);
    font-weight: bold;
}


#heroLogo {
    width: 100vw;
    height: 90vh;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    justify-content: center;
    align-content: center;
    text-align: center;
}

#heroLogo img {
    height: auto;
    align-self: center;
    animation: fadein 2s ease;
    animation-fill-mode: backwards;
    width: 50%;
}

#hero{
    top: 5vh;
    z-index: 1;
    min-height: 0px;
}

@media screen and (max-width: 800px) {
    #heroLogo{
      height: 75vh;
    }
    #heroLogo img {
        width: 60%;
    }    
  }

  @media screen and (max-width: 400px) {
    #heroLogo img {
        width: 70%;
    }        
  }

  h1, h2, h3 {
    font-family: "C800", sans-serif;
  }

  h1 {
    color: white;
    /*font-size: 5em;*/
    font-size: 6vw;
    text-align: center;
    align-self: center;
    margin: 0 auto;
    max-width: 75vw;
  }

  h2 {
    font-size: 3vw;
  }

  @media screen and (max-width: 800px) {
    h1 {
        font-size: 10vw;
    }
    h2 {
      font-size: 7vw;
    }
  }

  .leftTextGrid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: 100vh;
  }

  .leftTextGrid div, .rightTextGrid div{
    display: flex;
    flex-direction: column;
    padding: 10%;
    align-items: stretch;
  }


  .rightTextGrid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    height: 100vh;
  }

  @media screen and (max-width: 900px) {
    .rightTextGrid {
      min-height: 150vh;
      height: max-content;
      grid-template-rows: 50vh max-content;
      grid-template-columns: 1fr;
    }

    .leftTextGrid {
      height: max-content;
      grid-template-rows: 1fr min-content;
      grid-template-columns: 1fr;
    }

    #aboutImg {
      display: none;
    }
  }

  #section1 {
    z-index: 3;
    background-color: var(--dark-gray);
    min-height: 100vh;
    color: white;
    text-align: center;
    padding-top: 40vh;

    animation: fadein 2s ease 2s;
    animation-fill-mode: backwards;
  }

  #section1 div p {
    max-width: 80%;
    margin: 0 auto;
  }

  #section2 {
    background-color: white;
    z-index: 4;
  }

  #section3 {
    z-index: 5;
    background-color: var(--dark-gray);
    color: white;
  }

  #aboutImg {
    background-image: url(../images/backupbackground.png);
    background-size: cover;
    background-position: right;
    background-attachment: fixed;
  }

  #jamieImg {
    background-image: url(../images/Jamie2023_blur.jpg);
    background-size: cover;
    background-position: 65% 75%;
  }

  #section4 {
    z-index: 6;
    background-color: white;
    padding: 10%;
  }

  #section5 {
    z-index: 7;
    background-color: var(--dark-gray);
    color: white;
    padding: 10%
  }

  footer {
    position: sticky;
    top: 0;
    background-color: var(--green);
    z-index: 200;
    height: 50px;
    padding: 25px;
    color: var(--dark-gray)
  }

  footer p {
    position: relative;
    top: -1em;
    float: right;
    display: block;
    width: 50%;
    text-align: end;
  }

  footer a {
    display: inline-block;
    color: var(--dark-gray);
    text-decoration: none;
    /*font-size: 1.2em;*/
    margin-right: 20px;
    transition: 0.5s;
  }

  footer a:hover {
    color: var(--light-gray);
    text-decoration: underline;
  }

  @media screen and (max-width: 600px) {
    footer {
      height: 100px;
    }

    footer p {
      float: left;
      width: 100%;
      text-align: start;
      margin-top: 35px
    }
  }