#game-container {
    margin-top: 2em;
    max-width: 100%;
    overflow: hidden;
}

#letters-container {
    margin-bottom: 0.5em;
}

#letters-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    width: fit-content;
    margin: 0 auto;
    border: 2px solid #63a4ff;
    padding: 8px;
    background-color: #000;
    min-width: 420px;
    min-height: 70px;
}

.letter-cell {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    border: 1px solid #9c9c9c;
    color: white;
    font-family: monospace;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 60px;
    min-height: 60px;
    user-select: none;
}

.letter-cell:hover {
    background-color: #1a1a1a;
    border-color: #63a4ff;
    box-shadow: 0 0 5px #63a4ff;
}

.letter-cell.selected {
    background-color: #63a4ff;
    color: #000;
    border-color: #63a4ff;
}

.letter-cell.used {
    background-color: #333;
    border-color: #666;
    color: #666;
}

.letter-cell.editing {
    background-color: #1a1a1a;
    border-color: #63a4ff;
    box-shadow: 0 0 8px #63a4ff;
}

#letters-controls {
    margin-top: 1em;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
}

.control-btn {
    background-color: #000;
    border: 1px solid #9c9c9c;
    color: white;
    font-family: monospace;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
    text-decoration: none;
    display: inline-block;
}

.control-btn:hover {
    background-color: #1a1a1a;
    border-color: #63a4ff;
    box-shadow: 0 0 5px #63a4ff;
}

.control-btn:active {
    background-color: #63a4ff;
    color: #000;
}

#game-info {
    margin-top: 0.5em;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

#disclaimer {
    color: #ff746c;
    margin-top: 0.75em;
    font-family: monospace;
}

#status {
    color: #9c9c9c;
    margin-bottom: 0.5em;
    font-family: monospace;
}

#word-viewer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    margin-top: 0.5em;
    margin-bottom: 1.75em;
    font-family: monospace;
    background: #000;
    border: 1px solid #9c9c9c;
    padding: 0.7em 1em;
    max-width: 100%;
    min-height: 2.5em;
    box-sizing: border-box;
}

.arrow-btn {
    background: #000;
    color: #63a4ff;
    border: 1px solid #63a4ff;
    font-family: monospace;
    font-size: 1.2em;
    padding: 0.2em 0.7em;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 2px;
}

.arrow-btn:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #9c9c9c;
}

.current-word {
    color: #fff;
    font-size: 1.1em;
    font-family: monospace;
    min-width: 5ch;
    letter-spacing: 0.1em;
    text-align: center;
    display: inline-block;
}

#back-container {
    position: fixed;
    top: 1em;
    left: 1em;
    z-index: 1000;
}

.back-link {
    color: #9c9c9c;
    font-family: monospace;
    font-size: 0.9em;
    text-decoration: underline;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: #63a4ff;
}

#main {
    margin-top: 2em;
}

/* Responsive design */
@media only screen and (max-width: 600px) {
    .letter-cell {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
        font-size: 1.2em;
    }

    #letters-grid {
        min-width: 350px;
        min-height: 60px;
    }

    #letters-controls {
        flex-direction: column;
        align-items: center;
    }

    .control-btn {
        width: 200px;
    }

    #word-viewer {
        font-size: 0.9em;
        padding: 0.5em 0.5em;
    }
}

@media only screen and (max-width: 400px) {
    .letter-cell {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 1em;
    }

    #letters-grid {
        min-width: 280px;
        min-height: 50px;
    }

    .control-btn {
        width: 150px;
        font-size: 0.8em;
    }

    #word-viewer {
        font-size: 0.8em;
        padding: 0.3em 0.2em;
    }
} 