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

:root {
    --primary-color: #4CAF50; /* Green */
    --secondary-color: #FFC107; /* Amber */
    --background-color: #f0f8ff; /* AliceBlue */
    --text-color: #333;
    --white-color: #fff;
    --danger-color: #f44336; /* Red */
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
}

#game-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

header h1 {
    color: var(--primary-color);
    font-size: 2rem;
}

#timer-container {
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 1.5rem;
    font-weight: 600;
}

#timer-container img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 600;
}

button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

#start-screen h2, #end-screen h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

#start-screen p, #end-screen p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

#guess-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#guess-input {
    flex-grow: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}

#guess-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

#score-container {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px 0;
}

#correct-guesses {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-height: 250px;
    overflow-y: auto;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
}

#correct-guesses li {
    background-color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 500;
}

.results-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
    text-align: left;
}

.results-list {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    width: 48%;
}

.results-list h3 {
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.results-list ul {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px; /* For scrollbar */
}

#correct-list li { color: var(--primary-color); font-weight: 600; }
#missed-list li { color: var(--danger-color); }

.hidden {
    display: none;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    #game-container {
        padding: 15px;
    }
    header {
        flex-direction: column;
        gap: 10px;
    }
    .results-container {
        flex-direction: column;
    }
    .results-list {
        width: 100%;
    }
}

