:root {
    --button-height: 50px;
}


html {
    width: 900px;
    margin: 0 auto;
    background: url('/assets/images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    backdrop-filter: blur(0.25rem);
    background-color: rgba(240, 240, 240, 0.75) !important;
}

body {
    background-color: transparent !important;
    height: 100vh;
    display: flex;
    font-family: 'Franklin Gothic Book', Arial, Helvetica, sans-serif !important;
}

.main-container {
    background-color: rgba(240, 240, 240, 0.75) !important;
    width: 100%;
    height: fit-content;
    backdrop-filter: blur(0.25rem);
    display: block;
    margin: auto;
    box-shadow: rgba(0, 35, 71, 0.45) 7.5px 7.5px 7.5px 0px;
    border-radius: 2rem;
}

header {
    width: 100%;
    height: 100px;
    background-color: #004c99;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
}

header img {
    padding: 1rem 0;
    height: 100%;
    align-self: center;
}

main {
    padding: 4rem 0;
    width: 600px;
    margin: 0 auto;
}

main>div:not(:last) {
    margin-bottom: 3rem;
}

h1 {
    margin-bottom: 2rem !important;
    font-weight: 700 !important;
}

.app-button-container {
    height: var(--button-height);
    position: absolute;
    bottom: 0;
    width: calc(100% - var(--bs-gutter-x));
}

.app-button {
    display: inline-block;
    min-height: 40px;
    height: var(--button-height);
    width: fit-content;
    position: absolute;
}

.app-button img {
    height: 100%;
    vertical-align: middle;
    object-fit: contain;
}

.app-button:first-of-type {
    left: 0;
    margin-left: calc(var(--button-height) / 4);
}

.app-button:last-of-type {
    right: 0;
    margin-right: calc(var(--button-height) / 4);
}

.app-icon {
    display: flex;
    margin: 0 auto;
    border-radius: calc(200px / 4);
    width: 200px;
    height: 200px;
}

.phone-view {
    width: 100%;
}

footer {
    width: 100%;
    min-height: 60px;
    background-color: #004c99;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
}

footer > p {
    width: 100%;
    color: white;
    margin: 0 2rem;
    text-align: right;
}

@media (max-width: 900px) {
    html {
        width: 100%;
    }

    main {
        padding: 3rem 3rem calc(60px + 3rem) 3rem;
        width: 100%;
        margin: 0 auto;
    }

    .main-container {
        min-height: 100%;
        border-radius: 0;
    }

    header, footer {
        border-radius: 0;
    }

    footer {
        position: absolute;
        bottom: 0;
    }
}

@media (max-width: 661px) {
    main {
        padding: 1rem 1rem calc(60px + 1rem) 1rem;
        width: 100%;
        margin: 0 auto;
    }

    .app-button {
        margin: 0 !important;
    }
}

/* sm and xs */
@media (max-width: 576px) {
    .phone-view {
        width: 40%;
        margin: 0 auto;
        display: block;
        margin-bottom: 1rem;
    }

    .app-button-container {
        height: var(--button-height);
        position: relative;
        width: calc(100% - var(--bs-gutter-x));
    }

}

@media (max-width: 400px) {

    .app-button-container {
        height: fit-content;
        position: relative;
        width: calc(100% - var(--bs-gutter-x));
    }

    .app-button {
        right: unset !important;
        left: unset !important;
        position: relative !important;
        width: 100%;
        margin: calc(var(--button-height) / 4) auto !important;
        display: flex;
        justify-content: center;
    }
}

/* Redirect spinner overlay */
.redirect-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    color: white;
    flex-direction: column;
    gap: 1rem;
}
.redirect-overlay .message {
    font-size: 1.125rem;
    text-align: center;
}