html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Responsive Design Variables */
:root {
  --mobile-padding: 1rem;
  --tablet-padding: 2rem;
  --desktop-padding: 3rem;
  --max-content-width: 1200px;
  --mobile-font-size: 14px;
  --tablet-font-size: 16px;
  --desktop-font-size: 18px;
}

/* Base responsive styles */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/*index.html*/
/*first picture*/
.imgwrapper {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 2px solid black;
}
.semitrans {
  opacity: 0.5;
  display: block;
  width: 100%;
  height: auto;
}
/*code at the center of the picture*/
.container {
  position: relative;
  text-align: center;
  color: black;
  font-size: 30px;
  margin: 0;
  padding: 0;
  max-width: 1400px;

}
.centered-right {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  flex: 1;
  .heading {
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 20px;
    flex: 1;
  }
  button {
    background-color: #ffa8c8;
  }
  button:hover {
    background-color: #a66e82;
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    text-align: center;
  }
  .centered-right {
    position: static;
    transform: none;
    margin-top: 20px;
  }
}
/*second picture*/
#pic2 {
  float: right;
  width: 32.5%;
}
/*bulleted list next to second picture*/
.info {
  background-color: #d6eadf;
  position: relative;
  text-align: left;
  color: black;
  font-size: clamp(16px, 2.5vw, 20px);
  padding: clamp(1em, 3vw, 2em);
  padding-left: clamp(1.5em, 3.5vw, 2.75em);
  border: 1px solid black;
  border-radius: 25px;
  line-height: 1.8;
  margin: clamp(10px, 2vw, 30px) 0;
  margin-top: -60px;
  width: 100%;
  box-sizing: border-box;
}
/*bulleted list customized bullets*/
ul li::marker {
  content: "✦ "; /* Unicode character for a star */
  color: black; /* Example: set the star color */
  font-size: 1em; /* Adjust the size of the star */
}
/*navigation bar*/
nav {
  border: 1px solid black;
  ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    overflow: hidden;
    li {
      display: inline;
      padding: 10px 10px;
      margin: 0;
      padding: 0;
      a {
        color: black;
        text-decoration: none;
        padding: 10px 15px;
        display: block;
      }
      a[href="index.html"] {
        padding: 0px;
        margin: 0;
      }
      a[href="about.html"] {
        padding: 10px;
        margin-left: 1em;
        font-size: 25px;
      }
      a[href="resources.html"] {
        padding: 10px;
        margin-left: -3em;
        margin-right: 0;
        font-size: 25px;
      }
      a[href="takeaction.html"] {
        border: 1px solid black;
        border-radius: 50px;
        padding: 10px;
        margin-right: 6em;
        font-size: 25px;
        background-color: #ffa8c8;
      }
      a[href="takeaction.html"]:hover {
        background-color: #a66e82;
      }
      a:hover {
        background-color: #e3e3e3;
        color: black;
      }
      a:has(#logo):hover {
        background-color: transparent;
        color: black;
      }
    }
  }

  #logo {
    width: 500px;
    padding-left: 0px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
  }
}
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
}
.hamburger div {
  width: 30px;
  height: 3px;
  background-color: black;
  margin: 4px 0;
  transition: 0.4s;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    display: none;
    width: 100%;
  }
  nav ul.active {
    display: flex;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .hamburger {
    display: flex;
  }
  .hamburger.active div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}
/*all buttons in page one*/
button {
  border: 1px solid black;
  border-radius: 50px;
  padding: 10px;
  font-size: 25px;
  margin-top: 1em;
  a {
    color: black;
    text-decoration: none;
    padding: 10px 15px;
  }
}
/*story generator*/
.genstory {
  border: 1px solid black;
  border-radius: 25px;
  background-color: #c6def1;
  overflow: hidden;
  text-align: center;
  font-size: 25px;
  padding: 25px;
  margin-left: 390px;
  margin-right: 450px;
  max-width: 500px;
  margin: 0 auto;
  #storybtn {
    background-color: #95b8d1;
  }
  #storybtn:hover {
    background-color: #c6def1;
  }
}
/*story text*/
#story {
  font-size: 25px;
  
}
/*bottom navigation bar*/
#nav2 {
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

#nav2 footer {
  margin: 0;
  text-align: left;
}

#nav2 ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

#nav2 #logo {
  margin-left: 200px;
  width: 400px;
  height: auto;
}

@media (max-width: 768px) {
  #nav2 {
    flex-direction: row;
    padding: 10px 15px;
  }
  
  #nav2 footer {
    font-size: 12px;
    max-width: 60%;
  }
  
  #nav2 #logo {
    width: 120px;
    margin: 0;
  }

  .genstory {
    padding: 10px;
  }
  #story {
    font-size: 1rem;
  }
}

/*about.html*/
/* New CSS for side-by-side layout */
.about-section {
  margin: 40px 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-content.reverse {
  flex-direction: row-reverse;
}

.about-image {
  border: 1px solid black;
  border-radius: 25px;
  width: 400px;
  height: 300px;
  object-fit: cover;
}

.about-text {
  flex: 1;
  border: 1px solid black;
  border-radius: 25px;
  padding: 2em;
  line-height: 2;
  background-color: #f0e2c3;
}

.about-section:nth-child(2) .about-text {
  background-color: #d6d2ff;
}

.about-section:nth-child(3) .about-text {
  background-color: #f7d9c4;
}

.about-section:nth-child(4) .about-text {
  background-color: #d6d2ff;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .about-content,
  .about-content.reverse {
    flex-direction: column;
  }
  
  .about-image {
    width: 100%;
    height: auto;
  }
  
  .about-text {
    width: 100%;
    margin: 0;
  }
}

/*takeaction.html*/
/*signup for newsletter personalized*/
#main2 {
  border: 1px solid black;
  border-radius: 25px;
  padding: clamp(1.5em, 4vw, 2em);
  margin: clamp(20px, 5vw, 50px) auto;
  text-align: center;
  background-color: #c9e4de;
  width: clamp(300px, 90%, 600px);
  max-width: 100%;
  box-sizing: border-box;
  h2 {
    font-size: clamp(24px, 5vw, 40px);
    margin-bottom: clamp(15px, 3vw, 20px);
    line-height: 1.3;
  }
  p {
    font-size: clamp(16px, 2.5vw, 20px);
    margin-bottom: clamp(15px, 3vw, 20px);
    line-height: 1.5;
  }
  label {
    display: block;
    font-size: clamp(16px, 2.5vw, 20px);
    margin: clamp(10px, 2vw, 20px);
  }
  #label2 {
    margin-left: 0;
  }
  #signup {
    display: block;
    margin: 20px auto;
    background-color: #8ca6a1;
    font-size: clamp(16px, 2.5vw, 20px);
    padding: clamp(8px, 2vw, 12px) clamp(16px, 3vw, 24px);
  }
  #signup:hover {
    background-color: #c9e4de;
  }
}


/*resources.html*/
main {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
}

header h1 {
  font-size: 36px;
  margin-bottom: 15px;
  color: #333;
}

header p {
  font-size: 18px;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

section {
  margin-bottom: 40px;
}

section h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
}

section hr {
  border: none;
  height: 2px;
  background-color: #ddd;
  margin-bottom: 20px;
}

.resource-cards {
  display: inline-block;
  border: 2px solid black;
  border-radius: 15px;
  max-width: 350px;
  height: 260px;
  margin: 15px;
  padding: 20px;
  background-color: #f9f9f9;
  vertical-align: top;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex: 1 1 300px;
}

.resource-cards:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.resource-cards h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
  font-weight: bold;
}

.resource-cards p {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #666;
  height: 80px;
  overflow: hidden;
}

.resource-cards button {
  background-color: #ffa8c8;
  font-size: 16px;
  padding: 8px 16px;
  border: 1px solid black;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.resource-cards button:hover {
  background-color: #a66e82;
}

.resource-cards button a {
  color: black;
  text-decoration: none;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 10px;
}

@media (max-width: 768px) {
  .resource-cards {
    max-width: 100%;
    margin: 10px 0;
  }
  
  .card-container {
    flex-direction: column;
    align-items: center;
  }
  .container,
  .about-section {
    flex-direction: column;
    text-align: center;
  }

  #main2, 
  .resource-cards {
    flex: 1 1 100%;
  }
}