*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

main {
  background-color: #252323;
  width: 100%;
  margin-bottom: 0;
}

.content {
  margin-top: 60px;
  padding: 20px;
}

.content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.officers-content-wrapper {
  margin: 0 auto;
  padding: 20px;
}

/* Style the individual lesson pages */
.short-header {
  height: 35vh;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-top: 60px;
  padding: 20px;
}

.short-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.short-hero-title {
  text-align: center;
  color: white;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-family: 'Georgia', serif;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2;
}

.content-wrapper h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #7fb892;
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: left;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.mini-description {
  padding: 40px 20px;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 0;
  box-sizing: border-box;
  color: #e0e0e0;
}

.mini-description::after {
  content: "";
  display: block;
  width: 70%;
  height: 2px;
  background-color: #8fcca3;
  margin: 60px auto 0;
  border-radius: 1px;
  box-shadow: 0 0 8px rgb(143, 204, 163, 0.6);
}

.content {
  padding-top: 0;
}

.main-section {
  
}

.concepts {
  margin-bottom: 40px;
}

.concepts ul {
  list-style-type: disc;
  margin-left: 25px;
  padding-left: 0;
  font-size: 1.2rem;
  line-height: 1.6;
}

.concepts li {
  margin-bottom: 10px;
  color: #e0e0e0;
}

.application-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
}

.application-section p, 
.application-section ul, 
.application-section li {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #e0e0e0;
  text-align: justify;
}

.application-section img {
  max-width: 100%;
  height: auto;
  display: block;
  float: right;
  margin-left: 20px;
  margin-bottom: 15px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 1);
}

responsive-image {
  max-width: 100%;
  height: auto;
}

.application-section::after {
  content: "";
  display: table;
  clear: both;
}

.line-separator {
    width: 70%;
    height: 0;
    border-bottom: 2px solid transparent;
    margin: 30px auto;
    box-sizing: border-box;
    border-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="2"><line x1="0" y1="1" x2="20" y2="1" stroke="rgb(200, 163, 255)" stroke-width="2" /></svg>') 0 0 100% 0 round; 
  box-shadow: 0 0 10px rgb(200, 163, 255, 0.5);
}

.quiz {
  
}

.quiz h1 {
  color: #c8a3ff;
}

.quiz-question-container {
  border-radius: 10px;
  border: 1px solid rgb(196, 203, 253, 0.5);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.quiz-question-container:hover {
  box-shadow: 0 4px 20px rgb(36, 43, 91, 0.3), 
    0 0 15px rgb(84, 95, 176, 0.5);
}

.quiz-question-header{
  display: flex;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: transparent;
  color: white;
}

.quiz-question-header h3 {
  display: flex;
  align-items: center;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: bold;
  margin: 0;
  padding: 0;
  gap: 10px;
  color: #a4aef4;
}

.question-number {
  margin-right: 5px
}

.question-text {
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  font-weight: normal;
  color: #e0e0e0;
  flex-grow: 1;
}

.toggle-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease-out;
  flex-shrink: 0;
  color: #a3e8ff;
}

.quiz-question-header.active .toggle-icon {
  transform: rotate(90deg);
}

.quiz-answer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease out, padding 0.3s ease out;
  color: #eee;
  padding: 0 20px;
  background: transparent;
}

.quiz-answer-content p {
  padding: 15px 0 15px 38px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #dedede;
}

/* Style the "events" page */
.events-header {
  background-image: url('header_backgrounds/teal_code_blur.jpg');
}

.events-carousel-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  color: white;
  font-family: 'Verdana', sans-serif;
}

.carousel {
  position: relative;
  overflow: hidden;
  margin: 0 auto 30px;
  width: 100%;
  max-width: 900px;
  background-color: #252323;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
  padding: 20px 0;
  gap: 70px;
}

.carousel-slide {
  flex-shrink: 0;
  width: 500px;
  flex: 0 0 500px;
  height: 450px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 10px #252323;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  overflow: hidden;
}

.carousel::before, .carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(to right, #252323, transparent);
}

.carousel::after {
  right: 0;
  background: linear-gradient(to left, #252323, transparent);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  margin-top: 10px;
}

.carousel-dots span {
  display: inline-block;
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.carousel-dots .active-dot {
  background-color: #6c59f7;
}

.event-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-top: 20px;
  color: #7fb892;
}

.event-description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-top: 10px;
  margin-bottom: 40px;
  color: #ccc;
}

/* Style the "projects" page */
.projects-header {
  background-image: url('header_backgrounds/computer_code_blur.jpg');
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  margin-top: 20px;
}

.project-filters input {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid silver;
  border-radius: 5px;
  width: 100%;
  max-width: 300px;
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 60px;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.4s ease;
}

.project-link.hidden {
  display: none;
  transform: scale(0.9);
  opacity: 0;
  visibility: hidden;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.project-link.project-visible {
  display: block;
  visibility: visible;
  height: auto;
  margin: initial;
  padding: initial;
}

.project-card {
  display: flex;
  flex-direction: row;
  border: 2px solid #c8a5ca;
  background-color: #902323;
  color: white;
  box-shadow: 0 0 0 transparent;
  transform: translateY(50px) scale(1);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  font-family: 'Verdana', sans-serif;
  will-change: transform;
  min-height: 200px;
}

.project-card.hide-animate {
  opacity: 0;
  transform: scale(0.8);
}

.project-card.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.project-card.show {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.project-card.show:hover {
  transform: translateY(-5px) scale(1.03);
  z-index: 1;
}

.project-image {
  flex: 1;
  position: relative;
  min-width: 200px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.paper-image background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex; 
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.project-description {
  flex: 2;
  padding: 20px;
  background-color: #2c5a5e;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.5;
}

/* Style the "lessons" page */
.lesson-content-wrapper {
  max-width: 1250px;
  margin: 0 auto;
  padding: 20px;
}

.lessons-header {
  background-image: url('header_backgrounds/code_circuit.jpg');
}

.lesson-filters {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  margin-top: 20px;
}

.lesson-filters input {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid silver;
  border-radius: 5px;
  width: 100%;
  max-width: 300px;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding-bottom: 60px;
  align-items: stretch;
  width: 100%;
  margin: 60px auto;
}

.lesson-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.4s ease;
}

.lesson-link.hidden {
  display: none;
  transform: scale(0.9);
  opacity: 0;
  visibility: hidden;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.lesson-link.lesson-visible {
  opacity: 1;
  visibility: visible;
  height: auto;
  margin: initial;
  padding: initial;
}

.lesson-card {
  border: 2px solid #7fb892;
  background-color: #0c0c5f;
  color: white;
  box-shadow: 0 0 0 transparent;
  transform: translateY(50px) scale(1);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
  font-family: 'Verdana', sans-serif;
  will-change: transform;
}

.lesson-card.hide-animate {
  opacity: 0;
  transform: scale(0.8);
}

.lesson-card.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.lesson-card.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.lesson-card.show {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lesson-card.show:hover {
  transform: translateY(-5px) scale(1.03);
  z-index: 1;
}

.lesson-image {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.lesson-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex; 
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.lesson-description {
  padding: 15px;
  background-color: #0c0c5f;
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.4;
}

/* Style the "officers" page */
.officers-header {
  background-image: url('header_backgrounds/code_continent_blur.jpg');
}

.officers-grid {
  display: flex; 
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  align-items: stretch;
  gap: 30px;
  width: 100%;
  margin: 60px auto;
  padding: 50px 20px;
  overflow-x: hidden;
  box-sizing: border-box;
}

.officers-grid::-webkit-scrollbar{
  display: none;
}

.officers-card {
  background-color: #111d2b;
  border-radius: 20px;
  text-align: center;
  padding: 30px 20px;
  color: #c4daee;
  border: 2px solid #a3e8ff;
  transition: box-shadow 0.3s ease-in-out;
  background: linear-gradient(to bottom, #0b132b, #050d1a);
  box-sizing: border-box;
  width: 240px;
  min-width: 180px;
  flex-shrink: 1;
  flex-grow: 1;
  max-width: 240px;
}

.officers-card:hover {
  box-shadow: 0 0 25px rgba(94, 205, 228, 0.8),
              0 0 50px rgba(179, 83, 223, 0.4);
}

.officers-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #7fb892;
  object-fit: cover;
  margin-bottom: 15px;
}

/* Style the "main" page */
.home-header {
  background-image: url('header_backgrounds/purple_blue_black_circuit.jpg');
}

.intro-box {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 20px;
  background-color: #111d2b;
  background: linear-gradient(to bottom, #141f2c, #050d1a);
  color: #e6e6f0;
  box-shadow: 0 0 20px rgba(94, 205, 228, 0.6),
  0 0 50px rgb(124, 102, 234, 0.1);
  font-size: 1.2rem;
  font-family: 'Verdana', sans-serif;
  transition: box-shadow 0.3s ease-in-out;
}

.intro-box:hover {
  box-shadow: 0 0 30px rgba(94, 205, 228, 0.8),
  0 0 50px rgba(124, 102, 234, 0.3);
}

.founder-message {
  max-width: 600px;
  margin: 40px auto;
  adding: 20px;
  text-align: center;
  font-family: 'Georgia', serif;
  font-style: italic;
  color: #888;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.quote-mark {
  font-size: 3rem;
  color: #888;
  vertical-align: middle;
  font-family: 'Georgia', serif;
  margin: 0 5px;
}

/* Style the hero-header */
.hero-header {
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero-title-box {
  background-color: rgba(0, 0, 0, 0.65);
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: white;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-family: 'Georgia', serif;
  transition: transform 0.3s ease-out;
}

/* Style the navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: black; 
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 999;
  position: fixed;
  top: 0;
  width: 100%;
  transition: transform 0.3s ease-in-out;
}

.navbar.hidden {
  transform: translateY(-100%);
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 40px;
  margin-right: 10px;
  border-radius: 5px;
}

.navbar-logo h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.5em);
  font-weight: normal;
  font-family: Fantasy;
  background: linear-gradient(45deg, #db4854, #a81f23);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-sections ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar-sections li {
  display: inline;
  margin-right: 10px;
}

.nav-box {
  text-decoration: none;
  color: #d3810d;
  font-family: Fantasy;
  padding: 5px 15px;
  border-radius: 5px;
  background-color: black;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  display: flex;
}

.nav-box:hover {
  color: #d3810d;
  text-shadow: 0 0 5px #d3810d, 0 0 10px #d3810d;
}

/* Style the footer */
.footer {
  background-color: #902323;
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-family: 'Verdana', sans-serif;
  font-size: 0.9rem;
  margin-top: 0;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-col {
  flex: 1 1 200px;
  min-width: 180px;
}

.footer-col h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 10px;
}

.footer-col a {
  color: black;
  text-decoration: underline
}

.footer-col a:visited {
  color: grey;
}

/* style "officers" row for medium-small devices */
@media (max-width: 1059px) and (min-width: 769px) {
  .officers-grid {
    gap: 10px;
  }

  .officers-card {
    min-width: 140px;
  }

  .officers-photo {
    width: 100px;
    height: 100px;
  }
}

/* Style for smaller devices */
@media (max-width: 768px) {
  /* General adjustments for smaller screens */
  .content-wrapper {
    padding: 15px;
  }

  /* Hero Header */
  .hero-header {
    padding-top: 80px;
    padding: 10px;
    box-sizing: border-box;
  }
  .hero-title-box {
    padding: 15px 20px;
    font-size: clamp(1.6rem, 5vw, 2.5rem);
  }

  /* Navbar */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s ease-out; 
  }

  .navbar.nav-open {
    max-height: 500px;
  }

  .navbar-logo {
    margin-bottom: 0; 
    cursor: pointer; 
    width: 100%; 
    padding-bottom: 10px; 
    box-sizing: border-box; 
    display: flex; 
    justify-content: space-between;
    align-items: center;
  }

  .navbar-logo h1 {
    font-size: clamp(1.4rem, 5vw, 1.8em);
    text-align: left;
    align-self: flex-start;
    padding-left: 10px;
  }

  .navbar-sections {
    width: 100%;
    display: block;
  }

  .navbar-sections ul {
    flex-direction: column;
    gap: 5px;
    width: 100%;
    padding-top: 5px;
  }

  .nav-box {
    padding: 8px 12px;
    font-size: 0.95rem;
    justify-content: flex-start;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: left;
  }

  .nav-box:last-child {
      border-bottom: none;
  }

  /* Footer */
  .footer {
  font-size: 0.8rem;
  padding: 20px;
  }
  .footer-col {
  text-align: center;
  }

  /* Home Page elements */
  .intro-box, .founder-message {
  padding: 20px;
  margin: 20px;
  }

  /* Officers Page Carousel */
  .officers-grid {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  gap: 20px;
  align-items: center;
  }
  .officers-card {
  width: 100%;
  max-width: 300px;
  flex: 0 0 auto;
  }
  .officers-photo {
  width: 100px;
  height: 100px;
  }

  /* Lessons Page */
  .lesson-filters input {
  width: 90%;
  font-size: 1rem;
  }
  .lesson-grid {
  gap: 20px;
  }
  .lesson-description {
  font-size: 0.95rem;
  }
  .lesson-overlay {
  font-size: 1.2rem;
  padding: 8px;
  }

  /* Individual Lesson Page adjustments */
  .short-header {
  height: 25vh;
  margin-top: 50px;
  padding: 15px;
  }

  .short-hero-title {
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  }

  .content-wrapper h1 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  margin-top: 30px;
  margin-bottom: 15px;
  }

  .mini-description {
  padding: 30px 15px;
  font-size: 1rem;
  }

  .mini-description::after {
  width: 70%;
  margin-top: 20px;
  box-shadow: 0 0 6px rgba(127, 184, 146, 0.5);
  }

  .concepts ul {
  margin-left: 20px;
  font-size: 0.95rem;
  }

  .concepts li {
  margin-bottom: 8px;
  }

  .application-section img {
    float: none;
    width: 90%;
    max-width: non;
    margin: 20px auto;
    display: block;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
  }

  .application-section p {
  font-size: 0.95rem;
  padding-left: 0;
  padding-right: 0;
  }

  .line-separator {
    box-shadow: 0 0 8px rgba(163, 232, 255, 0.4);
  }

  .quiz-question-container {
  margin-bottom: 15px;
  }

  .quiz-question-container:hover {
  box-shadow: 0 4px 15px rgb(36, 43, 91, 0.3), 
    0 0 10px rgb(84, 95, 176, 0.5);

  .quiz-question-header {
  padding: 12px 15px;
  }

  .quiz-question-header h3 {
  font-size: clamp(1rem, 3vw, 1.2rem);
  gap: 8px;
  }

  .question-number {
  margin-right: 3px;
  }

  .question-text {
  font-size: clamp(0.95rem, 2.5vw, 1rem);
  }

  .quiz-answer-content p {
  padding: 10px 15px 10px 20px;
  font-size: 0.95rem;
  }

  /* Projects Page */
  .project-card {
  flex-direction: column;
  text-align: center;
  }
  .project-image {
  height: 180px;
  min-width: 100%;
  }
  .project-description {
  padding: 15px;
  font-size: 1rem;
  }
  .project-overlay {
  font-size: 1.2rem;
  padding: 6px;
  }

  /* Events Page Carousel */
  .carousel-slide {
  width: 80vw;
  flex: 0 0 80vw;
  height: 220px;
  }
  .carousel {
  padding: 0 15px;
  }
  .carousel::before,
  .carousel::after {
  width: 20px;
  }
  .carousel-btn {
  font-size: 1.5rem;
  padding: 6px;
  }
  .event-description {
  font-size: 0.95rem;
  padding: 0 10px;
  }
  .event-title {
  font-size: 1.2rem;
  margin-top: 15px
  }
  .carousel-dots span {
  width: 10px;
  height: 10px;
  }
    
}
