
#small-screen-message {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;

}

#small-screen-message p {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  color: rgb(255, 188, 31);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: var(--default-font);
  font-size: 2rem;
  text-align: center;
}


body {
  visibility: hidden;
  background-color: black;
}


/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  --hue: 14;
  --size: 100px; 
  --border: 10px; 
  --speed: 1.5s; 
  --blur: var(--border);
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background-color: #1a1a1a; 
  accent-color: #f55d33; 
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.6s ease-out;
}

.loader {
  width: var(--border);
  aspect-ratio: 1;
  background: white;
  border-radius: 50%;
  position: absolute;
  --y: calc((var(--size) * -0.5) + (var(--border) * 0.5));
  transform: rotate(0deg) translateY(var(--y));
  animation: spin var(--speed) infinite linear;
}

.loader::before {
  content: "";
  position: absolute;
  inset: calc(var(--border) * -0.5);
  border-radius: 50%;
  background: white;
  filter: blur(var(--blur));
  z-index: -1;
}

.loader::after {
  content: "";
  width: var(--size);
  aspect-ratio: 1;
  position: absolute;
  top: 0%;
  left: 50%;
  translate: -50% 0;
  background: conic-gradient(
    white,
    hsl(var(--hue), 91%, 60%), /* Helles Orange */
    hsl(var(--hue), 91%, 30%), /* Dunkleres Orange */
    transparent 65%
  );
  border-radius: 50%;
  mask: radial-gradient(
    transparent calc(((var(--size) * 0.5) - var(--border)) - 1px),
    white calc((var(--size) * 0.5) - var(--border))
  );
}

@keyframes spin {
  to {
    transform: rotate(-360deg) translateY(var(--y));
  }
}



html,
body{
  --default-font: "Edu TAS Beginner", cursive, "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Lobster", sans-serif;
  --nav-font: "Lobster", sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  align-items: center;
}


body>div{
  position: absolute;
  width: 100%;
  height: 100%;


}


/*--------------------------------------------------------------
#Button
--------------------------------------------------------------*/
.center-button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}



button span {
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}



button:hover span {
  transform: translateX(7px);
}

/*--------------------------------------------------------------
# Codefeld
--------------------------------------------------------------*/
.code-container {
  z-index: 10;
  display: flex;
  flex-direction: column;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
  width: 470px;
  height: 430px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0) !important;
  justify-content: center;
  position: absolute;
  top: 15vh;
  right: 3vh;
}


.CodeMirror {
  background-color: rgba(255, 255, 255, 0.6); 
  height: 100%; 
  border: none;
  align-items: center;
}


.CodeMirror .CodeMirror-code {
  background-color: transparent;
}


.CodeMirror-lines {
  background-color: transparent;
}


.CodeMirror-gutters {
  background-color: rgba(255, 255, 255, 0); 
  border-right: none; 
}

.CodeMirror-linenumber {
  color: #aaa; 
}


/* Code-Editor Buttons */

#code-editor {
  width: 80%;
  height: auto;
  font-family: monospace;
  font-size: 14px;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  margin-top: 10%;
  justify-content: flex-start;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .code-container {
    width: 60%; 
    height: 35%;
    max-width: none; 
    top: 5%; 
    right: 18%;
  }

  #code-editor {
    width: 100%; 
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
  }

  .button-panel {
    width: 100%;
    margin: 0 auto;
  }
}


.button-panel {
  position: relative;
  display: flex;
  justify-content: center;
  background-color: rgba(233, 236, 239, 0.8);
  padding: 8px 0;
  height: 50px;
}

.play-button {
  position: absolute;
  top: 25%;
  left: 45%;
  transform: translate(-5%, -5%);
}

.action-button {
  border: none;
  width: 35px;
  height: 35px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  padding: 0;
  background: none; 
}

.action-button img {
  width: 100%;
  height: 100%;
 
}
.reload-button img, 
.info-button img, .diamant-button {
  border-radius: 50%;
  object-fit: contain; 
  border-radius: 50%;
}

.button-panel .action-button:nth-child(2),
.button-panel .action-button:nth-child(3) {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.button-panel .action-button:nth-child(4){
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0%;
}

.button-panel .action-button:nth-child(5){
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 10%;
}
.button-panel .action-button:nth-child(6){
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 20%;
}


.button-panel .action-button:nth-child(2) {
  right: 50px;
}


/* Responsive für Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
  .code-container {
    width: 60%; 
    height: 35%;
    max-width: none; 
    top: 5%; 
    right: 18%;
  }

  #code-editor {
    width: 100%; 
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
  }

  .button-panel {
    width: 100%;
    margin: 0 auto;
  }
}

/*--------------------------------------------------------------
# Musik
--------------------------------------------------------------*/

.button-container {
  display: flex;
  justify-content: flex-end; 
  align-items: center;
  position: absolute;
  bottom: 4.5vh;
  left: 7vh; 
  gap: 2vh;
  z-index: 10;
}

.musik-button img, .lautstaerke-button img {
  width: 40px;
  height: 40px;
}


button {
  background: none;
  border: none;
  padding: 0;
}

button img {
  display: block;
  width: 100%;
  height: auto;
}

/*--------------------------------------------------------------
# Filmszene
--------------------------------------------------------------*/


.balken {
  position: absolute;
  width: 100%;
  background-color: black;
  z-index: 12;
}
.balken-oben {
  top: -20%; /* Start außerhalb des Bildschirms */
  height: 15%;
}
.balken-unten {
  bottom: -20%; /* Start außerhalb des Bildschirms */
  height: 15%;
}

