/* Basic  */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    overflow: hidden;
}

/* Main container   */
.main-container {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: fadeIn 1.5s ease;
}

.title-container h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #f12711, #f5af19);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 2s infinite alternate;
}

.subtitle {
    font-size: 1.2rem;
    color: #ccc;
}

/* Score */
.score-container {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.score {
    text-align: center;
    font-size: 1.2rem;
    color: #ffcc00;
}

/* Game Btn  */
.game-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.game-btn {
    font-size: 2rem;
    padding: 20px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.6);
    transition: all 0.3s ease-in-out;
    animation: bounce 2s infinite;
}

.game-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 10px 20px rgba(255, 65, 108, 0.8);
}

/* Result */
.result-container {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-in;
}

.result span {
    font-size: 1.5rem;
    color: #ffcc00;
    display: inline-block;
    min-width: 50px;
}

/* Restart btn */
.restart-btn {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.6);
    transition: all 0.3s ease-in-out;
}

.restart-btn:hover {
    background: linear-gradient(45deg, #2575fc, #6a11cb);
    transform: scale(1.1);
}

/* Animation */
@keyframes glow {
    0% {
        text-shadow: 0 0 10px #f12711, 0 0 20px #f5af19;
    }
    100% {
        text-shadow: 0 0 20px #f12711, 0 0 30px #f5af19;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
