* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #2c3e50;
    color: #ecf0f1;
    font-family: 'Roboto Mono', monospace; /* 等幅フォント */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.container {
    background-color: #34495e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    width: 500px;
    max-width: 90%;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.word-display {
    margin: 20px 0;
}

#current-word {
    font-size: 3rem;
    color: #2ecc71; /* 緑色 */
    letter-spacing: 2px;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    font-size: 1.5rem;
    border: none;
    border-radius: 5px;
    outline: none;
    margin-bottom: 20px;
    font-family: inherit;
}

input[type="text"]:focus {
    box-shadow: 0 0 10px #2ecc71;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

#message {
    height: 30px; /* メッセージがない時もレイアウトを崩さない */
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 10px;
}

.instructions {
    font-size: 0.9rem;
    color: #bdc3c7;
    margin-top: 20px;
}