body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.page-header {
    text-align: center;
    padding: 25px 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    margin: 0;
    color: #333;
}

.main-layout {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    gap: 20px;
}

.main-content {
    flex: 1;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.container {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container + .container {
    margin-top: 20px;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

#match {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.game {
    text-align: center;
    width: 40%;
}

.game img {
    width: 100%;
    max-width: 185px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

#ranking table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#ranking th, #ranking td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 14px;
}

#ranking h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

#ranking tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

#ranking tbody tr:nth-child(even) {
    background-color: #fff;
}

.skip-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.skip-button {
    background-color: #6c757d;
    font-size: 12px;
    padding: 6px 12px;
}

.skip-button:hover {
    background-color: #5a6268;
}

.vote-hint {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.page-footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.page-footer a {
    color: #007bff;
    text-decoration: none;
}

.page-footer a:hover {
    text-decoration: underline;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .game {
        width: 45%;
    }
}
