@font-face {
    font-family: 'Exo';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/fonts/exo-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Exo';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/fonts/exo-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Kode Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/kode-mono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Kode Mono';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/fonts/kode-mono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Permanent Marker';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/permanent-marker-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary-font: "Exo";
    --secondary-font: "Permanent Marker";
    --monospace-font: "Kode Mono";

    --primary-tint-3: hsl(18deg 15% 17.5%);
    --primary-tint-2: hsl(18deg 15% 15%);
    --primary-tint-1: hsl(18deg 15% 12.5%);
    --primary: hsl(18deg 15% 10%);
    --primary-shade-1: hsl(18deg 15% 7.5%);
    --primary-shade-2: hsl(18deg 15% 5%);
    --primary-shade-3: hsl(18deg 15% 2.5%);

    --secondary-tint-3: hsl(198deg 15% 17.5%);
    --secondary-tint-2: hsl(198deg 15% 15%);
    --secondary-tint-1: hsl(198deg 15% 12.5%);
    --secondary: hsl(198deg 15% 10%);
    --secondary-shade-1: hsl(198deg 15% 7.5%);
    --secondary-shade-2: hsl(198deg 15% 5%);
    --secondary-shade-3: hsl(198deg 15% 2.5%);

    --monochrome-90: hsl(18deg 5% 90%);
    --monochrome-80: hsl(18deg 5% 80%);
    --monochrome-70: hsl(18deg 5% 70%);
    --monochrome-60: hsl(18deg 5% 60%);
    --monochrome-50: hsl(18deg 5% 50%);
    --monochrome-40: hsl(18deg 5% 40%);
    --monochrome-30: hsl(18deg 5% 30%);
    --monochrome-20: hsl(18deg 5% 20%);
    --monochrome-10: hsl(18deg 5% 10%);

    --success: hsl(108deg 60% 20%);
    --info: hsl(198deg 60% 20%);
    --error: hsl(4deg 60% 20%);
    --warning: hsl(18deg 60% 20%);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    background-color: var(--secondary-shade-2);
    font-family: var(--primary-font), sans-serif;
    color: white;
    min-height: 100%;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: inherit;
}

a:hover {
    color: var(--monochrome-90);
}

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem;
}

h2, h3 { font-weight: 600; }

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3.5rem;
    background-color: var(--primary);
    box-shadow: 0 0.25rem 0.5rem var(--primary-shade-1);
    z-index: 2;
    display: flex;
    align-items: center;
}

.topbar .brand {
    margin-left: 4rem;
    flex: 1;
    overflow-x: hidden;
    white-space: nowrap;
    font-size: 1rem;
}

.topbar .account {
    margin: 0 0.5rem;
    display: flex;
    align-items: center;
}

.topbar-spacer {
    width: 100%;
    height: 3.5rem;
}

#drawer-toggle {
    display: none;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.2s ease-in-out;
}

#drawer-toggle:checked ~ .drawer-overlay {
    background: rgba(0, 0, 0, 0.9);
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 3;
    box-shadow: 0 0.25rem 0.5rem var(--primary-shade-1);
}

.drawer .panel {
    display: inline-flex;
    flex-direction: column;
    padding-top: 0.75rem;
    width: 0;
    height: 100%;
    overflow-x: hidden;
    direction: rtl;
    transition: width 0.5s;
    background-color: var(--primary);
}

#drawer-toggle:checked ~ .drawer .panel {
    width: 10rem;
}

.drawer .panel a {
    width: 10rem;
    padding: 0.25rem 0.5rem;
    direction: ltr;
    text-align: right;
    white-space: nowrap;
    cursor: pointer;
}

.drawer .panel a:hover {
    background-color: var(--primary-tint-1);
}

.drawer .panel .sep {
    border-top: 1px solid var(--primary-tint-2);
    margin: 0.5rem 0;
}

.hamburger {
    position: absolute;
    top: 0;
    left: 0;
    width: 3.5rem;
    height: 3.5rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--primary);
    transition: left 0.5s;
    margin: 0;
}

#drawer-toggle:checked ~ .drawer .hamburger {
    left: 10rem;
}

.hamburger .bar {
    width: 2rem;
    height: 0.4rem;
    background-color: var(--monochrome-80);
    transition: 0.5s;
}

.hamburger .bar.mid {
    margin: 0.4rem 0;
}

#drawer-toggle:checked ~ .drawer .hamburger .bar.top {
    transform: translate(0, 0.8rem) rotate(-45deg);
}

#drawer-toggle:checked ~ .drawer .hamburger .bar.mid {
    opacity: 0;
}

#drawer-toggle:checked ~ .drawer .hamburger .bar.bot {
    transform: translate(0, -0.8rem) rotate(45deg);
}

.card {
    background: var(--primary);
    border: 1px solid var(--primary-tint-1);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 0.75rem 0;
}

.muted {
    color: var(--monochrome-50);
}

.center {
    text-align: center;
}

.marker {
    font-family: var(--secondary-font), cursive;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
}

.flash.error {
    background: var(--error);
}

.flash.info {
    background: var(--info);
}

input, textarea, select, button {
    font: inherit;
    color: white;
    background: var(--primary-shade-1);
    border: 1px solid var(--primary-tint-2);
    border-radius: 0.4rem;
    padding: 0.5rem;
}

button {
    cursor: pointer;
}

button:hover {
    background: var(--primary-tint-1);
}

label {
    display: block;
    margin: 0.5rem 0 0.25rem;
}

form.inline {
    display: inline;
}

.row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 0.4rem;
    border-bottom: 1px solid var(--primary-tint-1);
}

.tag {
    font-size: 0.8rem;
    color: var(--monochrome-60);
    border: 1px solid var(--primary-tint-2);
    border-radius: 1rem;
    padding: 0.1rem 0.5rem;
}

.ready-form {
    margin: 1rem 0;
}

.ready {
    color: hsl(108deg 60% 60%);
}

.notready {
    color: hsl(4deg 70% 60%);
}

ul.clean {
    list-style: none;
    padding: 0;
}

ul.clean li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--primary-tint-1);
}

li.screening-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

li.screening-row .screening-time {
    margin-left: auto;
}

.big-count {
    font-size: 1.5rem;
    margin: 4rem auto;
}

.rating {
    margin: 1rem 0;
}

.star-button {
    background: none;
    border: none;
    padding: 0 1px;
    cursor: pointer;
    line-height: 0;
}

.wheel {
    text-align: center;
}

.wheel-rim {
    width: 70vw;
    height: 70vw;
    max-width: 500px;
    max-height: 500px;
    margin: 30px auto 0;
    position: relative;
    border: 15px solid var(--primary-tint-3);
    border-radius: 50%;
}

.wheel-rotor {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    transform: rotate(0deg);
    transition: transform 10s cubic-bezier(0.42, 0, 0.0, 1.0);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.wheel-pointer {
    width: 15px;
    height: 20px;
    position: absolute;
    top: calc(50% - 10px);
    right: -15px;
    background-color: white;
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
    box-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.wheel-winner {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 32px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.wheel-slice {
    position: absolute;
    width: 50%;
    height: 100%;
    left: 50%;
    transform-origin: left;
    font-size: 14px;
    font-weight: bold;
    font-family: var(--monospace-font), monospace;
    line-height: 50%;
    color: black;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.wheel-slice p {
    padding: 0 4px 0 30px;
    margin: 0;
    text-overflow: ellipsis;
    overflow-x: hidden;
    white-space: nowrap;
    line-height: 100%;
}

.wheel-options {
    font-family: var(--secondary-font), cursive;
    width: 100%;
    color: white;
    border: none;
    outline: none;
    background-color: transparent;
    text-align: center;
    resize: none;
    padding: 30px 0 0 0;
}

@media (min-width: 480px) {
    .rating > .name {
        display: inline-block;
        text-align: right;
        width: calc(50% - 5px);
        margin-right: 5px;
    }

    .rating > .stars {
        display: inline-block;
        text-align: left;
        width: calc(50% - 5px);
        margin-left: 5px;
    }
}

@media (max-width: 480px) {
    .rating > .name {
        display: block;
        text-align: center;
        width: 100%;
        margin-right: 0;
    }

    .rating > .stars {
        display: block;
        text-align: center;
        width: 100%;
        margin-left: 0;
    }
}
