body {
    font-family: 'Lato', sans-serif;
    background-color: #1a1a1a; /* Dark background */
    color: #f1f1f1; /* Light text color */
    text-align: center;
    margin: 0;
    padding: 0;
}

#game-container {
    position: relative;
    margin: 20px auto;
    width: 80vw; /* Use viewport width for responsive sizing */
    max-width: 600px; /* Max width for larger screens */
    height: 60vw; /* Height proportional to width */
    max-height: 400px; /* Max height for larger screens */
    border: 2px solid #282828;
    border-radius: 10px;
    background: linear-gradient(145deg, #333333, #1f1f1f); /* Darker gradient */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
}

/* Make sure the text doesn't take up too much space */
#score, #time {
    font-size: 16px; /* Smaller font size on desktop */
    color: #f1f1f1;
    margin: 10px 0; /* Adds a small gap */
}

#box {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #ff6347;
    border-radius: 50%;
    transition: transform 0.3s ease;
    cursor: pointer;
    pointer-events: none;
}

#start-btn {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px; /* Smaller button font size */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s;
}

#start-btn:hover {
    background-color: #0069d9;
}

#start-btn:active {
    background-color: #0056b3;
    transform: scale(0.98);
}

/* Media Query for smaller screens */
@media (max-width: 768px) {
    #game-container {
        width: 90vw; /* Slightly wider on smaller screens */
        height: 70vw;
    }

    #box {
        width: 40px;
        height: 40px;
    }

    #start-btn {
        font-size: 14px; /* Adjust start button font for smaller screens */
        padding: 10px 20px;
    }

    #score, #time {
        font-size: 14px; /* Adjust font size for smaller screens */
    }
}
