body {
    background: url("RS_Background.jpg") no-repeat center center fixed;
    background-size: cover;
    background-blend-mode: darken;
}

h2 {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-decoration: none;
    font-size: 3em;
    font-weight: 300;
    padding: 15px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.25);
    text-align: center;
}

main {
    text-align: center;
    margin-top: 2rem;
}

.after-login {
    text-align: center;
    margin-top: 2rem;
}

.photo-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.centered-image {
    max-width: 65%;
    height: 10%;
    border-radius: 12px;
    margin-left: -250px;
}

/* Login form */
.login {
    font-size: 2em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    text-align: center;
}

.login input {
    font-family: 'Celliad', serif;
    font-size: 1em;
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 5px;
    display: block;
    box-sizing: border-box;
}

.login button {
    font-family: 'Celliad', serif;       
    font-size: 1em;
    width: 60%;
    padding: 8px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 15px auto;
}

.login button:hover {
    background-color: #2e8633;

}

/* Side text blocks */
.side-text {
    font-size: 2.5rem;
    font-style: italic;
    font-family: 'Celliad', serif;  
    color: #ffffff;
    max-width: 30%;
    word-break: break-word;
    margin-top: 10%;
}

.side-text.left {
    text-align: right;
}

.side-text.right {
    text-align: center;
}

/* Subline under "Bedankt" */
.side-text .subtext {
    font-size: 2.5rem;
    font-style: normal;
    display: block;
    margin-top: 0.5rem;
}

/* Green button on right */
.open-iframe {
    background-color: #4caf50;
    color: white;
    font-size: 1.8rem;
    font-family: 'Celliad', serif;
    border: none;
    border-radius: 8px;
    padding: 1px 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    position: fixed;
    bottom: 2.5%;
    right: 2.5%;
}

.open-iframe:hover {
    background-color: #2e8633;
}

/* Iframe overlay */
#delayed-content {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: white;
}

/* Verborgen foto + herpositioneren van tekst/knop op mobiele schermen */
@media (max-width: 900px) {
    .centered-image {
        display: none; /* foto weghalen */
    }

    .side-text {
        max-width: 98%;       /* volledige breedte gebruiken */
        flex-wrap: wrap;
        text-align: center;   /* tekst centreren */
        font-size: 1.8rem;    /* wat kleinere tekst */
        margin: 0 auto;
    }

    .side-text .subtext {
        font-size: 1.8rem;
        font-style: normal;
        display: block;
        margin-top: 0.5rem;
    }

    .open-iframe {
        position: static;
        display: block;       /* knop neemt volledige breedte */
        margin: 1.5rem auto;  /* centreren met automatische marges */
        width: fit-content;   /* knop past zich aan aan tekst */
        min-width: calc(100% - 5%); /* minimaal 95% van scherm */
        max-width: 95%;       /* maximaal 95% van scherm */
        font-size: 1.8rem;    /* iets kleiner zodat hij goed past */
        padding: 5px 20px;
        box-sizing: border-box; /* padding included in width */
        white-space: nowrap;  /* tekst op één lijn houden */
    }
}

/* Extra kleine schermen - tekst mag wrappen */
@media (max-width: 270px) {
    .open-iframe {
        white-space: normal;  /* tekst mag naar tweede lijn op zeer kleine schermen */
        min-width: auto;      /* geen minimale breedte meer */
    }
}
