@import url('reset.css');

:root {
    --shade-darkest: #000050;
    --shade-dark: #081566;
    --shade-darker: #13287c;
    --shade-dark-mid: #1a3c92;
    --shade-mid: #2050a9;
    --shade-mid-light: #2466bf;
    --shade-light-mid: #257cd4;
    --shade-light: #2193e9;
    --shade-lightest: #00acf8;

    --light: #f4ede1;

    --green: #3DAD7C;
    --coral: #F05D5E;
    --ink: var(--shade-darkest);

    --yellow: #FFC13A;
    --yellow-dark: #FFB618;

}

.hr {
    margin: 2.5rem 0;

    background-color: var(--light) #00000033;

}

:root {
    background-image: url(images/paper-background.webp);
    background-blend-mode: normal;
    background-color: var(--shade);
    background-size: 66.66%;
    background-position: bottom center;
    /* background-attachment: fixed; */
    padding: var(--uuu);
    border: var(--bg-backdrop-outline) 1px solid;
    margin-bottom: var(--uuu);


    font-family: Outfit, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* background-color: #8eb8ca; */
    line-height: 150%;
    font-size: 1.25rem;
    color: var(--ink);
}

main {
    background-color: var(--light);
    background-image: url(images/paper-background.webp);
    background-blend-mode: multiply;
    background-color: var(--light);
    background-size: 66.66%;
}

header {
    padding-top: 1rem;
    padding-bottom: 0rem;
    mix-blend-mode: multiply;
    background-color: var(--shade-mid);
    border-bottom: var(--shade-mid-light) 40px solid;
}

footer {
    mix-blend-mode: multiply;
    background-color: #FFC13A;
    color: #4B3300;

    &.formal {
        background-color: var(--shade-darker);
        color: var(--light);
    }
}

.column {
    /* Max width 800px, resize when the width is smaller, center the content */
    max-width: 800px;
    width: 100%;
    resize: horizontal;
    padding: 2rem;
    margin: 2rem 0;
    min-height: 5rem;
    transition: padding 0.2s ease-in-out, max-width 0.2s ease-in-out;
    margin: 0 auto;
    position: relative;

    &.-wide {
        max-width: 800px;
    }

    &.-special-heading {
        max-width: 640px;
    }

    .column-edge {
        margin-left: -2rem;
        margin-right: -2rem;
    }
}


@media (max-width: 599px) {
    .column {
        padding: 2rem;

        &.-special-heading {
            max-width: 70%;
            margin-bottom: 2rem;
        }
    }
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    padding: 0;
    font-family: "Limelight", sans-serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    color: inherit;
}

h1.header {
    mix-blend-mode: multiply;
    margin-bottom: 0;
    line-height: 110%;
    &.-invite {
        margin: 0;
        color: var(--shade-mid);
    }
}
.person-or-place {
    margin: 0;
}
.center-link {
    display: flex;
    margin: 1rem 0;
    /* align-items: center; */
    justify-content: center;
    text-align: center;
}

h1 .th {
    font-size: 50%;
}

@media (max-width: 599px) {
    h1 {
        font-size: 2rem;
    }
}

h2 {
    font-size: inherit;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    line-height: 120%;
}


/* get the second, fourth,  span in the h1 */
h1>span:nth-child(1) {
    color: var(--shade-mid-light);
}

h1>span:nth-child(2) {
    color: var(--green);
}

h1>span:nth-child(3) {
    color: var(--coral);
}

h1>span:nth-child(5) {
    color: var(--shade-light-mid);
    color: #FFC13A;
}

h1>span:nth-child(6),
h1>span:nth-child(7) {
    color: var(--shade-light-mid);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 150%;
}

#schedule {
    h2 {
        margin-bottom: 0;
    }
    .venue {
        text-align: center;
        margin-top: 0;
        margin-bottom: 1rem;

        h3 {
            margin-top: 0;
            font-weight: normal;
        }
    }
}

.context {
    background-color: var(--context);
    background-image: url(images/paper-background.webp);
    background-blend-mode: multiply;
    background-size: 66.66%;

    &.-yellow {
        /* position: sticky;
        top: 0; */
        --context: var(--yellow-dark);
        color: var(--ink);
        --hr: var(--ink);
    }

    &.-dark-blue {
        --context: var(--shade-dark-mid);
        color: var(--light);
        --hr: var(--light);
    }

    &.-green {
        --context: var(--green);
        color: var(--light);
        --hr: var(--light);
        --ink: var(--light);
    }

    &.-strip {
        top: 0;
        z-index: 1;
        text-align: center;

        .column {
            min-height: 5rem;
            display: grid;
            place-items: center;
            padding: 0;
        }

        position: sticky;

        h1 {
            margin: 0;
        }
    }

    &.-blue {
        --context: var(--shade-lightest);
        color: var(--shade-darker);
        --hr: var(--shade-mid);
    }

    &.-coral {
        --context: var(--coral);
        color: var(--light);
        --hr: var(--light);
    }

    &.-white {
        --context: white;
    }
}

.card {
    background-image: url(images/paper-background.webp);
    background-blend-mode: multiply;
    background-color: var(--context, var(--light));
    background-size: 66.66%;
    transition: padding 0.2s ease-in-out;
    padding: 3rem;
}

.content {
    padding: 0 3rem;
}

@media (max-width: 599px) {
    .card {
        padding: 2rem;
    }
}

#top-card {
    position: relative;
    top: -6rem;
    margin-bottom: -6rem;

    time {
        font-family: Outfit, sans-serif;
        font-size: inherit;
        display: block;
        text-align: center;
        font-weight: bold;
    }
}

@media (max-width: 599px) {
    #top-card {
        position: relative;
        top: 0;
        margin-bottom: 0;
        padding: 0;
    }
}

#skirt,
#trousers {
    img {
        transition: height 0.2s ease-in-out;
        height: var(--legs-height, 350px);
    }
}

.legs-container {
    --leg-sticky: -7rem;
    --legs-position: 90px;
    height: 350px;
    margin-bottom: -350px;
    position: sticky;
    top: var(--leg-sticky);
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
}

@media (max-width: 599px) {
    .legs-container {
        --legs-position: 50px;
        --legs-height: 250px;
        --leg-sticky: -5rem;
    }
}


#trousers {
    position: absolute;
    top: 0;
    right: calc(var(--legs-position) * -1);
    z-index: 1;
}

#skirt {
    position: absolute;
    top: 0;
    left: calc(var(--legs-position) * -1);
    z-index: 1;
}

.header {
    --font-size: 4rem;
    white-space: pre-line;
    text-align: center;
    font-size: var(--font-size);
}

@media (max-width: 599px) {
    .header {
        --font-size: 2.5rem;
    }
}



.blue-line {
    height: 2rem;
    background-color: var(--shade-darkest);
}

.yellow-line {
    height: 2rem;
    background-color: var(--yellow-dark);
}

hr {
    border: none;
    border-top: 1px solid var(--hr, var(--shade-darkest));
    margin: 3rem 0;
}

button {
    /* reset all properties */
    all: unset;
    font-family: inherit;
    font-weight: bold;
    font-size: inherit;
    line-height: inherit;
    color: var(--shade-dark);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;

    &.icon {
        gap: .5rem;

        svg {
            width: 40px;
            aspect-ratio: 1;
        }
    }
}

a {
    &:is(:link, :visited) {
        color: inherit;
        text-decoration-color: var(--shade-light-mid);
    }

    &:has(.banner) {
        text-decoration: none;
    }

    &.-slim {
        text-align: center;

    }

    &.-green:is(:link, :visited) {
        background-color: var(--green);
        color: var(--light);
    }
}



img {
    pointer-events: none;
    margin-bottom: 2rem;
}

footer .content {
    text-align: right;
}

add-to-calendar-button {
    display: grid;
}

.-center {
    text-align: center;
}

.std {
    border: var(--yellow-dark) 2px solid;
    margin: 2rem 0;
    padding: 1rem;
}

.banner {
    * {
        text-align: center;
    }

    display: grid;
    margin-top: 2rem;
    mix-blend-mode: multiply;
    grid-template-columns: 80px 1fr 80px;

    &.-slim {
        grid-template-columns: 80px 0fr 80px;
        justify-content: center;
    }

    &.-green svg {
        fill: var(--green);
    }

    &.-green div {
        --ink: var(--light);
        background: var(--green);
        color: var(--light);
    }
    
    &.-red svg {
        fill: var(--coral);
    }

    &.-red div {
        --ink: var(--light);
        background: var(--coral);
        color: var(--light);
    }

    --bg: var(--yellow-dark);

    &:hover {
        --bg: var(--yellow);
    }

    div {
        background-color: var(--bg);
        display: grid;
        place-items: center;
    }

    svg {
        min-height: 80px;
        fill: var(--bg);
    }

    p {
        margin: 0;
        border: 2px solid var(--ink);
        padding: 1rem;
    }
}

.-white {
    --context: white;
}







.djs {
    --grid-columns: 1fr 1fr 1fr;
    display: grid;
    grid-template-columns: var(--grid-columns);
    gap: 2rem;

    figure {
        margin: 0;
        padding: 0;

        h2 {
            margin: 0;
            padding: 0;
            font-size: 1rem;
        }

        img {
            /* border-radius: 100%;  */
            border: 2px solid var(--light);
            border-width: 4px 4px 16px;
            outline: 1px solid var(--shade-light);
            /* add a white shadow */
            box-shadow: 4px 4px 0 1px var(--shade-darkest);

        }

        figcaption {
            font-size: 1rem;
            text-align: center;
            color: var(--shade-lightest);
        }
    }
}

@media (max-width: 599px) {
    .djs {
        --grid-columns: 1fr 1fr;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 2rem;
    background-color: var(--light);
    background-image: url(images/paper-background.webp);
    background-size: 66.66%;
    background-blend-mode: mix;
}

table td {
    padding: 1rem;
    border: 1px solid var(--hr, var(--shade-mid));
    vertical-align: top;
}



table td:first-child {
    width: 33.333%;
    position: relative;
    &::before {
        content: "";
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        background-color: var(--event-color, var(--shade-mid));
    }
}

.admin-and-breaks {
    --event-color: var(--green);
}

.social {
    --event-color: var(--yellow-dark);
}

.band {
    --event-color: var(--coral);
}

.maps {
    margin: 0;
    padding: 0;
}