* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.color {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #000000 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #fff;
    overflow-x: hidden;
}
/* Animated background elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
.bg-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 15s infinite linear;
}
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
    }
}
/* Main Container */
.container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}
.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(120, 119, 198, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
}
/* Title Styles */
h1 {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd166 50%, #06d6a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.8em;
    margin-bottom: 10px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1em;
    margin-bottom: 30px;
    font-weight: 300;
}
/* Score Section */
.score-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.score-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 25px 20px;
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.score-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.score-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
}
.score-box:first-child::before {
    background: linear-gradient(90deg, #ff6b6b, #ffd166);
}
.score-box:last-child::before {
    background: linear-gradient(90deg, #118ab2, #06d6a0);
}
.score-box h2 {
    font-size: 1em;
    margin-bottom: 10px;
    opacity: 0.8;
    font-weight: 500;
}
.score {
    font-size: 3.2em;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}
#currentScore {
    background: linear-gradient(135deg, #fffefd 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
#highScore {
    background: linear-gradient(135deg, #118ab2 0%, #06d6a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* Timer Section */
.timer-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}
.timer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ff6b6b, #ffd166, #06d6a0);
}
.timer-section h2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 500;
}
.timer {
    font-size: 3.8em;
    font-weight: 800;
    color: #ffd166;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.5);
}
/* Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffd166, #06d6a0);
    border-radius: 4px;
    width: 100%;
    transition: width 0.3s ease;
}
/* Button Section */
.button-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}
/* Click Button */
.click-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff9e6d 100%);
    color: white;
    border: none;
    border-radius: 18px;
    padding: 35px;
    font-size: 1.8em;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}
.click-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}
.click-btn:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(255, 107, 107, 0.4);
}
.click-btn:hover:not(:disabled)::before {
    left: 100%;
}
.click-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}
.click-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}
/* Start Button */
.start-btn {
    background: linear-gradient(135deg, #118ab2 0%, #06d6a0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 30px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(6, 214, 160, 0.3);
}
.start-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(6, 214, 160, 0.4);
}
.start-btn:active:not(:disabled) {
    transform: translateY(0);
}
.start-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}
/* Reset Button */
.reset-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 18px 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.reset-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}
.video-container{
    position: absolute;
    z-index: -1;
    display: none;
}
/* Status Message */
.status-message {
    font-size: 1.2em;
    font-weight: 600;
    padding: 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffd166;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 25px;
    }
    h1 {
        font-size: 2.2em;
    }
    .score {
        font-size: 2.5em;
    }
    .timer {
        font-size: 3em;
    }
    .click-btn {
        padding: 25px;
        font-size: 1.5em;
    }
    .button-section {
        gap: 15px;
    }
}