@font-face {
    font-display: swap;
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 400;
    src: url('/static/work-sans-v24-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 500;
    src: url('/static/work-sans-v24-latin-500.woff2') format('woff2');
}

:root {
    --select-border: #777;
    --select-focus: blue;
    --select-arrow: var(--select-border);
}

html {
    overflow-x: hidden;
    margin-right: calc(-1 * (100vw - 100%));
    font-family: "Work Sans", ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT', 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif;
    font-weight: normal;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    height: 100vh;
}

hr {
    border: 0;
    margin: 16px auto;
    width: 95%;
    height: 1px;
    background-image: linear-gradient(to right, #ffffff, #000000, #ffffff);
}

h1, h3, strong {
    font-weight: 500;
}

header {
    width: 100%;
    display: flex;
    flex-direction: column;


    .nav {
        a {
            text-decoration: none;
        }



        margin-top: 6px;
        margin-bottom: 6px;
        display: flex;
        width: 100%;
        height: 64px;
        background-color: darkblue;
        gap: 6px;
        justify-content: center;
        align-items: center;

        svg {
            width: 3em;
        }

        span {
            padding: 0 1em;
            display: flex;
            border: solid dimgray 1px;
            border-radius: 4px;
            align-items: center;
            background-color: rgba(255, 255, 255, 0.3);
            color: white;
            box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.3);
            gap: 0.5em;
        }
    }

    .details {
        margin-top: 16px;
        margin-bottom: 16px;
        display: flex;
        gap: 1rem;
        justify-content: center;
        @media (max-width: 600px) {
            flex-direction: column;
        }

        align-items: center;
        padding-left: 5%;
        padding-right: 5%;

        div {
            max-width: 20rem;
        }

        img {
            max-width: 20rem;
        }

        a {
            text-decoration: underline;
        }
    }
    img[alt='logo'] {
        margin-top: 12px;
        object-fit: scale-down;
        max-height: 80px;
    }
}


.content {
    max-width: 800px;

    display: flex;
    width: 100%;

    justify-content: space-around;

    align-items: center;
    margin-bottom: 16px;
}

main {
    padding: 0 2rem;
    display: flex;
    flex-direction: column;

    justify-content: flex-start;

    .ticket-form {
        display: flex;
        box-shadow: 5px 5px 5px #6C7AB377;
        border: 1px groove #6C7AB3;
        padding: 1rem 2rem 2rem 2rem;
        border-radius: 0.5rem;

        .total {
            display: flex;
            padding: 0.5rem;
            width: 100%;
            margin: auto;
            gap: 3em;
            justify-content: center;
        }

        .total div:last-child {
            text-align: right;
            width: 25%;
        }

        .total p {
            margin: 2px 0;
        }
    }

    flex: 1 1 auto;
    width: 100%;

    section.event-info {
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        margin: 1rem;
        align-items: center;

        gap: 1rem;
        * {
            margin: 0;
        }

        h1 {
            font-size: 1.5em;
        }
    }

    section#ticket-items {
        h2 {
            margin-bottom: 0;
            font-size: large;
        }

        display: flex;
        flex-direction: column;
        width: 100%;

        .checkout {
            display: flex;
            justify-content: center;
        }

        #checkout-button {
            border: none;
            border-radius: 5px;
            background-color: darkblue;
            color: white;
            height: 3em;
            width: 50%;
            font-size: 1.1em;

            &:not(:disabled) {
                cursor: pointer;
            }

            &:disabled {
                background-color: rgba(51, 51, 51, 0.25);
            }
        }


        #ticket-list {
            display: flex;
            flex-direction: column;
            list-style: none;
            padding-inline-start: 0;
            box-sizing: border-box;
            width: 100%;
            margin: 0;

            li {
                display: flex;
                flex-direction: column;

                margin-right: 8px;
                padding-bottom: 16px;
                padding-top: 16px;

                border-bottom: 1px solid lightgray;

                article {
                    display: flex;
                    flex-direction: column;
                    flex: 2 0 0;
                    h3 {
                        margin: 0 0;
                    }

                    p {
                        margin: 0;
                        padding-bottom: 8px;
                    }
                }
            }
        }
    }

}

footer {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    /*justify-self: flex-end;*/
    padding: 5px 3em;
    background-color: lightgray;
    width: 100vw;
    margin-top: auto;
}

.qty {
    border: 1px solid lightgray;
    width: 5em;
    border-radius: 5px;
    select {
        appearance: none;
        background-color: transparent;
        border: none;
        padding: 0.5em 1em;
        width: 100%;
        font-family: inherit;
        font-size: inherit;
        cursor: inherit;
        line-height: inherit;
        outline: none;
        text-align: center;
    }
    text-align: center;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    align-self: center;
    justify-content: center;
    gap: 0.3rem;
    margin: 0;

}
