body {
    margin: 0;
    overflow: hidden;
    background-color: #f0f0f0;
    font-family: sans-serif;
    height: 100dvh;
    width: 100vw;
    /* Prevent text selection */
    -webkit-user-select: none;
    user-select: none;
    /* Prevent touch zoom/highlighting */
    touch-action: manipulation;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100dvh;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    #game-container {
        max-width: 500px;
        border-left: 2px solid #ccc;
        border-right: 2px solid #ccc;
    }
}

#score {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    z-index: 10;
}

#player {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 50px; /* Increased size to match previous blue box */
    z-index: 100;
}

.character {
    display: inline-block;
    animation: run 0.5s infinite alternate ease-in-out;
}

@keyframes run {
    0% { transform: translateY(0) rotate(-5deg); }
    100% { transform: translateY(-10px) rotate(5deg); }
}

.poop {
    position: absolute;
    top: -50px;
    font-size: 30px;
}

#game-over, .popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 1000;
    width: 250px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#share-button, #start-button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}

#share-button:hover, #start-button:hover {
    background-color: #0056b3;
}
