body {
    font-family: "aktiv-grotesk", sans-serif;
    margin: 0;
    padding: 20px;
    background-color: whitesmoke;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.links-container {
    display: flex;
    justify-content: space-around;
    margin-top: 8px;
    /* background-color: rgb(130, 187, 236); */
}

.home-link, 
.page1-link,
.page2-link, 
.page4-link  {
    font-size: 18px;
    color: #202020;
    text-decoration: none;
}

.page3-link {
    font-size: 18px;
    font-weight: 600;
    color: #202020;
    /* color: #b2c6d8; */
    text-decoration: underline;
}

.home-link:hover, 
.page1-link:hover, 
.page2-link:hover, 
.page3-link:hover,
.page4-link:hover {
    color: blue;
}

.game-container {
    max-width: 800px;
    margin: 15px auto;
    text-align: center;
    margin-top: 60px;
}

/* h3 {
    color: #333;
    font-size: 25px;
    margin-bottom: 7px;
} */

.instructions {
    font-size: 16px;
    margin-bottom: 48px;
    color: #202020;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(5, 133px);
    grid-template-rows: repeat(4, 133px);
    gap: 13px;
    justify-content: center;
    margin-bottom: 30px;
}

.card {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    cursor: pointer;
    perspective: 1000px;
    position: relative;
    border: 2px solid black;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
    /* border-radius: 12px;
    border: 2px solid blue; */
}

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

.card-front {
    background: black;
}

.card-front:hover {
    background: blue;
}

.card-back {
    background: no-repeat center/cover;
    transform: rotateY(180deg);
} 

#restart-button {    
    padding: 30px 12px;
    color: black;
    cursor: pointer;
    font-size: 18px;
    border-radius: 1000px;
    border: 2px solid black;
}

#restart-button:hover {
    color: blue;
    border: 2px solid blue;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.game-info p {
    margin: 0;
    padding: 0;
    font-size: 18px;
}
