* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*::selection {
    background-color: transparent;
}

html {
    font-size: 16px;
    font-family: 'Press Start 2P', cursive;
    color: #fff;
    background-color: #000;
}

.visually-hidden {
    display: none;
}

html,
body,
.page {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

@keyframes fadeIn{from{visibility: hidden;transition: all 300ms cubic-bezier(.2,0,.2,1);opacity: 0;}to{visibility: visible;opacity: 1;}}
@keyframes fadeOut{from{visibility: visible;transition: all 300ms cubic-bezier(.2,0,.2,1);opacity: 1;}to{visibility: hidden;opacity: 0;}}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("background-current.jpg") no-repeat center;
    background-size: cover;
    animation: fadeIn 5s ease;
    z-index: 2;
}

.background-new {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("background-new.jpg") no-repeat top center;
    background-size: cover;
    animation: fadeIn 3s;
    z-index: 1;
}

.background-new.is-visible {
    display: block;
    animation: fadeIn 3s;
}

.background.is-hidden {
    visibility: hidden;
    animation: fadeOut 2s;
}

.page {
    position: relative;
    z-index: 9;
}

.header {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

h1 {
    font-size: 12rem;
    line-height: 12rem;
    margin-bottom: 3rem;
    text-align: center;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
    }

    70% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.95);
    }
}

h1.pulse {
    transform: scale(1);
    animation: pulse 1s infinite;
}

.countdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 70%;
    font-size: 1.2rem;
    transition: 1s ease;
}

.countdown.is-hidden {
    opacity: 0;
    transform: translateY(300px);
}

.countdown li {
    display: block;
    margin: 0 1rem;
}

#confetti {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#confetti.is-visible {
    display: block;
    animation: fadeIn 3s;
}

.santa {
    display: none;
}

.santa.is-visible {
    display: block;
    animation: fadeIn 3s;
    position: absolute;
    bottom: 0;
    right: 0;
}
