*{
    box-sizing: border-box;
}
img{
    max: width 100%;
    height:auto;
}

body{
    background-color:#F2ECD8;
}

h1{
    font-family: 'Playfair Display', serif;
}
p{
    color: #1B4F5E;
}

footer {
  background-color: #1A2A30;
  padding: .4rem 1rem;
  
  text-align: center;
  font-family: 'Source Serif 4', serif;
  font-size: 0.7rem;
  color: #8A9BA8;
  display: inline-block;
  width: 100%;
}

/* intro page */

header{
    background-color:#F2ECD8;  
   
}
nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-bottom: 5px;

}

.logo {
width:50px;
height:auto;
}

.hamburger{
    width:50px;
    height:auto
}

.desktop-nav {
display:none;
}

.hero{
    background-image: url('../img/soundsunset.jpg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    height:89vh;
    display:flex;
    align-items:flex-start;
    justify-content:center;
    padding-top:30%;
     position: relative;
}

.hero-content{
text-align:center;
color: white;
padding: 2px;
border-radius: 4px;
}


.introduction{
max-width: 700px;
margin: 0 auto;
padding: 3px 2px;
}
.introduction h1{
    color: #1B4F5E;
    text-align:center;
    border: 1px solid #1B4F5E;
    font-family: 'Playfair Display', serif;
    font-size: 25px;
     border-left: 4px solid #1B4F5E;
}
.introduction p{
    font-family: 'Source Sarif 4', serif;
    
}
.introduction p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: #1B4F5E;           
  float: left;
  line-height: 0.85;
  margin-right: 8px;
  margin-top: 6px;
}
.scroll-arrow {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  color: #FFFFFF;
  opacity: 0.7;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}
/* estuary page */

.estuary-content h1{
    color: #1B4F5E;
    text-align:center;
    border: 1px solid #1B4F5E;
    font-family: 'Playfair Display', serif;
    font-size: 25px;
     border-left: 4px solid #1B4F5E;
}
.estuary-content p:first-of-type::first-letter {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: #1B4F5E;           
  float: left;
  line-height: 0.85;
  margin-right: 8px;
  margin-top: 6px;
}

.estuary-info{
max-width:360px;
display:flex;
justify-content:center;
padding:7px
}


.video{
    padding:5px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;   
  height: 0;
  overflow: hidden;
  
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.estuary-info2{
    display:none;
}

/* problems page */

.rivercomparison {
    width: 360px;
    height:185px;
    object-fit:cover;
    
}
figure{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:1rem;
}
figcaption{
    width:360px;
    text-align:center;
    border: 1px solid #1B4F5E;
    font-size:12px;
}
.desktop-caption{
    display:none;
}

.sidenav {
            height: 100%;
            width: 0;
            position: fixed;
            z-index: 1;
            top: 0;
            left: 0;
            background-color: #1B4F5E;
            overflow-x: hidden;
            transition: 0.5s;
            padding-top: 60px;
            }

            .sidenav a {
            padding: 8px 8px 8px 32px;
            text-decoration: none;
            font-family: 'Playfair Display', serif;
            font-size: 25px;
            color: #F2ECD8;
            display: block;
            transition: 0.3s;
            }

            .sidenav a:hover {
            color: #f1f1f1;
            }

            .sidenav .closebtn {
            position: absolute;
            top: 0;
            right: 25px;
            font-size: 36px;
            margin-left: 50px;
            }

/* human impact */
/* Quiz Section */
.quiz-section {
  max-width: 700px;
  margin: 0 auto;
  padding: .5%;
}

.quiz-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #1B4F5E;
  margin-bottom: 0.5rem;
  text-align:center;
}

.quiz-intro {
  color: #8A9BA8;
  margin-bottom: 2rem;
}

.quiz-card {
  background-color: #FAFAF7;
  border-left: 4px solid #2D7DA8;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.question {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #1A2A30;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* hide the actual radio buttons */
input[type="radio"] {
  display: none;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.answer {
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  border: 2px solid #E0D6BC;
  background-color: #fff;
  cursor: pointer;
  font-family: 'Source Serif 4', serif;
  color: #1A2A30;
  transition: border-color 0.2s;
}

.answer:hover {
  border-color: #2D7DA8;
}

/* feedback messages — hidden by default */
.feedback {
  display: none;
  margin-top: 1rem;
  font-size: 0.95rem;
  font-family: 'Source Serif 4', serif;
}

/* Q1 correct answer */
#q1c:checked ~ .answers label[for="q1c"] {
  background-color: #d4edda;
  border-color: #4E7C5F;
  color: #1A2A30;
}
#q1c:checked ~ .feedback.correct-msg { display: block; color: #4E7C5F; }

/* Q1 wrong answers */
#q1a:checked ~ .answers label[for="q1a"],
#q1b:checked ~ .answers label[for="q1b"],
#q1d:checked ~ .answers label[for="q1d"] {
  background-color: #fde8e8;
  border-color: #c0392b;
}
#q1a:checked ~ .feedback.wrong-msg,
#q1b:checked ~ .feedback.wrong-msg,
#q1d:checked ~ .feedback.wrong-msg { display: block; color: #c0392b; }

/* Q2 correct answer */
#q2b:checked ~ .answers label[for="q2b"] {
  background-color: #d4edda;
  border-color: #4E7C5F;
}
#q2b:checked ~ .feedback.correct-msg { display: block; color: #4E7C5F; }

/* Q2 wrong answers */
#q2a:checked ~ .answers label[for="q2a"],
#q2c:checked ~ .answers label[for="q2c"],
#q2d:checked ~ .answers label[for="q2d"] {
  background-color: #fde8e8;
  border-color: #c0392b;
}
#q2a:checked ~ .feedback.wrong-msg,
#q2c:checked ~ .feedback.wrong-msg,
#q2d:checked ~ .feedback.wrong-msg { display: block; color: #c0392b; }

/* Q3 correct answer */
#q3c:checked ~ .answers label[for="q3c"] {
  background-color: #d4edda;
  border-color: #4E7C5F;
}
#q3c:checked ~ .feedback.correct-msg { display: block; color: #4E7C5F; }

/* Q3 wrong answers */
#q3a:checked ~ .answers label[for="q3a"],
#q3b:checked ~ .answers label[for="q3b"],
#q3d:checked ~ .answers label[for="q3d"] {
  background-color: #fde8e8;
  border-color: #c0392b;
}
#q3a:checked ~ .feedback.wrong-msg,
#q3b:checked ~ .feedback.wrong-msg,
#q3d:checked ~ .feedback.wrong-msg { display: block; color: #c0392b; }


/* solutions page */
.solutions-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
}

.solutions-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #1B4F5E;
  margin-bottom: 0.5rem;
}

.solutions-intro {
  color: #8A9BA8;
  margin-bottom: 2.5rem;
}

.cards-flex {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.flip-card {
  width: 300px;
  height: 380px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

/* Mobile default — tap and hold */
.flip-card input[type="checkbox"] {
  display: none;
}

/* mobile default — tap to flip, tap again to flip back */
.flip-card input[type="checkbox"]:checked ~ .flip-inner {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  
}

.flip-front {
  background-color: #1B4F5E;
}

.flip-front img {
  width: 100%;
  height: 78%;
  object-fit: cover;
}

.flip-front h3 {
  font-family: 'Playfair Display', serif;
  color: #F2ECD8;
  padding: 0.8rem;
  font-size: 1rem;
}

.flip-back {
  background-color: #1B4F5E;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  text-align: left;
}

.flip-back h3 {
  font-family: 'Playfair Display', serif;
  color: #F2ECD8;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.flip-back p {
  font-family: 'Source Serif 4', serif;
  color: #E0D6BC;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.how-to-help {
  color: #5fb3d4 !important;
  font-size: 0.8rem !important;
}

.flip-back a {
  color: #acc8d4;
}


.flip-back p:first-of-type::first-letter{
    font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 700;
  color:#F2ECD8;           
  float: left;
  line-height: 0.85;
  margin-right: 8px;
  margin-top: 6px;
    
}
.flip-card {
    margin-bottom:7.5px;
    
}
.nav-btn-row {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 0.8rem 0;
}

.story-btn {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #FAFAF7;
  background-color: #1B4F5E;
  padding: 0.9rem 2.5rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.05rem;
  transition: background-color 0.2s, transform 0.2s;
}

.story-btn:hover {
  background-color: #2D7DA8;
  transform: translateY(-2px);    /* subtle lift on hover */
}

@media screen and (min-width:1080px){

    p{
        font-size:larger;
    }

.desktop-nav{
display:flex;
justify-content:space-between;
border-bottom: 2px solid #29a6de;
padding-bottom:10px;

}
.mobile-nav{
    display:none;
}

.nav-words{
 font-family: 'Playfair Display', serif;
 color: #29a6de;
 font-size: 15px;
 margin:20px;
} 

.hamburger{
    display:none;
}
/* intro page */
.hero{
   font-size:xx-large;
   display:flex;
   align-items:center;
   justify-content:center;
   padding-top:7%
}



/* estuary page */


.estuary-desktop-row {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
  }

  .estuary-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .estuary-left img {
    width: 100%;
    border-radius: 6px;
  }

  .estuary-right {
    flex: 1;
  }

  /* make the video fill its column */
  .estuary-right .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
  }

  .estuary-right .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  @media (min-width: 1080px) {



  .estuary-desktop-row {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;      /* vertically centers both columns */
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 3rem;
  }

  .estuary-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .estuary-left img {
    width: 100%;
    height:auto;              /* image fills the full left column */
    border-radius: 6px;
  }

  .estuary-left p {
    font-size: 1rem;
    line-height: 1.8;
  }
  

  .estuary-right {
    flex: 1;                  /* equal width as left column */
  }

  .estuary-right .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;   /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
  }

  .estuary-right .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}
.estuary-text {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 3rem;       /* match the padding of the row below it */
}


/* the problem */
.the-problem{
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;      /* vertically centers both columns */
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 3rem;
}


  figure {
    display: flex;
    flex-direction: column;   /* stacks image-row and caption vertically */
    align-items: center;
  }

  .image-row {
    display: flex;
    flex-direction: row;      /* puts the two images side by side */
    justify-content: center;
    gap: 1rem;
    width: 100%;
  }

  .rivercomparison {
    width: 50%;
    height: 250px;
    object-fit: cover;
  }

  .desktop-caption{
    display: block;
text-align: center;
    margin-top: 0.05rem;
    width:75%;
  }
.mobile-caption{
    display:none;
}
    
  /* human impacts page */

    .human-impact{
        display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;      /* vertically centers both columns */
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 3rem;
    }






/* solutions page */
 .flip-card input[type="checkbox"]:checked ~ .flip-inner {
    transform: none;
  }

  .flip-card:hover .flip-inner {
    transform: rotateY(180deg);
  }
.flip-card{
    width:380px;
    height:450px;
    margin-bottom:15px;
    
}
.solutions{
     display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;      /* vertically centers both columns */
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 3rem;
     


}

}
