
#rotateOverlay{
  position: fixed;           /* nicht absolute */
  top: 0; right: 0; bottom: 0; left: 0;

  display: none;
  align-items: center;       /* vertikal */
  justify-content: center;   /* horizontal */

  font-family: 'Muli';
  font-size: 8vw;
  font-weight: bold;
  text-align: center;

  background: #fff9c4;
  z-index: 999999;
}

@media (orientation: portrait){
  #rotateOverlay{ display: flex; }

  /* App ausblenden wie du es willst */
  #mainWrapper,
  #uebungWrapper,
  .ios-start-button{
    display: none !important;
  }

  /* verhindert, dass dein altes html,body{display:flex} das Overlay "kaputt centert" */
  html, body{
    display: block !important;
    height: 100% !important;
  }
}


#mainContent {
	position: absolute;   /* statt fixed */
    inset: 0;
	width: 100%;
	/* height: 100vh; */
	box-sizing: border-box;
	
	
	background: rgb(149,222,120);
	background-color: #7EB058;
  	background-repeat: no-repeat;
	background-size: auto calc(var(--vh) * 100);
	background-image: url(../images/Startseite/m_klassenmenu.png);
	background-position: center center;
	
	
	font-family: Muli;
	font-size: 25px;
    font-weight: bold;
	
	/* Mobile fix, vh wird sonst nicht richtig dargestellt */
	height: calc(var(--vh) * 100);
}



@media (min-aspect-ratio: 20/10) {
    #mainContent {
        border-left: 30px solid black;
        border-right: 30px solid black;
    }
}

@media (min-aspect-ratio: 23/10) {
    #mainContent {
        border-left: 60px solid black;
        border-right: 60px solid black;
    }
}

@media (min-aspect-ratio: 24/10) {
    #mainContent {
        border-left: 80px solid black;
        border-right: 80px solid black;
    }
}

@media (min-aspect-ratio: 25/10) {
    #mainContent {
        border-left: 85px solid black;
        border-right: 85px solid black;
    }
}

@media (min-aspect-ratio: 26/10) {
    #mainContent {
        border-left: 97px solid black;
        border-right: 97px solid black;
    }
}

@media (min-aspect-ratio: 27/10) {
    #mainContent {
        border-left: 115px solid black;
        border-right: 115px solid black;
    }
}

@media (min-aspect-ratio: 28/10) {
    #mainContent {
        border-left: 128px solid black;
        border-right: 128px solid black;
    }
}

@media (min-aspect-ratio: 29/10) {
    #mainContent {
        border-left: 130px solid black;
        border-right: 130px solid black;
    }
}

@media (min-aspect-ratio: 30/10) {
    #mainContent {
        border-left: 150px solid black;
        border-right: 150px solid black;
    }
}

#sprechblase {
    position: absolute;
	right: 3%;
	bottom: 27%;
	width: 50%;
    height: 50vh;
    background-image: url('../images/Sprechblase.png');
	background-size: contain;
	background-repeat: no-repeat;
	z-index: 300;
    display: none;
}

#abfall {
    position: fixed;
	
    left: calc(4% + env(safe-area-inset-left));
    top:  calc(4% + env(safe-area-inset-top));

    width: calc(40px + calc(var(--vh, 1vh) * 4));
    height: calc(40px + calc(var(--vh, 1vh) * 4));

    background-image: url(../images/Startseite/loeschen.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    z-index: 10000;
    pointer-events: auto;
}





#buchstabentour{
	position: relative;
    /* top: 10vh; */
    bottom: calc(var(--vh) * 10);
    margin: 0 auto;
    /* width: calc(80vh + 28vw); */
    /* height: 80vh; */
    margin: 0 auto;
    /* background: #6F3; */
    box-sizing: border-box;
    /* border: 1px solid white; */
    
	/* Mobile fix wegen vh wird im Mobile falsch dargestellt */
	top: calc(var(--vh) * 10);
	height: calc(var(--vh) * 80);
	width: calc(calc(var(--vh) * 80) + calc(var(--vw) * 28) );
}

.buchstabe{
	/*
	width: calc(7vw + 6vh);
    height: calc( (7vw + 6vh) / 2 );
	*/
	
	/* Mobile fix */
	width: calc(calc(var(--vh) * 7) + calc(var(--vw) * 6));
	height: calc( (calc(var(--vh) * 7) + calc(var(--vw) * 6)) / 2);
	
    border-radius: 50% / 50%;
	
	box-sizing: border-box;
	text-align: center;
	display: table;
	
	font-size: calc(calc(var(--vh) * 0.7) + calc(var(--vw) * 0.7));
   	line-height: 120%;
	
	
	 cursor: pointer;
	  -webkit-tap-highlight-color: transparent;
	  transition:
		transform 160ms ease,
		filter 160ms ease,
		box-shadow 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  	.buchstabe:hover {
	  transform: scale(1.06);
	  filter: brightness(1.08) saturate(1.1);
	  box-shadow:
		0 0 22px rgba(255, 220, 120, 0.35),
		inset 0 0 14px rgba(255, 255, 255, 0.35);
	}
}

.span_buchstabe {
	/*border: 1px solid #0F0;*/
	height: 100%;
    display: table-cell;
    vertical-align: middle;
    border-radius: 50%;
   
}


@media (max-height: 360px) {
    .buchstabe {
        transform: translate(-0%, -0%) scale(0.8);
    }
}



.buchstabengruppe_1{
	background-color: #D47ABA;
}
.buchstabengruppe_2{
	background-color:  #B0825C;
}

.buchstabengruppe_3{
	background-color: #EBEE60;
}
.buchstabengruppe_4{
	background-color: #777DED;
}
.buchstabengruppe_5{
	background-color: #DBA841;
}
.buchstabengruppe_6{
	background-color: #419EC7;
}
.buchstabengruppe_7{
	background-color: #AC74DA;
}
.buchstabengruppe_8{
	background-color: #FEE9AC;
}
.buchstabengruppe_9{
	background-color: #E0796E;
}
.buchstabengruppe_10{
	background-color: #88DE70
}



.back_arrow {
	position: absolute;
	width: 60px;
	height: 40px;
	
	right: 36px;
    bottom: 37px;
	
	z-index: 1000000; 
}

.back_arrow > img#pfeil2 {
	transform: rotate(180deg);
	position: relative;
	width: 100%;
	height: 100%;
	top: 0;
	right: 0;
	
	cursor: pointer;
}


@media only screen and (max-width: 960px) {
	.back_arrow {
		position: absolute;
		width: 6vw;
		height: 4vw;
		
		right: 30px;
		bottom: 25px;
	}
}


:root {
    --bat-fly-y: calc(var(--vh, 1vh) * 70);
}

@media (max-height: 460px) {
    :root {
        --bat-fly-y: calc(var(--vh, 1vh) * 40);
    }
}

@media (max-height: 360px) {
    :root {
        --bat-fly-y: calc(var(--vh, 1vh) * 30);
    }
}

@keyframes start_animation {
    from {
        transform: translate3d(0,0,0) scale(1);
        opacity: 1;
    }
    to {
        transform:
            translate3d(
                -100vw,
                calc(-1 * var(--bat-fly-y, 70vh)),
                0
            )
            scale(2);
        opacity: 0.5;
    }
}

.start_animation_el {
	animation: start_animation 2s ease-out forwards;
    animation-play-state: paused;
	 
	display: block; 
	 
	opacity: 0;
    pointer-events: none;
    visibility: hidden;
	
	position: fixed;
	bottom: calc(var(--vh, 1vh) * 30);
	right: 0;

	width: 130px; /* Set the size of the background container */
	height: 130px; /* Set the size of the background container */
	background-image: url(../images/Fledermaus.png);
	background-repeat: no-repeat;
	background-size: 100% auto;
	
    will-change: transform, opacity;
}




/*
Mobile fix mit Regex Suchen und ersetzen (Cntrl + f)
\s*([0-9.]+)vh
 calc(var(--vh, 1vh) * $1)
 */