body {
  font-family: sans-serif;
  margin: 20px;
  background-color: #000000;
  margin: 0;
  padding: 0;
}

a {
  color: #ff6600;          
  font-weight: bold;      
}

.nav-box {
  background-color: #007acc;  
  color: white;               
  padding: 10px 15px;         
  border-radius: 8px;         
  display: inline-block;      
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); 
}
@keyframes wobble {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
  75% { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}


/*QuestChecklist*/
.quest-list {
  margin: 20px;
  padding: 15px;
  background: #1a1e25;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}


.quest-list li {
  margin: 8px 0;
  font-size: 24px;
  display: flex;
  align-items: center;
  color: white;
  margin-bottom: 30px;
}

.quest-list input[type="checkbox"] {
  margin-right: 10px;
  width: 24px;
  Height: 24px;
  cursor: pointer;
  transform: scale(1.3);
  accent-color: #03AC13; /* nice green tick */
}

/* Make each label align nicely */
.quest-list label {
  display: flex;           /* put checkbox + text in a row */
  align-items: flex-start; /* top-align checkbox with first line of text */
  gap: 10px;               /* space between box and text */
  line-height: 1.4;        /* improve readability on wraps */
  word-wrap: break-word;   /* wrap long words if needed */
  white-space: normal;     /* allow wrapping */
}


.quest-section {
  display: grid;
  gap: 5px;
  max-width: 800px; 
  margin: auto; 
  padding: 20px 20px; 
  background-color: #202434;

  margin-bottom: 0px;
}































.wobble {
  animation: wobble 0.4s ease;
}

@keyframes flashRed {
  0% { box-shadow: 0 0 0px red; }
  50% { box-shadow: 0 0 15px red; }
  100% { box-shadow: 0 0 0px red; }
}

.wrong-click {
  animation: flashRed 0.5s ease;
}

#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevent the canvas from blocking clicks */
    z-index: 9999; /* Ensure it's above all content but not blocking the page */
    display: none; /* Initially hidden */
}


.toplot {
  background-color: #202434;
  max-width: 800px;
  padding: 20px;
  /*justify-content: center;*/
  margin: 0 auto;
  border-left: 4px solid #03AC13;
  border-right: 4px solid #03AC13;
}

.toplot2 {
  background-color: #202434;
  max-width: 800px;
  width: 100%;
  padding: 20px 20px 0 20px;
  margin: 0 auto;
  border-left: 4px solid #03AC13;
  border-right: 4px solid #03AC13;
}

.toplot3 {
  background-color: #202434;
  max-width: 800px;
  padding: 0px;
  margin: 0 auto;
  border-left: 4px solid #03AC13;
  border-right: 4px solid #03AC13;
  /*border-bottom: 4px solid #03AC13;*/
}

.decorative-lines {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* space between each wave */
  margin-top: 20px;
  background: #202434;
}

.decorative-lines2 {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; 
  margin: 0 auto;
  padding: 10px 0 50px 0;
  /*padding-top: 10px;
  padding-bottom: 50px;*/
  background: #202434;
}

.wave-line {
  width: 100%;
  max-width: 500px;
  height: auto;
}


h1 {
  text-align: center;
  color: #333;
}

.center-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.header-intro-google {
  display: inline-block;
  text-align: center;
  
  color: #ffffff; 
  
  
  font-size: 16px; 
}

.center-header-google {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.center-header2 {
  display: flex;
  justify-content: center;
  padding-left: 5%;
  padding-right: 5%;
}



.back-to-top {
  position: fixed; /* Fix it to the bottom */
  bottom: 20px; /* 20px from the bottom */
  left: 20px; /* 20px from the right */
  background-color: #3498db; /* Choose your color */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 18px;
  cursor: pointer;
  display: block; /* Always show it */
  transition: opacity 0.3s ease;
}

.back-to-bottom {
  position: fixed; /* Fix it to the bottom */
  bottom: 20px; /* 20px from the bottom */
  right: 20px; /* 20px from the right */
  background-color: #3498db; /* Choose your color */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 18px;
  cursor: pointer;
  display: block; /* Always show it */
  transition: opacity 0.3s ease;
}

.progress-counter {
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222; /* Darker track */
  color: white;
  border: 5px solid black;
  padding: 10px 0;
  border-radius: 50px;
  font-size: 18px;
  width: 80%; /* Adjust width as needed */
  max-width: 500px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: limegreen;
  width: 0%;
  z-index: 0;
  transition: width 0.4s ease;
  border-radius: 50px;
}

.progress-counterShiny {
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222; /* Darker track */
  color: white;
  border: 5px solid black;
  padding: 10px 0;
  border-radius: 50px;
  font-size: 18px;
  width: 80%; /* Adjust width as needed */
  max-width: 500px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.progress-bar-fillShiny {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(
    90deg, violet, blue, green, yellow, orange, red);
  width: 0%;
  z-index: 0;
  transition: width 0.4s ease;
  border-radius: 50px;
}

#progress-text {
  position: relative;
  z-index: 1;
  font-weight: bold;
}


.back-to-top:hover {
  background: #2ecc71;
  transform: scale(120%);
}

.back-to-bottom:hover {
  background: #2ecc71;
  transform: scale(120%);
}

.buttons-header {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-units {
  display: inline-block;
  text-align: center;
  background-color: #2c3e50; 
  color: #ffffff; 
  padding: 10px 20px; 
  border: 3px solid #3498db; 
  border-radius: 8px; 
  font-size: 24px; 
}

.header-units3 {
  display: inline-block;
  text-align: center;
  background-color: #2c3e50; 
  color: #ffffff; 
  padding: 10px 20px; 
  border: 3px solid #3498db; 
  border-radius: 8px; 
  font-size: 32px; 
  margin: 0 auto;
}

.header-units2 {
  display: inline-block;
  text-align: center;
  background-color: #2c3e50; 
  color: #ffffff; 
  padding: 10px 20px; 
  border: 3px solid #3498db; 
  border-radius: 8px; 
  font-size: 24px; 
}

.header-intro {
  display: inline-block;
  text-align: center;
  background-color: #2c3e50; 
  color: #ffffff; 
  padding: 10px 20px; 
  border: 3px solid #3498db; 
  border-radius: 8px; 
  font-size: 24px; 
}



.intro {
  text-align: center;
  background-color: #2c3e50; 
  color: #ffffff; 
  padding: 20px; 
  border: 3px solid #3498db; 
  border-radius: 8px; 
  font-size: 24px; 
}




.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 5px;
  max-width: 800px; 
  margin: auto; 
  padding: 20px 20px 0 20px; 
  background-color: #202434;
  border-left: 4px solid #03AC13;
  border-right: 4px solid #03AC13;
  margin-bottom: 0px;
}


.image-wrapper {
  display: flex;         /* centers the image inside the new div*/
  align-items: center;
  position: relative;
  justify-content: center;
  border-radius: 0px;
  overflow: hidden;
  padding: 0;
  transition: transform 0.3s ease;  /* Apply transition to the wrapper */
}

/* Image Styles */
.checkable {
  width: 100%;  /* Images will take up the full width of their container */
  height: auto; /* Maintain aspect ratio */
  display:block; 
  cursor: pointer;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.tick {
    position: absolute;
        top: 15%;
        left: 4%;
        width: 90%;
        height: auto;
        aspect-ratio: 1/1;
        opacity: 0;
        transform: scale(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
}

.image-wrapper.checked {
  transform: scale(0.8);  /* Shrinks the wrapper and border */
}

.image-wrapper.checked .tick{ /*all new*/
    opacity: 1;
    animation: pop 0.4s ease forwards;
    /*transform: scale(1);*/
}

@keyframes pop {
    0% {
        transform: scale(0);
    }
    60% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.checkable.checked {
  filter: grayscale(0%);
  /*transform: scale(0.7);  /* Shrinks the image */
}

.uncommon {
  border: 5px solid #00ff00;
}

.rare {
  border: 5px solid #58acfc; 
}

.epic {
  border: 5px solid #d02cfc; 
}

.mythic {
  border: 5px solid #d8d404; 
}

.secret {
  border: 5px solid #ff0404; 
}

.nightmare {
  border: 5px solid #581c8c; 
}

.apex {
  border: 5px solid #581c8c; 
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.7);
}

.forgotten {
  border: 5px solid #9ce4ff; 
}

.evolution {
  box-shadow: 0 0 10px #FFF;
}

.evolutionA {
  box-shadow: 0 0 10px #FF6090;
}
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);

  
  justify-content: center; /* horizontal centering */
  align-items: center;     /* vertical centering */
  overflow: hidden;
}

.modal-content {
  background-color: #222; /* dark background */
  padding: 20px;
  border-radius: 12px; /* uniform rounded corners */
  text-align: center;
  color: white; /* text color */
  width: 90%;
  max-width: 400px;

  /* slide/fade animation */
  animation: slideFadeIn 0.3s ease forwards;
}

.modal-buttons {
  margin-top: 15px;
}

.modal-buttons button {
  margin: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s, background-color 0.2s;
}

.modal-buttons button:hover {
  transform: scale(1.1);
}

#confirmYes {
  background-color: limegreen;
  color: black;
}

#confirmNo {
  background-color: red;
  color: white;
}

@keyframes slideFadeIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


.shiny {
  border: 5px solid;
  border-image: linear-gradient(180deg, #b020ff, #86DC3D, yellow, orange, red) 1;
  border-image-slice: 1;
  border-image-width: 1;
  border-image-outset: 0;
  border-image-repeat: stretch;
  transition: transform 0.3s ease, filter 0.5s ease;
  filter: grayscale(100%);
}

.shiny.checked {
  border: 5px solid;
  border-image: linear-gradient(180deg, #b020ff, #86DC3D, yellow, orange, red) 1;
  border-image-slice: 1;
  border-image-width: 1;
  border-image-outset: 0;
  border-image-repeat: stretch;
  filter: grayscale(0%);
  transition: transform 0.8s ease, filter 0.5s ease;
}


.sparkle1 {
  position: absolute;
  top: 15%;
  right: 3%;
  width: 25%;  /* Adjust the size */
  height: auto;
  opacity: 1;
  pointer-events: none;
  transition: transform 0.3s ease;
  z-index: 1;
}

/* Optional: shrink when checked */
.image-wrapper.checked .sparkle1 {
  transform: scale(0.8);
}

.sparkle2 {
  position: absolute;
  top: 7%;
  right: 19%;
  width: 18%;  /* Adjust the size */
  height: auto;
  opacity: 1;
  pointer-events: none;
  transition: transform 0.3s ease;
  z-index: 1;
}

/* Optional: shrink when checked */
.image-wrapper.checked .sparkle2 {
  transform: scale(0.8);
}

.sparkle3 {
  position: absolute;
  bottom: 15%;
  left: 3%;
  width: 25%;  /* Adjust the size */
  height: auto;
  opacity: 1;
  pointer-events: none;
  transition: transform 0.3s ease;
  z-index: 1;
}

/* Optional: shrink when checked */
.image-wrapper.checked .sparkle3 {
  transform: scale(0.8);
}

.sparkle4 {
  position: absolute;
  bottom: 7%;
  left: 19%;
  width: 18%;  /* Adjust the size */
  height: auto;
  opacity: 1;
  pointer-events: none;
  transition: transform 0.3s ease;
  z-index: 1;
}

/* Optional: shrink when checked */
.image-wrapper.checked .sparkle4 {
  transform: scale(0.8);
}



#resetButton {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #B80F0A;
  color: white;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

#resetButton:hover {
  transform: scale(120%);
}

#checkAllButton {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #03AC13;
  color: white;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

#checkAllButtonMobile {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #03AC13;
  color: white;
  font-size: 16px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

#checkAllButton:hover {
  transform: scale(120%);
}

#checkAllButtonMobile:hover {
  transform: scale(100%);
}

.desktop-only {
  display: block !important;
}

.mobile-only {
  display: none !important;
}

.nav-button {
  background: #3498db;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
}

.nav-button:hover {
  background: #2ecc71;
  transform: scale(120%);
}

.nav-section {
  position: absolute;
  top: 100%; /* Appears just under the nav bar */
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  background-color: #2c3e50;
  color: #ccc;
  border: 2px solid #3498db;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  opacity: 0;
  padding: 0 15px;
  overflow: hidden;
  transition: all 0.5s ease;
  z-index: 999;
}

.nav-section.show {
  transform: translateX(-50%) scaleY(1);
  opacity: 1;
  padding: 15px;
}


@media (max-width:600px) {
    .desktop-only {
      display: none !important;
   }
   .nav-button:hover {
  background: #3498db;
  transform: scale(100%);
}

   .mobile-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 0;
   }

  .buttons-header {
    flex-direction: column;
    gap: 0px;
    align-items: center;
    margin: 0;
    padding: 0;
  }    

   .mobile-only {
    display: block !important;
   }
    .image-grid {
        padding: 15px;
        max-width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }
    h1.header-units {
      margin: 0;
    }
    
    .decorative-lines2 {
      width: 100%;
      max-width: 800px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px; 
      margin: 0 auto;
      padding: 10px 0 50px 0;
      /*padding-top: 10px;
      padding-bottom: 50px;*/
      background: #202434;
    }

.decorative-lines3 {
      width: 100%;
      max-width: 800px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px; 
      margin: 0 auto;
      padding: 10px 0 50px 0;
      /*padding-top: 10px;
      padding-bottom: 50px;*/
      background: #202434;
    }

    .back-to-top-Mobile {
      position: fixed; /* Fix it to the bottom */
      bottom: 140px; /* 20px from the bottom */
      right: 20px; /* 20px from the right */
      background-color: #3498db; /* Choose your color */
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 50px;
      font-size: 18px;
      cursor: pointer;
      display: block; /* Always show it */
      transition: opacity 0.3s ease;
    }

    .back-to-bottom-Mobile {
      position: fixed; /* Fix it to the bottom */
      bottom: 80px; /* 20px from the bottom */
      right: 20px; /* 20px from the right */
      background-color: #3498db; /* Choose your color */
      color: white;
      border: none;
      padding: 10px 20px;
      border-radius: 50px;
      font-size: 18px;
      cursor: pointer;
      display: block; /* Always show it */
      transition: opacity 0.3s ease;
    }

    .progress-counter-MobileOLD {
      position: fixed; 
      bottom: 20px; 
      left: 50%;
      transform: translateX(-50%); 
      background-color: #000000; /* Choose your color */
      color: white;
      border: none;
      padding: 10px 130px;
      border-radius: 50px;
      font-size: 18px;
      display: block; /* Always show it */
      transition: opacity 0.3s ease;
    }

    .progress-counter-Mobile {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222; /* Darker track */
  color: white;
  border: 5px solid black;
  padding: 10px 0;
  border-radius: 50px;
  font-size: 18px;
  width: 80%; /* Adjust width as needed */
  max-width: 500px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}


.progress-bar-fill-Mobile {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: limegreen;
  width: 0%;
  z-index: 0;
  transition: width 0.4s ease;
  border-radius: 50px;
}

#progress-text-Mobile {
  position: relative;
  z-index: 1;
  font-weight: bold;
}

  .progress-counterShiny-Mobile {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222; /* Darker track */
  color: white;
  border: 5px solid black;
  padding: 10px 0;
  border-radius: 50px;
  font-size: 18px;
  width: 80%; /* Adjust width as needed */
  max-width: 500px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}


.progress-bar-fillShiny-Mobile {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(
    90deg, violet, blue, green, yellow, orange, red);
  width: 0%;
  z-index: 0;
  transition: width 0.4s ease;
  border-radius: 50px;
}



#progress-text-Mobile {
  position: relative;
  z-index: 1;
  font-weight: bold;
}


    .empty-Mobile{
      display: block;
      height: 100px;
    }

    .back-to-top-Mobile:hover {
     background: #3498db;
     transform: scale(100%);
    }

     .back-to-bottom-Mobile:hover {
     background: #3498db;
     transform: scale(100%);
    }

    

#resetButton:hover {
  transform: scale(100%);
}


    .tick {
        position: absolute;
        top: 15%;
        left: 4%;
        width: 90%;
        height: auto;
        aspect-ratio: 1/1;
        opacity: 0;
        transform: scale(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
        pointer-events: none;
    }

    .image-wrapper.checked .tick {
        opacity: 1;
        animation: pop 0.4s ease forwards;     
    }
}

.nav-wrapper {
  position: relative; 
}
.nav-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  position: relative; /* Keeps absolute sections placed relative to this */
  z-index: 1000;
}

