@font-face {
    font-family: 'QuinqueFive';
    src: url('assets/fonts/QuinqueFive.woff') format('woff');
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'QuinqueFive', monospace;
}

.controls-guide {
    margin-top: 20px;
    text-align: center;
    color: #000000;
    font-size: 18px;
}

.keys-display {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.key-row {
    display: flex;
    gap: 5px;
}

.key {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #000000;
    padding: 8px 12px;
    border-radius: 5px;
    margin: 3px;
    font-weight: bold;
}

.game-content {
    display: none;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

#gameCanvas {
    display: none;
    margin: 0 auto;
    border: 2px solid #333;
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.game-button {
    padding: 10px;
    background-color: #4CAF50;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    justify-content: center;
    gap: 5px;
}

.game-button span {
    width: 25px;
    height: 25px;
    border: 2px solid white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: normal;
}

.game-button .space {
    width: 15px;
    border: none;
}

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

.message-display {
    height: 40px;
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.letter-guide {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
}

.guide-box {
    width: 30px;
    height: 30px;
    border: 2px solid #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
}

.guide-space {
    width: 30px;
    height: 2px;
    background-color: #666;
    margin-top: 14px;
    transition: background-color 0.3s;
}

.collected {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.collected-space {
    background-color: #4CAF50;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    font-family: 'QuinqueFive', monospace;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    min-width: 300px;
}

.modal h2 {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.modal p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.modal input {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    font-family: 'QuinqueFive', monospace;
    font-size: 14px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'QuinqueFive', monospace;
    font-size: 12px;
    transition: background-color 0.3s;
}

#createCustomGame {
    background-color: #4CAF50;
    color: white;
}

#closeModal {
    background-color: #666;
    color: white;
}

.modal-buttons button:hover {
    opacity: 0.9;
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

#buildCustomMessage::placeholder {
    font-size: 10px;
}

#buildCustomMessage {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    font-family: 'QuinqueFive', monospace;
    font-size: 14px;
} 