.game-board{
    min-height: 50dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.game-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 2rem 0;
}

button.btn-primary, #new-game-btn {
    background-color: var(--bg-secondary);
    border: none;
    color: var(--text-secondary);
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#timer {
    font-family: 'Mirante';
    font-size: 1.5rem;
    color: rgb(223, 240, 240);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 1rem;
    margin: 0 auto;
    padding: 1rem;
}

.card {
    background: linear-gradient(135deg, var(--bg-primary) 10%, var(--bg-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Mirante';
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 6rem;
    min-width: 6rem;
    padding: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.card.flipped {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    transform: scale(1.05);
}

.card.matched {
    background: var(--text-tertiary);
    cursor: default;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    font-weight: 800;
}

.card.matched:hover {
    transform: scale(1.05);
}

.toast-success, .toast-error{
    background-color: #101a36;
    color: #99AABB;
}