:root {
    --dark: #1f363dff;
    --dark-click: #152429;
    --mid-dark: #40798cff;
    --mid: #70a9a1ff;
    --mid-light: #9ec1a3ff;
    --light: #cfe0c3ff;
    font-family: Verdana,sans-serif;
}

@media only screen and (min-width: 300px) {
    body {
        margin: 0;
        height: 92vh;
        display: flex;
        flex-direction: column;
    }

    .header {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        background-color: var(--mid-dark);
        padding: 0 1rem;
        height: 120px;
    }

    .spacer {
        flex: 0 0 72px;
    }

    .header-icon {
        display: block;
        flex: 0 0 72px;
        width: 85px;
        height: 85px;
    }

    .footer {
        background-color: var(--dark);
        display: flex;
        flex: 0 0 auto;
        height: 120px;
    }

    .content {
        display: flex;
        width: 85vw;
        max-width: 800px;
        padding: 1.5rem;
        background: white;
        border-radius: 15px;
        text-align: center;
    }

    .content input {
        font-size: 16px;
    }

    .btn {
        color: var(--dark);
        background-color: var(--light);
        border-radius: 8px;
        border: 2px solid;
        border-color: var(--dark);
        padding: 8px 12px;
        text-align: center;
        text-decoration: none;
        font-size: 16px;
        cursor: pointer;
    }

    .align-left {
        align-items: flex-start;
        margin-left: 5vw;
    }

    .inputs {
        display: flex;
        flex: 1 0 auto;
        flex-direction: column;
    }

    .inputs div {
        flex: 1 0 auto;
    }

    .inputs input {
        margin-bottom: 10px;
    }
}

@media only screen and (min-width: 700px) {
    body {
        margin: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .header {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        background-color: var(--mid-dark);
        padding: 0 1rem;
        height: 80px;
    }

    .spacer {
        flex: 0 0 64px;
    }

    .icon-link {
        display: flex;
    }

    .header-icon {
        display: block;
        flex: 0 0 64px;
        width: 80px;
        height: 80px;
    }

    .footer {
        background-color: var(--dark);
        display: flex;
        flex: 0 0 auto;
        height: 80px;
    }

    .content {
        display: flex;
        width: 90vw;
        max-width: 800px;
        padding: 1.5rem;
        background: white;
        border-radius: 5px;
        text-align: center;
    }

    .content input {
        font-size: 16px;
    }

    .btn {
        color: var(--dark);
        background-color: var(--light);
        border-radius: 8px;
        border: 2px solid;
        border-color: var(--dark);
        padding: 8px 12px;
        text-align: center;
        text-decoration: none;
        font-size: 16px;
        cursor: pointer;
    }

    .align-left {
        align-items: flex-start;
        margin-left: 5vw;
    }

    .inputs {
        display: flex;
        flex: 1 0 auto;
        flex-direction: row;
        justify-content: space-between;
        column-gap: 5vw;
    }

    .inputs div {
        flex: 1 0 auto;
    }

    .inputs input {
        margin-bottom: 10px;
    }
}

.title {
    flex: 1;
    text-align: center;
    color: var(--light);
}

.footer-text {
    display: inherit;
    align-content: center;
    justify-content: center;
    margin: auto;
    background-color: inherit;
    border: none;
    outline: none;
    text-align: center;
    color: white;
}

.footer-text a {
    cursor: pointer;
    text-decoration: none;
    color: var(--mid-light);
    padding-left: 5px;
}

.footer-text a:hover {
    color: var(--mid);
}

.contact-link {
    cursor: pointer;
    color: var(--mid-dark);
    text-decoration: none;
}

.contact-link a:hover {
    color: var(--mid);
}

.container {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-image: linear-gradient(
            to bottom right,
            var(--mid-light),
            var(--mid-dark)
    );
}

.content h1 {
    text-align: center;
}

.content h3 {
    text-align: center;
}

.content p {
    text-align: center;
}

.content button:hover {
    color: var(--light);
    background-color: var(--dark);
}

.content button:active {
    background-color: var(--dark-click);
}

.flex {
    display: flex;
}

.flex-vertical {
    /*display: flex;*/
    flex-direction: column;
}

.flex-horizontal {
    /*display: flex;*/
    flex-direction: row;
}

.hidden {
    display: none;
}

.section-one {
    flex: 0 0 auto;
}

.section-two {
    display: flex;
    flex: 1 0 auto;
}

.label-left {
    text-align: left;
}

#reg-form {
    flex: 1 0 auto;
}

#status {
    margin-bottom: 0;
}

#qr-link {
    display: inline-flex;
}

#qr {
    display: flex;
    justify-content: center;
}

#qr img {
    width: auto;
    height: 60vh;
}

#loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid var(--mid-light);
    border-radius: 50%;
    border-top-color: var(--mid-dark);
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}