:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --background-color: #ecf0f1;
    --text-color: #2c3e50;
    --card-background: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body.dark-mode {
    --primary-color: #3498db;
    --secondary-color: #27ae60;
    --background-color: #2c3e50;
    --text-color: #ecf0f1;
    --card-background: #34495e;
    --shadow-color: rgba(0, 0, 0, 0.4);
}
#theme-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column; /* Add this line */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 2rem 0; /* Add some padding for better spacing */
}

#game-container {
    width: 90%;
    max-width: 800px;
    text-align: center;
}

#disqus_thread {
    width: 90%;
    max-width: 800px;
    margin-top: 2rem;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

#round-info {
    margin-bottom: 2rem;
}

#round-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#progress-bar-container {
    width: 100%;
    background-color: #ddd;
    border-radius: 5px;
}

#progress-bar {
    width: 0%;
    height: 10px;
    background-color: var(--secondary-color);
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}

#match-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.competitor {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-color);
    cursor: pointer;
    padding: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 45%;
    max-width: 300px;
}

.competitor:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.competitor img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.competitor p {
    margin-top: 1rem;
    font-weight: bold;
}

.vs {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

#winner-container {
    text-align: center;
}

#winner-container.hidden {
    display: none;
}

#winner img {
    width: 50%;
    max-width: 300px;
    border-radius: 50%;
    margin: 1rem auto;
    box-shadow: 0 0 30px var(--secondary-color);
}

#play-again {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 2rem;
    transition: background-color 0.2s;
}

#play-again:hover {
    background-color: #2980b9;
}

@media (max-width: 600px) {
    #match-container {
        flex-direction: column;
    }

    .competitor {
        width: 80%;
    }

    .vs {
        display: none;
    }
}