body {
    background-color: lightslategray;
    color: white;

}
h1 {
    text-align: center;
    font-weight: 700;
    font-size: 50px;
    margin-bottom: 0;
}
h2{
    margin-top: 70px;
    text-align: center;
    font-weight: 300;
    color: #ffbc80;

}

.actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.actions button {
    padding: 8px 16px;
    font-size: 30px;
    border-radius: 10px;
    background-color: #27ae60;
    color: white;
}
/*actions -> Restart Button*/

.choice button {
    border-radius: 10px;
    background-color: white;
    margin-left: 0.5%;
    margin-right: 0.5%;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;

}


.level {
    display: flex;
    justify-content: center;
    padding: 15px;
    font-size: 26px;

}
.theme {
    display: flex;
    justify-content: center;
    padding: 15px;
    font-size: 26px;

}

.player {
    display: flex;
    justify-content: center;
    padding: 15px;
    font-size: 26px;

}

.cards-container{
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-container {
    display: grid;
    justify-content: center;
    align-items: center;
    justify-items: center;
    grid-gap: 16px;
    grid-template-columns: repeat(6, 140px);
    grid-template-rows: repeat(2, calc(140px / 2 * 3));

}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For screens between 600px and 900px */
@media (min-width: 600px) and (max-width: 900px) {
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* For screens larger than 900px */
@media (min-width: 900px) {
    .grid-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

.container {
    width: 100%;
    align-items: center;
    display: grid;
    justify-content: center;
}

.card {
    height: calc(140px / 2 * 3);
    width: 140px;
    border-radius: 10px;
    background-color: white;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s ease-in-out;
}
.front-image {
    width: 60px;
    height: 60px;
}

.card.flipped {
    transform: rotateY(180deg);
}

.front, .back {
    backface-visibility: hidden;
    position: absolute;
    border-radius: 10px;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.card .front {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card .back {
    background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='25' height='25' patternTransform='scale(3) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='hsla(21,42.5%,64.5%,1)'/><path d='M25 30a5 5 0 110-10 5 5 0 010 10zm0-25a5 5 0 110-10 5 5 0 010 10zM0 30a5 5 0 110-10 5 5 0 010 10zM0 5A5 5 0 110-5 5 5 0 010 5zm12.5 12.5a5 5 0 110-10 5 5 0 010 10z'  stroke-width='1' stroke='none' fill='hsla(24,43.3%,76.5%,1)'/><path d='M0 15a2.5 2.5 0 110-5 2.5 2.5 0 010 5zm25 0a2.5 2.5 0 110-5 2.5 2.5 0 010 5zM12.5 2.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5zm0 25a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'  stroke-width='1' stroke='none' fill='hsla(26,100%,95.1%,1)'/></pattern></defs><rect width='800%' height='800%' transform='translate(0,0)' fill='url(%23a)'/></svg>");
    background-position: center center;
    background-size: cover;
    backface-visibility: hidden;
}

.card .front {
    transform: rotateY(180deg);
}

table {
    width: 900px;
    max-width: 1000px;
    border-collapse: collapse;
    margin-top: 60px;
    font-size: 18px;
    margin-left: auto;
    margin-right: auto;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #945f5f;
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

.gameInformation {
    display: flex;
    justify-content: space-between;
    padding-left: 50px;
    padding-right: 50px;

}

.Player1{
    font-size: 20px;
}

.Player2 {
    justify-content: flex-end;
    align-items: flex-end;
    font-size: 20px;
}

.timer-container {
    position: absolute;
    top: 50px;
    left: 50px;
}
.timer-text {
    display: inline-block;
    font-weight: bold;
    margin-right: 5px;
}
.timer {
    display: inline-block;
}
tr:nth-child(even) {
    background-color: #697682;
}
.hidden {
    visibility: hidden;
}

