/* Default styles for larger screens */
.container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.question-section,
.minigame-section {
  flex: 1;
  min-width: 300px; /* Ensures minimum readable width */
}

.scroll-container {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 2rem;
  min-height: 100vh;
}

.scroll-text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.scroll-visual {
  position: sticky;
  top: 20vh;
  height: fit-content;
  padding: 2rem;
}

/* Large tablets and smaller desktops */
@media screen and (max-width: 1090px) {
  .nash-container {
    font-size: 10px;
  }

  .nash-grid {
    width: 300px;
  }

  .direction-label-vertical {
    left: 50px;
  }
}

/* Tablets and smaller screens */
@media screen and (max-width: 768px) {
  p {
    font-size: 13px;
  }

  .nav img {
    margin: 15px;
  }
  .question-section,
  .minigame-section {
    flex-basis: 100%;
    margin-bottom: 2rem;
  }

  .header {
    min-height: 50vh;
    justify-content: center;
  }

  /*marquee_____  */
  .marquee {
    min-height: 150px;
  }

  .marquee p {
    margin-bottom: 20px;
  }

  .marquee-items {
    gap: 30px;
    padding: 0 10px;
  }
  
  .marquee-logo {
    height: 20px;
    width: 100px;
  }

  
  #gradientLeft {
    position: absolute;
    left: 0;
    top: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to right, black, transparent);
  }
  
  #gradientRight {
    position: absolute;
    right: 0;
    top: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to left, black, transparent);
  }
  
/* cta_________________________ */
  .cta-section {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  .cta-content-top {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .cta-block {
    width: 90%;
    padding: 30px;
    margin: 0px;
    margin-bottom: 15px;
    text-align: center;
    align-items: center;
  }

  .cta-block a {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-block:hover {
    transform: none;
  }

  .cta-block:hover .circle-container {
    background-color: #222;
  }

  .letter-content {
    width: 95%;
    max-width: 95%;
  }
  /* Adjust padding for smaller screens */
  .container {
    padding: 0.75rem;
    gap: 1rem;
  }


  /* nash_________________________ */

  .nash-container {
    font-size: 10px;
  }
  .nash-grid {
    width: 50%;
  }

  .scroll-container {
    display: flex;
    flex-direction: column;
    min-height: auto;
    gap: 1rem;
  }

  .scroll-text {
    padding: 1.5rem;
    text-align: center;
  }

  .scroll-visual {
    position: static;
    padding: 1rem;
    width: 100%;
  }

  h2 {
    font-size: 32px;
  }

  .sudoku-container {
    width: 100%;
  }
}

/* Mobile devices */
@media screen and (max-width: 480px) {
  .container {
    padding: 0.5rem;
  }

  .question-section,
  .minigame-section {
    margin-bottom: 1.5rem;
  }

  .scroll-text {
    padding: 1rem;
  }

  h2 {
    font-size: 28px;
  }

  .section.sudoku,
  .section.raven {
    padding: 30px 15px;
  }
}