/* ==========================================================================
   HEISA - basisstijl van de site (menu, welkomstscherm, quotes)
   ========================================================================== */

:root {
    color-scheme: dark;
}

/* ===== Basis ===== */
html, body {
    height: 100%;
    height: 100dvh; /* Vaste hoogte die niet verspringt op mobiel */
}

body {
    position: relative;
    margin: 0;
    padding: 0;
    background-color: #000; /* Basis altijd strak zwart */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-style: normal;
    font-size: 10pt;
    font-weight: 300;
    text-align: left;
}

/* Virtueel vlak achter de content waarop de achtergrondfoto infadet */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh; /* Mobiele Safari */
    background: #000 var(--bg-url) no-repeat center center;
    background-size: cover;
    z-index: -1; /* Foto blijft ACHTER tekst en menu's */
    opacity: 0;
    animation: bgFadeIn 1s ease-in-out forwards;
}

@keyframes bgFadeIn {
    to { opacity: 1; }
}

#master {
    height: 100%;
    overflow-y: scroll; /* Moet scroll zijn, niet auto, voor iOS touch-veerkracht */
    -webkit-overflow-scrolling: touch;
    text-align: center;
}

#heading {
    text-align: center;
}

#title {
    position: absolute;
    left: 0;
    top: 50px;
    z-index: 500;
    cursor: pointer;
}

#title span {
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    letter-spacing: 2pt;
    font-weight: 400;
    text-align: left;
    font-size: 4vh;
    color: #fff;
    opacity: 0.05;
    transition: opacity 0.4s ease-in-out;
}

#title span:hover {
    opacity: 0.5;
}

/* ===== Menu-label en hamburgerknop ===== */
#menu {
    position: fixed;
    top: 3px;
    left: 2px;
    display: block;
    width: 183px;
    height: 39px;
    line-height: 30px;
    border-radius: 9px;
    background-color: rgba(16, 16, 16, 0.7);
    color: #fff;
    font-weight: 700;
    font-size: 46px;
    text-indent: 51px;
    z-index: 998;
    opacity: 0;
    animation: pulse 5s ease-in-out 0.8s;
}

@keyframes pulse {
    0%, 100% { opacity: 0; }
    50%      { opacity: 1; }
}

.container {
    position: fixed;
    display: inline-block;
    width: 50px;
    left: 2px;
    top: 3px;
    border-radius: 7px;
    z-index: 999;
    cursor: pointer;
}

.bar1, .bar2, .bar3 {
    position: relative;
    width: 35px;
    height: 5px;
    margin: 6px auto;
    border-radius: 3px;
    background-color: #fff;
    transition: 0.4s;
}

/* Hamburger wordt een kruisje */
.change .bar1 {
    background-color: #fff !important;
    transform: rotate(-45deg) translate(-9px, 6px);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    background-color: #fff !important;
    transform: rotate(45deg) translate(-9px, -8px);
}

a.homeSVG {
    position: fixed;
    display: none;
    width: 30px;
    height: 30px;
    top: 45px;
    left: 12px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
    transition: 0.6s;
    opacity: 0;
}

.change a.homeSVG {
    display: block;
    opacity: 1;
}

/* Random-album knop (onder de home-knop) */
a.randomSVG {
    position: fixed;
    display: none;
    width: 30px;
    height: 30px;
    top: 86px;
    left: 12px;
    margin: 0;
    padding: 0;
    border: none;
    background-color: transparent;
    transition: 0.6s;
    opacity: 0;
}
/* Home en pijl-omhoog: lijn iets dikker maken */
/* Home en pijl-omhoog: vaste maat, zodat de SVG nooit uitzet */
a.homeSVG svg {
    width: 30px;
    height: 30px;
    overflow: visible; /* dikkere lijn aan de rand niet afknippen */
}
a.homeSVG path {
    stroke: #fff;
    stroke-width: 12;
    stroke-linejoin: round;
}
#back-to-top svg {
    width: 32px;
    height: 32px;
    min-width: 0;
    overflow: visible;
}
#back-to-top path {
    stroke: #fff;
    stroke-width: 8;
    stroke-linejoin: round;
}

.change a.randomSVG {
    display: block;
    opacity: 1;
}

/* ===== Menu dicht (.fade) ===== */
.fade {
    position: fixed;
    width: 0;
    top: 0;
    left: 0;
    border-right: 0 solid #222;
    background-color: #333;
    z-index: 998;
    transition: 0.4s;
    text-align: center;
}

.fade #menulist {
    position: relative;
    width: 800px;
    margin: 40px auto 0 auto;
    opacity: 0;
}

.fade a {
    display: none;
    width: 0;
    height: 0;
    border-radius: 15px 15px 0 15px;
    background-color: #000;
    box-shadow: 0 0 7px #000;
    color: #fff;
    text-decoration: none;
    font-size: 0;
}

.fade a.homeSVG {
    display: block;
    position: fixed;
    width: 0;
    height: 0;
    top: 45px;
    left: 10px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
    transition: 0.3s;
}

/* ===== Menu open (.fadeX): schermvullend overzicht ===== */
.fadeX {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-right: 0 solid var(--accent, #c4a808);
    background: rgba(16, 16, 16, 0.95);
    text-align: center;
    z-index: 998;
    transition: 0.6s;
    overflow: scroll;
    scrollbar-gutter: stable; /* Voorkomt het verspringen van de lay-out */
}

.fadeX #menulist {
    position: relative;
    height: 100%;
    width: 75%;
    margin: 1% auto 0 auto;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease-in 0.6s;
}

/* Tegels in het menu-overzicht en de album-/achtergrondselectie */
.fadeX a,
#bg_select a {
    display: inline-block;
    position: relative;
    width: 210px;
    height: 200px;
    margin: 7px;
    border: 7px solid #fff;
    border-radius: 19px 19px 0 19px;
    background-color: #fff;
    overflow: hidden;
    font-size: 12pt;
    text-decoration: none;
    color: #000;
}

.fadeX #menulist a:hover {
    box-shadow: 0 0 3px 1px var(--accent, #c4a808);
    transition: 0.3s;
}

.fadeX a img,
#bg_select a img {
    display: inline-block;
    width: 210px;
    height: 139px;
    margin-bottom: 5px;
    padding-bottom: 4px;
    border-radius: 15px;
    filter: saturate(100%);
}

#bg_select {
    position: relative;
    height: 100%;
    width: 75%;
    margin: 1% auto 0 auto;
    text-align: center;
    opacity: 1;
}

.fadeX a span {
    display: inline;
    float: left;
    width: 210px;
    height: 57px;
    color: inherit;
    transition: color 0.5s;
}

.fadeX a:hover > img {
    filter: saturate(130%);
}

.fadeX a:hover > span {
    color: var(--accent, #c4a808);
    transition: color 0.3s;
}

#menulist svg {
    width: 230px;
    height: 100px;
    fill: #fff;
}

/* ===== Terug naar boven ===== */
#back-to-top {
    position: fixed;
    top: 127px; /* was 86px: zakt onder de random-knop */
    left: 11px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 2px;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease-out;
    opacity: 0;
    pointer-events: none; /* Voorkomt blokkeren van de onderliggende AA-knop */
}

#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Info rechtsboven (logo + plaats) ===== */
#bg_info {
    position: fixed;
    top: 10px;
    right: 10px;
    color: #fff;
    text-align: right;
}

#bg_info p {
    margin: 0 27px 5px 0;
    opacity: 0.2;
    transition: opacity 0.5s;
    animation: where 10s ease-in-out;
}

@keyframes where {
    0%   { opacity: 1; }
    100% { opacity: 0.2; }
}

#bg_info .logo {
    display: inline;
    width: 385px;
    height: 160px;
    animation: logo 10s ease-in-out 1s;
}

@keyframes logo {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.7; }
}

#bg_info span {
    display: inline;
    margin: 0 20px 0 0;
    font-size: 120%;
    letter-spacing: 6px;
}

#bg_info:hover > p {
    opacity: 1;
}

/* ===== Quote onderaan ===== */
#qt {
    position: fixed;
    bottom: 10px;
    max-width: 40%;
    margin: 0 auto;
    padding: 7px 15px 3px 15px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.qt_nl {
    font-size: 0;
    color: #fff;
    transition: font-size 0.5s;
}

#qt:hover {
    background: rgba(0, 0, 0, 0.75);
}

#qt:hover > .qt_nl {
    font-size: 9pt;
    font-style: italic;
    color: #999;
}

/* ===== Tekst ===== */
h1 {
    font-size: 32pt;
}

h2 {
    letter-spacing: 2px;
}

h1, h2 {
    color: #fff;
    font-weight: 300;
    text-shadow: 0 0 1px #aaa;
    animation: shadowText 5s ease-in-out 0.8s;
}

@keyframes shadowText {
    0%, 100% { text-shadow: 0 0 1px #aaa; }
    50%      { text-shadow: 0 0 1px #333; }
}

.rotate {
    color: aqua;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
}

p {
    color: #fff;
}

/* ==========================================================================
   MOBIELE APPARATEN
   ========================================================================== */
@media screen and (max-width: 768px) and (pointer: coarse) {
    body {
        background-color: #000 !important;
    }

    .fadeX {
        background-color: #000;
    }

    h1 { font-size: 200%; }
    h2 { font-size: 150%; }

    h1, h2 {
        padding-top: 23px;
    }

    .bar1, .bar2, .bar3 {
        background-color: #fff !important;
    }

    #title,
    #bg_info p,
    #qt,
    #menu {
        display: none;
    }

    #bg_info {
        margin-top: 0;
        z-index: 2;
    }

    #bg_info .logo {
        max-width: 230px;
        max-height: 100px;
        fill: #fff !important;
    }

    #menulist svg {
        width: 173px;
        height: 75px;
        fill: #fff;
    }

    /* Fade-banner aan de bovenkant */
    body::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 190px;
        background: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.5) 60%,
            rgba(0, 0, 0, 0) 100%);
        pointer-events: none; /* Klikken/tappen gaan door de banner heen */
        z-index: 1;           /* Boven de achtergrondfoto (-1), onder menu-knoppen */
    }
}
