body {
    margin: 0;
    background-color: white !important;
}

body.dark {
    background-color: var(--color-background-primary) !important;
}

main {
    display: block;
    width: 100%;
}

/*** Offline status fallback ***/

/* Avoid flickering while JS loads */

@keyframes status {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.status {
    min-height: 100vh;
    background-color: #f3f2f2 !important;
    opacity: 0;
    animation: status 0s 1s forwards;
}

.status__header {
    height: 3rem;
    padding: 0.4rem;
    background-color: #ffffff;
    box-shadow: rgba(189, 189, 188, 0.5) 0px 4px 4px 0px, rgba(189, 189, 188, 0.5) 0px 0px 8px 0px;
}

.status__header svg {
    height: 100%;
}

.status__header svg[data-large] {
    display: none;
}

.status__header svg[data-small] {
    display: block;
    margin: 0 auto;
}

@media screen and (min-width: 480px) {
    .status__header {
        height: 5rem;
        padding: 1rem;
    }
    .status__header svg[data-large] {
        display: block;
    }
    .status__header svg[data-small] {
        display: none;
    }
}

.status__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    max-width: 45rem;
    text-align: center;
}

@media screen and (min-width: 480px) {
    .status__body {
        align-items: flex-start;
        text-align: left;
    }
}

.status__body img {
    max-width: 15rem;
    width: 100%;
    margin: 2rem 0;
}

@media screen and (min-width: 480px) {
    .status__body img {
        width: 100%;
        max-width: 25rem;
    }
}

/*** SSR Buttons ***/

.button-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.button-group .button + .button {
    margin-top: 0.5rem;
}

@media screen and (min-width: 480px) {
    .button-group {
        flex-direction: row;
    }
    .button-group .button + .button {
        margin-top: 0;
        margin-left: 0.5rem;
    }
}

.button {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.2rem;
    min-width: 44px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    color: #ffffff;
    background-color: #95c300;
}

.button:hover {
    text-decoration: none;
    color: #ffffff;
}

.button--secondary {
    background-color: #00609c;
}

.button--ghost {
    color: #00609c;
    background-color: #ffffff;
    border: 2px solid #00609c;
}

.button--ghost:hover {
    color: #00609c;
}
