body,
h1,
h2,
p,
footer,
header {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('images/background.gif');
    background-size: 150px 150px;
    background-repeat: repeat;
}

header {
    text-align: center;
    color: white;
    padding: 20px 0;
    width: 100%;
}

header img {
    width: 80%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

nav {
    text-align: center;
    padding: 10px 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

nav a {
    text-decoration: none;
    color: white;
    margin: 0 15px;
    padding: 10px 20px;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

nav a:hover {
    background-color: #444;
}

.content {
    flex: 1;
    text-align: center;
    padding: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    margin: 20px auto;
}

footer {
    text-align: center;
    margin-top: auto;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-buttons {
    margin-bottom: 10px;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

footer a:hover {
    background-color: #444;
}

#round-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 60vh;
    text-align: center;
}

.character-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
}

.character {
    flex: 0 0 45%;
    max-width: 180px;
    min-width: 144px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.character img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Button */
button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    width: 200px;
}

button:hover {
    background-color: #444;
}

#progress-bar-container {
    width: 30%;
    height: 20px;
    background-color: #ddd;
    border-radius: 10px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#progress-bar {
    height: 100%;
    width: 0%;
    background-color: #4caf50;
    transition: width 0.3s ease-in-out;
}

#progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #333;
}

.hidden {
    display: none;
}

#result h1 {
    text-align: center;
    width: 100%;
}

#loading-message h1 {
    text-align: center;
    width: 100%;
}

#result.visible {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: auto;
    width: 100%;
    margin-top: 50px;
}

#result.visible {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: auto;
    width: 100%;
    margin-top: 50px;
}

#leaderboard {
    list-style: none;
    padding: 20px;
    margin-top: 20px;
    width: 50%;
    text-align: left;
    margin: 20px auto;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#leaderboard li {
    margin: 5px 0;
    padding: 10px;
    font-size: 18px;
    background-color: #000000;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

#leaderboard li:hover {
    background-color: rgb(0, 0, 0);
}

.small-text {
    font-size: 0.8em;
    color: #aaa;
}

.prints-list {
  max-height: 150px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px;
}

@media (max-width: 768px) {
    .character {
        flex: 0 0 45%;
    }

    .character-container {
        gap: 5%;
    }

    button {
        width: 150px;
    }

    #leaderboard {
        width: 80%;
    }

    nav {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .character {
        flex: 0 0 100%;
    }

    nav a {
        margin: 5px 10px;
        font-size: 14px;
    }
}