* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

h1 {
    text-align: center;
}


#timer {
    margin-left: auto;
    font-size: 1rem;
    font-weight: 600;
    color: #444;
}

.game{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    cursor: pointer;
    transition: all .2s;
    height: 80px; /* ny */
    display: flex; /* ny */
    align-items: center; /* ny */
}

.card:hover {
    transform: scale(1.02);
}

.selected {
    background: #fde68a;
}

.correct {
    background: #86efac;
}

.hidden {
    visibility: hidden;
}

#winner {
    margin-top: 30px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.topbar h1 {
    margin: 0;
    font-size: 1.8rem;
}

#restartBtn {
    margin: 0;
    padding: 8px 16px;
    font-size: 0.95rem;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    cursor: pointer;
    flex-shrink: 0;
}

#restartBtn:hover {
    background: #1d4ed8;
}

#restartBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
