
body {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    background: linear-gradient(45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: white;
    overflow: hidden; /* Prevent scrollbars */
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#intro-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#intro-screen h1 {
    font-size: 4em;
    margin-bottom: 30px;
}

#start-button {
    font-size: 1.5em;
    padding: 15px 30px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#start-button:hover {
    background-color: #45a049;
}

#controls {
    margin-bottom: 20px;
}

#game-container {
    position: relative;
    height: 500px;
    width: 80%;
    margin: 0 auto;
    border: 2px solid white;
    border-radius: 10px;
    overflow: hidden;
}

#game-area {
    position: relative;
    height: 100%;
}

.word {
    position: absolute;
    font-size: 1.5em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease-out;
}

.word.exploding {
    transform: scale(1.5);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

#type-input {
    font-size: 1.5em;
    padding: 10px;
    width: 50%;
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.hidden {
    display: none;
}

#game-over {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

#restart-button, #pause-button {
    font-size: 1em;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 10px;
}

#restart-button:hover, #pause-button:hover {
    background-color: #45a049;
}
