body {
    font-family: sans-serif;
    padding: 2rem;
    background-color: whitesmoke;
    display: grid;
    text-align: center;
    place-items: center;
    height: 100vh;
}

h1 {
    font-size: 36px;
}

input,
button {
    padding: 0.5rem;
    margin: 0.5rem;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}

.player-button {
    width: 40%;
    padding: 1rem;
    margin: 1rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 10px;
    color: white;
    border: none;
}

.blue {
    background-color: #3498db;
}

.green {
    background-color: #2ecc71;
}

.red {
    background-color: #cc2e2e;
}

.orange {
    background-color: #e68a28;
}

.leaderboard {
    margin-top: 15px;
    text-align: left;
    display: flex;
}

ul {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

ul li {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: white;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}

.animated-btn:active {
    transform: scale(0.95);
}

@keyframes clickBounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.animated-btn.clicked {
    animation: clickBounce 0.3s ease;
}

.player-button {
    color: white;
    border: none;
    padding: 1em 2em;
    font-size: 1em;
    margin: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.player-button:hover {
    transform: scale(1.05);
}

.animated-btn {
    animation: pop 0.3s ease;
    padding-inline: 2rem;
    padding-block: 0.7rem;
    border-radius: 15px;
}

@keyframes pop {
    0% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

.podium-1 {
    height: 390px;
}

.podium-2 {
    height: 315px;
}

.podium-3 {
    height: 250px;
}

.podium {
    height: 390px;
    width: 800px;
    display: flex;
    align-items: flex-end;
    margin: auto;
    justify-content: space-between;
}

.name-placement {
    height: 70px;
    width: 100%;
    background-color: #381272;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rest-of-info {
    background-color: #7552AB;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
}

.rest-of-info h3,
.rest-of-info h1 {
    margin: 0;
    margin-top: 10px;
}

.podium-ind {
    flex-direction: column;
    display: flex;
    width: 250px;
}

.medal-gap {
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.podium-1 .rest-of-info {
    height: 300px;
}

.podium-2 .rest-of-info {
    height: 225px;
}

.podium-3 .rest-of-info {
    height: 150px;
}

h1,
h2,
h3,
h4,
p,
sub {
    color: black;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* Progress Bar Styles */
.progress-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.progress-bar-wrapper {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: 30px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
}

.progress-text {
    text-align: center;
    font-size: 0.9em;
    color: white;
    opacity: 0.9;
}

/* Round input styles */
#roundsSuggestion {
    font-size: 0.85em;
    color: #ffd700;
    margin-top: 5px;
    margin-bottom: 10px;
}

input[type="number"] {
    border-radius: 5px;
    border: none;
    font-size: 16px;
}


@media (max-width: 768px) {
    .podium-ind {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .podium-ind {
        width: 100px;
    }

    .podium {
        width: 320px;
        height: 390px;
        gap: 5px;
    }

    .podium h1 {
        font-size: larger;
    }

    .podium h3 {
        font-size: medium;
    }
}