@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

:root {
    --white-color: #ffffff;
    --black-color: #212121;
    --bg-color: linear-gradient(135deg, #e3f2fd, #bbdefb);
    --glass-color: rgba(255, 255, 255, 0.2);
    --border-color: rgba(255, 255, 255, 0.4);
    --accent-color: #1e88e5;
    --wrong-color: #e53935;
    --correct-color: #1e88e5;
}

.logo {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    z-index: 1000;
    /* Keeps it on top */
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--bg-color);
    color: var(--black-color);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}


.mainContainer {

    width: 90%;
    max-width: 650px;
    background: var(--glass-color);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.instructions h1 {
    font-weight: 600;
    font-size: 2.4em;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.instructions p {
    font-size: 1rem;
    opacity: 0.9;
}

.container {
    margin-top: 20px;
}

#wordBox {
    padding: 20px;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: var(--black-color);
    animation: fadeIn 1s ease-in-out;
}

#inputBox {
    width: 100%;
    padding: 12px;
    font-size: 1.2rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--accent-color);
    color: var(--black-color);
    text-align: center;
    transition: border-color 0.3s;
}

#inputBox:focus {
    border-color: #0d47a1;
}

.wrong {
    color: var(--wrong-color);
    font-weight: bold;
}

.correct {
    color: var(--correct-color);
    font-weight: bold;
}

#startButton {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    background: linear-gradient(45deg, #64b5f6, #1976d2);
    color: var(--white-color);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

#startButton:hover {
    transform: scale(1.08);
    background: linear-gradient(45deg, #1976d2, #64b5f6);
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    color: var(--white-color);
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    text-align: center;
    padding: 20px;
    color: black;
    /* Text color */
    position: fixed;
    width: 100%;
    bottom: 0;
}

.social-icons img {
    width: 24px;
    margin: 0 10px;
}

/* Additional Styles to ensure footer appears at the bottom */
body {
    margin-bottom: 60px;
    /* To avoid footer overlapping content */
}