body {
    background-color: #121212; 
    color: #ffffff; 
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.container {
    width: 80%;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    border-radius: 8px; 
    background-color: #1e1e1e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

h1 {
    text-align: center;
    font-size: 2.5em; 
    margin-bottom: 20px;
}

h2 {
    font-size: 1.8em;
    margin: 20px 0 10px;
}

form {
    text-align: center;
}

input[type="text"] {
    padding: 15px; 
    font-size: 1.5em;
    border: 2px solid #4caf50;
    border-radius: 5px; 
    width: 80%; 
    max-width: 300px;
    margin-bottom: 10px; 
}

button {
    padding: 15px; 
    font-size: 1.5em; 
    background-color: #4caf50; 
    color: #ffffff; 
    border: none;
    border-radius: 5px; 
    cursor: pointer;
    transition: background-color 0.3s; 
}

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

.attempts {
    margin-top: 20px;
}

.attempt {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.word {
    flex-grow: 1;
    text-align: center;
    font-size: 1.5em; 
    margin: 5px;
}

.feedback {
    display: flex;
    justify-content: center;
}

.feedback-item {
    flex-grow: 1;
    text-align: center;
    padding: 10px; 
    margin: 2px;
    font-size: 1.5em; 
    color: #ffffff;
}

.correct {
    background-color: #4caf50;
}

.present {
    background-color: orange; 
}

.absent {
    background-color: #f44336;
}

.error {
    color: #f44336;
    text-align: center;
    margin-top: 10px;
    font-size: 1.2em;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
}

nav li {
    margin-right: 10px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em; 
}

nav a:hover {
    color: #cccccc;
}

.game-info, .game-status {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.attempts {
    margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }
    
    .word {
        font-size: 1.3em;
    }
    
    .feedback-item {
        width: 2em;
        font-size: 1.3em; 
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .game-info p, .game-status p {
        font-size: 1em; 
    }
    
    .word {
        font-size: 1.2em; 
    }
    
    .feedback-item {
        width: 1.5em;
        font-size: 1em; 
    }
    
    input[type="text"], button {
        font-size: 1.2em; 
    }
}