/* ============================================================
   THE BORING PROJECT
   style.css
============================================================ */

html,
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Special Elite', monospace;
}


/* ============================================================
   KOPFBEREICH
============================================================ */

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-sizing: border-box;
    overflow: visible;
}


/* ============================================================
   TITEL
============================================================ */

#title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#projectTitle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(8px, 2vw, 10px);
    padding: 0 10px;
    box-sizing: border-box;
}

.titleText {
    font-size: clamp(24px, 5vw, 56px);
    color: #444;
    line-height: 1;
    transform: translateY(0);
    white-space: nowrap;
}

.titleLogo {
    cursor: pointer;
    position: relative;
    top: 2px;
    z-index: 2100;
}

.titleImage {
    height: clamp(90px, 13vw, 120px);
    display: block;
}


/* ============================================================
   WERKZEUGBEREICH
============================================================ */

#controls {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 40px;
    background: white;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    padding-right: 25px;
    padding-top: 0;
    box-sizing: border-box;
    z-index: 3000;
    transition: transform .4s ease;
}

body.overlay-open #controls {
    transform: translateY(200%);
}


/* ============================================================
   BEDIENBUTTONS
============================================================ */

.uiButton,
.titleLogo,
#overlayClose {
    -webkit-tap-highlight-color: transparent;
}

.uiButton {
    width: 70px;
    height: 70px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    transform: translateY(-34px);
    position: relative;
}

.uiButton img {
    width: 70px;
    height: 70px;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
}


/* ============================================================
   BUTTON ABSTÄNDE
============================================================ */

#randomButton {
    margin-bottom: 8px;
}


/* ============================================================
   KLICK-FEEDBACK
============================================================ */

.uiButton.feedback-shake {
    animation:
        buttonShake
        .45s
        ease-in-out;
}

.uiButton.feedback-rotate {
    animation:
        motifRotate
        1.2s
        linear
        infinite;
}


/* ============================================================
   BUTTON ANIMATIONEN
============================================================ */

@keyframes buttonShake {

    0%,
    100% {
        transform:
            translateY(-34px)
            rotate(0deg);
    }

    25% {
        transform:
            translateY(-34px)
            rotate(-9deg);
    }

    50% {
        transform:
            translateY(-34px)
            rotate(9deg);
    }

    75% {
        transform:
            translateY(-34px)
            rotate(-5deg);
    }
}

@keyframes motifRotate {

    0% {
        transform:
            translateY(-34px)
            rotate(0deg);
    }

    100% {
        transform:
            translateY(-34px)
            rotate(360deg);
    }
}


/* ============================================================
   OVERLAY
============================================================ */

#shopOverlay {
    position: fixed;
    top: 0;
    right: -66%;
    width: 66%;
    height: 100vh;
    height: 100dvh;
    background: white;
    z-index: 4000;
    transition: right .4s ease;
    box-sizing: border-box;
    padding: 170px 30px 30px 30px;
    overflow: hidden;
}

#shopOverlay.visible {
    right: 0;
}


/* ============================================================
   OVERLAY SCHLIESSEN
============================================================ */

#overlayClose {
    position: fixed;
    width: 55px;
    height: 55px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 7000;
    overflow: visible;
}

#overlayClose img {
    width: 66px;
    height: 66px;
    display: block;
    position: absolute;
    left: 0;
    top: -11px;
}


/* ============================================================
   OVERLAY INHALT
============================================================ */

#overlayContent {
    font-family: 'Special Elite', monospace;
    width: 100%;
    box-sizing: border-box;
}

#shopContent {
    display: block;
    width: 100%;
}

#infoContent {
    display: none;
}


/* ============================================================
   VERSE
============================================================ */

#infoContent,
#motifSearchContent {
    text-align: center;
}

#infoContent p,
#motifSearchContent p {
    margin: 0 0 28px 0;
    text-align: center;
}

#infoContent .verseLine,
#motifSearchContent .verseLine {
    display: block;
    white-space: nowrap;
}


/* ============================================================
   MOTIVBILD
============================================================ */

#overlayMotifWrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100%;
    height: 360px;

    margin: 30px 0;

    box-sizing: border-box;
    overflow: hidden;
}


/* ============================================================
   EIGENTLICHES MOTIV
============================================================ */

#overlayMotifImage {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: left center;

    flex-shrink: 0;
}

#overlayMotifImage[hidden] {
    display: none;
}


/* ============================================================
   CAT NUMMER
============================================================ */

#overlayNumber {
    font-size: 18px;
    margin-bottom: 15px;
}


/* ============================================================
   STATEMENT
============================================================ */

#overlayStatement {
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
}


/* ============================================================
   SHOP LINK
============================================================ */

#overlayShopLink {
    display: block;
    width: fit-content;

    margin: 30px 0 0;

    color: black;
    text-decoration: none;

    font-size: 22px;
}


/* ============================================================
   KARTE
============================================================ */

#map {
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    height: calc(100vh - 85px);
}

.leaflet-container {
    background: white;
}


/* ============================================================
   MOTIF SEARCH SPIRALE
============================================================ */

.motifSearchSpiral {
    width: 100px;
    height: 100px;

    display: block;

    margin: 50px auto 0;

    animation:
        motifSearchSpin
        2s
        linear
        infinite;
}

@keyframes motifSearchSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .uiButton.feedback-shake,
    .uiButton.feedback-rotate,
    .motifSearchSpiral {
        animation: none;
    }
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    #header {
        height: 95px;
    }

    #map {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .titleText {
        font-size: 28px;
        transform: translateY(0px);
    }

    .titleImage {
        height: 105px;
    }

    .titleLogo {
        top: 12px;
    }


    /* ----------------------------------------
       Overlay
    ---------------------------------------- */

    #shopOverlay {
        width: 66%;
        right: -66%;
        padding: 130px 30px 30px 30px;
    }


    /* ----------------------------------------
       Motivbereich
    ---------------------------------------- */

    #overlayMotifWrap {
        width: 100%;
        height: 300px;
        margin: 25px 0;
    }

    #overlayMotifImage {
        max-width: 100%;
        max-height: 100%;
    }

    #overlayShopLink {
        margin-top: 25px;
        font-size: 21px;
    }
}