/* Estilos gerais */
body {
    font-family: 'bold', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

p {
    font-size: 1.2rem;
    margin: 10px 0;
}

button {
    background-color: #060ab2;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button-container{
  text-align: center;
}

.button-container button{
  display: inline-block;
  margin: 0 5px;
}


button:hover {
    background-color: #2980b9;
}

/* Estilos do jogo de memória */
.memory-game {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    grid-gap: 10px;
    margin-top: 20px;
}

.memory-card {
    width: 100px;
    height: 100px;
    position: relative;
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
    cursor: pointer;
    box-shadow: 1px 1px 1px rgba(0,0,0,.3);
}

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

.memory-card:active {
  transform: scale(0.97);
  transition: transform .2s;
}


.front-face,
.back-face {
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 10px;
    backface-visibility: hidden;
}

.front-face {
    transform: rotateY(180deg);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-face {
    background-color: #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos responsivos */
@media (max-width: 600px) {
    .memory-game {
        grid-template-columns: repeat(3, 80px);
    }

    .memory-card {
        width: 80px;
        height: 80px;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}