@font-face {
    font-family: "Headline";
    src: url("thirsty.woff2") format("woff2");
}

@font-face {
    font-family: "Text";
    src: url("Noto-Sans-regular.woff2") format("woff2");
}

@view-transition {
    navigation: auto;
}

:root {
    --c1: #ffdcaf;
    --c2: rgba(255, 122, 122, 1);
    --c3: rgb(110, 255, 250);
    --gradient1: linear-gradient(to right in oklab, #ff6a97 0%, #f9bc37 100%);
    box-sizing: border-box;
    color-scheme: dark;
}

* {
    font-family: "Text", "system-ui", "Segoe UI", Helvetica, sans-serif;
    font-size: 15px;
}

body {
    /*! margin: 10px; */
    margin: 0;
    width: 100vw;
    min-height: 100vh;
    background: #002238;
    color: var(--c1);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url("palme.svg");
    background-size: 500px;
    background-repeat: repeat-x;
    background-position: bottom left;
    pointer-events: none;
}

#outer {
    box-sizing: border-box;
    padding: 10px;
    width: 100%;
    max-width: 800px;
    position: relative;
}

h1 {
    font-family: Headline;
    margin: 0 auto 10px auto;
    padding: 0 10px;
    color: var(--c3);
}

h2 {
    font-family: Headline;
    font-size: 1.3em;
    margin: 10px auto;
    color: var(--c3);
}

h2:has(~ .timetable) {
    &::after {
        display: block;
        font-family: Text;
        font-size: 1rem;
        margin-top: 0.5rem;
        color: var(--c1);
        content: "All times are in Central European Daylight Saving Time (+2:00 UTC).";
    }
}

h3 {
    font-family: Headline;
    font-size: 1.2em;
    margin: 0.5em auto;
    color: var(--c3);
}

#top {
    display: flex;
}

#header {
    width: fit-content;
    font-family: Headline;
    font-size: 2rem;
    background: var(--gradient1);
    background-clip: text;
    color: transparent;
    line-height: 95%;
}

#logo {
    margin-left: auto;
    background-image: url('apocalypso-logo-4-color.svg');
    background-position: top right;
    background-repeat: no-repeat;
    flex: 0 0 100px;
}

#menu {
    padding: 0 0px;

    & ul {
        margin: 0px auto;
        padding: 0;

        display: flex;
        gap: 1em;
        flex-wrap: wrap;
        row-gap: 0;

        & li {
            display: inline-block;
            padding: 5px 0px 5px 0px;

            & hr {
                display: none;
            }
        }
    }
}

a {
    color: var(--c2);
    text-decoration: none;

    &:hover {
        color: #e0ffff;
    }
}

b {
    font-weight: bold;
}

#content {
    border-top: 3px solid #54cdcd26;
    border-bottom: 3px solid #54cdcd26;

    padding: 0 0 10px 0;
}

#news {
    & dd {
        margin-inline-start: 1em;
        margin-bottom: 1em;
        white-space: pre-line;
    }

    & dt {
        font-weight: bold;
        margin-bottom: 0.2em;
    }
}

.timetable {
    width: 100%;

    & thead tr {}

    & .timetabletime {
        text-align: center;
        width: 3em;
        font-variant-numeric: tabular-nums;
    }

    & .timetableevent {
        text-align: left;
        display: flex;
        align-items: center;

        & .timetable_eventtype {
            display: inline-block;
            font-weight: bold;
            flex: 0 0 6em;
        }

        & .colon {
            display: none;
        }
    }

    & .timetable_eventtype_compo {
        color: #ffb700;
    }

    & .timetable_eventtype_seminar {
        color: #ff74d1;
    }

    & .timetable_eventtype_deadline {
        color: #ff001e;
    }

    & .timetable_eventtype_mainevent {
        color: #00ea85;
    }

    & .timetable_eventtype_event {
        color: #00ea85;
    }

    & .timetable_eventtype_demoshow {
        color: #ffb700;
    }

    & .timetable_eventtype_liveact {
        color: #00ea85;
    }

    & .timetable_eventtype_djset {
        color: #00ea85;
    }
}

#visitors {
    border-spacing: 0.5em 0;

    & td:last-child {
        overflow-wrap: anywhere;
    }
}

input[type="text"],
input[type="password"],
textarea,
select {
    padding: 5px 8px;
    width: 400px;
    max-width: 90%;
    background-color: #081020;
    color: #fed;
    border: 1px solid #54cdcd26;
    border-radius: 1em;
    font-size: 95%;
}

input[type="submit"] {
    min-width: 120px;
    height: 2em;
    padding: 2px;
    margin-top: 10px;
    background: #ff4486;
    color: #000;
    font-weight: bold;
    border: 0;
    border-radius: 1em;
}


textarea {
    min-height: 150px;
}

label {
    margin: 5px 0px;
    display: block;
}

#footer {
    padding: 0 10px;
    opacity: 0.5;

    & small {
        display: flex;
        align-items: baseline;
        gap: 0.5em;
        margin: 0.5em auto;
        font-size: 0.8em;
        color: #ccc;
    }
}

.entrylist {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: stretch;
}

.entry {
    float: left;
    min-height: 270px;
    width: 320px;
    margin-bottom: 10px;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 0.5em;
    word-break: break-word;

    & .title {
        margin-bottom: auto;
    }

    & .vote select {
        width: 100%;
        max-width: none;
    }

    & .compo {
        font-size: 0.9em;
        color: var(--c3);
    }

    & .entrystatus {
        background: #444;
        color: #ccc;
        display: inline-block;
        padding: 2px 5px;
        border-radius: 1em;
        font-size: 80%;

        &.entrystatus_qualified {
            background: #050;
            color: white;
        }

        &.entrystatus_notqualified,
        &.entrystatus_disqualified {
            background: #800;
            color: white;
        }
    }
}

#livevoteContainer {
    & h3 {
        font-family: Text;
        margin: 0.5em auto;
        color: var(--c1);
    }

    & .votes {
        list-style: none;
        padding: 0 0 0 20px;


        & .vote {
            display: inline-block;
            box-sizing: border-box;
            width: 2em;
            height: 2em;
            padding: 5px;
            text-align: center;
            margin: 3px;
            background: #383040;
            cursor: pointer;
            border-radius: 1em;
            color: #c597c6;
            font-size: 120%;
        }

        & .vote.selected {
            background: #ff4486;
            color: #000;
            font-weight: bold;
        }

        & .vote.loading {
            animation-duration: 0.5s;
            animation-name: blink;
            animation-iteration-count: infinite;
            animation-timing-function: ease;
        }

        & .vote:nth-child(1) {
            background: #FF3F0140;
            color: #FF3F01;
        }

        & .vote.selected:nth-child(1) {
            background: #FF3F01;
            color: #ffffff;
        }

        & .vote:nth-child(2) {
            background: #FD951C40;
            color: #FD951C;
        }

        & .vote.selected:nth-child(2) {
            background: #FD951C;
            color: #000;
        }

        & .vote:nth-child(3) {
            background: #FAD62F40;
            color: #FAD62F;
        }

        & .vote.selected:nth-child(3) {
            background: #FAD62F;
            color: #000;
        }

        & .vote:nth-child(4) {
            background: #DDFF4E40;
            color: #DDFF4E;
        }

        & .vote.selected:nth-child(4) {
            background: #DDFF4E;
            color: #000;
        }

        & .vote:nth-child(5) {
            background: #86FE8440;
            color: #86FE84;
        }

        & .vote.selected:nth-child(5) {
            background: #86FE84;
            color: #000;
        }

        & .vote:nth-child(6) {
            background: #08FED740;
            color: #08FED7;
        }

        & .vote.selected:nth-child(6) {
            background: #08FED7;
            color: #000;
        }

    }

    & #compoEntries {
        list-style: none;
        padding-left: 0px;

        & h3 {
            margin: 30px 0px 10px;
            word-break: break-word;
        }
    }
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

#votesubmit,
#votingform h3,
#footer {
    clear: both;
}

#visitors td:nth-child(2) {}

.success {
    padding: 0.5em;
    background: #004430;
    border-radius: 1em;
}

.failure,
.error {
    padding: 0.5em;
    background: #803010;
    border-radius: 1em;
}

#profile {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

#entryform {
    & small {
        display: block;
        font-size: 0.9em;
        color: #ccc;
    }

    & .fileselected td:nth-child(1) {
        font-weight: bold;
        word-break: break-all;
    }

    & .fileselected td:nth-child(2) {
        padding-left: 10px;
    }

    & .fileunselected td:nth-child(1) {
        word-break: break-all;
    }

    & .fileunselected td:nth-child(2) {
        padding-left: 10px;
        display: flex;
        gap: 10px;
    }

    & .truncation-warning-warn {
        outline: 2px solid #ffff40;
    }

    & .truncation-warning-max {
        outline: 2px solid #ff8040;
    }

    & .truncation-warning-text {
        padding: 0.5em;
        background: #804020;
        border-radius: 1em;
    }


    display: flex;
    flex-direction: column;
    gap: 0.5em;
}
