 .wallpicker {
     position: relative;
     margin: 0 auto;
     text-align: center;

 }

 .settings-btn {
     top: 20px;
     left: 200px;
     font-size: 32px;
     cursor: pointer;
     background-color: #000;
     color: #ccc;
     border-radius: 12px;
     width: 50px;
     height: 50px;
     display: flex;
     justify-content: center;
     align-items: center;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
     transition: background 0.3s, transform 0.2s;
 }

 .settings-btn:hover {
     background-color: #111;
     transform: scale(1.05);
 }


 .modal {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: rgba(0, 0, 0, 0.5);
     display: none;
     justify-content: center;
     align-items: center;
     z-index: 999998;
 }

 .modal-content {
     background: white;
     padding: 20px;
     border-radius: 10px;
     min-width: 650px;
     max-width: 100vw;
     border: 1px solid #888;
     position: absolute;
     z-index: 999999 !important;
 }

 .modal-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     background: #f5f5f5;
     padding: 0px 15px;
     border-bottom: 1px solid #ccc;
     border-radius: 8px 8px 0 0;
     margin: -20px -20px 20px -20px;
 }

 .close-btn {
     cursor: pointer;
     font-size: 18px;
     font-weight: bold;
     color: #333;
 }

 .btn.green {
     width: 100%;
     padding: 15px;
     background-color: #4CAF50;
     color: white;
     border: none;
     border-radius: 8px;
     font-size: 1.2rem;
     font-weight: bold;
     cursor: pointer;
     border: 2px solid #333;
 }

 textarea {
     width: 100%;
     height: 200px;
     font-size: 16px;
 }

 .grid {
     display: grid;
     grid-template-columns: repeat(5, 120px);
     justify-content: center;
     margin-top: 20px;
 }

 .tile {
     background-color: #007BFF;
     color: white;
     font-weight: bold;
     padding: 20px;
     transition: 0.3s;
     opacity: 1;
 }

 .btn {
     margin-top: 20px;
     background-color: red;
     color: white;
     padding: 12px 24px;
     border: none;
     border-radius: 8px;
     font-size: 18px;
     cursor: pointer;
 }

 .winner-popup {
     display: none;
     z-index: 9999999;
     background: #fffbe6;
     border-radius: 16px;
     border: 6px solid #ffcc00;
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
     animation: pop 0.5s ease-out;
     text-align: center;
     min-width: 300px;
     min-height: 150px;
     position: absolute;
     top: 60%;
     left: 55%;
     transform: translate(-50%, -120%);
     font-size: 1.5rem;
 }



 .winner-popup h1 {
     margin: 19% auto 0;
     font-weight: bold;
     color: #222;
     font-family: 'Segoe UI', sans-serif;
 }


 .dimmed .tile {
     opacity: 0.2;
 }

 .popup-buttons {
     position: fixed;
     bottom: 20px;
     right: 20px;
     display: flex;
     flex-direction: column;
     gap: 10px;
     z-index: 1000;
     display: none;
 }

 .popup-buttons button {
     padding: 12px 24px;
     font-size: 16px;
     font-weight: bold;
     border-radius: 20px;
     border: none;
     cursor: pointer;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
     transition: transform 0.2s;
 }

 .popup-buttons button:hover {
     transform: scale(1.05);
 }

 .remove-btn {
     background: linear-gradient(to right, #ff4e50, #f44336);
     color: white;
 }

 .continue-btn {
     background: linear-gradient(to right, #00c6ff, #0072ff);
     color: white;
 }

 @keyframes pop {
     0% {
         transform: translate(-50%, -50%) scale(0.7);
         opacity: 0;
     }

     100% {
         transform: translate(-50%, -50%) scale(1);
         opacity: 1;
     }
 }

 #popupControls {
     position: absolute;
     bottom: 20px;
     right: 30px;
     z-index: 10;
     flex-direction: column;
     align-items: center;
     background: #fff;
     border-radius: 18px;
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
     padding: 28px 32px 24px 32px;
     gap: 18px;
     min-width: 260px;
     z-index: 9999999;
 }


 #remove-btn {
     /* background: linear-gradient(to right, #ff4e50, #f44336);  */
     background: linear-gradient(0deg, #e74c3c 0%, #ffb3b3 100%);
     color: white;
     font-size: 1.18rem;
     font-weight: 600;
     border-radius: 100px;
     border: none;
     box-shadow: 0 .7em 1.5em -.5em rgba(255, 0, 0, 0.3);
     transition: background 0.2s, color 0.2s;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 #remove-btn.active {
     /* background: linear-gradient(0deg, rgb(20, 167, 62) 0%, rgb(102, 247, 113) 100%);  */
     background: linear-gradient(90deg, #3fd86b 0%, #1ebc5c 100%);
     color: white;
     box-shadow: 0 .7em 1.5em -.5em #14a73e98;
 }


 #continue-btn {
     width: 100%;
     background: linear-gradient(90deg, #4f8cff 0%, #38e6ff 100%);
     color: #fff;
     font-size: 1.22rem;
     font-weight: bold;
     border: none;
     border-radius: 100px;
     padding: 12px 0 12px 0;
     cursor: pointer;
     box-shadow: 0 4px 18px rgba(79, 140, 255, 0.18);
     margin-top: 0;
     transition: background 0.2s, box-shadow 0.2s;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 #remove-btn.active {
     background: linear-gradient(0deg, rgb(20 167 62) 0%, rgb(102 247 113) 100%);
     color: #ffff !important;
 }

 #removeIcon {
     margin-right: 10px;
 }

 .tile::after {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: white;
     opacity: 0;
     pointer-events: none;
     transition: opacity 0.3s;
     border-radius: inherit;
 }

 .tile.glow::after {
     opacity: 0.8;
     animation: whiteFlash 0.3s ease;
 }

 @keyframes whiteFlash {
     0% {
         opacity: 0.8;
     }

     100% {
         opacity: 0;
     }
 }

 .tile {
     position: relative;
     overflow: hidden;
 }

 .tile.winner::after {
     animation: winnerFlash 1s ease-in-out 3;
 }

 @keyframes winnerFlash {

     0%,
     100% {
         opacity: 0;
     }

     50% {
         opacity: 0.8;
     }
 }

 #infoLine {
     position: absolute;
     top: 0px;
     left: 10%;
     font-size: 16px;
     display: flex;
     gap: 4px;
     align-items: center;
     color: #000;
     font-size: 1.3em;
     font-weight: bold;
     margin: 15px 0 0px 0px;
     text-align: left;
 }

 .warning-box {
     position: absolute;
     top: 30%;
     left: 50%;
     transform: translateX(-50%);
     background: #fff8e1;
     border: 2px solid #ffc107;
     border-radius: 12px;
     box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
     padding: 20px 24px;
     z-index: 9999;
     min-width: 350px;
     max-width: 90%;
     font-family: sans-serif;
     animation: fadeInOut 5s forwards;
 }


 .warning-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     font-weight: bold;
     color: #b25c00;
     margin-bottom: 8px;
 }

 .warning-icon {
     margin-right: 10px;
     color: #ffc107;
     font-size: 20px;
 }

 .warning-close {
     cursor: pointer;
     color: #888;
     font-size: 18px;
 }

 .warning-message {
     font-size: 16px;
     color: #444;
 }

 .wall_header {
     flex-direction: row;
     align-items: flex-start;
     width: 100%;
 }

 .icons {
     font-size: 2rem;
     margin-right: 10px;
     cursor: pointer;
     background-color: #000;
     color: #fff;
     border-radius: 10px;
     width: 54px;
     height: 54px;
     display: flex;
     justify-content: center;
     align-items: center;
 }

 .modal-header {
     text-align: center;
     border-bottom: 3px solid #222;
     padding: 10px 20px;
 }

 .modal-content {
     background: #fff;
     border: 3px solid #222;
     border-radius: 18px;
     min-width: 650px;
     max-width: 100vw;
     box-shadow: 0 8px 32px #0004;
     overflow: hidden;
     margin-top: 20px;
     z-index: 9999;
     height: auto;
 }

 .modal-header .model-header_title {
     margin: 0;
     color: #4CAF50;
     font-size: 1.5rem;
     text-align: left;
 }

 .modal-content label {
     display: block;
     margin-bottom: 10px;
     font-weight: bold;
     text-align: left;
 }

 textarea {
     width: 100%;
     min-height: 270px;
     max-height: 270px;
     font-size: 1.1em;
     border: 2px solid #222;
     border-radius: 8px;
     padding: 8px;
     resize: vertical;
     box-sizing: border-box;
     background: #fafafa;
     font-family: inherit;
 }

 #overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.5);
     z-index: 999999;
     display: none;
 }

 .grid {
     margin-bottom: 20px;
 }


 /* responsive start */

 @media (max-width:992px){
    .flip-button{
        width: 30%;
        font-size: 1rem;
    }
 }

 @media (max-width: 768px) {
    .hero-section{
        margin: 0 !important;
      }
     .grid {
         grid-template-columns: repeat(4, 1fr);
     }

     .tile {
         font-size: 14px;
         padding: 16px;
     }

     .modal-content {
         min-width: 90vw;
         padding: 16px;
         max-width: 96vw;
     }

     textarea {
         height: 180px;
     }

     .btn,
     .btn.green {
         font-size: 1rem;
         padding: 12px;
     }

     .winner-popup {
         padding: 24px 40px;
         font-size: 1.1rem;
         position: absolute;
         top: 60%;
         left: 49%;
     }

     .winner-popup h1 {
         font-size: 32px;
     }

     #popupControls {
         position: absolute;
         bottom: 11px;
         right: 10px;
         padding: 20px;
         min-width: 240px;
         z-index: 9999;
     }

     #remove-btn,
     #continue-btn {
         font-size: 1rem;

     }

     .wall_header {
         flex-direction: column;
         align-items: flex-start;
     }

     .icons {
         margin: 0 0 10px 0;
         width: 44px;
         height: 44px;
         font-size: 1.4rem;
     }

     #infoLine {
         position: absolute;
         top: 10px;
         left: 17%;
         font-size: 16px;
         display: flex;
         gap: 4px;
         align-items: center;
         color: #000;
         font-size: 1rem;
         font-weight: bold;
         margin: 0px;
         text-align: left;
     }

     .warning-box {
         width: 90%;
         max-width: 320px;
         font-size: 0.95rem;
     }

     .modal-header .model-header_title {
         font-size: 1.2rem;
     }
 }

 @media (max-width:575px) {
     .winner-popup {
         padding: 24px 40px;
         font-size: 1.1rem;
         position: absolute;
         top: 60%;
         left: 46%;
     }
 }

 @media (max-width:420px) {
     #popupControls {
         position: absolute;
         bottom: 11px;
         right: 41px;
         padding: 20px;
         min-width: 240px;
         z-index: 9999;
     }

     .winner-popup {
         padding: 24px 40px;
         font-size: 1.1rem;
         position: absolute;
         top: 60%;
         left: 48%;
     }

     .flip-button {
         width: 100%;
         font-size: 16px;
         padding: 8px;
     }
 }

 @media (max-width : 350px) {

     .grid {
         grid-template-columns: repeat(3, 1fr);

     }

     #popupControls {
         position: absolute;
         bottom: 11px;
         right: 41px;
         padding: 20px;
         min-width: 240px;
         z-index: 9999;
     }

     .winner-popup {
         padding: 24px 40px;
         font-size: 1.1rem;
         position: absolute;
         top: 50%;
         left: 48%;
     }

     .flip-button {
         width: 100%;
         font-size: 16px;
         padding: 8px;
     }
 }

 @media (max-width : 320px) {
     .grid {
         grid-template-columns: repeat(3, 1fr);

     }

     #popupControls {
         position: absolute;
         bottom: 11px;
         right: 41px;
         padding: 20px;
         min-width: 240px;
         z-index: 9999;
     }

     .winner-popup {
         padding: 24px 40px;
         font-size: 1.1rem;
         position: absolute;
         top: 50%;
         left: 50%;
     }

     .flip-button {
         width: 100%;
         font-size: 16px;
         padding: 8px;
     }
 }