* {
    box-sizing: border-box;
}

body {
    background-color: #dedbc1;
    color: #37402d;
    font-family: "Patrick Hand", cursive;
}

main {
    width: 1200px;
    height: 750px;
    margin: 0 auto;
    padding-top: 20px;
    position: relative;
}

/* HEADER */

header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

h1 {
    margin: 0;
    font-family: "Sniglet", sans-serif;
    font-size: 90px;
    font-weight: 400;
}

.leaf {
    font-size: 50px;
    color: #8e9873;
}

#instructions {
    margin: 10px 0 25px;
    text-align: center;
    font-size: 30px;
    color: #74775f;
}

/* PLAYER AREA */

#players {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 75px;
}

.player-card {
    width: 210px;
    height: 360px;
    background-color: #f4ead6;
    border: 3px solid #c7b995;
    border-radius: 22px;
    text-align: center;
    overflow: hidden;
    transition: all .3s;
}

.active {
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(124, 131, 100, .5);
    border-color: #7c8364;
}

.player-card h2 {
    margin: 0;
    padding: 12px;
    background-color: #aeb185;
    font-family: "Sniglet", sans-serif;
    font-size: 30px;
}

.player-card:last-child h2 {
    background-color: #deb29c;
}

.player-card img {
    margin-top: 20px;
}

.player-card p {
    margin: 10px auto 0;
    width: 160px;
    padding-top: 8px;
    border-top: 4px solid #d5c6a0;
    font-size: 28px;
}

.player-card strong {
    display: block;
    font-family: "Sniglet", sans-serif;
    font-size: 52px;
}

/* CENTER GAME AREA */

#game {
    width: 320px;
    min-height: 220px;
    text-align: center;
}

#gamecontrol {
    text-align: center;
    margin-top: 40px;
}

#gamecontrol h2 {
    margin-bottom: 15px;
    font-family: "Sniglet", sans-serif;
}

#game p {
    font-size: 24px;
    line-height: 1.3em;
    margin-bottom: 15px;
}

#game h2 {
    font-family: "Sniglet", sans-serif;
    font-size: 34px;
    line-height: 1.2em;
}

#game img {
    width: 90px;
    height: 90px;
    margin: 5px;
}

/* BUTTONS */

#actions {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: -90px;
}

button {
    padding: 15px 25px;
    border: 3px solid #7c8364;
    border-radius: 22px;
    background-color: #adb185;
    color: #37402d;
    font-family: "Sniglet", sans-serif;
    font-size: 24px;
    cursor: pointer;
    transition: all .3s;
}

button:hover {
    transform: translateY(-4px);
}

#pass {
    background-color: #d9aa96;
}

/* HIDDEN SCORE AREA */

#score {
    display: none;
}

/* FOOTER */

footer {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
}

footer a {
    color: #74775f;
    text-decoration: none;
    font-size: 20px;
}

footer a:hover {
    text-decoration: underline;
}

/* Sources stuff */ 
#sources {
    width: 700px;
    margin: 40px auto;
    font-size: 24px;
    line-height: 1.6em;
    text-align: center;
}

#sources h2 {
    font-family: "Sniglet", sans-serif;
    color: #7c8364;
}

#sources ul {
    list-style-position: inside;
    padding-left: 0;
}

#sources a {
    color: #74775f;
}

#sources a:hover {
    text-decoration: underline;
}