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

:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

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

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

.bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 15s infinite ease-in-out;
}

.circle:nth-child(1) {
    width: 300px;
    height: 300px;
    background-color: rgba(255, 0, 128, 0.3);
    top: -150px;
    left: -150px;
}

.circle:nth-child(2) {
    width: 400px;
    height: 400px;
    background-color: rgba(0, 128, 255, 0.3);
    bottom: -200px;
    right: -200px;
}

.circle:nth-child(3) {
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 0, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    
    25% {
        transform: translate(50px, -50px);
    }
    
    50% {
        transform: translate(0, -100px);
    }
    
    75% {
        transform: translate(-50px, -50px);
    }
}

.container {
    text-align: center;
    padding: 1rem;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.word {
    font-size: 1.8rem;
    letter-spacing: 0.5rem;
    padding: 0.8rem 1.5rem;
}

.hint {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    max-width: 80%;
}

.hangman {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
}

.message {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.keyboard {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
    padding: 0.8rem;
}

.key {
    font-size: 1rem;
    padding: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.key:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

#newGameBtn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#newGameBtn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

#confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}
