/* Disable text selection on all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none; /* Chrome, Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: background-color 0.5s, color 0.5s;
}

body {
    background-color: #121212;
    color: #ffffff;
    /* Remove default margin for positioning */
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Position theme toggle at top right */
#theme-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 50;
}

/* Score text now at top center with improved font */
#status {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    font-family: 'Verdana', sans-serif;
}

/* Game container occupies full screen */
#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* DVD logo uses local dvd.png and is animated via JS */
#dvd-logo {
    position: absolute;
    width: 100px;
    height: 50px;
    background: url('dvd.png') no-repeat center center;
    background-size: contain;
}

/* Circle styling */
.circle {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #8b8b8b;
    border-radius: 50%;
    animation: shrink 3s linear forwards;
    cursor: pointer;
}

@keyframes shrink {
    0% { transform: scale(1.5); }
    100% { transform: scale(0); }
}

/* Upgrades positioned at bottom center */
#upgrades {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

/* Base button styling */
button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    outline: none;
}

/* Disabled state for buttons */
button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* Hover style for enabled buttons */
button:hover:not(:disabled) {
    background-color: #0056b3;
}

/* Custom tooltip styling using data-tooltip */
button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    z-index: 100;
}

button[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Light mode overrides */
.light-mode {
    background-color: #ffffff;
    color: #121212;
}

.light-mode button {
    background-color: #007bff;
    color: #ffffff;
}

.light-mode button:hover:not(:disabled) {
    background-color: #0056b3;
}

.light-mode button:disabled {
    background-color: #999;
    color: #ccc;
}

.celebration-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
}

.celebration-item {
    position: absolute;
    top: -50px;
    width: 150px;
    /* Change animation duration to 10s for a longer celebration effect */
    animation: fall 10s linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Optional: Remove focus styling for any focused element */
:focus {
    outline: none;
}