* {
    box-sizing: border-box;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
    font-size-adjust: none;
}

:root {
    --color-background: #2c318d;
    --color-light: #005baa;
    --color-background-district: #007caa;
    --color-district-light: #3aa3d2;
    --color-background-personal: #007e72;
    --color-personal-light: #1b948f;
    --color-background-team: #532e8e;
    --color-team-light: #7e3e95;
    --color-background-membership: #2c318d;
    --color-1: #43c7f5;
    --color-2: #f15c72;
    --color-3: #f9a61a;
    --color-4: #0eb049;
}

@font-face {
    font-family: MFinance;
    src: url(../fonts/MFinance-HK-Bold.ttf) format('truetype');
}

@font-face {
    font-family: MSungGold;
    src: url(../fonts/MSungGold-HK-Black.ttf) format('truetype');
}

@font-face {
    font-family: MElleHK;
    src: url(../fonts/MElle-Medium-HKSCS-U.TTF) format('truetype');
}

@font-face {
    font-family: myriad;
    src: url(../fonts/MyriadPro-Regular.otf) format('opentype');
}

body {
    font-family: MElleHK, MFinance, MSungGold, 'Noto Serif TC', serif;
    background: var(--color-background);
    color: #ecf0f1;
    line-height: auto;
    margin: 1em;
    margin-top: 2em;
}

@media only screen and (max-width: 800px) {
    body {
        margin: 8px;
        margin-top: 16px;
    }
}

.wrapper {
    width: 100%;
    margin: 0 auto;
    /* margin-left: auto; */
    /* padding: min(1rem, 1vw); */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    scrollbar-width: none;
    /* Firefox */
}

.wrapper::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.banner {
    /* width: 80% */
    width: 100%
}

@media only screen and (max-width: 800px) {
    .wrapper .banner {
        width: 100%
    }
}


.tabs {
    position: relative;
    margin: 1vw 0;
    /* background: #1abc9c; */
}

.tabs::before,
.tabs::after {
    content: "";
    display: table;
}

.tabs::after {
    clear: both;
}

.tab {
    float: left;
}

.tab-switch {
    display: none;
}

.tab-label {
    font-size: clamp(12px, 3vw, 1.8rem);
    position: relative;
    display: block;
    line-height: 1rem;
    /* padding: 0 0.618em; */
    color: #fff;
    cursor: pointer;
    top: 0;
    /* transition: all 0.25s; */
    padding: clamp(0rem, 1.5vw, 2rem) 0 calc(clamp(0rem, 1vw, 1.5rem) + 3px) 0;
    text-align: center;
    font-family: MFinance;
    border-radius: 0.5em 0.5em 0 0;
    width: clamp(68px, 16vw, 11rem);
}

@media only screen and (max-width: 800px) {

    /* .tab-label {
        line-height: 1.2rem;
        font-size: 1.2rem;
    }
    .tab .tab-content {
        top: calc(clamp(0rem, 3vw, 3rem) + 1.2rem - 4px);
    } */
}

.tab-label:hover {
    top: -3px;
    transition: top 0.25s;
}

.tab-content {
    height: auto;
    position: absolute;
    z-index: 1;
    top: calc(clamp(0rem, 2.5vw, 3.5rem) + 1rem - 3px + 3px);
    left: 0;
    color: #ffffff;
    opacity: 0;
    transition: all 0.35s;
    width: 100%;
}

.entry-list {
    border: clamp(3px, 1vw, 6px);
    border-style: solid;
    padding: 0;
}
.entry-list.member {
    border-color: #43c9f3;
}

.entry-list.district{
    border: none;
    padding-top: 2vw;
}
.entry-list.team {
    border: none;
}

.tab-switch:checked+.tab-label {
    /* color: #ffffff; */
    border-bottom: 0;
    /* border-right: 0.125rem solid #fff; */
    transition: all 0.35s;
    z-index: 1;
    top: 0;
}

.tab-0 label {
    background: var(--color-1);
}

.tab-0 .entry-list {
    border-color: var(--color-1);
}

.tab-1 label {
    background: var(--color-2);
}

.tab-1 .entry-list {
    border-color: var(--color-2);
}

.tab-2 label {
    background: var(--color-3);
}

.tab-2 .entry-list {
    border-color: var(--color-3);
}

.tab-3 label {
    background: var(--color-4);
}

.tab-3 .entry-list {
    border-color: var(--color-4);
}

.tab-switch:checked+label+.tab-content {
    z-index: 2;
    opacity: 1;
    transition: all 0.35s;
}

.entry {
    width: auto;
    padding: 1vw 2vw;
    font-size: clamp(12px, 2.5vw, 1.8rem);
    display: grid;
    grid-template-columns: max(5vw, 20px) auto max(13vw, 50px);
    align-items: center;
}

.entry+.entry {
    border-width: 1px 0 0 0;
    border-color: white;
    border-style: solid;
}

.entry:nth-child(even) {
    background-color: var(--color-light);
}


.entry-list.district .entry{
    grid-template-columns: max(7vw, 20px) auto max(16vw, 50px);
    margin-bottom: -2px;
    font-size: clamp(12px, 3.5vw, 1.8rem);
}
.entry-list.team .entry {
    grid-template-columns: max(5vw, 20px) auto max(16vw, 50px);
    margin-bottom: -2px;
}

.entry-list.member .entry {
    grid-template-columns: max(8vw, 27px) auto max(16.5vw, 56px);
}


@media only screen and (max-width: 800px) {

    .entry-list.district .entry {
        font-size: 4vw;
        grid-template-columns: max(5vw, 30px) auto max(25vw, 22px);
        padding: 3vw 2vw;
        border-width: 1px;
        margin-bottom: -1px;
    }

    .entry-list.team .entry {
        font-size: 12px;
        grid-template-columns: 2em auto 6em;
        padding: 1.7vw 1vw;
        border-width: 1px;
        margin-bottom: -1px;
    }

    .entry-list .entry {
        padding: 1vw 2vw;
        grid-template-columns: max(5vw, 31px) auto max(13vw, 75px);
        font-size: 3vw;
    }
}

.district .entry{
    padding: 2vw;
    border: solid;
    margin-bottom: 1vw;
    border-width: 2px;
}
.team .entry {
    padding: 1vw;
    border: solid;
    margin-bottom: 1vw;
    border-width: 2px;
}


.district .entry:nth-child(even) {
    background-color: var(--color-district-light);
}

.team .entry:nth-child(even) {
    background-color: var(--color-team-light);
}

.entry.yellow {
    color: #ffed0c;
}

.district .entry.yellow,
.team .entry.yellow {
    border-color: #ffed0c;
    z-index: 10;
    position: relative;
}
.personal .entry:nth-child(even) {
    background-color: var(--color-personal-light);
}

.entry-distance {
    font-family: myriad;
    text-align: right;
    text-align: center;
}
.team .entry-distance{
    align-self: flex-end;
}

.update-time {
    margin-top: 10px;
    text-align: right;
    font-size: 12px;
}
.update-time.center {
    text-align: center;
}

.warm-up {
    text-align: center;
    font-size: 4vw;
    margin-top: max(10px, calc(30vh - 90px));
}