body {
    background-color: #333;
}

h1, p {
    color: white;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

p.big {
    font-weight: 700;
    font-size: 2rem;
}

#pre-loading-container {
}

.hidden {
    display: none;
}

#loading-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#loading-container img {
    width: 6rem;
}

@keyframes loading_animation {
    0% {
        opacity: 0%;
    }
    50% {
        opacity: 20%;
    }
    100% {
        opacity: 0%;
    }
}

@keyframes loading_complete_animation {
    0% {
        opacity: 0%;
        width: 3rem;
    }
    20% {
        opacity: 100%;
        width: 5rem;
    }
    80%{
        opacity: 60%;
    }
    100% {
        opacity: 0%;
        width: 9999rem;
    }
}

@keyframes background_to_white_animation {
    0% {
        background-color: #333;
    }
    100% {
        background-color: #fff;
    }
}

@keyframes fade_out_animation {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes reveal_animation {
    0% {
        opacity: 0%;
    }
    100% {
        opacity: 100%;
    }
}

.animation-is-loading {
    animation: loading_animation 1s ease-in-out infinite;
}

.animation-is-complete {
    animation: loading_complete_animation 3s ease-in;
    animation-fill-mode: forwards;
}

.animation-to-white-background {
    animation: background_to_white_animation 3s ease-in-out;
    animation-fill-mode: forwards;
}

.animation-fade-out {
    animation: fade_out_animation 3s ease-in;
    animation-fill-mode: forwards;
}

.reveal {
    animation: reveal_animation 0.5s ease-out;
    animation-fill-mode: forwards;
}

.white-background {
    background-color: #fff;
}

/* When the body has a white background, make the text dark */
.white-background h1,
.white-background p {
    color: #333;
}

.dark-text {
    color: #333;
}
.dark-text * {
    color: #333;
}