
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background: #000;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.background {
    width: 100%;
    max-width: 600px;
    height: 100%;
    position: relative;
}

.background .bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* Centers the image */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.content-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 600px;
    z-index: 1;
    justify-content: center;
    align-items: center;
}
/* Top logo & text */
.logo-header {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 5;
    text-align: center;
    top: 2%;
    left: 50%;
}
.logo-header img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 250px;
}

.text-content {
    top: 20%;
    position: relative;
    transform: translate(-50%, -50%);
    z-index: 10;
    left: 70%;
   
}
.text-content img{
    width: 100%;
    height: 100%;
    max-width: 400px;
}
/* Game Board Layout */
.game-board {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 500px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Labels (Me/You Buttons) */
.labels-row {
    display: flex;
    justify-content: space-between;
    width: 90%; /* Adjust as needed */
    margin-bottom: 20px; /* Space between labels and visual results */
}

.label-box img {
    width: 100%;
    max-width: 180px;
    display: block;
}

/* Results & VS (The Visuals) */
.results-row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     width: 80%;
}

.result-box {
    
    border-radius: 15px;
    
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.result-box img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* VS Logo */
.vs-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Footer / Hand Controls */
.footer-container {
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
    padding: 0 10px;
}

.hand-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    width: 22%; /* 4 items -> ~25% each */
}

.hand-btn:hover {
    transform: scale(1.1);
}

.hand-btn img {
    width: 100%;
    height: auto;
    display: block;
    /* Adding a white tab aesthetic if not in image, usually images have it. */
    border-radius: 10px; 
    padding: 5px;
}

/* Popup Styles */
.popup-two{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content-two{
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: dropFromTop 0.3s ease forwards;
}

.two-body{
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 600px;
}
.two-body img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 500px;
   
}

@keyframes zoominout {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.popup-content-two a{
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 300px;
}

.popup-content-two a img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 250px;
}


/* Popup Win Styles */
.popup-win{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content-win{
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: dropFromTop 0.3s ease forwards;
}

.win-body{
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 600px;
}
.win-body img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 500px;
}

.popup-content-two a{
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 300px;
}

.popup-content-two a img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 250px;
}

.win-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 10px;
}

.claim-btn {
    cursor: pointer;
}

.claim-btn img {
    width: 100%;
    max-width: 200px;
    height: auto;
     animation: zoominout 2s ease-in-out infinite;
}
.continue-btn {
    cursor: pointer;
}

.continue-btn img {
    width: 100%;
    max-width: 200px;
    height: auto;
     animation: zoominout 2s ease-in-out infinite;
}

/* Responsive Design for Mobile Devices */
/* Responsive Design for Mobile Devices */
@media (max-width: 500px) {
    .logo-header img {
        max-width: 200px;
    }
    .text-content{
        top:24%;
        left:60%;
    }
    .text-content img {
        max-width: 350px;
    }

    /* Adjust Game Board for Mobile */
    .game-board {
        top: 50%; /* Shift up slightly */
        max-width: 400px;
    }
    
    .player-box {
        padding: 8px 15px;
        font-size: 18px;
        min-width: 60px;
    }

    .vs-logo img {
        width: 60px;
        height: 60px;
    }
    
    .footer-container {
        top: 80%; /* Move up controls */
        max-width: 400px;
    }

    .win-btn img {
        max-width: 160px;
    }
    
    .popup-content-lose a img {
        max-width: 200px;
    }
    
    .lose-body img {
        max-width: 320px;
    }
}


@media (max-width: 390px) {
   
    .text-content{
        top:22%;
        left:55%;
     }   
    .text-content img {
        max-width: 300px;
    }
    /* Tweak game board */
    .game-board {
        top: 48%;
    }
    .player-box {
        font-size: 16px;
        padding: 5px 10px;
    }
    .footer-container {
        top: 75%;
    }
    
    .labels-row {
        display: flex;
        justify-content: space-between;
        width: 80%; /* Adjust as needed */
        margin-bottom: 20px; /* Space between labels and visual results */
    }

    .label-box img {
        width: 100%;
        max-width: 130px;
        display: block;
    }

    /* Results & VS (The Visuals) */
    .results-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 80%;
}

}

@media (max-width: 360px) {
      .text-content{
        top:20%;
        left:60%;
     }   
    .text-content img {
        max-width: 250px;
    }
   
    .game-board {
        top: 45%;
    }
    
    .vs-logo img {
        width: 50px;
        height: 50px;
    }

    .win-btn img {
        max-width: 110px;
    }
    
    .popup-content-lose a img {
        max-width: 140px;
    }
    
    .lose-body img {
        max-width: 230px;
    }
}

