/******** GLOBAL STYLING ********/
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #000;
}

/* Desktop Layout */
@media (min-width: 769px) {
    body {
        background: #000;
        overflow: hidden;
    }
    
    #game {
        position: relative;
        height: 100vh;
        width: 100vw;
        background: url('bg.png') no-repeat center center;
        background-size: cover;
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .character {
        width: 80px;
        height: 80px;
        font-size: 3rem;
        position: fixed;
        z-index: 2;
    }
    
    #player1 {
        left: 20%;
        bottom: 30%;
    }
    
    #player2 {
        right: 20%;
        bottom: 30%;
    }
    
    #buttons {
        position: fixed;
        bottom: 20%;
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 0 15%;
        z-index: 1;
        box-sizing: border-box;
    }
    
    #player1-btn, #player2-btn {
        width: 200px;
        height: 60px;
        font-size: 1.2rem;
        background-color: #ff69b4;
        color: white;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        opacity: 0.9;
    }

    /* Center content for desktop */
    .game-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 800px;
        z-index: 3;
        text-align: center;
    }

    h1 {
        margin-bottom: 5vh;
    }

    #instructions {
        margin-top: 2vh;
    }

    .desktop-instructions {
        display: block;
    }

    .mobile-instructions {
        display: none;
    }
}

/* Mobile Layout */
@media (max-width: 768px) {
    body {
        background: url('bg.png') no-repeat center center fixed;
        background-size: 100% 100%;
    }
    
    #game {
        height: 100vh;
        width: 100vw;
        display: flex;
        flex-direction: column;
    }

    /* Game content wrapper */
    .game-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        z-index: 3;
    }

    h1 {
        margin-bottom: 5vh;
    }

    #instructions {
        margin-top: 5vh;
    }

    /* Button containers */
    #buttons {
        position: fixed;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 2;
    }

    #player1-btn, #player2-btn {
        width: 100%;
        height: 15vh;
        font-size: 1.5rem;
        background-color: #ff69b4;
        color: white;
        border: none;
        opacity: 0.9;
    }
    
    #player1-btn {
        transform: rotate(180deg);
    }
    
    .character {
        position: fixed;
        font-size: 3rem;
        z-index: 2;
    }
    
    #player1 {
        top: 17vh;
        left: 50%;
        transform: translate(-50%, 0) rotate(180deg);
    }
    
    #player2 {
        bottom: 17vh;
        left: 50%;
        transform: translate(-50%, 0);
    }

    /* Center content */
    #message, #winner {
        position: fixed;
        left: 50%;
        top: 45%;
        transform: translate(-50%, -50%);
        width: 90%;
        text-align: center;
        z-index: 3;
    }

    #instructions {
        position: fixed;
        left: 50%;
        top: 35%;
        transform: translate(-50%, -50%);
        width: 90%;
        text-align: center;
        z-index: 3;
    }

    /* Start button */
    #start-btn {
        position: fixed;
        left: 50%;
        bottom: 25vh;
        transform: translateX(-50%);
        z-index: 4;
        padding: 15px 30px;
        font-size: 1.2rem;
    }

    .desktop-instructions {
        display: none;
    }

    .mobile-instructions {
        display: block;
    }
}

/* Common Styles */
#start-btn {
    background-color: #ffd700;
    color: black;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

#instructions, #message, #winner {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#instructions {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

#message, #winner {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}

/* Instructions styling */
.desktop-instructions, .mobile-instructions {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 20px 0;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    padding: 0 20px;
}

/* Desktop-specific content */
.desktop-only {
    display: none; /* Hidden by default */
}

/* Desktop Layout */
@media (min-width: 769px) {
    .desktop-only {
        display: block; /* Show only on desktop */
    }
}

/* Mobile Layout */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important; /* Ensure it's hidden on mobile */
    }
    
    #message {
        margin-top: 20vh; /* Adjust spacing for cleaner mobile layout */
    }
    
    /* Rest of your mobile styles remain the same */
}
  
