/* Prevent font scaling in landscape */
html {
    -webkit-text-size-adjust: 100%;
}

/* Prevents FOUC (https://www.jacobmilhorn.com/posts/solving-fouc-in-web-components/) */
*:not(:defined) {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

button:disabled {
    opacity: 0.3;
}

/* Form status */
.inputerror {
    background-color: #ff00000d;
    border-color: rgb(255 107 107 / 60%);
}

.inputnoerror {
    background-color: #09ff000d;
    border-color: rgb(107 255 126 / 50%);
}

/* Article styling */
porton-article-section h3 {
    margin-bottom: 0.25rem;
}

porton-article-section p {
    margin-bottom: 2rem;
}

/* Columns width fix */
porton-columns {
    width: 100%;
}

/* Login form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-form input {
    margin-bottom: 0.5rem;
    color: #1b1d2d;
    border-color: rgba(180, 203, 250, 0.3);
}

.login-form button {
    color: white;
    background-color: #cb397a;
    height: 2.3rem;
}

.login-form a {
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
}

porton-login-dialog a {
    color: rgb(47, 54, 153);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Table fix */
porton-table {
    width: 100%;
}

/* Maintenance page (standalone, no web components) */
.maintenance {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 37.5rem;
    margin: 0 auto;
    padding: calc(3rem + 2vw) calc(1rem + 1vw) 4rem;
}

.header-logo {
    width: 16rem;
    max-width: 80%;
    height: auto;
    margin: 0 auto;
}

.maintenance-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: calc(1.5rem + 1vw);
    border: 1px solid rgba(180, 203, 250, 0.1);
    border-radius: 0.5rem;
    background-color: #1b1d2d;
}

.maintenance-box h1 {
    font-family: Alexandria, sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: white;
    opacity: 1;
}

/* Payment options */
a.paymentoption {
    color: white;
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(3, auto);
    grid-template-areas:
        "img text button"
        "img slot button"
        "img smalltxt button";
    place-items: center start;
    gap: 0.5rem 1rem;
}

a.paymentoption b {
    grid-area: text;
}

a.paymentoption .smalltxt {
    grid-area: smalltxt;
    font-size: 0.8rem;
    color: #b4cbfa;
    text-decoration-color: #b4cbfa;
}

a.paymentoption img {
    grid-area: img;
}

a.paymentoption input {
    grid-area: button;
    opacity: 0;
}

a.paymentoption br {
    display: none;
}

.porton-preview {
    width: 36rem;
    max-width: 50%;
}

@media only screen and (max-width: 50rem) {
    .porton-preview {
        max-width: 100%;
    }
}
