body {
    background-color: white;
    font-weight: bold;
    font-family: Arial;
    font-size: 120%;
    background: url(pages/deco/background.png);
}

.centre { text-align: center; }


.intro {
    text-align: center;
    font-size: 2em;
    color: #4b81b1;
}

/* afstand boven flipboek */
.magazine-viewport {
    top: -15vh;
}

/* ⭐ DE ENIGE FIX DIE WERKT: wrapper-divs op echte paginagrootte */
.magazine .page > div {
    width: 630px !important;
    height: 612px !important;
}

.magazine .page > div > div {
    width: 630px !important;
    height: 612px !important;
}



#emailblock {
    position: fixed;
    right: 20px;
    bottom: 40px;
    font-size: 1.4em;
    font-weight: bold;
    color: #184E98;
    text-decoration: none;
    z-index: 9999;
}

#emailtext {
    position: fixed;
    right: 20px;
    bottom: 10px;
    font-size: 0.7em;
    color: #184E98;
    z-index: 9999;
}
/* CONTAINER VOOR EMAIL-TAB + TERUG-TAB (PC) */
#tab-container {
    position: relative;
    width: 100%;
    z-index: 10;
    margin-bottom: 12px;
}

/* EMAIL-TAB – PC */
.email-tab {
    position: fixed;
    left: 0;
    top: 50%;                      /* midden van het scherm */
    transform: translateY(-50%);
    background: #357ABD;
    color: white;

    width: 35px;
    height: 140px;
    padding: 12px 6px;

    border-radius: 0 8px 8px 0;
    font-size: 20px;
    font-weight: 600;

    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: normal;
    line-height: 1.1;

    display: flex;
    align-items: center;
    justify-content: center;

    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    cursor: pointer;
    user-select: none;
    z-index: 999999999;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.email-tab:hover {
    background: #4A90E2;
    transform: translateY(-50%) translateX(4px);
}

/* TERUG-TAB – PC */
.terug-tab {
    position: fixed;
    left: 0;
    top: calc(50% + 200px);        /* onder de email-tab */
    transform: translateY(-50%);
    background-color: #357ABD;
    color: #ffffff;

    width: 35px;
    height: 160px;
    padding: 20px 6px;

    border-radius: 0 8px 8px 0;
    font-size: 20px;
    font-weight: 600;

    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: normal;
    line-height: 1.1;

    display: flex;
    align-items: center;
    justify-content: center;

    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    cursor: pointer;
    user-select: none;
    z-index: 999998;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.terug-tab a {
    color: #ffffff;
    text-decoration: none;
}

.terug-tab:hover {
    background-color: #5f8ee8;
    transform: translateY(-50%) translateX(4px);
}

/* OVERLAY ACHTERGROND – PC */
.email-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    z-index: 9999999999;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* POPUP VENSTER – PC */
.email-overlay-inner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    width: 80%;
    max-width: 360px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 26px rgba(0,0,0,0.25);
    border: 2px solid #6BAE3F;
    animation: popupIn 0.25s ease;
}

.email-overlay-inner a {
    display: block;
    margin-top: 12px;
}

@keyframes popupIn {
    from { transform: translate(-50%, -40%); opacity: 0; }
    to   { transform: translate(-50%, -50%); opacity: 1; }
}

/* CLOSE BUTTON – PC */
.email-close-btn {
    margin-top: 32px;
    padding: 12px 26px;
    background: #6BAE3F;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
    transition: background 0.25s ease, transform 0.2s ease;
}

.email-close-btn:hover {
    background: #F05A5A;
    transform: translateY(-2px);
}

/* TABLET LANDSCAPE – tabs weg bij open boekje (zelfde gedrag als mobiel) */
@media screen and (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
    body.boekje-open .email-tab,
    body.boekje-open .terug-tab {
        opacity: 0 !important;
        transform: translateX(-12px) !important;
        pointer-events: none !important;
        z-index: 1 !important;
    }
}
