* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    text-align: center;
    margin: 0;
    background: #f5f5f5;
    color: #111;
}

header {
    padding: 40px 20px 20px;
    position: relative;
}

header h1 {
    font-size: 52px;
    margin: 0 0 10px;
    font-weight: 800;
}

header p {
    font-size: 19px;
    color: #666;
    margin: 0;
}


/* Hamburger */

.menu-button {
    position: fixed;
    right: 25px;
    top: 25px;

    width: 50px;
    height: 50px;

    border: none;
    background: white;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    cursor: pointer;

    z-index: 1100;
}

.menu-button span {
    display: block;

    width: 24px;
    height: 3px;

    background: #111;

    border-radius: 2px;
}


/* Sidebar */

.sidebar {
    position: fixed;

    top: 0;
    right: -350px;

    width: 350px;
    height: 100vh;

    background: white;

    z-index: 1200;

    padding: 30px;

    text-align: left;

    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.15);

    transition: right 0.3s ease;

    overflow-y: auto;
}

.sidebar.open {
    right: 0;
}

.sidebar h2 {
    font-size: 28px;
    margin-top: 10px;
}

.close-button {
    position: absolute;

    right: 20px;
    top: 15px;

    border: none;
    background: none;

    font-size: 32px;

    cursor: pointer;
}

.menu-section {
    margin-top: 30px;
}

.menu-section h3 {
    font-size: 14px;

    text-transform: uppercase;

    color: #888;

    letter-spacing: 1px;
}

.menu-section button {
    width: 100%;

    padding: 12px;

    margin-bottom: 6px;

    border: none;
    border-radius: 8px;

    background: #f3f3f3;

    text-align: left;

    font-family: inherit;
    font-size: 15px;

    cursor: pointer;
}

.menu-section button:hover {
    background: #e5e5e5;
}


/* Overlay */

.overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.3);

    z-index: 1150;

    display: none;
}

.overlay.show {
    display: block;
}

/* Sidebar */

.sidebar {
    position: fixed;

    top: 0;
    right: -330px;

    width: 330px;
    height: 100vh;

    background: white;

    z-index: 1000;

    padding: 30px;

    text-align: left;

    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);

    transition: right 0.25s ease;

    overflow-y: auto;
}

.sidebar.open {
    right: 0;
}

.sidebar h2 {
    font-size: 28px;
    margin-top: 10px;
}

.close-button {
    position: absolute;
    right: 20px;
    top: 15px;

    border: none;
    background: none;

    font-size: 32px;

    cursor: pointer;
}

.menu-section {
    margin-top: 30px;
}

.menu-section h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 1px;
}

.menu-section button {
    width: 100%;

    padding: 12px;

    margin-bottom: 6px;

    border: none;
    border-radius: 8px;

    background: #f3f3f3;

    text-align: left;

    font-family: inherit;
    font-size: 15px;

    cursor: pointer;
}

.menu-section button:hover {
    background: #e5e5e5;
}


/* Overlay */

.overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.3);

    z-index: 900;

    display: none;
}

.overlay.show {
    display: block;
}


/* Matchup */

.matchup {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 45px;
    padding: 45px 20px 25px;
}

.club-container {
    width: 340px;
}

.club-card {
    width: 100%;
    min-height: 390px;

    padding: 35px 30px;

    background: white;

    border: 1px solid #e1e1e1;
    border-radius: 18px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;

    font-family: inherit;

    display: flex;
    flex-direction: column;
    align-items: center;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.club-card:hover {
    transform: translateY(-5px);
    border-color: #bbb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.club-card:active {
    transform: scale(0.98);
}

.club-picture {
    width: 150px;
    height: 150px;

    object-fit: contain;

    margin-bottom: 20px;
}

.club-card h2 {
    font-size: 25px;
    margin: 5px 0 12px;
    line-height: 1.2;
}

.club-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.vs {
    font-size: 26px;
    font-weight: 800;
    color: #888;

    background: white;

    width: 55px;
    height: 55px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);

    flex-shrink: 0;
}

.stats {
    margin-top: 14px;

    background: white;

    border-radius: 12px;

    padding: 12px 15px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.stats p {
    margin: 6px;
    color: #555;
    font-size: 14px;
}

#result {
    font-size: 20px;
    font-weight: 700;
    min-height: 30px;
}

#result {
    font-size: 20px;
    font-weight: 700;
}


/* Pages */

.page-section {
    max-width: 900px;

    margin: 20px auto;

    padding: 20px;
}

.hidden {
    display: none;
}

.back-button {
    border: none;

    background: white;

    padding: 10px 15px;

    border-radius: 8px;

    cursor: pointer;

    font-family: inherit;
}


/* Rankings */

#rankings-title {
    font-size: 36px;

    margin-bottom: 25px;
}

.ranking-item {
    display: flex;

    align-items: center;

    background: white;

    margin: 10px 0;

    padding: 15px 20px;

    border-radius: 12px;

    text-align: left;
}

.ranking-number {
    width: 45px;

    font-size: 22px;

    font-weight: 800;
}

.ranking-picture {
    width: 55px;
    height: 55px;

    object-fit: contain;

    margin-right: 15px;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-size: 18px;

    font-weight: 700;
}

.ranking-stats {
    color: #777;

    font-size: 13px;

    margin-top: 4px;
}


/* About */

.about-card {
    background: white;

    padding: 30px;

    border-radius: 15px;

    text-align: left;

    line-height: 1.6;
}


/* Mobile */

@media (max-width: 750px) {

    header h1 {
        font-size: 40px;
    }

    .matchup {
        flex-direction: column;
        align-items: center;
    }

    .vs {
        margin: 0;
    }

    .club-container {
        width: 90%;
        max-width: 350px;
    }

    .sidebar {
        width: 85%;
    }

}