.App {
    height: 100vh;
    width: 100vw;
    margin: 0 auto;
    background-color: whitesmoke;
    display: flex;
    flex-direction: column;
}

.App .Loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.App .Header {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex-grow: 2;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    /* This will change when we get theming */
    color: white;
    font-size: 1.5em;
    padding: 10px;
}

.App .Header .BusinessLogo {
    height: 100px;
    margin: 5px;
}

.App .Header .BusinessAddress {
    font-size: 0.5em;
    font-weight: bold;
    padding: 0px;
    margin: 0px;
}

.App .Content {
    width: 100%;
    flex-grow: 20; /* this will make the content expand */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Add subtle drop shadow to form widget */
.App .Content > div {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.App .Footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    /* height: 100px; fixed height */

    background-color: #282c34;
    color: white;
}

.App .Footer .BusinessInfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.App .Footer .BusinessInfo p {
    margin: 1px;
}

.App .Footer a {
    color: inherit;
    text-decoration: underline;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.9em;
}

.App .Footer a.XAPP {
    font-size: 0.6em;
    padding-bottom: 1.5px;
}

.App .Footer .PartnerInfo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.App .Footer .PartnerLogo {
    height: 20px;
    margin: 5px;
}

.App .Footer .PoweredBy {
    font-size: 0.6em;
    text-transform: uppercase;
}

.App-logo {
    height: 40vmin;
    pointer-events: none;
}

@media (max-width: 640px) {
    .App .Header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .App .Header .BusinessLogo {
        max-height: 50px;
        margin: 1px;
    }

    .App .Header .BusinessAddress {
        font-size: 0.35em;
        padding: 0px;
        margin: 0px;
    }

    /* Remove border radius on mobile when form is full width */
    .App .Content > div {
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .App-logo {
        animation: App-logo-spin infinite 20s linear;
    }
}

.App-header {
    background-color: #282c34;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: calc(10px + 2vmin);
    color: white;
}

.App-link {
    color: #61dafb;
}

.Error-Container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 40px;
}

@keyframes App-logo-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

    25% {
        transform: scale(0.75);
    }

    50% {
        transform: scale(1);
    }

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

.Loader {
    text-align: center;
    padding: 1em;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.Carriage {
    padding: 0;
    display: inline-block;
    width: 144px;
    transform: rotate(-45deg);
}

.Box {
    width: 40px;
    height: 40px;
    border: 2px solid #1aa7dc;
    background-color: #1aa7dc;
    display: inline-block;
    text-align: center;
    line-height: 40px;
    font-family: sans-serif;
    margin: 2px;
    flex: 0 0 auto;
    animation-name: pulse;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

.second {
    animation-delay: 0.25s;
}

.third {
    animation-delay: 0.5s;
}

.fourth {
    animation-delay: 0.75s;
}

.spacer {
    visibility: none;
    opacity: 0;
}

.white {
    background-color: transparent;
}
