@font-face {
    font-family: "Raleway";
    src: url("Raleway.woff2") format("woff2");
    font-variation-settings: "wght" 400;
}

* {
    font-family: Raleway, "system-ui", "Segoe UI", Helvetica, sans-serif;
}

body {
    margin: 0;
    background: #1a0b29;
    color: #f1d8b4;
}

h1 {
    max-width: 800px;
    margin: 10px auto;
    padding: 0 10px;
    font-variation-settings: "wght" 300;
}

h2 {
    font-variation-settings: "wght" 800;
    margin: 10px auto;
}

h2:has(~ .timetable) {
    &::after {
        display: blocK;
        font-size: 1rem;
        font-variation-settings: "wght" 400;
        margin-top: 0.5rem;
        content: "All times are in Central European Time (+1:00 UTC). Please note that demoparty timetables are not an exact science so this one is subject to change. But not much, hopefully.";
    }
}

h3 {
    margin: 0.5em auto;
    font-variation-settings: "wght" 500;
}

#menu {
    border-bottom: 1px solid #eee;
    padding: 0 10px;

    & ul {
        max-width: 800px;
        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: #c597c6;
    text-decoration: none;
    font-variation-settings: "wght" 600;

    &:hover {
        color: #f5c7f6;
    }
}

b {
    font-variation-settings: "wght" 700;
}

#content {
    max-width: 800px;
    margin: 10px auto;
    padding: 0 10px;
}

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

    & dt {
        font-variation-settings: "wght" 700;
        margin-bottom: 0.2em;
    }
}

.timetable {
    border-spacing: 1em 0.25em;

    & thead tr {
        font-variation-settings: "wght" 800;
    }

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

    & .timetableevent {
        text-align: left;

        & .timetable_eventtype {
            display: inline-block;
            width: 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: 1em 0.5em;

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

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

input[type="submit"] {
    min-width: 120px;
    height: 2.5em;
    padding: 2px;
    margin-top: 10px;
    background: #c597c6;
    color: #111;
    font-variation-settings: "wght" 700;
    border: 0;
    border-radius: 5px;
}

textarea {
    min-height: 150px;
}

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

#footer {
    border-top: 1px solid #eee;
    padding: 0 10px;
    & small {
        max-width: 800px;
        display: block;
        margin: 0.5em auto;
        font-size: 11px;
        color: #888;
    }
}

.entrylist {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.entry {
    float: left;
    height: 220px;
    width: 240px;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
    & .vote select {
        width: 200px;
        min-width: initial;
    }

    & .compo {
        font-size: 80%;
        opacity: 80%;
    }

    & .entrystatus {
        background: #444;
        color: #ccc;
        display: inline-block;
        padding: 2px 5px;
        border-radius: 5px;
        font-size: 80%;
        font-variation-settings: "wght" 800;

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

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

#livevoteContainer {
    & .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: 5px;
            color: #c597c6;
            font-variation-settings: "wght" 800;
            font-size: 120%;
        }

        & .vote.selected {
            background: #c597c6;
            color: white;
        }

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

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

        & h3 {
            margin: 30px 0px 10px;
        }
    }
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

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

#visitors td:nth-child(2) {
    font-variation-settings: "wght" 700;
}

.success {
    padding: 10px;
    background: #004430;
    border-radius: 10px;
}

.failure,
.error {
    padding: 10px;
    background: #803010;
    border-radius: 10px;
}
