* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    background: linear-gradient(135deg, #141e30, #243b55);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

main {
    text-align: center;
    
}

h1 {
    margin-bottom: 20px;
    font-size: 3rem;
    letter-spacing: 2px;
    animation: fadeIn 1s ease-in-out;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 15px;
}


.box {
    height: 100px;
    width: 100px;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}


.box:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.box:active {   
    transform: scale(0.95);
}
#new-btn{
    margin-top: 10px;
    padding: 10px 25px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    background: #b9ca21;
    color: white;
    transition: all 0.3s ease;
}



#reset-btn {
    margin-top: 20px;
    padding: 10px 25px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    background: #ff416c;
    color: white;
    transition: all 0.3s ease;
}

#new-btn:hover {
    background: #d3df2f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(176, 187, 24, 0.822);
}


#reset-btn:hover {
    background: #ff4b2b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 75, 43, 0.4);
}


.msg-container {
    padding: 15px 15px;
}

.win {
    margin-top: 1px;
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ffcc;
    animation: textGlow 1s infinite alternate;
}



.hide {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 5px #00ffcc,
                     0 0 10px #00ffcc;
    }
    to {
        text-shadow: 0 0 20px #00ffcc,
                     0 0 40px #00ffcc;
    }
}