/* Resets and loader styles before the main bundle loads to avoid paint flashing */

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    background: #fff;
    min-height: 100%;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Barlow', sans-serif;
}

/* Forces caching */
.offline-images {
    visibility: hidden;
    pointer-events: none;
    height: 0;
    position: absolute;
}

.section-hidden {
    display: none;
}

.loader-container {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    background: #fff;
    transition: opacity .25s,visibility .25s;
    transition-delay: .5s;
}

    .loader-container.hide {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .loader {
        border: 10px solid #f3f3f3; /* Light grey */
        border-top: 10px solid #FEC700; /* Yellow */
        border-radius: 50%;
        width: 96px;
        height: 96px;
        animation: spin 2s linear infinite;
    }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
