body {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    background: rgba(51, 51, 51, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.stat-box {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    min-width: 120px;
}

.time-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

#time-select5, #time-select10, #time-select1 {
    background: linear-gradient(45deg, #007bff, #00bfff);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

#time-select5:hover, #time-select10:hover, #time-select1:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
    background: linear-gradient(45deg, #0056b3, #0099ff);
}

.box {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, #444, #555);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.box:hover {
    transform: scale(1.02);
    background: linear-gradient(45deg, #555, #666);
}

.box:active {
    transform: scale(0.98);
}

.box::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.box:hover::after {
    opacity: 1;
}

.win-screen {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #2a2a3a, #3a3a4a);
    border-radius: 15px;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.win-screen h2 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.win-screen p {
    color: #fff;
    font-size: 1.2em;
    margin: 15px 0;
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

#play-again {
    background: linear-gradient(45deg, #00c853, #69f0ae);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 25px;
    margin-top: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,200,83,0.3);
}

#play-again:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,200,83,0.4);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #00bfff);
    transition: width 0.1s linear;
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-30px); opacity: 0; }
}

footer {
    text-align: center;
    margin-top: 20px;   
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
    link-color: #fff;
}