@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000072;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.banner {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 50px;
    z-index: 10;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.start-container,
.input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-out;
}

.input-container {
    display: none;
}

.input-label {
    font-size: 30px;
    color: white;
    margin-bottom: 20px;
}

input[type="text"] {
    border-radius: 15px;
    height: 50px;
    width: 400px;
    font-size: 30px;
    color: black;
    text-align: center;
    text-transform: uppercase;
    border: 3px solid white;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
}

.timer {
    font-size: 24px;
    color: white;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.timer.red {
    color: red;
}

.replay-button, 
.start-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 25px;
    font-family: 'Montserrat', sans-serif;
    border: none;
    border-radius: 10px;
    background-color: limegreen;
    color: white;
    cursor: pointer;
}

.replay-button:hover, 
.start-button:hover {
    background-color: darkgreen;
}

.score, 
.record, 
.last-score {
    font-size: 22px;
    color: white;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
}

.score span, 
.record span, 
.last-score span {
    margin-left: 10px;
}

.countdown {
    font-size: 40px;
    font-weight: bold;
    color: white;
    margin-top: 20px;
}

.missed-word {
    font-size: 20px;
    color: yellow;
    margin-top: 20px;
}

.footer {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    font-size: 18px;
    font-weight: bold;
    color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    height: 60px;
    z-index: 10;
    box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    width: 90%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}

.footer img {
    height: 30px;
    object-fit: contain;
}

.footer-text {
    flex-grow: 1;
    text-align: center;
    padding: 0 20px;
    font-size: 24px;
    font-weight: bold;
}

.footer button {
    background-color: #5865F2;
    border: none;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.footer button:hover {
    background-color: #404EED;
}

.footer button img {
    height: 40px;
}



.game-hidden {
    display: none;
}

.swal2-popup {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    border-radius: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #f8fafc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.swal2-title {
    font-size: 20px;
    font-weight: 600;
    color: #e2e8f0;
    text-transform: uppercase;
}

.swal2-confirm {
    background: #38bdf8 !important;
    color: #1e293b !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    transition: background 0.3s ease-in-out;
}

.swal2-confirm:hover {
    background: #0ea5e9 !important;
}
.footer-content button img {
    transition: transform 0.2s;
}

.footer-content button:hover img {
    transform: scale(1.1);
}

.swal2-popup {
    font-family: 'Montserrat', sans-serif !important;
}
