:root {
    
    --primary-font: 'Bebas Neue', sans-serif;
    --secondary-font: 'Helvetica', sans-serif;

    /* Text XL = 80px @ 1080p */
    /* --text-xxl: clamp(2.4883rem, 1.4503rem + 2.9659vw, 5.0093rem);
    --text-xl: clamp(2rem, 2.2vw + 1.56rem, 3.438rem);
    --text-l: clamp(1.5rem, 0.438vw + 1.413rem, 1.9375rem);   
    --text-m: clamp(1.125rem, 0.215vw + 1.087rem, 1.25rem);
    --text-s: clamp(0.938rem, 0.095vw + 0.919rem, 1rem); */

    --text-xxl: clamp(1.866rem, 1.921vw + 1.358rem, 3.002rem);
    --text-xl: clamp(1.237rem, 1.361vw + 0.965rem, 2.126rem);
    --text-l: clamp(1.092rem, 0.319vw + 1.028rem, 1.41rem);
    --text-m: clamp(1.019rem, 0.195vw + 0.984rem, 1.132rem);
    --text-s: clamp(0.759rem, 0.078vw + 0.742rem, 0.809rem);
    --text-xs: clamp(0.708rem, 0.041vw + 0.688rem, 0.758rem);
    --font-size: clamp(0.9rem, 0.767rem + 0.119vw, 1rem);

    --space: clamp(1.75rem, 2.677vw + 1.215rem, 3.5rem); 
    --space-005x: calc(var(--space) * 0.05);
    --space-015x: calc(var(--space) * 0.15);
    --space-025x: calc(var(--space) * 0.25);
    --space-035x: calc(var(--space) * 0.35);
    --space-05x: calc(var(--space) * 0.5);
    --space-075x: calc(var(--space) * 0.75);
    --space-125x: calc(var(--space) * 1.25);
    --space-15x: calc(var(--space) * 1.5);
    --space-175x: calc(var(--space) * 1.75);
    --space-2x: calc(var(--space) * 2);
    --space-25x: calc(var(--space) * 2.5);
    --space-35x: calc(var(--space) * 3.5);
    --space-45x: calc(var(--space) * 4.5);
    --space-55x: calc(var(--space) * 5.5);
    --space-65x: calc(var(--space) * 6.5);
    --space-75x: calc(var(--space) * 7.5);
    --space-3x: calc(var(--space) * 3);
    --space-4x: calc(var(--space) * 4);

    --minus-1x: calc(-1 * var(--space));
    --minus-2x: calc(-1 * var(--space-2x));
    --minus-3x: calc(-1 * var(--space-3x));
    --minus-4x: calc(-1 * var(--space-4x));
    --minus-5x: calc(-1 * var(--space-5x));
    --minus-6x: calc(-1 * var(--space-6x));
    --minus-7x: calc(-1 * var(--space-7x));

}

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
}

html, body {
    margin: 0;
    padding: 0;
    font-size: var(--font-size);
    font-family: var(--secondary-font);
    color: var(--text);
    background-color: var(--secondary);
}

h1 {
    font-family: var(--primary-font);
    font-size: var(--text-xxl);
    margin: 0 0 var(--space-05x) 0;
    letter-spacing: 0.5rem;
    line-height: var(--text-xxl);
}

h2 {
    font-size: var(--text-l);
    margin: 0 0 var(--space-05x) 0;
}

h2.larger {
    font-family: var(--primary-font);
    text-transform: uppercase;
    letter-spacing: 0.35rem;
    font-size: var(--text-xl);
}

h3 {
    font-size: var(--text-m);
    margin: 0 0 var(--space-025x) 0;
}

h4 {
    font-size: var(--text-s);
    margin: 0 0 var(--space-05x) 0;
}

p {
    font-size: var(--font-size);
    margin: 0 0 var(--space-05x) 0;
    line-height: 1.4;
}

/* Header Nav */
nav.main-menu ul.main-menu {
    grid-gap: var(--space);
}

nav.main-menu ul.main-menu li a {
    padding: 1rem;
}

nav.main-menu ul.main-menu li a:hover {
    color: var(--accent);
}

@media (max-width: 599px) {
    nav.main-menu button.wp-block-navigation__responsive-container-open {
        padding: var(--space-05x);
    }

    nav.main-menu ul.main-menu {
        width: 100%;
    }
    
    nav.main-menu ul.main-menu li a {
        width: 100%;
        text-align: center;
        padding: var(--space) !important;
        font-size: var(--text-l);
        display: inline-block;
    }
    
    nav.main-menu ul.main-menu li a:hover {
        background: var(--accent);
        color: var(--black);
    }
    
    nav.main-menu ul.main-menu li {
        width: 100%;
        text-align: center;
    }
    
    nav.main-menu .wp-block-navigation__responsive-container-close {
        padding: var(--space-05x);
        font-size: var(--text-l);
    }
    
    nav.main-menu .is-menu-open div.wp-block-navigation__responsive-container-content {
        padding-top: var(--space-2x);
    }
}


/* Modal */
.modal {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    align-items: center;
    display: none;
    justify-content: center;
    overflow: hidden;
    position: fixed;
    z-index: 40
}

.modal.is-active {
    display: flex
}

.modal-background {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    background-color: hsla(0,0%,4%,.86)
}

.modal-card,.modal-content {
    margin: 0 20px;
    max-height: calc(100vh - 160px);
    overflow: auto;
    position: relative;
    width: 100%
}

@media print,screen and (min-width: 769px) {
    .modal-card,.modal-content {
        margin:0 auto;
        max-height: calc(100vh - 40px);
        width: 640px
    }
}

.modal-close {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background-color: hsla(0,0%,4%,.2);
    border: none;
    border-radius: 290486px;
    cursor: pointer;
    display: inline-block;
    flex-grow: 0;
    flex-shrink: 0;
    font-size: 0;
    height: 20px;
    max-height: 20px;
    max-width: 20px;
    min-height: 20px;
    min-width: 20px;
    outline: none;
    position: relative;
    vertical-align: top;
    width: 20px;
    background: none;
    height: 40px;
    position: fixed;
    right: 20px;
    top: 20px;
    width: 40px
}

.modal-close:after,.modal-close:before {
    background-color: #fff;
    content: "";
    display: block;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
    transform-origin: center center
}

.modal-close:before {
    height: 2px;
    width: 50%
}

.modal-close:after {
    height: 50%;
    width: 2px
}

.modal-close:focus,.modal-close:hover {
    background-color: hsla(0,0%,4%,.3)
}

.modal-close:active {
    background-color: hsla(0,0%,4%,.4)
}

.modal-close.is-small,.modal-close.schedule__nav-button {
    height: 16px;
    max-height: 16px;
    max-width: 16px;
    min-height: 16px;
    min-width: 16px;
    width: 16px
}

.modal-close.is-medium {
    height: 24px;
    max-height: 24px;
    max-width: 24px;
    min-height: 24px;
    min-width: 24px;
    width: 24px
}

.modal-close.is-large {
    height: 32px;
    max-height: 32px;
    max-width: 32px;
    min-height: 32px;
    min-width: 32px;
    width: 32px
}

.modal-card {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 40px);
    overflow: hidden
}

.modal-card-foot,.modal-card-head {
    align-items: center;
    background-color: #f5f5f5;
    display: flex;
    flex-shrink: 0;
    justify-content: flex-start;
    padding: 20px;
    position: relative
}

.modal-card-head {
    border-bottom: 1px solid #dbdbdb;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px
}

.modal-card-title {
    color: #363636;
    flex-grow: 1;
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1
}

.modal-card-foot {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top: 1px solid #dbdbdb
}

.modal-card-foot .button:not(:last-child),.modal-card-foot .schedule__nav-button:not(:last-child) {
    margin-right: 10px
}

.modal-card-body {
    -webkit-overflow-scrolling: touch;
    background-color: #fff;
    flex-grow: 1;
    flex-shrink: 1;
    overflow: auto;
    padding: 20px
}
