body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background:  white;
    font-family: Arial, sans-serif;
     -ms-overflow-style: none; /* Internet Explorer 10+ */
overflow: auto;
scrollbar-width: none; /* Firefox */
  }
/* For Chrome, Safari, and Opera */
body::-webkit-scrollbar {
display: none;
}
body.dark-mode {
background: black;
color: #fff;
}

button {
    background-color: transparent;
  border: none;
  margin: 0;
  padding: 0;
  text-align: inherit;
  font: inherit;
  border-radius: 0;
  appearance: none; 
  }
  .dlb {
     margin:auto;
            display: flex;   /* Keeps your flex layout */
    flex-direction: column; /* Stacks child elements vertically */
    justify-content: space-around;
    align-items: center;
    border-radius: 50%;
     animation: bg 2s infinite linear; /* Ensure standard animation property */
    padding:0.1vh;
    }
    .home {
       margin:auto;
         display: flex;   /* Keeps your flex layout */
    flex-direction: column; /* Stacks child elements vertically */
    justify-content: space-around;
    align-items: center;
    border-radius: 50%;
     animation: bg 2s infinite linear; /* Ensure standard animation property */
       padding:0.1vh;
    }
#tw-btnz {
width:11.5vh;
  height:11.5vh;
  display: flex;   /* Keeps your flex layout */
    flex-direction: column; /* Stacks child elements vertically */
    justify-content: space-around;
    align-items: center;
    border-radius: 50%;
-webkit-animation: bg 2s infinite linear;
  animation: bg 2s infinite linear; /* Ensure standard animation property */
}

@keyframes bg {
  0% { background-color: black; }
   25% { background-color: gray; }
  50% { background-color: white; }
   75% { background-color: gray; }
  100% { background-color: black; }
}
.imghol {
   display: flex;   /* Keeps your flex layout */
    flex-direction: column; /* Stacks child elements vertically */
    justify-content: space-around;
    align-items: center;
  width:11vh;
  height:11vh;
}



   .footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  width: 100%;
  max-width: 48vh;
  height: 15vh;
  align-items: center; /* Centers items vertically */
  justify-content: center; /* Centers items horizontally */
  background: none; /* Remove background */
  gap: 2.5vh; /* Space between buttons */
  padding: 0 1vh; /* Add padding to prevent overflow */
  box-sizing: border-box;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .footer {
    max-width: 100vw;
    height: 14vh;
    gap: 2vh;
    padding: 0 0.5vh;
  }
  
  .footer .footer-extras-btn,
  .footer .footer-home-btn {
    width: 8vh !important;
    height: 8vh !important;
  }
  
  .footer .footer-extras-btn div,
  .footer .footer-home-btn div {
    font-size: 4.5vh !important;
    line-height: 4.5vh !important;
  }
  
  .footer .footer-iconz {
    width: 11vh !important;
    height: 11vh !important;
  }
  
  .footer #tw-btnz {
    width: 11vh !important;
    height: 11vh !important;
  }
  
  .footer #tw-btnz::before {
    width: 11vh !important;
    height: 11vh !important;
  }
}




.footer-iconz {
  width: 13vh;
  height: 13vh;
  border-radius: 50%; /* Optional to make the image circular */
  object-fit: cover; /* Ensures the image fits within the circular area */
  
}

#tw-btnz {
    width: 13vh;
    height: 13vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    border-radius: 50%;
    -webkit-animation: bg 2s infinite linear;
    animation: bg 2s infinite linear;
    position: relative;
}

#tw-btnz::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 13vh;
    height: 13vh;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(251, 188, 5, 0.6), 0 0 30px rgba(251, 188, 5, 0.4);
    pointer-events: none;
    z-index: -1;
}


.spacer {
  height: 20px; /* Optional: Adds space for skipping the line */
}


.puzzle-container {
    position: relative;
    width: 48VH;
    height: 48VH;
  }

.puzzcent {
position:absolute;
top:0;
height:85vh;
width:100vw;
display:flex;
 justify-content: center;
  align-items: center;
  text-align: center; 
}


.circle {
  position: absolute;
  width: 10vh;
  height: 10vh;
  background: radial-gradient(circle, #9ccfff 20%, #4285f4 60%, #0a47a8 100%);
  border-radius: 50%; /* Makes it a circle */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19); /* Add depth with shadows */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center; /* Centers text horizontally (fallback for non-flexbox) */
  color: white;
  font-size: 1.5em;
  font-weight: bold; /* Optional: Make the text stand out */
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s; /* Smooth hover effect */
  line-height: 15vh; /* Prevent excessive space within the text */
  padding: -2vh;
}

  .center-circle {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
    background: radial-gradient(circle, #fdd835 20%, #fbbc05 60%, black 100%);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 10px rgba(255, 204, 0, 0.8); /* Glow effect */
    background-image: url('https://img.puxzle.com/dp2.jpg');
     background-size: contain; /* Ensure the image covers the circle */
background-position: center; /* Center the image */
background-repeat: no-repeat; /* Prevent tiling */
width: 15vh; /* Slightly larger than surrounding circles */
height: 15vh; /* Maintain circular shape */
    animation: pulse 1.5s infinite; 
}

@keyframes pulse {
0%, 100% {
  transform: translate(-50%, -50%) scale(0.95);
}
50% {
  transform: translate(-50%, -50%) scale(1.1); /* Slight increase in size */
}
}
  .center-circle-complete {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-image: url('https://img.puxzle.com/pc2.jpg'); /* Add your image URL here */
background-size: contain; /* Ensure the image covers the circle */
background-position: center; /* Center the image */
background-repeat: no-repeat; /* Prevent tiling */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 10px rgba(255, 204, 0, 0.8); /* Glow effect */
width: 14vh; /* Slightly larger than surrounding circles */
height: 14vh; /* Maintain circular shape */
border-radius: 50%; /* Ensure the element stays circular */
padding: 1vh;
}


  /* Spiral animation for surrounding circles */
  .surrounding-circle {
    opacity: 0;
    animation: spiralIn 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  .surrounding-circle:nth-child(2) { /* Top */
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.1s;
    animation-name: spiralInTop;
  }

  .surrounding-circle:nth-child(3) { /* Top-right */
    top: 33%;
    left: 80%;
    transform: translate(-50%, -50%);
    animation-delay: 0.2s;
    animation-name: spiralInTopRight;
  }

  .surrounding-circle:nth-child(4) { /* Bottom-right */
    bottom: 33%;
    left: 80%;
    transform: translate(-50%, 50%);
    animation-delay: 0.3s;
    animation-name: spiralInBottomRight;
  }

  .surrounding-circle:nth-child(5) { /* Bottom */
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.4s;
    animation-name: spiralInBottom;
  }

  .surrounding-circle:nth-child(6) { /* Bottom-left */
    bottom: 33%;
    left: 20%;
    transform: translate(-50%, 50%);
    animation-delay: 0.5s;
    animation-name: spiralInBottomLeft;
  }

  .surrounding-circle:nth-child(7) { /* Top-left */
    top: 33%;
    left: 20%;
    transform: translate(-50%, -50%);
    animation-delay: 0.6s;
    animation-name: spiralInTopLeft;
  }

  /* Spiral animations - each starts at center, rotates outward to final position */
  @keyframes spiralInTop {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0) rotate(0deg);
      top: 50%;
      left: 50%;
    }
    100% {
      opacity: 1;
      transform: translateX(-50%) scale(1) rotate(360deg);
      top: 3%;
      left: 50%;
    }
  }

  @keyframes spiralInTopRight {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0) rotate(0deg);
      top: 50%;
      left: 50%;
    }
    100% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1) rotate(360deg);
      top: 33%;
      left: 80%;
    }
  }

  @keyframes spiralInBottomRight {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0) rotate(0deg);
      top: 50%;
      left: 50%;
    }
    100% {
      opacity: 1;
      transform: translate(-50%, 50%) scale(1) rotate(360deg);
      bottom: 33%;
      left: 80%;
    }
  }

  @keyframes spiralInBottom {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0) rotate(0deg);
      top: 50%;
      left: 50%;
    }
    100% {
      opacity: 1;
      transform: translateX(-50%) scale(1) rotate(360deg);
      bottom: 3%;
      left: 50%;
    }
  }

  @keyframes spiralInBottomLeft {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0) rotate(0deg);
      top: 50%;
      left: 50%;
    }
    100% {
      opacity: 1;
      transform: translate(-50%, 50%) scale(1) rotate(360deg);
      bottom: 33%;
      left: 20%;
    }
  }

  @keyframes spiralInTopLeft {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0) rotate(0deg);
      top: 50%;
      left: 50%;
    }
    100% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1) rotate(360deg);
      top: 33%;
      left: 20%;
    }
  }




.circle.completed {
   background: radial-gradient(circle, #b9fbc0 20%, #34c759 60%, #006400 100%);
  transition: background 0.3s ease; /* Optional: Add smooth transition for color changes */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19); /* Optional: Match existing style */
}


.completed {
background: radial-gradient(circle, #fcdcdc 20%, #e74c3c 60%, #b80000 100%);
}



.cashed {
border: 0.75vh solid orange; 
}

.cash {
border: 0.75vh solid green; 
}

.completed-by-user {
border: 0.75vh solid red; 
}



.completed {
  position: absolute;
  width: 11vh;
  height: 11vh;
  background: green;
  clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
}

.circle-image {
  width: 10vh; /* Size of the image */
  height: 10vh;
  object-fit: cover; /* Ensures the image covers the area without distortion */
  border-radius: 50%; /* Makes the image circular */
}

.header {
    position: fixed; /* Makes the header stick to the top of the viewport */
   top: 0;          /* Aligns the header to the top */
   left: 50%;       /* Center the header */
   transform: translateX(-50%); /* Center the header */
   width: 100%;     /* Full width but constrained by max-width */
   max-width: 48vh; /* Match footer and puzzle container width */
   display: flex;   /* Keeps your flex layout */
   flex-direction: row; /* Horizontal layout */
   justify-content: space-between; /* Space items apart */
   align-items: center;
   padding: 1vh 2vh;
   z-index: 100;
   box-sizing: border-box;
   }
   
.header-left {
    display: flex;
    align-items: center;
    gap: 1vh;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1vh;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.header-icon-btn {
    background: black;
    border: 3px solid white;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    width: 7vh;
    height: 7vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.header-icon-btn:hover {
    border-color: #fbbc05;
    transform: scale(1.1);
}

.header-icon-btn div {
    font-size: 4vh;
    line-height: 4vh;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
  }
  /* Modal Content Styles */
  .modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: black;
    text-align: left; /* Ensure the default alignment is left */
  }
  
  /* Close Button */
  .modal-content .close {
    color: #aaa;
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
  }
  
  .modal-content .close:hover,
  .modal-content .close:focus {
    color: #000;
    text-decoration: none;
  }
  
  
  
  
  
 
  .modal {
    display: none; /* Hide the modal by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto; /* Allow scrolling if content overflows */
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center; /* Horizontally center the content */
    align-items: center; /* Vertically center the content */
}

.modal-content {
    width: 80vw; /* Reduce width for better centering */
    max-width: 500px; /* Optional: Set a maximum width */
    padding: 20px; /* Add padding for better spacing */
    background-color: #fff;
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center; /* Center text inside the modal */
}


   .answer-box {
    display: flex; /* Use flexbox for better layout control */
    flex-direction: column; /* Ensure items stack vertically */
    align-items: center; /* Center-align each word horizontally */
    gap: 10px; /* Add spacing between rows (words) */
     width:100%;
     overflow:auto;
}

.word-container {
    display: flex; /* Keep letters of the word in a row */
    justify-content: center; /* Center-align the letters within the word */
    gap: 1px; /* Add spacing between letters */
 overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: hidden; /* Prevent vertical scrolling */
    white-space: nowrap; /* Prevent wrapping of words */
    width: 100%; /* Ensure it takes up the full available width */
    position: relative; /* Allow content to scroll horizontally */
}
.answer-box input {
    -webkit-appearance: none; /* Removes default styling in Safari */
    -moz-appearance: none; /* Removes default styling in Firefox */
    appearance: none; /* Standard */
    box-sizing: border-box; /* Ensures consistent sizing */
    /* Width, height, and font-size are set dynamically by JavaScript based on word length */
    color:black;
    text-align: center;
    padding:1px;
    border: 2px solid black;
    border-radius: 4px; /* Optional for rounded corners */
    outline: none; /* Optional: removes blue focus ring */
}

button {
    display: block;
    margin: 20px auto; /* Center horizontally */
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    background-color: black;
    color: white;
    cursor: pointer;
}

  