/* === Base body styling and layout === */
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: white;
    color: black;
    font-family: Arial, sans-serif;
    text-align: center;
    position: relative;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
}

/* === Main container for the can and buttons === */
#canContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
}

/* === Can image styling === */
#canImage {
    width: 200px;
    max-height: 500px;
    display: block;
    margin-bottom: 40px;
    transition: opacity 0.3s ease;
}

/* === Image loading effect === */
.loading {
    opacity: 0.6;
}

/* === General button styling === */
button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    transition: transform 0.1s, background-color 0.3s;
    width: 250px;
}

/* === Button hover effect === */
button:hover {
    background-color: #45a049;
}

/* === Button active (pressed) effect === */
button:active {
    transform: scale(0.95);
}

/* === Disabled button styling === */
button:disabled {
    transform: none;
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* === Container for the action buttons === */
.button-container {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* === Show button container when visible === */
.button-container.visible {
    opacity: 1;
}

/* === Styling for the "burkButton" === */
#burkButton {
    position: relative;
    display: block;
}

/* === Placeholder for spacing/layout === */
#invisiblePlaceholder {
    height: 80px;
}

/* === Clicks remaining indicator === */
.clicks-remaining {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* === Responsive adjustments for mobile/tablet === */
@media (max-width: 768px) {
    #countdown {
        font-size: 24px;
    }

    #canImage {
        width: 150px;
    }

    button {
        width: 80%;
        margin: 8px auto;
    }

    body {
        padding: 10px;
    }
}

/* === Reset button styling === */
#resetButton {
    background-color: #ff4444;
    font-size: 12px;
    padding: 4px 8px;
    display: none;
    width: auto !important;
    position: static; /* Remove fixed positioning */
    margin: 0;
}

/* === Container for click status and reset button === */
.click-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}