#profile {
    align-items: center;
    align-self: center;
}

button {
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 2px;
    color: #444;
    cursor: pointer;
    font-size: 22px; /* fallback */
    font-size: var(--mobile-font-size);
    font-weight: 500;
    padding: 10px;
    margin-right: 1em;
}

button:hover {
    background-color: #ccc;
    color: black;
}

input {
    border: 1px solid #ccc;
    font-size: 22px; /* fallback */
    font-size: var(--mobile-font-size);
    padding: 15px;
    width: 90%; /* fallback */
    width: calc(100% - 30px); /* full width minus padding */
}

input[type=email]:not(:focus):invalid,
input[type=password]:not(:focus):invalid {
    color: red;
    outline-color: red;
}

label {
    display: block;
    font-size: 20px;
    font-size: var(--mobile-font-size);
    font-weight: 500;
    margin: 0 0 3px 0;
}

section {
    margin: 0 0 20px 0;
    position: relative;
}


.loggedout {
    background-color: darkred !important;
}

.loggedin {
    background-color: darkcyan !important;
}

.profile {
    align-items: center;
    align-content: center;
    display: flex;
    flex-direction: column;
}

.logout {
    margin-top: 1em;
}

@media (min-width: 450px) {
    button {
        font-size: 14px; /* fallback */
        font-size: var(--desktop-font-size);
    }
    input {
        font-size: 14px; /* fallback */
        font-size: var(--desktop-font-size);
    }
    label {
        font-size: 14px; /* fallback */
        font-size: var(--desktop-font-size);
    }
}
