 body {
     margin: 0;
     background-color: #795548;
     display: flex;
     justify-content: center;
     align-items: center;
     height: 100vh;
     width: 100vw;
     transition: background-color 500ms;
 }

 /* Timer styling */
 .timer-container {
     position: fixed;
     top: 20px;
     left: 50%;
     transform: translateX(-50%);
     background: rgba(0, 0, 0, 0.7);
     color: white;
     padding: 10px 20px;
     border-radius: 30px;
     font-size: 1.5rem;
     font-weight: bold;
     z-index: 1000;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
     display: none;
     /* Initially hidden */
     transition: all 0.3s ease;
 }

 .timer-container.active {
     display: block;
     animation: pulse 2s infinite;
 }

 .timer-display {
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .timer-icon {
     color: #ffcc00;
     font-size: 1.3rem;
 }

 /* Timer pulse animation */
 @keyframes pulse {
     0% {
         box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.4);
     }

     70% {
         box-shadow: 0 0 0 10px rgba(255, 204, 0, 0);
     }

     100% {
         box-shadow: 0 0 0 0 rgba(255, 204, 0, 0);
     }
 }

 .wrapper {
     position: relative;
     height: 511px;
     width: 511px !important;
     overflow: visible !important;
     padding: 10px;
     background-color: rgba(255, 255, 255, 0.7);
     box-shadow: 4px 4px 20px 0 rgba(0, 0, 0, 0.2);
     border-radius: 6px;
 }

 .slide {
     position: relative;
     outline: 0;
 }

 .slick-arrow {
     position: absolute;
     top: 50%;
     transform: translate3d(0, -50%, 0);
     font-size: 26px;
     border: 3px solid;
     border-radius: 50%;
     width: 45px;
     height: 45px;
     display: flex;
     justify-content: center;
     align-items: center;
     color: #fff;
     background-color: rgba(255, 255, 255, 0.3);
     cursor: pointer;
 }

 .slick-arrow div::before {
     content: '';
     width: 16px;
     height: 2px;
     background-color: #ffffff;
     transform: rotate(-45deg);
     position: absolute;
     left: calc(50% - 8px);
     top: 50%;
     transform-origin: right;
 }

 .slick-arrow div::after {
     content: '';
     width: 16px;
     height: 2px;
     background-color: #ffffff;
     transform: rotate(45deg);
     position: absolute;
     left: calc(50% - 8px);
     top: 50%;
     transform-origin: right;
 }

 .slick-prev {
     left: -80px;
 }

 .slick-prev div {
     transform: rotate(180deg);
 }

 .slick-next {
     right: -80px;
 }

 .slick-disabled {
     opacity: 0;
 }


 @media(max-width:512px) {
     .slick-arrow {
         display: none !important;
     }
 }

 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: 'Poppins', sans-serif;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     min-height: 100vh;
     overflow: hidden;
     display: flex;
     justify-content: center;
     align-items: center;
 }

 .preloader {
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     text-align: center;
 }

 .logo {
     font-size: 4rem;
     font-weight: 700;
     color: white;
     margin-bottom: 2rem;
     animation: pulse 2s infinite ease-in-out;
     text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
 }

 .loading-text {
     font-size: 1.5rem;
     color: rgba(255, 255, 255, 0.9);
     margin-bottom: 3rem;
     animation: fadeInOut 3s infinite ease-in-out;
 }

 .progress-container {
     width: 400px;
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 15px;
 }

 .progress-bar {
     width: 100%;
     height: 8px;
     background: rgba(255, 255, 255, 0.2);
     border-radius: 50px;
     overflow: hidden;
     box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
 }

 .progress-fill {
     height: 100%;
     background: linear-gradient(90deg, #ff6b6b, #ffd93d, #4ecdc4, #45b7d1);
     background-size: 400% 100%;
     width: 0%;
     transition: width 0.3s ease;
     border-radius: 50px;
     animation: gradientMove 2s linear infinite;
 }

 .progress-text {
     color: rgba(255, 255, 255, 0.8);
     font-size: 1.1rem;
     font-weight: 600;
 }

 .puzzle-pieces {
     position: absolute;
     width: 100%;
     height: 100%;
     pointer-events: none;
     overflow: hidden;
 }

 .floating-piece {
     position: absolute;
     width: 60px;
     height: 60px;
     background: rgba(255, 255, 255, 0.1);
     border: 2px solid rgba(255, 255, 255, 0.2);
     border-radius: 8px;
     animation: float 6s infinite ease-in-out;
 }

 .floating-piece:nth-child(1) {
     top: 10%;
     left: 10%;
     animation-delay: 0s;
     animation-duration: 8s;
 }

 .floating-piece:nth-child(2) {
     top: 20%;
     right: 15%;
     animation-delay: 1s;
     animation-duration: 7s;
 }

 .floating-piece:nth-child(3) {
     bottom: 30%;
     left: 20%;
     animation-delay: 2s;
     animation-duration: 9s;
 }

 .floating-piece:nth-child(4) {
     bottom: 15%;
     right: 10%;
     animation-delay: 0.5s;
     animation-duration: 6s;
 }

 .floating-piece:nth-child(5) {
     top: 50%;
     left: 5%;
     animation-delay: 3s;
     animation-duration: 8s;
 }

 .floating-piece:nth-child(6) {
     top: 40%;
     right: 5%;
     animation-delay: 1.5s;
     animation-duration: 7s;
 }

 @keyframes pulse {

     0%,
     100% {
         transform: scale(1);
         opacity: 1;
     }

     50% {
         transform: scale(1.1);
         opacity: 0.8;
     }
 }

 @keyframes fadeInOut {

     0%,
     100% {
         opacity: 0.7;
     }

     50% {
         opacity: 1;
     }
 }

 @keyframes gradientMove {
     0% {
         background-position: 0% 50%;
     }

     50% {
         background-position: 100% 50%;
     }

     100% {
         background-position: 0% 50%;
     }
 }

 @keyframes float {

     0%,
     100% {
         transform: translateY(0px) rotate(0deg);
         opacity: 0.3;
     }

     25% {
         transform: translateY(-20px) rotate(5deg);
         opacity: 0.6;
     }

     50% {
         transform: translateY(-40px) rotate(-5deg);
         opacity: 0.8;
     }

     75% {
         transform: translateY(-20px) rotate(3deg);
         opacity: 0.4;
     }
 }

 .loading-dots {
     display: inline-flex;
     gap: 4px;
     margin-left: 10px;
 }

 .dot {
     width: 8px;
     height: 8px;
     background: rgba(255, 255, 255, 0.8);
     border-radius: 50%;
     animation: bounce 1.4s infinite ease-in-out both;
 }

 .dot:nth-child(1) {
     animation-delay: -0.32s;
 }

 .dot:nth-child(2) {
     animation-delay: -0.16s;
 }

 .dot:nth-child(3) {
     animation-delay: 0s;
 }

 @keyframes bounce {

     0%,
     80%,
     100% {
         transform: scale(0);
         opacity: 0.5;
     }

     40% {
         transform: scale(1);
         opacity: 1;
     }
 }

 @media (max-width: 768px) {
     .logo {
         font-size: 3rem;
         margin-bottom: 1.5rem;
     }

     .loading-text {
         font-size: 1.2rem;
         margin-bottom: 2rem;
     }

     .progress-container {
         width: 300px;
     }

     .floating-piece {
         width: 40px;
         height: 40px;
     }
 }

 @media (max-width: 480px) {
     .logo {
         font-size: 2.5rem;
     }

     .loading-text {
         font-size: 1rem;
     }

     .progress-container {
         width: 250px;
     }
 }

 .wrapper {
     display: none;
 }











 /* Add these new styles at the end of the file */

 /* Picture selector */
 .picture-selector {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.8);
     display: flex;
     justify-content: center;
     align-items: center;
     z-index: 1000;
     opacity: 0;
     visibility: hidden;
     transition: all 0.5s ease;
 }

 .picture-selector.active {
     opacity: 1;
     visibility: visible;
 }

 .selector-content {
     background: white;
     border-radius: 15px;
     padding: 30px;
     width: 90%;
     max-width: 600px;
     box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
     transform: translateY(30px);
     transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
 }

 .picture-selector.active .selector-content {
     transform: translateY(0);
 }

 .selector-content h2 {
     text-align: center;
     color: #333;
     margin-bottom: 25px;
     font-size: 28px;
 }

 .picture-options {
     display: flex;
     justify-content: center;
     gap: 20px;
     flex-wrap: wrap;
     margin-bottom: 30px;
 }

 .picture-option {
     width: 150px;
     height: 150px;
     border-radius: 10px;
     overflow: hidden;
     position: relative;
     cursor: pointer;
     border: 3px solid transparent;
     transition: all 0.3s ease;
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
 }

 .picture-option:hover {
     transform: translateY(-5px) scale(1.05);
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
 }

 .picture-option.active {
     border-color: #4ecdc4;
     transform: scale(1.05);
     box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
 }

 .picture-option img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.5s ease;
 }

 .picture-option:hover img {
     transform: scale(1.1);
 }

 .checkmark {
     position: absolute;
     top: 10px;
     right: 10px;
     width: 25px;
     height: 25px;
     background: #4ecdc4;
     border-radius: 50%;
     display: flex;
     justify-content: center;
     align-items: center;
     opacity: 0;
     transform: scale(0);
     transition: all 0.3s ease;
 }

 .picture-option.active .checkmark {
     opacity: 1;
     transform: scale(1);
 }

 .checkmark i {
     color: white;
     font-size: 12px;
 }

 .start-btn {
     display: block;
     width: 100%;
     padding: 15px;
     background: linear-gradient(90deg, #ff6b6b, #ffd93d);
     border: none;
     border-radius: 50px;
     color: white;
     font-size: 18px;
     font-weight: bold;
     cursor: pointer;
     transition: all 0.3s ease;
     box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
 }

 .start-btn:hover {
     transform: translateY(-3px);
     box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
 }

 .start-btn:active {
     transform: translateY(1px);
 }

 /* Settings button */
 .settings-btn {
     position: fixed;
     top: 20px;
     right: 20px;
     width: 50px;
     height: 50px;
     background: rgba(255, 255, 255, 0.2);
     border: 2px solid rgba(255, 255, 255, 0.3);
     border-radius: 50%;
     display: flex;
     justify-content: center;
     align-items: center;
     color: white;
     font-size: 22px;
     cursor: pointer;
     z-index: 100;
     transition: all 0.3s ease;
     backdrop-filter: blur(5px);
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
 }

 .settings-btn:hover {
     background: rgba(255, 255, 255, 0.3);
     transform: rotate(30deg) scale(1.1);
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
 }

 /* Puzzle piece animation */
 .floating-piece {
     animation: float 6s infinite ease-in-out, pulse 2s infinite alternate;
 }

 @keyframes pulse {
     0% {
         transform: translateY(0) scale(1);
     }

     100% {
         transform: translateY(0) scale(1.1);
     }
 }

 /* Slide in animation for puzzle container */
 .wrapper {
     animation: slideIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
     opacity: 0;
     transform: translateY(50px);
 }

 @keyframes slideIn {
     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* Responsive adjustments */
 @media (max-width: 768px) {
     .picture-option {
         width: 120px;
         height: 120px;
     }

     .selector-content {
         padding: 20px;
     }
 }

 @media (max-width: 480px) {
     .picture-option {
         width: 100px;
         height: 100px;
     }

     .selector-content h2 {
         font-size: 24px;
     }
 }