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

:root {
    --bg-base: rgb(139, 28, 28);
    --shadow: rgba(59, 8, 8, 0.6);
    --text-base: rgba(255, 255, 255, 0.95);
    --text-muted: #ffffff33;
    --text-smooth: #ffffff80;
    --accent: rgb(255, 0, 8);
    --accent-muted: rgba(255, 0, 8, 0.45);
    --active: rgba(255, 0, 8, .7);
    --active-muted: rgba(255, 0, 8, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-base);
    font-family: 'Slabo 27px', serif;
}

body {
    background-color: var(--bg-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

header {
    letter-spacing: .1rem;
    display: flex;
    align-items: baseline;
    justify-content: center;
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--bg-base);
    z-index: 50;
}

header span {
    letter-spacing: 1px;
    font-size: 1.25rem;
    margin: 0 .5rem;
}

header span:nth-child(1) {
    font-size: 2.5rem;
    animation: snowmen 10s ease-in-out infinite;
}

@keyframes snowmen {
    0% {
        transform: scale(1)
    }

    5% {
        transform: scale(1.25)
    }

    10% {
        transform: scale(1)
    }

    60% {
        transform: rotate(0deg)
    }

    65% {
        transform: rotate(-10deg)
    }

    70% {
        transform: rotate(10deg)
    }

    75% {
        transform: rotate(0deg)
    }
}

.days {
    display: flex;
    flex-wrap: wrap;
    padding: .5rem;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}

.days.fixed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.error {
    background-color: var(--active);
    padding: .5rem 1rem;
    border-radius: 1.5rem;
    font-size: 1.5rem;
}

.snowflakes {
    height: 5px;
    width: 5px;
    border-radius: 50%;
    position: absolute;
    transition: 5s;
    transform-origin: center;
}

.day {
    flex: 1 1 0px;
    max-width: 20rem;
    margin: .25rem;
    padding: .75rem;
    text-align: center;
    border-radius: .5rem;
    border: 1px solid var(--text-muted);
    background-color: var(--text-muted);

    cursor: pointer;
    user-select: none;

    transition: .2s;
}

.day:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--shadow);
    z-index: 20;
}

.gift {
    min-width: 75px;
    height: auto;
    z-index: 5;
}

.passed {
    background-color: var(--active-muted);
}

.heute {
    background-color: var(--active-muted);
    z-index: 10;
}

.heute.animate {
    transform: scale(1.05);
    background-color: var(--active);
    animation: heute 6s ease-in-out infinite;
}

@keyframes heute {
    0% {
        transform: scale(1.05) rotate(0deg)
    }

    12% {
        transform: scale(1.05) rotate(30deg)
    }

    25% {
        transform: scale(1.05) rotate(-23deg)
    }

    37% {
        transform: scale(1.05) rotate(17deg)
    }

    50% {
        transform: scale(1.05) rotate(-10deg)
    }

    60% {
        transform: scale(1.05) rotate(2deg)
    }

    70% {
        transform: scale(1.05) rotate(0deg)
    }

    100% {
        transform: scale(1.05) rotate(0deg)
    }
}

.image-gift {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(30, 3, 7);
    z-index: 60;
    overflow: hidden;
}

.image-gift.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 1rem;
}

.card .head p {
    color: var(--text-smooth);
}

.card .head .close {
    width: 2rem;
    height: auto;
    cursor: pointer;
    user-select: none;
}

.card .photo {
    display: grid;
    place-items: center;
    height: 80vh;
}

.card .photo img {
    max-width: 100%;
    height: auto;
    max-height: 80vh;
}


/* Welcome */
.welcome {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 4s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #0d3a0d;
}

.welcome img {
    margin: 1.5rem;
    max-width: 30rem;
}

.welcome h1 {
    color: var(--text-smooth);
    text-align: center;
    font-size: 10vw;
}

.welcome .button-start {
    cursor: pointer;
    user-select: none;
    margin: .5rem;
    background-color: var(--accent-muted);
    width: fit-content;
    padding: .5rem 1.5rem;
    font-size: 1.75rem;
    border-radius: 2rem;
    text-align: center;
    transition: .8s;
}
.welcome .button-start:hover {
    background-color: var(--active);
    box-shadow: 0 0 15px var(--text-muted);
}