@import "/css/alban.css";
@import "/css/barter.css";
@import "/css/ptj.css";

.hidden {
    display: none !important;
}

*, *::before, *::after {
    box-sizing: border-box;
}


html {
    font-size: clamp(14px, 2vw, 16px);
    color-scheme: dark;
}

html, body {
    margin: 0;
    padding: 0;

    width: 100vw;
    height: 100vh;

    width: 100dvw;
    height: 100dvh;

    /* width: 100%; */
    /* height: 100%; */

    overflow-x: hidden;
    overflow-y: hidden;


    /* overflow: auto; */

    scrollbar-color: #ffcc00 #151515;

    -webkit-user-drag: none;
    user-select: text;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


.loading-screen {
    font-size: 10rem;
    font-style: italic;

    width: 100vw;
    height: 100vh;

    width: 100dvw;
    height: 100dvh;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #ffffff;
    opacity: 0.02;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1e1e1e;
    color: #ffffff;
    align-items: center;
    padding-top: 0;
    margin: 0;

    display: flex;
    flex-direction: column;

    --default-padding-top: 16px;
    --default-padding-bottom: 64px;
}

#top-bar {
    width: 100%;
    background-color: rgb(21,21,21);

    display: flex;
    white-space: nowrap;
    --underline-h: 2px;

    flex-shrink: 0;
    z-index: 100;

    position: sticky;
    top: 0;

    nav {
        display: flex;

        width: 100%;
        height: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: auto;
        scrollbar-width: none;


        user-select: none;
        -webkit-user-select: none;
    }

    .arrow {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40px;
        display: flex;
        align-items: center;
        font-weight: bold;
        color: #ffffff;
        font-size: 1.5rem;
        z-index: 10;

        pointer-events: none;

        transition: opacity 0.2s ease;

        /* transform: translateY(calc(-1 * var(--underline-h))); */

        opacity: 0;
        &.show {
            opacity: 1;
        }
        &.left {
            left: 0;
            justify-content: flex-start;
            padding-left: 5px;
            background: linear-gradient(to left, transparent, #1a1a1a 80%);
        }
        &.right {
            right: 0;
            justify-content: flex-end;
            padding-right: 5px;
            background: linear-gradient(to right, transparent, #1a1a1a 80%);
        }
    }
}


main {
    width: 100%;
    /* height: 100%; */
    text-align: center;
    display: flex;
    flex-direction: column;

    flex: 1;
    min-height: 0;
}

.tab-content {
    scrollbar-gutter: stable;
    display: none;
    /* &.active { */
    /*     display: contents; */
    /* } */


    flex: 1;
    min-height: 0;
    width: 100%; 
    height: 100%; 
}

#tab-timer.active {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;

    padding-top: var(--default-padding-top);
    padding-bottom: var(--default-padding-bottom);

    overflow-y: auto;
    overscroll-behavior-y: auto;
}
#tab-ptj.active {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;

    padding-top: var(--default-padding-top);
    padding-bottom: var(--default-padding-bottom);

    overflow-y: auto;
    overscroll-behavior-y: auto;
}
#tab-alban.active {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;

    padding-top: var(--default-padding-top);
    padding-bottom: var(--default-padding-bottom);

    overflow-y: auto;
    overscroll-behavior-y: auto;
}
#tab-home.active {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;

    padding-top: var(--default-padding-top);
    padding-bottom: var(--default-padding-bottom);

    overflow-y: auto;
    overscroll-behavior-y: auto;
}
#tab-news.active {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;

    padding-top: var(--default-padding-top);
    padding-bottom: var(--default-padding-bottom);

    overflow-y: auto;
    overscroll-behavior-y: auto;
}
#tab-tmp.active {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;

    padding-top: var(--default-padding-top);
    padding-bottom: var(--default-padding-bottom);

    overflow-y: auto;
    overscroll-behavior-y: auto;
}


wiki-link a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
    &:hover {
        text-decoration: underline dotted;
        text-underline-offset: 3px;
        opacity: 0.8;
    }
}



.section-title {
    color: #aaaaaa;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin: 0 0 20px 0;
    text-align: left;

    width: 90vw;
    max-width: 1000px;
}

.clocks-container {
    display: flex;
    justify-content: center;
    gap: 150px;
}

.clock-box {
    margin-bottom: 30px;
}

.clock-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffcc00;
    margin-bottom: 5px;
    font-weight: bold;
}
clock-render .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffcc00;
    margin-bottom: 5px;
    font-weight: bold;
}
clock-render .time {
    font-family: monospace;
    font-size: 2.8rem;
    margin: 0 0 5px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.clock-box h2 {
    font-family: monospace;
    font-size: 2.8rem;
    margin: 0 0 5px 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.clock-box p {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin: 0;
}

/* -------------------- */
.irl-events {
    display: flex;
    flex-direction: column;
    gap: 12px;

    width: 100%;
    max-width: 800px;

    padding-left: 8px;
    padding-right: 8px;
}

.irl-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: start;
    align-items: center;

    margin: 0 0px 40px 0px;
}

.pinned-separator {
    width: 80px;
    height: 2px;
    background-color: #333;
    margin: 25px auto;
    border-radius: 2px;
}

.pinned-container:empty,
.pinned-container:empty + .pinned-separator {
    display: none;
}





.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;

    .section-title {
        border-bottom: none;
        margin-bottom: 0;
    }
}
