/* Reset + Base */
* {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: white;
    background-color: transparent;
    padding-bottom: 2rem;
    overflow-x: hidden;
}

/* Navbar */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.game-navbar {
    width: 100vw;
    max-width: 100%;
    background: linear-gradient(135deg, #1a1a2e, #4a6bff);
    color: white;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.game-navbar h1 {
    font-weight: 600;
    font-size: 2.2rem;
    color: #ff9a9e;
}

/* Typing Container */
.typing-container {
    margin: 2rem auto;
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a2e, #4a6bff);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.typing-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: #fff;
    text-align: center;
}

/* Text Box */
.text-box {
    background: rgba(255, 255, 255, 0.12);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    font-size: 1.2rem;
    line-height: 1.6;
    min-height: 100px;
    color: #ddd;
    word-break: break-word;
}

/* Text Input */
#text-input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    color: #1a1a2e;
    border: 5px solid #ff9a9e;
    resize: none;
}

/* Info Section */
.info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 1rem 0;
    font-size: 1.1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.info div {
    flex: 1 1 100px;
    text-align: center;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
    margin: 0.5rem auto;
    display: block;
    width: 100%;
    max-width: 250px;
}

.btn:hover {
    transform: scale(1.05);
}

/* Summary */
#summary-message {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #fff;
}

/* Correct & Incorrect */
.correct {
    color: #90ee90;
}

.incorrect {
    color: #ff6961;
}

.text-box,
#text-input,
.info,
#summary-message {
    width: 100%;
}


/* Background Circles */
.bg-wrapper {
    position: absolute;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s infinite linear;
    z-index: -1;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-50px) rotate(180deg);
    }

    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .game-navbar h1 {
        font-size: 1.8rem;
    }

    .typing-container {
        padding: 1.5rem 1rem;
    }

    .typing-container h2 {
        font-size: 1.2rem;
    }

    .text-box {
        font-size: 1.1rem;
        padding: 0.8rem;
    }

    #text-input {
        font-size: 0.95rem;
        padding: 0.8rem;
    }

    .btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    #summary-message {
        font-size: 1rem;
    }
}