* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.game-board {
    display: grid;
    gap: 10px;
    margin: 20px auto;
}

.card {
    width: 120px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    cursor: pointer;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-front {
    transform: rotateY(180deg);
}

.card-back {
    background-color: white;
    background-image: url('logo.jpg');
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
}

.card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.card p {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

.difficulty-select {
    margin: 20px 0;
}

button {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #2196f3;
    color: white;
    font-weight: bold;
}

button:hover {
    background-color: #1976d2;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.modal-logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .card {
        width: 90px;
        height: 120px;
    }

    .card img {
        width: 60px;
        height: 60px;
    }
}

.header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    position: relative;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #2196f3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #1976d2;
}

.back-button i {
    font-size: 16px;
} 