* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
}

header {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: rgb(245, 241, 241);
    padding: 1rem 0;
}

nav {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#leaderboard {
    font-size: 1.5rem;
    cursor: pointer;
}

.leaderboard-active {
    position: relative;
}

.board {
    position: absolute;
    background-color: antiquewhite;
    height: 80vh;
    top: 10vh;
    width: 90%;
    max-width: 700px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    padding: .5em;
    gap: 1em;
}

.users-b {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .5em;
}

.user-b {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding: 1em .75em;
    border-radius: 10px;
    background-color: #f0f0f0;
}

.l-name {
    font-weight: 500;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 12px;
}

.l-balance {
    font-weight: 700;
    font-family: 'Times New Roman', Times, serif;
}

#exit-board {
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.leaderboard-active #exit-board {
    display: block;
    padding: .5em;
    border-radius: 50%;
    border: 1px solid #000000;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2em;
    margin: 2em 0;
}

.balance-cont p {
    font-size: 2rem;
}

.wheel {
    position: relative;
    height: auto;
}

.wheel img {
    position: absolute;
    height: 70px;
    top: 0;
    left: 39%;
}

#myCanvas {
    display: block;
    width: auto;
    height: auto;
}

@keyframes rotate {
    100% {
        transform: translate(360deg)
    }
}

.spin-btn {
    color: #000000;
    background-color: rgb(245, 241, 241);
    padding: .75rem 3.5rem;
    border: 1px solid #000000;
    border-radius: .5em;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 500;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#box {
    display: none;
    position: absolute;
    height: 60vh;
    width: 90%;
    background-color: #FFFFFF;
    bottom: 10vh;
    flex-direction: column;
    gap: 2em;
    justify-content: center;
    align-items: center;
    border: 1px solid greenyellow;
    border-radius: 10px;
}

#coin-bag {
    height: 100px;
}

#box p {
    font-size: 1.5rem;
}

#box span {
    font-size: 3rem;
    font-weight: bold;
    padding-left: .2em;
}

.close {
    text-decoration: none;
    color: #000000;
    font-size: 1rem;
    background-color: greenyellow;
    padding: 1em;
    width: 80%;
    text-align: center;
    border-radius: 10px;
}

footer {
    background-color: rgb(245, 241, 241);
    width: 100%;
    height: 10vh;
    display: flex;
    align-items: center;
}

.user {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-left: 2em;
    width: 100%;
}

#profile {
    font-size: 2rem;
}

input {
    outline: none;
    border: 1px solid #000000;
    padding: .5em 1em;
    border-radius: .5rem;
}

@media (min-width: 500px) {

    .input-box,
    input {
        width: 80%;
        max-width: 600px;
    }
}