/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.com/ */

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* Author's custom styles
   ========================================================================== */

@font-face {
    font-display: swap;
    font-family: 'Signika Negative';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/signika-negative-v21-latin-regular.woff2') format('woff2');
}
  
@font-face {
    font-display: swap;
    font-family: 'Amatic SC';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/amatic-sc-v26-latin-regular.woff2') format('woff2');
}

  
* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    font-size: 112.5%;
}

body {
    -webkit-font-smoothing: antialiased;
}

.ks-calendar-header {
    background-image: url("../img/bg_navigation_302x54.svg");
    background-repeat: repeat-x;
    background-size: 302px 54px;
    background-color: #fff;
    height: 150px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

@media screen and (min-width: 394px) {
    .ks-calendar-header {
        height: 121px;
    }
}

@media screen and (min-width: 768px) {
    .ks-calendar-header {
        height: 166px;
    }
}

@media screen and (min-width: 1024px) {
    .ks-calendar-header {
        height: 199px;
    }
}

.ks-calendar-header__nav {
    float: left;
    height: 54px;
    margin-left: 40px;
    padding-left: 0;
    padding-right: .5556rem;
    text-align: right;
    width: calc(100% - 40px);
}

@media screen and (min-width: 768px) {
    .ks-calendar-header__nav {
        margin-left: 7px;
        padding-right: 45px;
        width: calc(100% - 7px);
    }
}

a.ks-calendar-header__nav-entry,
a.ks-calendar-header__nav-entry:active,
a.ks-calendar-header__nav-entry:visited,
a.ks-calendar-header__nav-entry:hover {
    color: #03347c;
    font: normal 400 0.89rem "Signika Negative", sans-serif;
    line-height: 2.22rem;
    text-decoration: none
}

.ks-calendar-footer {
    background-color: #fff;
    background-image: url("../img/bg_footer_302x54.svg");
    background-repeat: repeat-x;
    background-size: 302px 54px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 54px;
    padding-left: 0;
    padding-right: .5556rem;
    position: relative;
    text-align: right;
    width: 100%;
    z-index: 1;
}

@media screen and (min-width: 768px) {
    .ks-calendar-footer {
        padding-right: 45px;
    }
}

.ks-calendar-footer__nav-entry {
    color: #03347c;
    font: normal 400 0.89rem "Signika Negative", sans-serif;
    line-height: 2.22rem;
    text-decoration: none;
}

.ks-calendar-footer__nav-entry:first-child {
    margin-right: 1.1111rem;
}

.ks-calendar-footer__nav-entry:active,
.ks-calendar-footer__nav-entry:visited,
.ks-calendar-footer__nav-entry:hover {
    color: #03347c;
}

.ks-calendar-header__logo-outer-wrapper {
    margin: 0 auto;
    max-width: 1240px;
}

.ks-calendar-header__logo-wrapper {
    float: left;
    margin-bottom: .5556rem;
    margin-left: .5556rem;
    margin-top: .5556rem;
    width: auto;
}

@media screen and (min-width: 768px) {
    .ks-calendar-header__logo-wrapper {
        margin-bottom: 1.1111rem;
        margin-left: 2.2222rem;
        margin-top: 1.1111rem;
    }
}

@media screen and (min-width: 1024px) {
    .ks-calendar-header__logo-wrapper {
        margin-top: 33px;
        width: calc(33.33333% - 2.96293rem);
    }
}

a.ks-calendar-header__logo img {
    height: 2.2778rem;
    max-width: 100%;
    width: 12.2222rem;
}

@media screen and (min-width: 768px) {
    a.ks-calendar-header__logo img {
        height: 4rem;
        max-width: 100%;
        width: 21.2222rem;
    }
}

.ks-calendar-header__title {
    color: #03347c;
    font: normal 600 0.89rem "Signika Negative",sans-serif;
    float: left;
    left: 38px;
    line-height: .6rem;
    padding: 0 .5556rem;
    position: relative;
    text-transform: uppercase;
    top: -.5rem;
    width: 100%;
}

@media screen and (min-width: 394px) {
    .ks-calendar-header__title {
        left: 0;
        top: 1.5rem;
        width: auto;
    }
}

@media screen and (min-width: 486px) {
    .ks-calendar-header__title {
        font: normal 600 1.8rem "Signika Negative", sans-serif;
        line-height: 1.2rem;
        text-transform: none;
        top: 0.1rem;
    }
}

@media screen and (min-width: 768px) {
    .ks-calendar-header__title {
        font: normal 600 1.8rem "Signika Negative", sans-serif;
        line-height: 1.4rem;
        font-size: 2.11rem;
        top: 1.9rem;
    }
}

@media screen and (min-width: 1024px) {
    .ks-calendar-header__title {
        line-height: 144px;
        margin: 0;
        padding: 0 1.1111rem;
        top: 0;
    }
}

.ks-calendar-header__illustration {
    display: none;
    margin-right: .5556rem;
    float: right;
    position: relative;
    top: 3px;
    width: 165px;
}

@media screen and (min-width: 768px) {
    .ks-calendar-header__illustration {
        margin-right: 2.2222rem;
    }
}

@media screen and (min-width: 1024px) {
    .ks-calendar-header__illustration {
        display: inline-block;
        top: 10px;
        width: 185px;
    }
}

.ks-calendar__wrapper {
    background-color: #d9f0fa;
    background: url(../img/bg_1600x668.svg) repeat-x center top;
    -webkit-background-size: 1600px 845px;
    background-size: 1600px 845px;
    padding: 75px 7px 35px 7px;
    position: relative;
    z-index: 0;
}

@media screen and (min-width: 768px) {
    .ks-calendar__wrapper {
        padding: 75px 40px 35px 40px;
    }
}

.ks-calendar {
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    font: normal 700 2.5rem "Amatic SC", cursive;
    -ms-flex-wrap: wrap;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    list-style-type: none;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .ks-calendar {
        max-width: 640px;
    }
}

@media screen and (min-width: 1024px) {
    .ks-calendar {
        max-width: 960px;
    }
}

.ks-calendar a,
.ks-calendar a:active,
.ks-calendar a:visited,
.ks-calendar a:hover {
    color: #fff;
    text-decoration: none;
}

.ks-calendar__door {
    -webkit-border-radius: 5px;
    border-radius: 5px;
    cursor: pointer;
    height: -webkit-calc(25vw - 10px);
    height: calc(25vw - 10px);
    margin: 3px;
    opacity: 0;
    -webkit-perspective: 2500px;
    perspective: 2500px;
    position: relative;
    -webkit-transition: -webkit-transform 0.4s ease-in-out;
    -o-transition: opacity 0.4s ease-in-out;
    transition: opacity 0.4s ease-in-out;
    width: -webkit-calc(25vw - 10px);
    width: calc(25vw - 10px);
}

@media screen and (min-width: 768px) {
    .ks-calendar__door {
        -webkit-border-radius: 10px;
        border-radius: 10px;
        height: 147px;
        margin: 5px;
        width: 147px;
    }
}

.ks-calendar__door--not-allowed {
    cursor: not-allowed;
}

.ks-calendar__door-content,
.ks-calendar__door-content a {
    -webkit-border-radius: 5px;
    border-radius: 5px;
    color: #fff;
    height: 100%;
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    -webkit-jQuery-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transition: -webkit-transform 0.4s ease-in-out;
    -o-transition: transform 0.4s ease-in-out;
    transition: -webkit-transform 0.4s ease-in-out;
    transition: transform 0.4s ease-in-out;
    transition: transform 0.4s ease-in-out, -webkit-transform 0.4s ease-in-out;
    width: 100%;
}

@media screen and (min-width: 768px) {
    .ks-calendar__door-content,
    .ks-calendar__door-content a {
        -webkit-border-radius: 10px;
        border-radius: 10px;
    }
}

.ks-calendar__door-content--open {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.ks-calendar__door-side {
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    font: normal 700 7.75vw "Amatic SC", cursive;
    height: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    list-style-type: none;
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    overflow: hidden;
    text-shadow: 0px 0px 10px rgba(0, 105, 180, 1);
    width: 100%;
}

@media screen and (min-width: 768px) {
    .ks-calendar__door-side {
        -webkit-border-radius: 10px;
        border-radius: 10px;
        font: normal 700 2.75rem "Amatic SC", cursive;
    }
}

.ks-calendar__door-side--front {
    background-color: #0069b4;
}

.ks-calendar__door--current .ks-calendar__door-side--front,
.ks-calendar__door--not-allowed .ks-calendar__door-side {
    background-color: #5bc5f2;
    background-image: -webkit-repeating-linear-gradient(315deg, transparent, transparent 35px, #4eb8ea 35px, #4eb8ea 70px);
    background-image: -o-repeating-linear-gradient(315deg, transparent, transparent 35px, #4eb8ea 35px, #4eb8ea 70px);
    background-image: repeating-linear-gradient(135deg, transparent, transparent 35px, #4eb8ea 35px, #4eb8ea 70px);
}


.ks-calendar__door-side--back {
    background: url('../img/img_2881x2040.jpg') no-repeat;
    -webkit-background-size: auto 145vw;
    background-size: auto 145vw;
    -webkit-transform: rotateY(180deg);
    -moz-transform: rotateY(180deg);
    -ms-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

@media screen and (min-width: 768px) {
    .ks-calendar__door-side--back {
        -webkit-background-size: auto 960px;
        background-size: auto 960px;
        -webkit-transition: -webkit-transform 0.2s ease-in-out;
        -o-transition: transform 0.2s ease-in-out;
        transition: -webkit-transform 0.2s ease-in-out;
        transition: transform 0.2s ease-in-out;
        transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
    }

    .ks-calendar__door-side--back:hover {
        -webkit-transform: rotateY(180deg) scale(1.03);
        -moz-transform: rotateY(180deg) scale(1.03);
        -ms-transform: rotateY(180deg) scale(1.03);
        transform: rotateY(180deg) scale(1.03);
    }
}

@media screen and (min-width: 1024px) {
    .ks-calendar__door-side--back {
        background: url('../img/img_2080x1473.jpg') no-repeat;
        -webkit-background-size: 1024px auto;
        background-size: 1024px auto;
    }
}

.jiggle {
    -webkit-animation: jiggle 0.225s infinite;
    animation: jiggle 0.225s infinite;
    -webkit-transform: rotate(-1deg);
    -moz-transform: rotate(-1deg);
    -ms-transform: rotate(-1deg);
    transform: rotate(-1deg);
}

@-webkit-keyframes jiggle {
    0% {
        -webkit-transform: rotate(-1deg);
        -moz-transform: rotate(-1deg);
        -ms-transform: rotate(-1deg);
        transform: rotate(-1deg);
    }
    50% {
        -webkit-transform: rotate(1deg);
        -moz-transform: rotate(1deg);
        -ms-transform: rotate(1deg);
        transform: rotate(1deg);
    }
}

@keyframes jiggle {
    0% {
        -webkit-transform: rotate(-1deg);
        -moz-transform: rotate(-1deg);
        -ms-transform: rotate(-1deg);
        transform: rotate(-1deg);
    }
    50% {
        -webkit-transform: rotate(1deg);
        -moz-transform: rotate(1deg);
        -ms-transform: rotate(1deg);
        transform: rotate(1deg);
    }
}

#ksSnow {
    bottom: 0;
    height: 100vh;
    left: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    width: 100vw;
    z-index: 99;
}

/* Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}
