/* Styling for screens wider than 800px */
body {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
  }
  
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: 10px 50px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  }
  
  #logo-img {
    height: 40px; /* Adjust the height as needed */
    width: auto; /* This maintains the aspect ratio */
  }
  
  #menu {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
  }
  
  .menu-item {
    margin: 0 20px;
    padding: 10px 20px;
    border-radius: 30px;
    color: #293756;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .menu-item:hover {
    background-color: #E5BED6;
    color: #fff;
  }
  
  .active {
    color: #E5BED6;
  }
  
  #book-class {
    margin-left: 20px;
    padding: 10px 20px;
    border-radius: 50px;
    background-color: #293756;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  #book-class:hover {
    background-color: #E5BED6;
  }
  .student-stories-wrapper {
  background-color: #293756;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
}

.student-stories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #293756;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 1200px;
}

.story {
  background-color: #fff;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 5px;
  margin: 0 10px 20px;
  width: calc(33.33% - 20px * 2);
  flex-direction: column;
}

.author {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: #293756;
  margin-bottom: 10px;
}

.content {
  font-family: 'Fairplay', sans-serif;
  font-size: 16px;
  font-weight: normal;
}

.word-cloud-container {
  width: 80%;
  max-width: 600px;
  height: 60vh;
  margin: 0 auto;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.word-cloud {
  width: 100%;
  height: 100%;
}

.word {
  font-family: Raleway, Arial, sans-serif;
  position: absolute;
  cursor: pointer;
  transition: font-weight 0.3s, color 0.3s;
}

.word:hover,
.word.highlighted,
.word.selected {
  font-weight: bold;
  color: #E5BED6;
}

.word.selected:hover {
  font-weight: bold;
  color: #E5BED6;
}

.word.selected {
  z-index: 1;
}

.highlighted-word {
  font-weight: bold;
  color: #E5BED6;
}

.story.highlighted {
  border: 3px solid #E5BED6;
  font-weight: bold;
}
  footer {
    background-color: #293756;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    padding: 20px;
    text-align: center;
    animation: fade-in 1s ease-in-out forwards;
  }
  
  footer a {
    color: #fff;
    text-decoration: none;
  }
  
  footer a:hover {
    color: #ccc;
  }
  
  footer .container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .footer-block {
    width: 100%;
    max-width: 200px;
    margin: 0 10px;
    text-align: left;
  }
  
  .footer-block img {
    max-width: 80px;
    margin-bottom: 20px;
  }
  
  .footer-block h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .footer-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .footer-block ul li {
    margin-bottom: 10px;
  }
  
  .social-icons {
    display: flex;
    justify-content: flex-start;
  }
  
  .social-icons li {
    margin: 0 10px;
  }
  
  /* Styling for screens 962px or below (Mobile) */
@media (max-width: 962px) {
    body {
      margin: 0;
      padding: 0;
      font-family: 'Raleway', sans-serif;
      font-size: 20px;
    }
  
    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background-color: #fff;
      padding: 10px 50px;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
      position: relative;
      min-height: 60px;
      max-height: 80px;
      transition: min-height 0.4s;
    }
  
    #logo-img {
      height: auto;
      max-height: 60px;
      width: auto;
      margin-left: 20px;
    }
  
    .menu-icon {
      cursor: pointer;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: 40px; /* Reduce the size of the menu icon */
      height: 40px; /* Reduce the size of the menu icon */
      margin-right: 20px; /* Adjust the margin as needed */
    }
  
    .bar {
      width: 40px; /* Set the width to match the menu icon width */
      height: 4px; /* Adjust the height of the bars */
      background-color: #293756;
      transition: 0.4s;
      border-radius: 6px;
      transform-origin: 50% 50%;
      margin: 4px 0; /* Adjust the vertical margin between bars */
    }
  
    .menu {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      background-color: #fff;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
      padding: 10px;
      z-index: 1;
      width: 100%;
      list-style: none;
      text-align: center;
    }
  
    .menu-item {
      padding: 10px;
      border-radius: 30px;
      color: #293756;
      text-decoration: none;
      transition: all 0.3s ease;
      display: inline-block;
      margin: 5px 0;
    }
  
    .menu-item:hover {
      background-color: #E5BED6;
      color: #fff;
    }
  
    .active {
      color: #E5BED6;
    }
  
    #book-class {
      margin-top: 5px;
      padding: 10px;
      border-radius: 50px;
      background-color: #293756;
      color: #fff;
      text-decoration: none;
      transition: all 0.3s ease;
      display: inline-block;
      min-width: 100px;
      max-width: 200px;
      width: auto;
      text-align: center;
      margin:5px auto;
    }
  
    #book-class:hover {
      background-color: #E5BED6;
    }
    .student-stories-wrapper {
     width: 100%;
     padding: 20px 10px; /* Adjust padding for better spacing */
     box-sizing: border-box;
    }

    .student-stories {
     display: flex;
     flex-direction: column;
     align-items: center;
     padding: 0;
     height: auto;
     width: 100%;
     max-width: none;
     margin: 0 auto;
    }

    .story {
     width: calc(100%); /* Adjust the width to account for padding */
     box-sizing: border-box;
     margin-bottom: 20px; /* Adjust margin as needed for spacing between stories */
     padding: 20px; /* Add padding */
     text-align: left; /* Align text within each story (left, center, or right) */
     margin-left: 10px; /* Align the story to the center */
     margin-right: 10px; /* Align the story to the center */
    }

    .word-cloud-container {
     width: 100%;
    }
  
    .bar.active:nth-child(1) {
      transform: translateY(14px) rotate(45deg); /* Adjust the transformation to align the top bar */
    }
  
    .bar.active:nth-child(2) {
      opacity: 0;
    }
  
    .bar.active:nth-child(3) {
      transform: translateY(-14px) rotate(-45deg); /* Adjust the transformation to align the bottom bar */
    }
    footer .container {
        flex-direction: column;
        align-items: center;
      }
      .footer-block {
        max-width: 100%;
        margin: 10px 0;
      }
  }
  