body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100vh;
}

#container {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    column-gap: 0;
}

#container img {
    border: 1px solid black;
    box-sizing: border-box;
}

button {
    width: 100px;
    font-size: 1.2em;
}

.form input, 
.form select {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    box-sizing: border-box;
}

.buttons {
    display: flex;
    gap: 2rem;
}

input {
    padding: 0.7em;
}

.overlay {
    background-color: white;
    padding: 10em;
    border-radius: 5%;
    position: absolute;
    display: none;
}

.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

#leaderboard-ui {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    width: 250px;
    max-height: 80vh;
    overflow-y: auto;
}

@media screen and (max-width: 600px) {
    #leaderboard-ui {
        position: relative;
        top: 0;
        right: 0;
        width: 90%; 
        margin: 20px auto;
        box-shadow: none;
        border: 2px solid #eee;
    }
}

#leaderboard-ui h3 {
    margin: 0 0 10px 0;
    color: #333;
    border-bottom: 2px solid #eee;
}

#scoreList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#scoreList li {
    padding: 5px 0;
    font-size: 0.9em;
    border-bottom: 1px solid #f9f9f9;
}
