:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --secondary-color: #FFC107;
    --light-color: #FFFFFF;
    --dark-color: #333;
    --background-color: #F0F4F0;
    --border-radius: 8px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--dark-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.container {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

header {
    margin-bottom: 2rem;
}

.logo {
    max-width: 100%;
    height: auto;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

h2, h3, h4 {
    margin-bottom: 1rem;
}

h2 {
    color: var(--primary-dark);
}

.player-input {
    margin-bottom: 1rem;
    text-align: left;
}

.player-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 1rem;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.score-board {
    display: flex;
    justify-content: space-around;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

#turn-indicator {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.2rem;
}

#guess-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

#guess-form input {
    flex-grow: 1;
}

#guess-form button {
    width: auto;
    margin-top: 0;
}

#message-area {
    min-height: 24px;
    font-weight: 600;
    transition: color 0.3s;
}

.guessed-container {
    margin-top: 1rem;
    text-align: left;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: var(--border-radius);
}

#guessed-fruits-list {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#guessed-fruits-list li {
    background-color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

#game-over-screen h2 {
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    font-size: 2rem;
}

#final-scores {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

