
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

@font-face {
    font-family: "Jacquard";
    src: url("assets/fonts/Jacquard12-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Jacquard Charted";
    src: url("assets/fonts/Jacquard12Charted-Regular.ttf") format("truetype");
}

body, html {
  background: #3d5588;
}

header {
    font-family: "Jacquard", sans-serif;
    background-color: #3d5588;
    color: #bf6ca4;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
}

header a, .language-switcher a{
    color: #bf6ca4;
}

.centered {
    text-align: center;
    flex-grow: 1;
}

.main-content {
    min-height: calc(100vh - 60px);
    margin-top: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
}

section {
    flex-grow:1;
    display: flex;
    color: white;
    flex: 1;
    transition: .2s ease-in-out;
    position: relative;
}

section:hover {
    flex: 4;
}

.date {
    background-color: #3d5588;
    font-family: "Jacquard", sans-serif;
    text-align: center;
    width: 250px;
    pointer-events: none;
}

.month {
    padding: 0 20px;
    font-size: 72px;
    line-height: 84px;
    margin: 0;
    background-color: #9b5a91;
}
.day {
    padding: 0 20px;
    font-size: 188px;
    margin: 0;
    background-color: #9b5a91;
    line-height: 50px;
}

.get-out, .memories-of-murder, .the-boy-and-the-heron {
    flex-grow:1;
    background-size:     cover;                      /* <------ */
    background-repeat:   no-repeat;
    background-position: center center;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    transition: .2s;
    opacity: 0;
}

.get-out-filter, .memories-of-murder-filter, .the-boy-and-the-heron-filter {
    flex-grow:1;
    background-size:     cover;                      /* <------ */
    background-repeat:   no-repeat;
    background-position: center center;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: .2s;
    z-index: 1;
}

.thumbnail {
    transition: .2s;
    position: relative;
    width: 100%;
    flex-grow: 1;
    font-family: "Bebas Neue", sans-serif;
    text-wrap: balance;
        pointer-events: all;
}

.thumbnail-content {
    font-size: 62px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    line-height: 52px;
}

.thumbnail-content.detail {
    font-size: 32px;
    position: absolute;
    line-height: unset;
}

.calendar-button {
    background-color: transparent;
    border: 4px solid white;
    border-radius: 0;
    color: white;
    padding: 5px 10px;
    margin-top: 10px;
}

.calendar-button:last-of-type {
    background-color: white;
    border: 4px solid white;
    border-radius: 0;
    color: black;
    padding: 5px 10px;
    margin-top: 10px;
}

.get-out-filter {
    background-image: url(assets/thumbnails/get_out_filter.png);
}

.memories-of-murder-filter {
    background-image: url(assets/thumbnails/memories_of_murder_filter.png);
}

.the-boy-and-the-heron-filter {
    background-image: url(assets/thumbnails/the_boy_and_the_heron_filter.png);
}

.get-out {
    background-image: url(assets/thumbnails/get_out.jpg);
}

.memories-of-murder {
    background-image: url(assets/thumbnails/memories_of_murder.jpeg);
}

.the-boy-and-the-heron {
    background-image: url(assets/thumbnails/the_boy_and_the_heron.jpg);
}
/* 
.get-out .calendar-button {
    visibility: hidden;
}

.get-out:hover .calendar-button {
    visibility: visible;
} */

.get-out:hover {
    opacity: 1;
}

.memories-of-murder:hover {
    opacity: 1;
}

.the-boy-and-the-heron:hover {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    section:hover {
    flex: 2;
}
  .date {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
        width: 150px;
    }

    .month {
        padding: 0 10px;
        font-size: 36px;
        line-height: 50px;
        margin: 0;
        background-color: #9b5a91;
    }
    .day {
        padding: 0 10px;
        font-size: 102px;
        margin: 0;
        background-color: #9b5a91;
        line-height: 80px;
        margin-top: -20px;
    }

    .get-out, .memories-of-murder, .the-boy-and-the-heron {
     
        background-position: center center;
     
    }

    .get-out-filter, .memories-of-murder-filter, .the-boy-and-the-heron-filter {
    
        background-position: center center;
       
    }
}