/* import fonts */
@font-face {
    font-family: RemixA;
    src: url('/Fonts/Remix\ A/RemixA-Regular.otf');
}

@font-face {
    font-family: RemixA;
    src: url('/Fonts/Remix\ A/RemixA-Italic.otf');
    font-style: italic;
}

@font-face{
    font-family:RemixA-Mono;
    src:url('/Fonts/Remix\ A/RemixA-Mono.otf');
}

@font-face {
    font-family: RauschenA;
    src: url('/Fonts/RauschenA-DEMO-Regular.ttf');
    font-style:normal;
}

@font-face {
    font-family: RauschenA;
    src: url('/Fonts/RauschenA-DEMO-RegularItalic.ttf');
    font-style:italic;
}

@font-face {
    font-family: RauschenA;
    src: url('/Fonts/RauschenA-DEMO-Semibold.ttf');
    font-weight:bold;
}

@font-face {
    font-family: RauschenA;
    src: url('/Fonts/RauschenA-DEMO-SemiboldItalic.ttf');
    font-weight:bold;
    font-style:italic;
}

* {
    font-family: RemixA;
}
html{
    background-color: #FFF9EC;
}

body{
    font-size:1.5em;
    letter-spacing: 0.01em;
    line-height:1.3em;
}

h1{
    font-size:6em;
    line-height:1em;
    margin:0;
}

h2{
    font-family: RauschenA;
    font-size:2.6em;
    margin:0.4em 0;
    line-height:1em;
    letter-spacing: -0.03em;
}

h3{
    font-size:1.8em;
    margin:0.1em 0;
    line-height:1em;
}

a{
  color: black;
  transition: color 0.3s;
}
a:hover{
  color: darkgray;
}

.secondary{
    font-family:RemixA-Mono;
    font-size:1em;
    letter-spacing:-0.03em;
}

/* Landing Page */

#landing-page, #about-page, #challenge-page, #contact-page{
  padding:50px;
  margin-top:200px;
}

#landing-page{
  text-align:center;
}
#landing-page .topnav{
  text-align: left;
}
#landing-bottom{
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  margin:100px 0;
  padding:5vw 10vw;
}

#landing-bottom p{
  padding:0 10vw;
}

#about-spacing{
  display:none;
}

#contact-content-wrapper{
  margin-bottom:1em;
}

#contact-page .footer{
  position: fixed;
  bottom: 50px;
  right:50px;
  height:1em;
}

.card {
    padding: 1rem;
    margin:none;
    text-align:center;
}

.cards {
    max-width: 3000px;
    display: grid;
    gap: 24px;
}

@media (min-width: 600px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
}

/* Navigation Bar */
.topnav{
    position:fixed;
    height:200px;
    top: 50px;
    left: 50px;
    right: 50px;
    z-index:2;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    width:100%;
}
  
.topnav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.topnav ul li {
  margin-right: 40px;
}

.topnav ul li a {
  text-decoration: none;
  transition: color 0.3s;
}


.topnav .active{
  font-style:italic
}

.checkbtn {
  font-size: 30px;
  color: black;
  cursor: pointer;
  display: none;
}

#check {
  display: none;
}

.footer{
  font-size:0.6em;
  text-align:right;
  height:1em;
}

/* About Page */
.container{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:24px;
  margin:0;
  padding:0;
  z-index:1; /* Place in front of background */
}

.right{
  grid-column: 2/span 2;
}

.left{
  grid-column: 1/span 2;
}

.right-footnote{
  grid-column: 3/span 1;
}

.left-footnote{
  grid-column: 1/span 1;
}

.about{
  min-height:90vh;
  align-items: center;
}

/* Parallax scrolling background images */
.parallax {
  position: absolute;
  top: 0;
  left: 20px;
  width:100%;
  height: 85vh;
  z-index: -1; /* Place behind content */
  background-attachment: fixed;
  background-size: 40%; /* Scale the image to fit within its container */
  background-repeat: no-repeat; /* Avoid repeating the image */
  background-position: left;
}

#parallax-img1 {
  background-image: url('/Assets/about-1.png');
}

#parallax-img2 {
  background-image: url('/Assets/about-2.png');
  background-position:right;
  top: 100vh;
}

#parallax-img3 {
  background-size: 60%;
  background-image: url('/Assets/about-3.png');
  top: 210vh;
}


/* footnotes */
.footnoteBtn{
  width: 40px;
  height: 20px;
  border: 2.5px solid black;
  border-radius: 50%;
  background-color: #FFF9EC;
  color:black;
  display: inline-flex;
  justify-content: center; /*center the content horizontally*/
  align-items: center; /*center the content vertically*/
  transform:translateY(-10%)
}
.footnoteBtn:hover{
  background-color:black;
  color:#FFF9EC;
}

.footnote{
  background-color: lightgray;
  border-radius: 20px;
  display:none;
  height:auto;
  position:relative;
}

.footnote p{
  font-family: RemixA-Mono;
  font-size:0.6em;
  padding:20px;
  letter-spacing: -0.01em;
  line-height:1.2em;
  width:85%;
}

.close {
  cursor: pointer;
  position: absolute;
  top: 25px; 
  right: 0%;
  padding: 12px 16px;
  transform: translate(0%, -50%);
  font-family: RemixA-Mono;
  font-size:0.6em;
}
/* challenge page position in mobile is set to relative */
#m-footnote-container{
  background-color: black;
  color:#FFF9EC;
  border-radius: 20px;
  display:none;
  padding:20px;
  z-index:2;
  position:fixed;
  left:20px;
  right:20px;
  bottom:20px;
  font-size:0.8em;
}

#m-footnote{
  width:85%;
  line-height:1em;
}
#m-footnote p{
  margin:0;
}
#m-footnote a{
  color:#FFF9EC;
}

#m-close{
  cursor: pointer;
  position: absolute;
  top: 25px; 
  right: 0%;
  padding: 12px 16px;
  transform: translate(0%, -50%);
}

.show{
  display:block;
}

.challenge{
  margin-bottom:200px;
}
.challenge ul{
  list-style-type:decimal;
}
.challenge li{
  margin-left:1em;
  margin: 20px 1em;
}
.challenge-img{
  margin-bottom:100px;
  margin-top:-50px;
}
#challenge-img3{
  max-width: 90%; 
  padding: 50px;
}

#logo {
  margin:0;
  padding:0;
}

/* Responsiveness */
@media screen and (max-width: 768px) {
  
  .checkbtn {
    display: block;
    order: 1;
    margin-right: 20px;
  }
  .topnav {
    top:20px;
    left:20px;
    right:20px;
    height:fit-content;
  }

  .topnav nav{
    padding:10px;
    margin:0;
  }

  .topnav ul {
    position: fixed;
    top: 0px;
    z-index:-1;
    right: -100%;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    background-color: #FFF9EC; /* Ensure the menu is visible */
  }

  .topnav ul li {
    margin: 20px 0;
  }

  .topnav ul li a {
    font-size: 1.2em;
  }

  #check:checked ~ ul {
    right: 0;
  }

  #logo {
    width:30%;
  }

  /* general adjustments */
  body {
    font-size: 1em; /* Reduce font size */
    line-height: 1.5em; /* Improve readability */
  }

  h1 {
    font-size: 4em; /* Scale down headings */
  }

  h2 {
    font-size: 2em;
  }

  h3 {
    font-size: 1.3em;
  }

  #landing-page, #about-page, #challenge-page, #contact-page {
    padding: 20px; /* Reduce padding */
    margin: 100px 0 0 0; /* Avoid large margins */
  }

  #challenge-page{
    position:relative;
  }
  .challenge{
    margin-bottom:20px;
  }
  .challenge ul{
    padding-inline-start: 0;
  }
  .challenge-img{
    margin:0;
  }
  .about{
    min-height:initial;
    margin:50px 0;
  }

  #landing-bottom {
    padding: 10vw 10vw; /* Adjust padding for smaller screens */
    margin: 50px 0;
  }

  #landing-bottom p{
    padding:0;
  }

  .container{
    grid-template-columns: 1fr;
    gap:0px;
  }

  .left, .right, .right-footnote, .left-footnote{
    grid-column: span 1; /* Ensure proper stacking */
  }

  #challenge-img3{
    padding:20px 0 0 0;
    max-width: 80%;
  }


  .footnoteBtn {
    width: 30px;
    height: 15px; /* Scale down button size */
    border: solid 1.5px black;
  }

  .parallax{
    position: initial;
  top: 0;
  left: 0px;
  width:100%;
  height: auto;
  z-index: -1; /* Place behind content */
  background:none;
  }

  #parallax-img1{
    background: none;
    content:url(/Assets/about-1.png);
  }

  #parallax-img2{
    background: none;
    content:url(/Assets/about-2.png);
  }

  #parallax-img3{
    background: none;
    content:url(/Assets/about-3.png);
  }

  #contact-page .footer{
    bottom: 25px;
    right:20px;
    height:1em;
  }

  
}