/********/
/* BASE */
/********/

body {
    background-color: #000;
    background-repeat: no-repeat;
    color:  #fff;
    font: 400 100% 'Lato', sans-serif;
    margin: 0;
    padding: 0;
}

p {
    margin: 0 0 1em 0;
    line-height: 1.5;
}

a  {
    color: #fff;
}


/***********/
/* LAYOUTS */
/***********/

/* Header */
#header {
    width: 95%;
    max-width: 85em;
    margin: 2em auto;
}

#header-logo {
    text-align: center;
    margin-bottom: 2em;
}

#header-logo > img,
#header-logo > svg {
    filter: drop-shadow(8px 8px 0px rgb(0 0 0 / 1));
    max-width: 40em;
    width: calc(100% - 4em);
}

#header-info {
    text-align: center;
}

#header-info > h1 {
    color: #fff;
    font-size: 2em;
    line-height: 1;
    margin: 0;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

/* Home */
#home {
    margin: 0 auto 4em auto;
    max-width: 85em;
    width: 95%;
}


/***********/
/* MODULES */
/***********/

/* Calendar */
.calendar {
    color: #fff;
}
.calendar-days,
.calendar-dates {
    display: grid;
    grid-gap: .5em;
    grid-template-columns: 1fr;
}
.calendar-days {
    background:  #fff;
    border-radius: .3em;
    color:  #000;
    display: none;
    margin-bottom: 1em;
    padding: 1em;
    text-align: center;
}

/* Date Block */
.date-block {
    background-color: rgba(0, 0, 0, 0.5);
    background-image: none;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: .3em;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    display: block;
    font-size: 1em;
    font-weight: 800;
    height: 12em;
    overflow: hidden;
    padding: 1em;
    position: relative;
    text-decoration: none;
    transition: box-shadow ease-in-out .1s;
}
.date-block:hover,
.date-block:focus {
    box-shadow: 0 0 0 .25em orange;
}
.date-block-number {
    font-size:  2em;
    text-shadow:
        1px 1px 10px rgba(0, 0, 0, 1.0),
        3px 3px 10px rgba(0, 0, 0, 1.0),
        5px 5px 10px rgba(0, 0, 0, 1.0);
    position: absolute;
}
.date-block-title {
    position: absolute;
    bottom: 1rem;
    text-shadow:
        1px 1px 10px rgba(0, 0, 0, 1.0),
        3px 3px 10px rgba(0, 0, 0, 1.0),
        5px 5px 10px rgba(0, 0, 0, 1.0);
    width: 75%;
}
.date-block-image {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}
.date-block-image > img {
    height: 100%;
    object-fit: cover;
    transition: transform ease-in-out 2s;
    width: 100%;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
}
.video-background > video {
    width: 100%;
}

/* Clouds */
.clouds {
    background-image:
        url('../images/noise-texture.png'),
        linear-gradient(to bottom, rgb(0, 100, 0), rgb(0, 0, 0) 50%);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: -1;
}
.clouds::after {
    background-image:
        url('../images/noise-texture.png'),
        linear-gradient(to bottom, rgba(0, 100, 0, 0.0), rgba(0, 100, 0, 0.25) 100%);
    bottom: 0;
    content: '';
    height: 50vh;
    position: absolute;
    left: 0;
    right: 0;
}
.clouds div {
    --loop-duration: 30s;

    animation-iteration-count: infinite;
    animation-name: loop;
    animation-timing-function: linear;
    background-repeat: round repeat;
    min-height: 100vh;
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}
.clouds div:nth-child(1) {
    animation-duration: calc(var(--loop-duration) * 6);
    background-image: url('../images/clouds_3.png');
    background-size: 25%;
}
.clouds div:nth-child(2) {
    animation-duration: calc(var(--loop-duration) * 3);
    background-image: url('../images/clouds_2.png');
    background-size: 50%;
    top: 3em;
}
.clouds div:nth-child(3) {
    animation-duration: calc(var(--loop-duration) * 1);
    background-image: url('../images/clouds_1.png');
    background-size: 75%;
    top: 4em;
}


/**************/
/* ANIMATIONS */
/**************/

@keyframes loop {
    0% { background-position: 0 0; }
    100% { background-position: 100vw 0; }
}


/*****************/
/* MEDIA QUERIES */
/*****************/

@media screen and (min-width: 35em) {
    /**********/
    /* LAYOUT */
    /**********/

    /* Header */
    #header {
        display: flex;
        justify-content: space-between;
    }
    #header-logo {
        text-align: left;
        margin-bottom: 0;
    }
    #header-info {
        text-align: left;
        align-self: flex-end;
    }


    /***********/
    /* MODULES */
    /***********/

    /* Calendar */
    .calendar-days,
    .calendar-dates {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Date Block */
    .date-block {

    }
}

@media screen and (min-width: 55em) {
    /**********/
    /* LAYOUT */
    /**********/

    /* Header */
    #header {}
    #header-logo {}
    #header-info > h1 { font-size: 4em; }

    /***********/
    /* MODULES */
    /***********/

    /* Calendar */
    .calendar-days,
    .calendar-dates {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Date Block */
    .date-block {
        height: 10em;
    }
}

@media screen and (min-width: 75em) {
    /***********/
    /* MODULES */
    /***********/

    /* Calendar */
    .calendar-days,
    .calendar-dates {
        grid-template-columns: repeat(7, 1fr);
    }

    .calendar-days {
        display: grid;
    }

    .calendar-dates div:first-child,
    .calendar-dates a:first-child {
        grid-column: 4;
    }

    /* Date Block */
    .date-block {
        height: 8em;
    }
}
