* {
    box-sizing: border-box;
}

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

main {
    width: 1200px;
    height: 750px;
    margin: 25px auto;
}

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;
}

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

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

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

.player-card:nth-of-type(3) h2 {
    background-color: #deb29c;
}

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

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

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

.active {
    transform: translateY(-8px);
    box-shadow: 0 8px 0 #c7b995;
}

#dice-area {
    display: flex;
    gap: 25px;
    padding: 25px;
}

#dice-area img {
    border-radius: 18px;
    transition: transform 0.3s ease;
}

#dice-area img:hover {
    transform: rotate(8deg) scale(1.05);
}

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

button {
    width: 220px;
    padding: 15px;
    border: 3px solid #7c8364;
    border-radius: 22px;
    background-color: #adb185;
    color: #37402d;
    font-family: "Sniglet", sans-serif;
    font-size: 28px;
    cursor: pointer;
}

#roll {
    background-color: #adb185;
}

#pass {
    background-color: #d9aa96;
}

button span {
    font-size: 24px;
}

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

#message {
    width: 480px;
    margin: 35px auto 0;
    border-top: 3px solid #d5c6a0;
    text-align: center;
}

#message p {
    margin-top: 12px;
    font-size: 26px;
}