.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.description {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.game-info {
    padding: 0.25rem 0;
    border-radius: 5px;
    max-width: 20rem;
    margin: auto;
    background: #f8f9fa;
}

.night .game-info{
    background-color: #444;
}

.info-item {
    text-align: center;
    width: calc(100% / 3);
    display: inline-block;
    float: left;
    padding: 0.5rem 0.75rem;
}

.info-label {
    font-size: 0.6rem;
    margin-bottom: 0.25rem;
    color: #7f8c8d;
}

.night .info-label{
    color: #ddd;
}

.info-value {
    color: #2c3e50;
    font-size: 0.8rem;
}

.night .info-value{
    color: #ddd;
}

.game-board {
    display: grid;
    grid-gap: 5px;
    padding: 0.25rem;
    border-radius: 3px;
    backdrop-filter: blur(10px);
    justify-content: center;
    max-width: 560px;
    margin: 1rem auto;
    background-color: #c4dfa5;
}

.night .game-board{
    background-color: #444;
}

.tile {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #333;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    font-size: 1.2rem;
}

.night .tile{
    background: #333;
    color: #ccc;
}

.tile.empty {
    background: transparent;
    box-shadow: none;
    cursor: default;
}

.tile.empty:hover {
    transform: none;
    box-shadow: none;
}

.controls {
    text-align: center;
}

.controls button {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 0 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    height: 1.5rem;
    line-height: 1.5rem;
}

.controls select {
    height: 1.5rem;
    line-height: 1.5rem;
    background-color: #2196F3;
    color: #fff;
    border: 0;
    width: 3rem;
    border-radius: 4px;
    text-align: center;
    padding: 0 0.2rem;
}

#new-game {
    background: #4CAF50;
    color: white;
}

#solve {
    background: #FF9800;
    color: white;
}

#show-solution {
    background: #9C27B0;
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media screen and (max-width: 530px){
    .tile{
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 370px){
    .tile{
        font-size: 0.6rem;
    }
}