body {
    font-family: 'Raleway', sans-serif;
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    background-color: rgba(34, 23, 23, 0.8);
}

h2 {
    font-size: 1rem;
    color: white;
}

h3 {
    font-size: 1rem;
    color: white;
}

input {
    width: 150px;
    height: 30px;
    border: none;
    margin-right: 10px;
    border: 2px solid #203384;
}

button {
    height: 30px;
    padding: 0 20px;
    font-size: 10px;
    color: #fff;
    text-transform: uppercase;
    background-color: #203384;
    border: 1px solid #fff;
    border-radius: 24px;
}

.header {
    width: 100%;
    text-align: center;
    /* display: flex; */
    padding: 15px;
    height: 100px;
    background-color: black;
}

.title h2 {
    background-color: #203384;
    text-align: center;
    padding: 5px 0;
    margin: 0;
}

/* .gamescreen-buttons {
    display: flex;
    justify-content: space-between;
    padding: 10px;
} */

.screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.score-board {
    overflow: hidden;
}

.card {
    width: 75px;
    height: 100px;
    border-radius: 4px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 2s ease;
    transform: rotateY(0deg);
    /* box-shadow: 2px 2px 5px 3px #fff; */
}

.face {
    position: absolute;
    pointer-events: none;
    align-items: center;
    width: 75px;
    height: 100px;
    transform: rotateY(180deg);
    border-radius: 4px;
}

.back {
    position: absolute;
    pointer-events: none;
    width: 75px;
    height: 100px;
    align-items: center;
    background-image: url(../images/back_of_card.jpg);
    background-size: cover;
    background-position: center;
    backface-visibility: hidden;
    border-radius: 4px;
}

.toggleCard {
    transform: rotateY(180deg);
}

footer {
    height: 80px;
    background-color: #203384;
}

footer p {
    text-align: center;
    color: #fff;
    padding: 20px;
}

#splash {
    position: relative;
    background-image: url(../images/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

#gamescreen {
    position: relative;
    background-color: black;
}

#game-paused {
    position: relative;
    background-image: url(../images/pause_bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#game-over {
    position: relative;
}

.gameover-buttons,
.gamescreen-buttons {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
}

.pause-title {
    position: absolute;
    bottom: 1rem;
    text-align: center;
    left: 0;
    right: 0;
}

#turns {
    color: white;
}

#playersTurnCount {
    color: #203384;
}

#player-name {
    color: white;
    text-transform: uppercase;
    font-size: 1.5rem;
}

#gameboard {
    width: 100%;
    height: 550px;
    overflow: hidden;
}

#cardboard {
    display: grid;
    grid-template-columns: repeat(4, 75px);
    grid-template-rows: repeat(4, 100px);
    gap: 0.7rem;
    padding: 15px;
    justify-content: center;
}

#instructions {
    margin: 30px auto;
    width: 40%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 2px 2px 4px #fff;
}

#instructions:hover {
    background-color: #fff;
    color: #203384;
    box-shadow: 2px 2px 4px #203384;
}