body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f4f8;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    margin-bottom: 10px;
}

button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 1rem;
    background: lightcoral;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background: #45a049;
}

#home-screen, #game-board, #end-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

#board {
    display: grid;
    grid-template-columns: repeat(4, 70px);
    gap: 10px;
    width: fit-content;
    margin: 20px auto;
    justify-content: center;
}

.card {
    background: #ccc;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 6px;
    user-select: none;
    transition: background 0.3s ease;
}

.card.flipped {
    background: #f9f9f9;
    font-weight: bold;
}

.card.match {
    background: #4CAF50;
    color: white;
}

#turn-display {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 10px;
}

#score-display {
    margin-bottom: 20px;
}

#end-screen h2 {
    color: #4CAF50;
    font-size: 500%;
}

#final-score {
    font-size: 1.2rem;
    margin: 10px 0;
}

button.selected {
    background-color: #45a049;
}

div.card:hover { 
    background-color: #333;
}

div.card.flipped:hover {
    background-color: white;
}

div.card.match:hover {
    background-color: #4CAF50;
}

#end-screen h3 {
    font-size: 300%;
}

#start {
    margin-top: 40px;
}

#game-board h2 {
    font-size: 200%;
}