* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f0a1a; /* Deeper dark purple-blue */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Background effects */
.gradient-background {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        #0f0a1a, #191230, #1e1645, #202052,
        #2a0d3e, #34114f, #4a137b,
        #330a44, #4a1063, #581272);
    background-size: 1000% 1000%;
    animation: gradientMovement 160s ease infinite;
    z-index: -3;
    opacity: 0.7;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(15, 10, 26, 0) 10%, 
        rgba(15, 10, 26, 0.3) 70%,
        rgba(15, 10, 26, 0.75) 100%);
    z-index: -1;
    animation: pulseOverlay 60s ease-in-out infinite alternate;
}

/* Animated floating orbs - updated sizing and positioning */
.orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    filter: blur(45px); /* Increased blur for smoother edges */
}

.orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6; /* Increased opacity for more presence */
    mix-blend-mode: screen;
}

/* Removed static positioning and animations - will be controlled by JS */
.orb1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 30% 40%, #ff3e9d, #7e2ecc);
}

.orb2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle at 70% 30%, #72e8f2, #4b36dc);
}

.orb3 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle at 50% 60%, #ff9966, #8d33da);
}

.orb4 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 40% 50%, #51d5c2, #562dd4);
}

.orb5 {
    width: 620px;
    height: 620px;
    background: radial-gradient(circle at 60% 40%, #ff6fb7, #704cda);
}

/* Remove static keyframe animations - will use JavaScript instead */

@keyframes gradientMovement {
    0% { background-position: 0% 0%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 0%; }
}

@keyframes pulseOverlay {
    0% { opacity: 0.7; }
    50% { opacity: 0.5; }
    100% { opacity: 0.8; }
}

/* Timer container */
.timer-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1;
}

.progress-ring-container {
    width: 700px;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.progress-ring {
    position: absolute;
    transform: rotate(-90deg);
}

.progress-ring__background {
    opacity: 0.3;
    shape-rendering: geometricPrecision;
}

.progress-ring__circle {
    transition: stroke-dashoffset 0.5s;
    filter: drop-shadow(0 0 12px rgba(138, 43, 226, 0.5));
    shape-rendering: geometricPrecision;
    stroke-linecap: round;
}

.timer-display {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#display {
    font-size: 8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    letter-spacing: 5px;
}

footer {
    position: fixed;
    bottom: 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    width: 100%;
    text-align: center;
    z-index: 5;
}
