@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap');

* {
    padding: 0;
    margin: 0;
    transition: all .5s ease;
}

html {
    font-size: 62.5%;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    background: #555555;
    /* background: linear-gradient(45deg, rgba(75, 92, 78, 1) 50%, rgba(11, 161, 158, 1) 100%); */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    font-family: "Sora", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    padding:15px 0;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap:15px;
}
.header .headertitle h1 {
    margin-bottom:0;
}
.header .headertitle p{
    margin-bottom:0; 
    text-align: left;
}
.jogo-area {
    padding: 20px;
    background-color: #555555;
    border-radius: 10px;
    /* box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7); */
    color:#fff
}

.respostaItem {
    text-align: center;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #232523;
    color: white;
    margin-bottom:15px;
}

.title {
    text-align: center;
    margin-bottom: 20px;
}

p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem
}
.placar-area {
    flex:1;
}
.placar {
    display: flex;
    justify-content: space-between;
    background-color: goldenrod;
    margin: 15px 0;
    border-radius: 5px;
    overflow: hidden;
}

.placar .item {
    flex: 1;
    padding: 15px;

}

.placar .item h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-align: center;
    color: #fff;
    
}

.placar .item .qtds {
    font-size: 2.4rem;
    font-weight: bold;
    text-align: center;
    
}

.placar .item.acertos {
    background-color: green;
}

.placar .item.erros {
    background-color: red;
}

.historico {
    padding:15px;
    background-color:#212121;
    border-radius:5px;
    margin-bottom: 15px;
}
.historico h2 {
    margin-bottom:25px;
}
.tabuleiro {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
}

.tabuleiro .item {
    background-color: beige;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    position: relative;
}

.tabuleiro .item .back {
    position: absolute;
    inset: 0;
    background-color: #fff;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius:5px;

}

.tabuleiro .item:hover {
    background-color: bisque
}

.tabuleiro .item.match {
    cursor: default;
}

.tabuleiro .item.match .back {
    z-index: 2;
}

.actions {
    padding: 20px;
    text-align: center;
}
.descricao-item {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom:10px;
}
.descricao-item .n {
    font-size: 1.8rem;
    width: 15px;
}
.descricao-item .img {
    width: 40px;
    margin-right:5px;
}
.descricao-item .img img {
    width: 100%;
}
.descricao-item .descricao-texto {
    flex:1;
}
.descricao-item .descricao-texto h3 {
    font-size: 1.2rem;
}
.descricao-item .descricao-texto p {
    margin-bottom:0;
    text-align: left;
}
footer {
    font-size: 1.2rem;
    text-align: center;
}

button {
    cursor: pointer;
    border: none;
    padding: 20px 40px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
    background-color: black;
    color: white;
}

button:hover {
    background-color: beige;
    color: black;
}
@media (max-width: 860px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }
    .placar-area{
        width: 100%;
    }
}
@media (max-width: 790px) {
    .tabuleiro {
        grid-template-columns: repeat(6, 1fr);
    }
    
}
@media (max-width: 562px) {
    .tabuleiro {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width:400px) {
    .tabuleiro .item img {
        width: 40px;
    }
}