/* bigelow-rules-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Bigelow Rules';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/bigelow-rules-v29-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  
body {
    font-family: Arial, Helvetica, sans-serif;
    width: 100vw;
    min-height: 100vh;
    /* mobile viewport bug fix */
    min-height: -webkit-fill-available;
    margin:0;
}

html {
  height: -webkit-fill-available;
}

#screen {
    background-color: #aaf;
    position: relative;
    top:0;
    left: 0;
    width:100vw;
    height:100vh;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 80%;

    overflow: hidden;
}
@supports not (background-image: url("../images/Alm_l.webp")) {
    #screen {
        background-image: url("../images/Alm.jpg")
    }
}
@supports (background-image: url("../images/Alm_l.webp")) {
    #screen {
        background-image: url("../images/Alm_l.webp")
    }
}

#frame {
    position: absolute;
    top:0;
    left: 0;
    width:100%;
    height:100vh;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
    /*border: 1px solid blue;*/
}
.framewrapper {
    position: relative;
    width: 100%; height:100%;
    /*border: 1px solid lightgreen;*/
}
#frame .kugel {
    position: absolute;
    top: 0;
    left: 10vh;
    pointer-events: none;
    width: 20vh;
    height: 40vh;

    background-size: contain;
    z-index: -1;
    animation: animatebulb 3s infinite alternate ease-in-out;
    pointer-events:all;
    cursor: pointer;
}
@supports not (background-image: url("../images/Kugel_NN-Logo.webp")) {
    #frame .kugel {
        background-image: url("../images/Kugel_NN-Logo.png")
    }
}
@supports (background-image: url("../images/Kugel_NN-Logo.webp")) {
    #frame .kugel {
        background-image: url("../images/Kugel_NN-Logo.webp")
    }
}
.frame {
    position: absolute;
    pointer-events: none;
}
.frame.top {
    top: 0;
    left: 0;
    width: 100%;
    height: 14vh;

    background-size: auto 100%;
    transform: translate(0, -20%);
    /*border: 1px solid green;*/
}
@supports not (background-image: url("../images/zweige-licht_o2.webp")) {
    .frame.top {
        background-image: url("../images/zweige-licht_o2.png")
    }
}
@supports (background-image: url("../images/zweige-licht_o2.webp")) {
    .frame.top {
        background-image: url("../images/zweige-licht_o2.webp")
    }
}
.frame.bottom {
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 14vh;

    background-size: auto 100%;
    transform: translate(0, 20%);
    /*border: px solid blue;*/
}
@supports not (background-image: url("../images/zweige-licht_u2.webp")) {
    .frame.bottom {
        background-image: url("../images/zweige-licht_u2.png")
    }
}
@supports (background-image: url("../images/zweige-licht_u2.webp")) {
    .frame.bottom {
        background-image: url("../images/zweige-licht_u2.webp")
    }
}
.frame.left {
    top: 0;
    left: 0;
    width: 14vh;
    height: 100%;
    background-size: 100% auto;
    /*border: 1px solid yellow;*/
}
@supports not (background-image: url("../images/zweige-licht_l2.webp")) {
    .frame.left {
        background-image: url("../images/zweige-licht_l2.png")
    }
}
@supports (background-image: url("../images/zweige-licht_l2.webp")) {
    .frame.left {
        background-image: url("../images/zweige-licht_l2.webp")
    }
}
.frame.right {
    width: 14vh;
    height: 100%;   
    top: 0;
    right: 0px;
    background-size: 100% auto;
    /*border: 1px solid orange;*/
}
@supports not (background-image: url("../images/zweige-licht_r2.webp")) {
    .frame.right {
        background-image: url("../images/zweige-licht_r2.png")
    }
}
@supports (background-image: url("../images/zweige-licht_r2.webp")) {
    .frame.right {
        background-image: url("../images/zweige-licht_r2.webp")
    }
}

#baum {
    position: absolute;
    top: 55%;
    left:50%;
    height: 100vh;
    width: 100vh;
    transform: translate(-55%, -52%);

    background-size: contain;
    background-repeat: no-repeat;
    background-position:center center;
    /*border: 1px solid green;*/
}

@supports not (background-image: url("../images/Baum_m.webp")) {
    #baum {
        background-image: url("../images/Baum.png")
    }
}
@supports (background-image: url("../images/Baum_m.webp")) {
    #baum {
        background-image: url("../images/Baum_m.webp")
    }
}


#baumwrapper {
    position: relative;
}

.kugel {
    position: absolute;
    top:0;
    left:0;
    width: 6vh;
    height: 12vh;

    transform-origin: top center;
    cursor: pointer;

    animation: animatebulb 1.5s infinite alternate ease-in-out;
}

.kugelbild {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    
    background-repeat: no-repeat;
    background-size: contain;
    background-repeat: no-repeat;

    transform: scale(1);
    transition: all 0.4s;
    transition-timing-function: ease-in-out;
    transform-origin: center center;
}

@supports not (background-image: url("../images/Kugel_m.webp")) {
    .kugelbild {
        background-image: url("../images/Kugel.png")
    }
}
@supports (background-image: url("../images/Kugel_m.webp")) {
    .kugelbild {
        background-image: url("../images/Kugel_m.webp")
    }
}

@keyframes animatebulb {
    0% { transform: rotate(-6deg)}
    100% { transform: rotate(+6deg)}
}

.kugelbild.hover {
    transform: scale(1.2);
    filter: drop-shadow(0px 0px 20px #00000000) brightness(1.5) contrast(150%);
}

.kugel.focus .kugelbild {
    /*transform: scale(1.3);*/
    filter: drop-shadow(0px 0px 20px #00000000) brightness(2) contrast(160%);
}

#kugel1 {
    top: 16%;
    left: 47.5%;
}
#kugel2 {
    top: 32.5%;
    left: 54%;
    animation-delay: 0.9s;
}
#kugel3 {
    top: 41%;
    left: 38%;
    animation-delay: 0.4s;
}
#kugel4 {
    top: 61%;
    left: 31.3%;
    animation-delay: 1.5s;
}
#kugel5 {
    top: 58%;
    left: 56%;
    animation-delay: 2s;
}
#kugel6 {
    top: 74%;
    left: 43%;
    animation-delay: 2s;
}
#modal {
    background-color: #052d4daa;
    position: absolute;
    top: 0;
    left: 0;
    width:100vw;
    height:100vh;
    display: none;
    color:white;
    text-shadow: #000 1px 0 10px;
    cursor: zoom-out;
}
#modalstage{
    position: absolute;
    display: flex;
    align-items: center;
    top: 5vh;
    left: 5vw;
    width:90vw;
    height:90vh;
    /*border: 1px solid white;*/
}
#modalcontent {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /*border: 1px solid red;*/
}
#modalcontent h2, #modalcontent h3 {
    display: block;
    width:70%;
    margin: 0 0 1vh 0;
    text-align: center;
    font-size: 5vh;
    /*border: 1px solid green;*/
    z-index: 20;
    cursor: zoom-out;
}
#modalcontent h3 {
    margin: 1vh 0 0 0;
    font-size: 4vh;
    z-index: 20;
}
#modalimg {
    display: block;
    max-width:90vw;
    max-height:80vh;
    border: 1px solid #ffffff66;
    object-fit: contain;
    object-position: center center;
    align-self: center;
    cursor: zoom-out;
}
.modalclose {
    position: absolute;
    top:9vh;
    right:11vh;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 3vh;
    color: white;
    z-index: 20;
}

#hinweis {
}
#hinweis .blase {
    position:absolute; 
    top: 52%;
    left: 48%;
    padding: 2vw 3vw; 
    height:auto; 
    width: auto;  
    max-width:38vw; 
    transform: translateY(0); 
    background-color: rgba(255,255,255,0.8); 
    color: rgba(0,0,0,0.7); 
    font-size: 2.2vh;
    line-height:2.8vh;
    cursor: pointer;
}
  
#hinweis .zeiger {
    position:absolute; 
    top: 52%;
    left: 48%;
    height:0vw; 
    width:0; 
    transform: translateX(-100%); 
    background-color: rgba(200,255,200,0); 
    border-top: 0 solid transparent; 
    border-right: 4vw solid rgba(255,255,255,0.8); 
    border-bottom: 2vw solid transparent; 
    border-left: 0px solid transparent; 
}


@media (max-aspect-ratio: 1/1) { 
    .frame.top {
        width: 100%;
        height: 14vw;
        transform: translate(0, 0);
    }
    .frame.bottom {
        bottom: 0px;
        width: 100%;
        height: 14vw;
        transform: translate(0, 0);
    }
    .frame.left {
        width: 14vw;
        height: 100%;
        transform: translate(-20%, 0);
    }
    .frame.right {
        right: 0px;
        width: 14vw;
        height: 100%;
        transform: translate(20%, 0);
    }
    
    #frame .kugel {
        left: 10vw;
        width: 20vw;
        height: 40vw;
    }
    

    #modalcontent h2, #modalcontent h3 {
        font-size: 5vw;
    }
    #modalcontent h3 {
        font-size: 4vw;
    }
    .modalclose {
        top:14vw;
        right:12vw;
        font-size: 5vw;
    }

    #hinweis .blase {
        top: auto;
        bottom: 40vw;
        left: 50vw;
        max-width: 70vw;
        transform: translateX(-50%);
    }
      
    #hinweis .zeiger {
        display: none;
    }
}

@media (max-aspect-ratio: 2/3) { 
   #baum {
        top: unset;
        bottom: 10vh;
        left: 50vw;
        height: 150vw;
        width: 150vw;

        transform: translate(-50%, 15%);
    }

    .kugel {
        width: 9vw;
        height: 17vw;
    }
}

@media (min-aspect-ratio: 17/10) { 
    #modalcontent h2, #modalcontent h3 {
        width:100%;
    }

}