

* {
  box-sizing: border-box;
}

.cell.rollout {
  animation: rollout 0.6s ease-out;
}

.word-list li.found {
  text-decoration: line-through;
  color: gray;
  font-style: italic;
  animation: glow 0.5s ease-out;
}

@keyframes glow {
  0% {
    background-color: #ffeeba;
  }
  100% {
    background-color: transparent;
  }
}
.powered-by {
  position: absolute;
  top: 10rem;
  left: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
}

.homelink {
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: bold;
}

.ppp-logo {
  width: 4.2rem;
  height: 4.2rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.copyright-link {
    position: relative;
    text-align: center;
    font-size: 12px;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    margin: 10px 0;
    padding: 5px;
    top: -9.6rem;
    left: 2.1rem;
}

.copyright-link a {
    color: #991b1b;
    font-weight: bold;
    text-decoration: underline;
    font-family: Arial, Helvetica, sans-serif;
    transition: color 0.3s ease;
}

.copyright-link a:hover {
    color: #333;
}

body {
  background-color: var(--bg-color);
  color: var(--font-color);
  margin: 0;
  padding: 2px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overscroll-behavior: auto;
  touch-action: auto;
  background-color: #ffffff;
  overflow: hidden;
}
#gameContainer {
  width: 85rem;
  margin: 0 auto;
  padding: -7px;
  border-radius: 5px;
  background-color: #ffffff;
  font-family: 'Comic Neue', cursive;
  position: relative;
}

.grid-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
}


.grid {
  position: relative;
  width: 95vw;
  max-width: 450px;
  height: 500px;
  margin: 30px 0;
  top: -1.5rem;
  left: 4.2rem;
  touch-action: none;
}


.cell {
  position: absolute;
  width: 3rem;
  height: 3rem;
  background-image: url('assets/cubes/white.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-size: clamp(10px, 1.7vw, 17px);
  padding-right: 12px;
  padding-top: 5px;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
  font-weight:650;
  text-align: center;
  line-height: 1.4;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.cell[data-row="0"]{z-index:800;top:22.7rem;}
.cell[data-row="1"]{z-index:649;top:20.2rem;}
.cell[data-row="2"]{z-index:600;top:17.7rem;}
.cell[data-row="3"]{z-index:500;top:15.2rem;}
.cell[data-row="4"]{z-index:429;top:12.7rem;}
.cell[data-row="5"]{z-index:392;top:10.2rem;}
.cell[data-row="6"]{z-index:387;top:7.7rem;}
.cell[data-row="7"]{z-index:197;top:5.2rem;}
.cell[data-row="8"]{z-index:60;top:2.7rem;}
.cell[data-row="9"]{z-index:30;top:0.2rem;}


.cell[data-col="0"] { left: 0; z-index: 100; }
.cell[data-col="1"] { left: 2.4rem; z-index: 139; }
.cell[data-col="2"] { left: 4.8rem; z-index: 209; }
.cell[data-col="3"] { left: 7.2rem; z-index: 400; }
.cell[data-col="4"] { left: 9.6rem; z-index: 400; }
.cell[data-col="5"] { left: 12rem; z-index: 500; }
.cell[data-col="6"] { left: 14.4rem; z-index: 500; }
.cell[data-col="7"] { left: 16.8rem; z-index: 500; }
.cell[data-col="8"] { left: 19.2rem; z-index: 500; }
.cell[data-col="9"] { left: 21.6rem; z-index: 500; }



.cell.selected {
  background-image: url('assets/cubes/yellow.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.cell.found {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.topic-title {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 17px;
      font-weight: bold;
      text-align: center;
      color: #ffffff;
      margin: 0 auto 15px auto;
      padding: 11px 20px;
      background:#bb0303;
      text-transform: uppercase;
      border-radius: 8px;
      position: relative;
      width: auto;
      height: 2.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      top: -3rem;
      left: 5rem;
    }
    
    .topic-title::before {
      content: '';
      position: absolute;
      top: -2px;
      left: -2px;
      right: -2px;
      bottom: -2px;
      background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 50%, #4ecdc4 100%);
      border-radius: 10px;
      z-index: -1;
      animation: shimmer 3s ease-in-out infinite;
    }
    
    @keyframes shimmer {
      0%, 100% { opacity: 0.8; }
      50% { opacity: 1; }
    }

.word-list {
  position: relative;
  background: #ffffff;
  font-family: Arial, sans-serif;
  padding: 10px;
  border-radius: 8px;
  height: 25.5rem;
  overflow-y: auto;
  font-size: 15px;
  font-weight: 500;
  width: 22rem;
  margin: 0 auto;
  color: #221e1e;
  list-style-type: none;
  border: 2px solid #ddd;
  left: 5rem;
  top: -2.9rem;
  column-count: 2;
  column-gap: 20px;
  column-fill: auto;
}

.word-list li.active-word {
  background-color: #ffeeba;
  font-weight: bold;
  border-left: 4px solid #ffc107;
}

.word-list::-webkit-scrollbar {
  width: 8px;
}

.word-list::-webkit-scrollbar-thumb {
  background-color: #ff6b6b;
  border-radius: 4px;
}

.word-list::-webkit-scrollbar-track {
  background-color: #fceaea;
}

.word-list h3 {
  margin: 0 0 10px 0;
  text-align: center;
  color: #c0392b;
}

.word-list li {
  list-style: none;
  padding: 6px;
  transition: all 0.2s ease-in-out;
  padding-left:25px;
}

.word-list li:hover {
  background-color: #fceaea;
  border-radius: 4px;
}

.word-list li.found {
  text-decoration: line-through;
  color: gray;
  font-style: italic;
}

.controls {
  position: relative;
  top: -11.1rem;
  right:15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 7rem;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
}
.game-header {
   position: relative;
   display: flex;
   justify-content: space-between;
   align-items: center;
   border-radius: 15px;
   padding: 15px;
   width: 100%;
   max-width: 40rem;
   margin: 0 auto;
   right: 8rem;
   top: 0.5rem;
}

#muteButton {
   position: relative;
   background: #ffffff !important;
   border: 2px solid #9c9b9b !important;
   border-radius: 6px !important;
   height: 2.6rem;
   width: 2.4rem;
   cursor: pointer;
   order: 1;
}

#scoreContainer {
   font-family: Arial, Helvetica, sans-serif !important;
   position: relative;
   font-size: 13px;
   font-weight: bold;
   color: #000000;
   display: inline-flex;
   align-items: center;
   background: #ffffff !important;
   border: 2px solid #9c9b9b !important;
   border-radius: 6px !important;
   padding: 13px 11px;
   width: 5rem;
   height: 2.6rem;
   order: 4;
   right: 13.2rem;
}
#scoreGif{
  margin-left: -10px;
}
#scoreContainer:hover #scoreGif {
  content: url('assets/score-timer/coin.gif');
}

.info-container {
  position: relative;
   font-family: Arial, Helvetica, sans-serif !important;
   position: relative;
   display: flex;
   align-items: center;
   background: #ffffff !important;
   border: 2px solid #9c9b9b !important;
   border-radius: 6px !important;
   padding: 10px 5px;
   width: 2.4rem !important;
   height: 2.6rem;
   order: 3;
   left: 9rem;
}

.timer-container {
  position: relative;
   font-family: Arial, Helvetica, sans-serif !important;
   position: relative;
   display: flex;
   align-items: center;
   padding: 13px 11px;
   background: #ffffff !important;
   border: 2px solid #9c9b9b !important;
   border-radius: 6px !important;
   width: 5.5rem;
   height: 2.6rem;
   order: 2;
   right: 12rem;
}

.timer-gif {
   width: 1.8em;
   height: 1.8rem;
   margin-right: 8px;
   border-radius: 50%;
   margin-left: -10px;
}
.timer-container:hover .timer-gif {
  content: url('assets/score-timer/clock.gif');
}

#timer,#score {
   font-size: 16px;
   font-weight: bold;
   color: #9f0712 !important;
   text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
#scoreGif, #muteIcon, #infoGif, .timer-gif {
   width: 2rem;
   height: 2rem;
   border-radius: 50%;
}

#scoreContainer img {
   margin-right:0px;
}

.info-container img {
   margin-left: -3px;
}

.info-container:hover #infoGif {
    content: url('assets/score-timer/instruction.gif');
}

#muteIcon {
   margin: -4px;
}
.control-btn {
    white-space: nowrap;
    padding: -3px -6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    justify-content: center;
    flex-wrap: nowrap;
    max-height: 3.5rem;
}

.reveal-btn, .reveal-all-btn {
    background: white;
    color: #000;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #9c9b9b;
    border-radius: 8px;
    outline: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
    min-width: 7.5rem;
    height: 2.3rem;
    padding: 0 13px;
}

.reveal-btn {
    right: 0rem;
}
.reveal-all-btn {
    left: 0.6rem;
}

.reveal-btn:hover, .reveal-all-btn:hover {
    border-color: #4c9abe;
    transform: translateY(-2px);
}

.reveal-btn img {
    width: 2rem;
    height: auto;
    margin-right: 5px;
    content: url('assets/button/reveal-word.png');
    transition: all 0.3s ease;
}
.reveal-all-btn img{
    width: 2rem;
    height: auto;
    margin-right: 5px;
    content: url('assets/button/solution.png');
    transition: all 0.3s ease;
}

.reveal-btn:hover img {
    content: url('assets/button/reveal-word.gif');
}
.reveal-all-btn:hover img{
  content: url('assets/button/solution.gif');
}

  .home-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background:#ffffff;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 1;
            visibility: visible;
        }

        .home-logo {
            text-align: center;
            position: relative;
        }

        .logo-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 30px;
            position: relative;
        }

        .logo-image {
            max-width: 400px;
            width: 80vw;
            height: auto;
            opacity: 0;
            transform: scale(0.8);
            animation: logoAppear 2s ease-out forwards;
        }

        .overlay-gif {
            position: absolute;
            top: 42%;
            left: 36%;
            transform: translate(-50%, -50%);
            max-width: 150px;
            width: 35vw;
            height: auto;
            z-index: 999;
            opacity: 1;
            animation: glassAppear 2s ease-out forwards;
            animation-delay: 1.8s;
            pointer-events: none;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
            border-radius: 10px;
        }

@keyframes glassAppear {
   0% {
       opacity: 0;
       transform: translate(-50%, -50%) scale(0.3) rotateY(180deg);
       filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) blur(3px);
   }
   30% {
       opacity: 0.7;
       transform: translate(-50%, -50%) scale(0.8) rotateY(90deg);
       filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4)) blur(1px);
   }
   70% {
       opacity: 0.9;
       transform: translate(-50%, -50%) scale(1.1) rotateY(-10deg);
       filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5)) blur(0px);
   }
   100% {
       opacity: 1;
       transform: translate(-50%, -50%) scale(1) rotateY(0deg);
       filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) blur(0px);
   }
}



        .loading-dots {
            display: inline-block;
            animation: dots 1.5s infinite;
        }

        /* Animations */
        @keyframes logoAppear {
            0% {
                opacity: 0;
                transform: scale(0.8) translateY(20px);
            }
            50% {
                opacity: 1;
                transform: scale(1.05) translateY(-5px);
            }
            100% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

        @keyframes textPulse {
            0%, 100% {
                opacity: 0.7;
                transform: scale(1);
            }
            50% {
                opacity: 1;
                transform: scale(1.05);
            }
        }

        @keyframes dots {
            0%, 20% {
                content: '';
            }
            40% {
                content: '.';
            }
            60% {
                content: '..';
            }
            80%, 100% {
                content: '...';
            }
        }

        @keyframes fadeOut {
            from {
                opacity: 1;
                visibility: visible;
            }
            to {
                opacity: 0;
                visibility: hidden;
            }
        }


.word-list li.revealed {
  opacity: 0.6;
  text-decoration: line-through;
  font-style: italic;
}

.word-list li.revealed::after {
  content: " (revealed)";
  font-size: 0.8em;
  color: #666;
}

.instruction-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    z-index: 999;
    display: none;
    justify-content: center;
    align-items: center;
}

.instruction-backdrop.active {
    display: flex;
}

.instruction-popup {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background: white;
    border: 3px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 25rem;
    height: 30rem;
    z-index: 1001;
    overflow-y: hidden;
    overflow-x: hidden;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.instruction-header {
    background-color: #BA0406;
    color: white;
    text-align: center;
    padding: 12px 20px;
    margin: 12px 115px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    position: relative;
    font-family: Arial, sans-serif;
    display: inline-block;
    align-items: center;
}

.close-btn {
    position: absolute;
    top: -13px;
    left: 15.8rem;
    background-color: #BA0406;
    color: white;
    border: 3px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.close-btn:hover {
    background-color: #a01729;
}

.instruction-content {
    font-family: Arial, sans-serif;
    padding: 20px 25px 25px 25px;
    line-height: 1.4;
    color: #333;
    font-size: 14px;
}

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.instruction-list li:last-child {
    margin-bottom: 0;
}

.step-number {
    color: rgb(0, 0, 0);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}

.step-text {
    flex: 1;
}

.highlight {
    color: #BA0406;
    font-weight: bold;
}

 .play-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background-color: #BA0406;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
    }


@media (max-width: 992px){
  html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 16px;
  }

  body {
    min-height: 100%;
  }

  .home-logo {
  text-align: center;
  position: relative;
  left: 1rem;
  }

  .powered-by {
  position: absolute;
  top: 7.5rem !important;
  right: 6.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  mix-blend-mode: multiply;
}
.homelink {
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem !important;
  font-weight: bold;
  mix-blend-mode: multiply;
  font-weight: 600;
}
.ppp-logo{
  mix-blend-mode: multiply;
}
  #gameContainer {
    width: 100vw;
    max-width: 100%;
    margin: 0 auto 0 auto;
    padding: 12px;
    box-sizing: border-box;
    overflow-x: hidden;
    border: 2px solid #ddd;
    border-radius: 10px;
    background-color: #ffffff;
  }

   .copyright-link{
    position: absolute;
    top: 24.5rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .game-header {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin: 0 auto 15px auto;
    max-width: 100%;
    right: 0.2rem;
    top: -0.5rem !important;
  }

  #scoreContainer {
    position: relative;
    left: 4.8rem;
    order: 4;
    width: 5rem;
    height: 2.2rem;
    font-size: 14px;
    color: #9f0712 !important;
    background: white !important;
    border: 1px solid #171717 !important;
    border-radius: 8px !important;
  }

  #muteButton {
    order: 1;
    width: 2.5rem;
    height: 2.2rem;
    right: 2rem;
    background: white !important;
    border: 1px solid #171717 !important;
    border-radius: 8px !important;
  }

  .timer-container {
    position: relative;
    right:2.3rem;
    order: 2;
    width: 4.8rem;
    height: 2.2rem;
    padding: 10px 15px;
    background: white !important;
    border: 1px solid #171717 !important;
    border-radius: 8px !important;
  }

  .info-container {
    position: relative;
    left: 5.2rem;
    order: 3;
    width: 2.5rem;
    height: 2.2rem;
    padding: 8px;
    background: white !important;
    border: 1px solid #171717 !important;
    border-radius: 8px !important;
    display: none;
  }

  #scoreGif, #infoGif, .timer-gif {
    width: 1.5rem;
    height: 1.5rem;
  }
  #muteIcon{
    width: 1.7rem;
    height: 1.7rem;
  }
#scoreContainer img {
   margin-right: -1px;
}
  #timer {
    font-size: 14px;
  }
  .timer-gif{
    margin-right: 4px;
  }

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .grid {
    position: relative;
    margin: 10px;
    width: 380px;
    height: 380px;
    left: 0;
    top: -2.5rem;
    transform-style: preserve-3d;
    perspective: 800px;
    align-items: center;
  }

  .cell {
    width: 2.5rem;
    height: 2.5rem;
    font-size: clamp(14px, 4vw, 18px);
    font-weight: 700;
    line-height: 1.2;
    color: #000;
  }

  .cell[data-row="0"]{top:19.2rem;}
  .cell[data-row="1"]{top:17.1rem;}
  .cell[data-row="2"]{top:15rem;}
  .cell[data-row="3"]{top:12.9rem;}
  .cell[data-row="4"]{top:10.8rem;}
  .cell[data-row="5"]{top:8.7rem;}
  .cell[data-row="6"]{top:6.6rem;}
  .cell[data-row="7"]{top:4.5rem;}
  .cell[data-row="8"]{top:2.4rem;}
  .cell[data-row="9"]{top:0.3rem;}

  .cell[data-col="0"] { left: 29px; }
  .cell[data-col="1"] { left: 3.9rem; }
  .cell[data-col="2"] { left: 5.9rem; }
  .cell[data-col="3"] { left: 7.9rem; }
  .cell[data-col="4"] { left: 9.9rem; }
  .cell[data-col="5"] { left: 11.9rem; }
  .cell[data-col="6"] { left: 13.9rem; }
  .cell[data-col="7"] { left: 15.9rem; }
  .cell[data-col="8"] { left: 17.9rem; }
  .cell[data-col="9"] { left: 19.9rem; }

  .topic-title {
      font-family: Arial, Helvetica, sans-serif;
      font-size: 15px;
      font-weight: bold;
      text-align: center;
      color: #ffffff;
      margin: 5px auto 25px auto;
      padding: 6px 20px;
      background: #bb0303;
      text-transform: uppercase;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      position: relative;
      width:auto;
      height: 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
      top: -5rem;
      left: 0rem;
    }
.word-list {
  position: relative;
  background: #bb0406;
  font-family: Arial, sans-serif;
  border-radius: 10px;
  height: auto;
  overflow-y: auto;
  font-size: 14px;
  width: 20rem;
  margin: 13px 5px 2px 5px;
  color: #000000;
  list-style-type: none;
  border: none;
  left: 0rem;
  top: -5.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: flex-start;
}

.word-list li.active-word {
  background-color: #ffeeba;
  font-weight: bold;
  border-left: 4px solid #ffc107;
}

.word-list::-webkit-scrollbar {
  width: 8px;
}

.word-list::-webkit-scrollbar-thumb {
  background-color: #ff6b6b;
  border-radius: 4px;
}

.word-list::-webkit-scrollbar-track {
  background-color: #fceaea;
}

.word-list h3 {
  margin: 0 0 10px 0;
  text-align: center;
  color: #c0392b;
}

.word-list li {
  list-style: none;
  padding: 7px 9px;
  margin: 2px 0;
  transition: all 0.2s ease-in-out;
  background-color: white;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  color: black;
  font-size: 15px;
}

.word-list li:hover {
  background-color: #f0f0f0;
  border-radius: 4px;
}

.word-list li.found {
  text-decoration: line-through;
  color: gray;
  font-style: italic;
}

  .controls {
    position: relative;
    top: -6.5rem;
    right: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin: 20px auto 0 auto;
    width: 95vw;
    max-width: 380px;
  }

  .reveal-btn, .reveal-all-btn {
    position: relative;
    right: 0;
    background: white;
    border: 1px solid #171717;
    width: 8rem;
    height: 2.2rem;
    font-size: 14px;
    padding: 0 12px;
    border-radius: 5px;
  }
.reveal-all-btn {
    left: 2.6rem;
}
  .reveal-btn img, .reveal-all-btn img {
    width: 1.5rem;
    margin-right: 4px;
  }

  .instruction-popup {
    position: absolute;
    top: 2%;
    width: 95vw;
    max-width: 350px;
    height: auto;
    max-height: 90vh;
    overflow-y: none;
    align-items: start;
}
 .instruction-header {
            background-color: #BA0406;
            color: white;
            text-align: center;
            padding: 12px 20px;
            margin: 12px 82px;
            font-size: 16px;
            font-weight: bold;
            border-radius: 5px;
            position: relative;
            font-family: Arial, sans-serif;
            display: inline-block;
            max-width: 400px;
        }

        .close-btn {
            position: absolute;
            top: -13.9px;
            left:14.3rem;
            background-color: #c41e3a;
            color: white;
            border: 3px solid white;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            
        }
  .instruction-content {
    padding: 15px 20px;
    font-size: 14px;
  }

  .step-number {
    font-size: 14px;
    width: 16px;
    height: 16px;
    margin-right: 10px;
  }

  .logo-cube {
        width: 45px;
        height: 45px;
        font-size: 18px;
      }
      
      .logo-row {
        gap: 5px;
      }
      
      .background-gif img {
        width: 200px;
        height: 200px;
      }
      .overlay-gif {
            position: absolute;
            top: 44%;
            left: 37%;
            transform: translate(-50%, -50%);
            max-width: 150px;
            width: 35vw;
            height: auto;
            z-index: 999;
            opacity: 1;
            animation: glassAppear 2s ease-out forwards;
            animation-delay: 1.8s;
            pointer-events: none;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
            border-radius: 10px;
        }
}
.menu-button {
    width: 1.8rem;
    height: 1.5rem;
    background: white;
    border: 1px solid #4e4d4d;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    padding: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-button:hover {
    border-color: #4c9abe;
    transform: translateY(-2px);
}

.menu-button span {
    width: 16px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
    display: block;
}

/* Menu Dropdown */
.menu-dropdown {
    position: absolute;
    top: 130%;
    right: 0;
    background: white;
    border: 1px solid #4e4d4d;
    border-radius: 5px;
    min-width: 150px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    padding: 6px;
    gap: 4px;
    height: auto;
}

.menu-dropdown.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    right: -2.2rem;
    
}

/* Menu Items */
.menu-dropdown .menu-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #cdcdcd;
    background: white;
    text-align: left;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    box-sizing: border-box;
    font-family: 'customFont';
    border-radius: 4px;
}


.menu-dropdown .menu-item img {
    width: 1.4rem;
    height: 1.4rem;
    vertical-align: middle;
    mix-blend-mode: multiply;
}

/* Instruction Menu Button Specific */
.info-menu-btn {
    box-sizing: border-box;
    min-width: 4rem;
    height: auto;
    font-size: 0.85rem;
    gap: 8px !important;
    border-radius: 4px !important;
    border: 1px solid #cdcdcd !important;
    padding: 8px 12px !important;
    font-family: 'customFont';
}

/* Control Buttons in Menu */
.menu-dropdown .control-btn {
    width: 100%;
    min-width: auto;
    height: auto;
    padding: 8px 12px;
    border: 1px solid #cdcdcd;
    border-radius: 4px;
    background: white;
    justify-content: flex-start;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'customFont';
    color: #333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-dropdown .control-btn:hover {
    background: #f5f5f5;
    border-color: #4c9abe;
    color: #4c9abe;
    transform: none;
}

.menu-dropdown .control-btn img {
    width: 1.4rem;
    height: 1.4rem;
    mix-blend-mode: multiply;
}

/* Menu Section Alignment */
.menu-section {
    position: relative;
    flex-shrink: 0;
    display: none;
    order: 10;
}

.menu-section.left-align {
    left: 0;
}

/* Desktop: Hide Menu, Show Original Controls */
@media (min-width: 993px) {
    .menu-section {
        display: none !important;
    }
    
}

/* Mobile: Show Menu Dropdown Only */
@media (max-width: 992px) {
    .menu-section {
        display: flex !important;
    }
    
    .menu-button {
        width: 2.1rem;
        height: 2.1rem;
        border: 1px solid #4e4d4d;
        right: 3.2rem;
    }
    
    .menu-dropdown {
        min-width: 130px;
        right: 0;
        height: auto;
    }
    
    .menu-dropdown .menu-item,
    .menu-dropdown .control-btn,
    .menu-dropdown .info-menu-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .menu-dropdown .menu-item img,
    .menu-dropdown .control-btn img,
    .menu-dropdown .info-menu-btn img {
        width: 1.3rem;
        height: 1.3rem;
    }
    
    .controls {
        display: none !important;
    }
}

/* Desktop - Show info container, hide menu */
.info-container.desktop-only {
    display: flex;
}

.menu-section.mobile-only {
    display: none;
}

/* === SOLUTION BUTTON SPECIFIC STYLE === */
.menu-dropdown .reveal-all-btn {
    width: 100%;
    min-width: auto;
    height: auto;
    padding: 8px 12px;
    border-radius: 4px;
    background: #ffffff; 
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'customFont';
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    left: 0.1rem;
}

/* Icon style */
.menu-dropdown .reveal-all-btn img {
    width: 1.4rem;
    height: 1.4rem;
    mix-blend-mode: multiply;
}
@font-face {
    font-family: 'CustomFont';
    src: url('assets/font/Lato-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
