:root {
    --bg-active: #ffffffee;
    --table: #e8f3ff;
}

[data-theme="dark"] {
    --table: #2d2e36;
    --bg-active: #212128de;
}
.scroll::-webkit-scrollbar {
  height: 2px;
  width: 4px;
}
.scroll::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: var(--background-color);
}



/**/
.select {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width:320px;
    position: relative;
/*    margin: 10px auto;*/
    
}

    .select select {
        -webkit-appearance: none;
        -moz-appearance: none;
        -ms-appearance: none;
        appearance: none;
        outline: 0;
        box-shadow: none;
        text-align: center;
        border: 1px solid var(--border-color) !important;
        border-radius: 6px;
        margin-top: 6px;
        background-image: none;
        background: var(--bg-default);
        color: var(--black-color);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 7px 21px;
        cursor: pointer;
        font-size: 1em;
    }

    .select::after {
        font-family: "Font Awesome 7 Pro";
        font-weight: 500;
        content: "\f078";
        position: absolute;
        top: 58%;
        left: 0px;
        color: gray;
        padding: 0 1em;
        cursor: pointer;
        pointer-events: none;
        transition: .25s all ease;
    }
/**/
.select2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px;
    margin:0 auto;
    position: relative;
}

    .select2 select {
        -webkit-appearance: none;
        -moz-appearance: none;
        -ms-appearance: none;
        appearance: none;
        outline: 0;
        box-shadow: none;
        text-align: center;
        border: 1px solid var(--border-color) !important;
        border-radius: 6px;
        background-image: none;
        background: var(--bg-default);
        color: var(--black-color);
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 7px 21px;
        cursor: pointer;
        font-size: 1em;
    }

    .select2::after {
        font-family: "Font Awesome 7 Pro";
        font-weight: 500;
        content: "\f078";
        position: absolute;
        top: 30%;
        left: -5px;
        color: gray;
        padding: 0 1em;
        cursor: pointer;
        pointer-events: none;
        transition: .25s all ease;
    }



@media (max-width:400px) {
    .select {
        width: 100%;
    }
    .select2{
        width: 150px;
    }
}

/**/
.winner-card {
    border-radius: 18px;
    padding: 20px;
    background-color: var(--bg-default);
    box-shadow:var(--shadow);
    border-top: 6px solid;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: 0.2s all linear;
}
.winner-card:hover{
    transform: translateY(-5px)
}
.winner-1 {
    border-color: #f5b301;
}

.winner-2 {
    border-color: #9ca3af;
}

.winner-3 {
    border-color: #cd7f32;
}

.winner-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black-color);
}

.winner-1 .winner-badge {
    background: #f5b301;
}

.winner-2 .winner-badge {
    background: #9ca3af;
}

.winner-3 .winner-badge {
    background: #cd7f32;
}
.winner-rank-big {
    font-size: 36px;
    line-height: 1;
}

.winner-rank-label {
    font-size: 14px;
    font-weight: 600;
}

.winner-medal-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.winner-medal-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.winner-name {
    font-size: 17px;
    font-weight: 700;
}

.winner-code {
    font-size: 15px;
}

.winner-meta {
    font-size: 14px;
    font-weight: 600;
}

.other-row {
    display: grid;
    grid-template-columns: 50px 1fr 1fr;
    gap: 12px;
    padding: 18px;
    align-items: center;
}

    .other-row:not(:last-child) {
        border-bottom: 1px solid var(--hover);
    }

.other-rank {
    font-weight: 700;
    text-align: center;
}

.other-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.other-meta {
    text-align: left;
    font-weight: 600;
}

@media (max-width: 640px) {
    .other-row {
        grid-template-columns: 40px 1fr;
        grid-template-areas:
            "rank name"
            "rank meta";
    }

    .other-rank {
        grid-area: rank;
    }

    .other-main {
        grid-area: name;
    }

    .other-meta {
        grid-area: meta;
        text-align: right;
        font-size: 14px;
    }
}

/**/
.winner-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.winner-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.winner-people {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.winner-person {
    padding: 12px;
    border-radius: 12px;
/*    background: var(--bg-items);*/
    box-shadow:var(--shadow);
}

.winner-name {
    font-weight: 700;
    margin-bottom: 5px;
}

.winner-code {
    font-size: 0.85rem;
}

.winner-meta {
    font-size: 0.85rem;
    margin-top: 4px;
}