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

body {
    background-color: white;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

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

/* Navbar Styling */
.game-navbar {
    width: 100%;
    background: linear-gradient(135deg, #1a1a2e, #4a6bff);
    color: white;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Game Container */
.game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: calc(100vh - 72px);
}

/* Game Card */
.game-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 5;
}

.game-card h2 {
    color: #4a6bff;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.subtitle {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Input */
.game-input {
    margin-bottom: 1.5rem;
}

#guess-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#guess-input:focus {
    border-color: #4a6bff;
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

/* Buttons */
.game-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #4a6bff, #6a5acd);
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.game-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 107, 255, 0.3);
}

.game-button:active {
    transform: translateY(0);
}

/* Feedback */
.game-feedback {
    margin: 1.5rem 0;
}

#message {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #4a6bff;
}

#attempts {
    font-size: 1rem;
    color: #666;
    font-weight: bold;
}

/* Restart */
.restart-button {
    display: none;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    padding: 10px;
}

/* Animated Background */
.bg-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

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

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

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

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

/* Responsive Typography */
@media (min-width: 768px) {
    .game-navbar h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .game-navbar h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .game-navbar {
        padding: 0.5rem 1rem;
    }

    .game-navbar h1 {
        font-size: 1.8rem;
    }

    .game-card {
        padding: 1.5rem;
        width: 90%;
        margin: 0 auto;
    }

    .game-card h2 {
        font-size: 1.3rem;
    }

    #guess-input,
    .game-button {
        font-size: 0.9rem;
        padding: 10px;
    }

    #message,
    #attempts {
        font-size: 0.9rem;
    }

    .restart-button {
        display: block;
    }
}