body {
    padding: 0;
    background-image: url("gfx/common/cinnamorollbg.jpg");
}

.cinnamoroll-container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.65);
}

.navigation {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.star-logo {
    width: 100px;
    height: 100px;
}

.content {
    color: white;
    text-shadow: 1px 1px 2px #d1ebf6;
    text-align: center;
    background-color: rgba(76, 180, 240, 0.75);
    padding-top: 60px;
    display: flex;
    flex-direction: column;
}

.logo {
    width: 400px;
    height: 400px;
}

.text-logo {
    margin: 0 auto;
    max-width: 1024px;
}

.date-logo {
    margin: 0 auto;
    max-width: 400px;
    margin-bottom: 40px;
}

.group-pic {
    margin: 0 auto;
    max-width: 1000px;
    width: 95%;
    padding: 30px;
}

.accordion-item span {
    color: #4cb4f0;
}

.accordion-header button {
    display: flex;
}

.rank {
    flex-grow: 0;
    margin-right: 15px;
}

.player {
    flex-grow: 1;
}

.avg {
    flex-grow: 0;
    margin-right: 15px;
}

.accordion-body {
    text-align: left;
}

.accordion-body div {
    padding: 20px;
    display: flex;
    background-color: rgba(255, 255, 255, 0.8);
}

.accordion-body div span {
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 1),
        0px 0px 8px rgba(0, 0, 0, 0.8),
        -1px -1px 2px rgba(0, 0, 0, 0.6);
    font-weight: bold;
}

.song-name {
    margin-right: 10px;
    flex-grow: 1;
}

.difficulty {
    flex-grow: 0;
}

.difficulty-icon {
    max-width: 24px;
    max-height: 20px;
    line-height: var(--bs-body-line-height);
    vertical-align: text-top;
    margin-left: 5px;
}

.song-score {
    margin-left: 10px;
    flex-grow: 0;
    width: 50px;
    text-align: right;
}

footer {
    color: #4cb4f0;
    background-color: white;
    text-align: center;
    padding: 40px;
}

footer div {
    width: 400px;
    margin: 0 auto;
}

.cinnamoroll-footer {
    float: right;
    width: 200px;
}

.cinnamoroll-float {
    position: fixed;
    bottom: 150px;
    right: 10px;
    z-index: 5;
    width: 200px;
    height: 200px;
}

.leaderboard-banner {
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 40px;
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: center;
    max-width: 1000px;
}

.leaderboard-logo {
    display: inline;
    max-width: 600px;
}

@media screen and (max-width: 1024px) {
    .text-logo {
        max-width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .star-logo {
        display: none;
    }

    footer img {
        display: none;
    }

    footer div {
        width: 100%;
    }
}

/* Ranking styles for top 3 players */
.accordion .accordion-item:nth-child(1) .accordion-button {
    background: linear-gradient(to right, #f6d4e3, #fefbba, #d1ebf6, #b0daec, #4cb4f0) !important;
    font-size: 24px !important;
    font-weight: bold;
}

.accordion .accordion-item:nth-child(2) .accordion-button {
    background-color: rgba(246, 212, 227, 0.5) !important;
    font-size: 21px !important;
    font-weight: bold;
}

.accordion .accordion-item:nth-child(3) .accordion-button {
    background-color: rgba(254, 251, 186, 0.5) !important;
    font-size: 18px !important;
    font-weight: bold;
}

/* Sortable table headers */
table th.sortable-header {
    user-select: none;
    position: relative;
    color: #4cb4f0 !important;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 1),
        0px 0px 8px rgba(0, 0, 0, 0.8),
        -1px -1px 2px rgba(0, 0, 0, 0.6);
    font-weight: bold !important;
}

table th.sortable-header.sort-asc::after {
    content: ' ↑';
    color: #4cb4f0 !important;
    font-weight: bold;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 1),
        0px 0px 8px rgba(0, 0, 0, 0.8),
        -1px -1px 2px rgba(0, 0, 0, 0.6);
}

table th.sortable-header.sort-desc::after {
    content: ' ↓';
    color: #4cb4f0 !important;
    font-weight: bold;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 1),
        0px 0px 8px rgba(0, 0, 0, 0.8),
        -1px -1px 2px rgba(0, 0, 0, 0.6);
}

/* Player header without background styling */
table th.player-header-no-bg {
    font-weight: normal !important;
    text-shadow: none !important;
}

table th.player-header-no-bg.sort-asc::after {
    text-shadow: none !important;
}

table th.player-header-no-bg.sort-desc::after {
    text-shadow: none !important;
}

/* Table data cells styling */
table td {
    color: #4cb4f0 !important;
}

table td.player-name-cell {
    color: #4cb4f0 !important;
}

table td.score-cell {
    color: #4cb4f0 !important;
}

table td .score-value {
    color: #4cb4f0 !important;
}

/* Table wrapper responsive sizing */
.table-wrapper {
    width: 80%;
    margin: 0 auto;
    overflow-x: auto;
}

@media screen and (max-width: 1024px) {
    .table-wrapper {
        max-width: 100%;
        padding: 0 10px;
    }
}

@media screen and (max-width: 400px) {
    .logo {
        width: 100%;
        height: auto;
    }

    .date-logo {
        max-width: 100%;
    }

    .table-wrapper {
        padding: 0 5px;
    }
}

/* Table controls styling */
.table-controls {
    color: #4cb4f0 !important;
    text-align: center;
}

.table-controls h6 {
    color: #4cb4f0 !important;
}

.table-controls .form-check-label {
    color: #4cb4f0 !important;
}

.table-controls .form-check-container {
    justify-content: center;
}