:root {
    font-size: 20px;

    --nav-offset: 0;
    --nav-width: -9999px;
    --nav-height: 75px;
    --queue-item-size: 45px;
    --total-counter-size: 30px;

    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray: #7d7d7d;
    --color-primary: #ed1c24;
    --color-secondary: #e2dfe1;
    --color-success: #00d034;
    --color-accent: #ffd700;
}

*, *::before, *::after {
    font-family: sans-serif;
    font-weight: 500;
    font-style: normal;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
}

body, button, input, select, textarea {
    font-size: 1rem;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 3rem;
}

h4 {
    font-size: 2.5rem;
}

h5 {
    font-size: 2rem;
}

h1, h2, h3, h4, h5, p {
    margin: 0.75rem 0;

    &:first-child {
        margin-top: 0;
    }

    &:last-child {
        margin-bottom: 0;
    }
}

p {
    line-height: 0.75rem;
}

a {
    display: inline-block;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

a:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

p, a, button {
    font-size: 1rem;
}

.svg {
    height: 100%;
}

.logo {
    width: 150px;
}

.logo-corner {
    width: 40px;
}

.nav-tab {
    position: fixed;
    z-index: 2;
    background: var(--color-black);
    width: 100%;
    height: var(--nav-height);
}

.nav-top {
    padding: 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.borger {
    background-image: url(images/borger.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    width: 40px;
    height: 40px;
}

.nav-shelf {
    position: fixed;
    display: flex;
    flex-direction: column;
    background: var(--color-black);
    left: var(--nav-width);
    transition: all 0.5s ease-in-out;
    min-width: min-content;
    top: var(--nav-height);
    height: calc(100% - var(--nav-height));
    border-top: 1px solid var(--color-white);
}

.nav-shelf a {
    width: fit-content;
    padding: 10px 0;
}

.nav-shelf>div {
    display: flex;
    flex-direction: column;
    overflow: visible;
    opacity: 0;
    margin: 2rem;
    animation-name: fade-out;
    animation-duration: 0.1s;
    animation-fill-mode: both;
}

.nav-shelf.open {
    left: var(--nav-offset);
}

.nav-shelf.open>* {
    animation-name: fade-in;
    animation-delay: 0.3s;
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.nav-shelf.open .nav-shop {
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

.nav-shop a {
    padding: 0.5rem 2rem;
    scroll-snap-align: center;
}

section {
    padding: 20px;
}

.main-content {
    margin-top: var(--nav-height);
    background-color: var(--color-secondary);
    min-height: 100vh;
}

#header {
    color: var(--color-white);
    background-color: var(--color-black);
    padding: 20px 40px;
}

#header div:first-child {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    align-items: center;
}

#header div:first-child p {
    margin: 0;
}

#openCloseQueues {
    font-weight: bold;
    letter-spacing: 1px;
    width: 100%;
    background: var(--color-white);
    text-transform: uppercase;
    color: var(--color-black);
    padding: 5px 10px;
    border-radius: 5px;
}

#refresh {
    padding: 20px 40px;
}

#refreshQueue {
    border: 1px solid var(--color-primary);
    width: 100%;
    color: var(--color-primary);
    background: transparent;
    font-size: 0.6rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 5px;
}

#queueList {
    display: flex;
    flex-direction: column;
}

.queue-item {
    background-color: var(--color-white);
    padding: 15px 30px;
    display: flex;
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid var(--color-accent);
    margin-bottom: 20px;
}

.queue-item img {
    width: var(--queue-item-size);
    height: var(--queue-item-size);
}

.queue-item-number, .total-queued {
    background-color: var(--color-primary);
    width: var(--queue-item-size);
    height: var(--queue-item-size);
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.queue-item-number p {
    font-weight: 600;
    color: var(--color-white);
}


.total-queued {
    background-color: var(--color-white);
    width: var(--total-counter-size);
    height: var(--total-counter-size);
}

.total-queued p {
    color: var(--color-black);
}


.queue-item-details {
    padding: 0 30px;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.queue-item-details p {
    margin: 0;
}

.queue-item-details p:first-child {
    font-weight: 600;
}

.queue-item-details p:last-child {
    color: var(--color-gray);
    font-size: 0.75rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
}

.overlay.visible {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: all;
}

.prompt-container {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.prompt-container.visible {
    transform: translateY(-100%);
    opacity: 1;
    pointer-events: all;
}

.prompt {
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.prompt:last-of-type {
    margin-bottom: 20px;
}

.prompt button {
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid lightgray;
    color: #0077ff;
}

.prompt button:last-of-type {
    border: none;
}

.prompt button.red {
    color: var(--color-primary);
}

.prompt button:hover {
    opacity: 0.8;
}