:root {
    --bg-color: #fedada;
    --text-color: #fff;
    --day-date-bg-color: rgba(0, 0, 0, 0.2);
    --footer-color: rgba(0, 0, 0, 0.5);

    --day-bg-color: rgba(255, 255, 255, .25);
    --day-bg-color-red: #d65151;
    --day-bg-color-green: #17c166;
    --day-bg-color-gold: rgb(236, 202, 48);
}

* {
    margin: 0;
    padding: 0
}

html {
    height: 100%;
}

@font-face {
    font-family: pacifico;
    src: url('./assets/Pacifico-Regular.ttf');
}

@font-face {
    font-family: poppins-bold;
    src: url('./assets/Poppins-Bold.ttf');
}

@font-face {
    font-family: poppins-medium;
    src: url('./assets/Poppins-Medium.ttf');
}

h1.colorful span {
    color: var(--day-bg-color-green);
}

h1.colorful span:nth-child(even) {
    color: var(--day-bg-color-red);
}

.container {
    width: 80%;
    max-width: 1100px;
    margin: 0 auto;
}

.cols {
    display: flex !important;
    gap: 1.5rem;
}

.error {
    text-align: center;
    color: var(--day-bg-color-red)
}

a {
    color: white;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

body {
    background-color: var(--bg-color);
    background-image: url('./assets/bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom 25%;
    background-attachment: fixed;
    background-blend-mode: multiply;
    color: var(--text-color);
    font-family: poppins-medium, sans-serif;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

body.freeze {
    overflow: hidden;
}

body::after {
    backdrop-filter: blur(5px);
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.33);
    z-index: -1;
}

h1 {
    font-family: pacifico, serif;
    font-weight: normal;
    font-size: 4.5rem;
    text-align: center;
    padding: .5em 0;
}

.days {
    display: grid;
    grid-gap: 1.6rem;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    margin: 1em;
}

.day {
    background: var(--day-bg-color);
    box-shadow: 0px 0 15px rgba(0, 0, 0, 0.38);
    border-radius: 15px;
    text-align: center;
    line-height: 100%;
    position: relative;
    transition: transform .3s ease-out;
    user-select: none;
}

.day[data-video]:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
    cursor: pointer;
}

.day.red {
    background: var(--day-bg-color-red);
}

.day.green {
    background: var(--day-bg-color-green);
}

.day.gold {
    background: var(--day-bg-color-gold);
}

.day span {
    font-family: poppins-bold, sans-serif;
    font-size: 3.8rem;
    display: block;
    padding: .55em 0;
}

.day .date {
    background: var(--day-date-bg-color);
    border-radius: 0px 0px 15px 15px;
    font-size: 1.2rem;
    padding: .5em 0;
}

.modal {
    position: fixed;
    top: 0;
    height: 100vh;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.84);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.modal iframe {
    aspect-ratio : 16/9;
    width: 100%;
    height: auto;
    max-height: 85%;
    max-width: 79%;
    border: none;
}

.modal.visible {
    display: flex;
}

.modal .closeBtn svg {
    fill: var(--text-color);
    width: 100%;
    height: 100%;
}

.modal .closeBtn {
    user-select: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    height: 2.2rem;
    width: 2.2rem;
    cursor: pointer;
    transition: filter .12s ease-out;
}

.modal .closeBtn:hover {
    filter: brightness(0.8);
}

.logo {
    width: 80%;
    max-width: 180px;
    display: block;
    margin: 3.5rem auto;
}

.socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.socials a {
    display: flex;
    align-items: center;
}

.socials img {
    width: 100%;
    height: 100%;
    max-width: 30px;
    max-height: 30px;
}

a.social {
    transition: opacity .25s ease-out;
}

a.social:hover {
    opacity: .8;
    transition: opacity .25s ease-out;
}

footer {
    margin-top: auto;
    padding: 1em 0;
    background-color: var(--footer-color);
    color: rgba(255, 255, 255, 0.788);
}

footer ul {
    list-style: none;
}

footer ul li:not(:first-child) {
    margin-top: .5rem;
}

.center-content {
    text-align: center;
}

footer a {
    color: rgba(255, 255, 255, 0.788);
}

footer a:hover {
    color: white;
}

footer .container {
    justify-content: space-between;
    align-items: center;
}

@media only screen and (max-width: 1000px) and (min-width: 769px) {
    .container {
        width: 85%;
    }

    h1 {
        font-size: 3.5rem;
    }

    .day span {
        font-size: 3rem;
    }

    .day .date {
        font-size: 1.1rem;
    }

    footer .cols > * {
        max-width: 50%;
    }

    .socials img {
        max-width: 35px;
        max-height: 35px;
    }
}

@media only screen and (max-width: 768px) {
    html {
        height: auto;
    }

    body {
        font-size: 0.9rem;
        display: block;
        min-height: auto;
        background-attachment: scroll;
    }

    .container {
        width: 90%;
    }

    .cols {
        flex-direction: column;
    }

    .cols > *:not(:last-child) {
        margin-right: 0;
    }

    h1 {
        padding: 1.2em 0;
        font-size: 2rem;
        line-height: 1.2;
    }

    .days {
        grid-gap: 1.1rem;
    }

    .day {
        box-shadow: 0px 0 15px rgba(0, 0, 0, 0.125);
    }

    .day span {
        font-size: 2.5rem;
        padding: .7em;
    }

    .day .date {
        font-size: 1rem;
    }

    .modal iframe {
        max-width: 100%;
    }

    footer {
        padding: 2em 0;
        text-align: center;
    }

    .socials {
        flex-direction: column;
    }

    .socials img {
        max-width: 30px;
        max-height: 30px;
    }
}