body {
    margin: 0;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    background-image: url('/assets/background.png');
      overflow-x: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  
  #alert_window {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 30%;
    width: 30%;
    border-radius: 5px;
    box-shadow: 6px 4px 39px 0px rgba(0,0,0,0.68);
    background-color: #443d3d54;
    z-index: 2000;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    align-items: center;
  }

  #alert_window h1 {
    text-align: center;
    align-self: center;
    justify-self: center;
  }

  #alert_window button {
    text-align: center;
     font-size: 170%;
    position: absolute;
    bottom: 10%;
    width: 45%;
    height: 15%;
  }


.Headline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 10vh; /* feste Höhe, damit wir den Platz berechnen können */
  z-index: 1000;
  margin: 0;
  padding: 0.5rem 1rem;

  display: flex;
  justify-content: space-evenly;
  align-items: center;

  font-size: 40px;
  background: rgba(68,61,61,0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 6px 4px 39px rgba(0,0,0,0.68);
  border-radius: 0;
}


.Headline h1 {
    margin: 0;
    font-size: 60%;
    color: #333;
}

 .Headline select {
    transition: 2s ease-in-out;
    text-decoration: none;
    color: green;
    font-size: 50%;
    border-radius: 5px;
    border: none;
    box-shadow: 6px 4px 39px 0px rgba(0,0,0,0.68);
    padding: 0.12%;
    background-color: #999999;
}
    .Headline select:hover {
        transition: 0.5s ease-in-out;
        color: rgb(11, 90, 11);
        font-size: 60%;
        padding: 0.5%;
        background-color: #999999;
        background: linear-gradient(to left, rgb(11, 90, 11) 0%, #8ae68f 50%, #03831e 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        border-radius: 10%;
    }
.Headline select option {
    background-color: #a5a5a5;
    color: #333;
    border-radius: 5px;
}

.Headline select option:hover {
    background-color: #a5a5a5;
    transition: ease-in-out 0.5s;
    color: #333;
    padding: 0.5%;
    border-radius: 5px;
    transform: scale(1.02);
}

 .Headline a {
    position: relative;
    transition: 2s ease-in-out;
    text-decoration: none;
    color: green;
    text-shadow: 0 0 5px #FFF, 0 0 10px #FFF, 0 0 15px #FFF, 0 0 20px #49ff18, 0 0 30px #49FF18, 0 0 40px #49FF18, 0 0 55px #49FF18, 0 0 75px #49ff18;
    font-size: 125%;
}
    .Headline a:hover {
        transition: 0.5s ease-in-out;
        color: rgb(11, 90, 11);
        font-size: 145%;
        padding: 0.8%;
        background-color: #999999;
        background: linear-gradient(to left, rgb(11, 90, 11) 0%, #8ae68f 50%, #03831e 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        border-radius: 10%;
    }

    .downloadButtons {
        aspect-ratio: 1 / 1;
        width: 5%;
    }

    .downloadButtons img {
        width: 100%;
        height: auto;
    }

    .Headline a.active {
        rotate: 360deg;
        transition: 0.5s ease-in-out;
            text-shadow: 0 0 5px #FFF, 0 0 10px #FFF, 0 0 15px #FFF, 0 0 20px #49ff18, 0 0 30px #b7eea7, 0 0 40px #c2ffb1, 0 0 55px #c3ffb3, 0 0 75px #46683d;
        color: rgb(143, 255, 14);
        font-size: 145%;
        padding: 0.8%;
        border-radius: 10%;
    }

.icon {
    width: 6%;
    background-color: rgb(170, 207, 181);   
    box-shadow: 6px 4px 39px 0px rgba(0,0,0,0.68);
    border-radius: 50%;
}

.displayColumn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.displayRow {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.mainContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;    
    box-shadow: inset 5px 5px 45px 30px rgba(0,0,0,0.93);
    padding-top: 10vh;
}

.image {
    border-radius: 10px;
    box-shadow: 6px 4px 39px 0px rgba(0,0,0,1);
    transition: transform 0.3s ease-in-out;
}



.scroll-element {
  opacity: 0;
  transform: translateX(0);
  transition: all 1.3s ease-out;
  will-change: opacity, transform;
}

.scroll-element.from-left {
  transform: translateX(-100px);
}

.scroll-element.from-right {
  transform: translateX(100px);
}

.scroll-element.visible {
  opacity: 1;
  transform: translateX(0);
}

.image:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease-in-out;
}



.dropdown {
  width: calc(100% - 5%); /* Passe 10px an den gewünschten Randabstand an */
  margin: 2%;
  padding: 5px;
  box-shadow: 6px 4px 39px 0px rgba(0,0,0,1);
  border-radius: 5px;
  background-color: #a5a5a5;
  transition: transform 0.3s ease-in-out;
  overflow: hidden;
}

.dropdown:hover {
  transform: scale(1.02);
}

.dropdown input {
  display: none;
}

.dropdown label {
  display: block;
  padding: 10px;
  background: #969696;
  font-weight: 1000;
  font-size: x-large;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 2%;
  align-items: center;
}

.dropdown label:hover {
  background: #727272;
  transition: ease-in-out 0.5s;
  transform: scale(1.02);
  transform: scaleX(0.98);

}

.dropdown .content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 1.0s ease; /* 👈 weiches Aufklappen */
  padding: 0 10px;
  width: 100%;
  transition: ease-in-out 0.5s;
  border-radius: 5px;
  background: #8a8a8a;
  display: flex;
  flex-direction: row;
  gap: 2%;
  flex-wrap: wrap;
  flex-basis: 48%;
  max-width: 99%;
  flex-basis: 48%;
  flex-grow: 1;
  flex-shrink: 1;
  /* Maximal 2 pro Zeile */
  width: 100%;
}

.dropdown .content:hover {
    background: #727272;
    transition: ease-in-out 0.5s;
    transform: scale(1.02);
    transform: scaleX(0.98);
}
.triangle {
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 30px solid rgb(121, 121, 121);
  transition: transform 0.3s ease;
}

.dropdown input:checked + label .triangle {
  border-left: 30px solid rgb(134, 168, 136);
  filter: drop-shadow(2px 2px 6px rgba(89, 255, 111, 0.8));
  transform: rotate(450deg);
}

label:hover .triangle {
    transition: ease-in-out 0.5s;
    transform: rotate(360deg);
    transform: rotate(-360deg);
    border-left: 30px solid rgb(175, 175, 175);

}

.flex-2col {
  display: flex;
  flex-wrap: wrap;       /* Umbruch in die nächste Zeile erlauben */
  gap: 30px;             /* Abstand zwischen den Items */
  justify-content: center; /* Alles zentrieren */
}

.flex-2col > div {
  flex: 0 0 49%;         /* zwei Spalten, Lücke durch gap berücksichtigen */
  height: 250px;          /* gleiche Höhe für alle Bilder */
  overflow: hidden;       /* überschüssige Teile abschneiden */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 1) Stelle sicher, dass alle direkten children Image-Wrapper sind */
.displayRow.grid-2col {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.efficient {
  column-width: calc(100vw/4);  /* flexible Spaltenbreite */
  column-gap: 15px;
}

.image-wrapper {
  display: block;
  background-color: #1f1f1f94;
  break-inside: avoid;
  margin-bottom: 15px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 6px 4px 39px 0px rgba(0,0,0,1);
}

.image-wrapper p {
  text-align: center;
  color: rgb(255, 255, 255);
  text-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 15px #000, 0 0 20px #000, 0 0 30px #000, 0 0 40px #000, 0 0 55px #000, 0 0 75px #000;
}


.image-wrapper:hover p {
  transition: ease-in-out 3.5s;
   opacity: 0;
  pointer-events: none; /* keine Klicks */
  user-select: none; 
}

.image-wrapper img.image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  align-self: center;
  justify-self: center;
}

.image-wrapper img.image:hover {
  transform: scale(1.2);
}


.container {
  background-color: rgba(128, 128, 128, 0.63); border-radius: 20px; padding: 1%; margin: 1%;
}

.container p:hover {
  transition: ease-in-out 0.5s;
  font-size: 102%;
}

.container p {
  transition: ease-in-out 0.5s;
}

.opengl_curs:hover {
    cursor: url("/assets/opengl.png"), auto;
}
.minecraft_curs:hover {
    cursor: url("/assets/villager_cursor.png"), auto;
}

.jss_curs:hover {
    cursor: url("/assets/JSS_curs.png"), auto;
}


.canvas_gl_sim {
    height: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    box-shadow: 6px 4px 39px 0px rgba(0,0,0,1);
    transition: transform 0.3s ease-in-out;
}

input[type="number"], input[type="text"] {
    padding: 8px;
    margin: 5px 0;
    background-color: rgba(170, 170, 170, 0.63);
    box-shadow: 6px 4px 39px 0px rgba(0,0,0,1);
    border-radius: 4px;
    display: block;
  }

button {
    background-color: #a5a5a5;
    color: #333;
    border: none;
    text-align: center;
    font-size: large;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 6px 4px 39px 0px rgba(0,0,0,1);
    transition: transform 0.3s ease-in-out, background-color 1s ease-in-out, opacity 1s ease-in-out;
}

button:hover {
    background-color: rgba(165, 165, 165, 0); /* Hintergrund langsam transparent */
    color: rgb(11, 90, 11);
    transform: scale(1.02);
}

button:active {
    transform: scale(1.2);
    opacity: 0.8;
    transition: ease 0.1s;
}

.game-button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 2%;
    width: 20%;
    aspect-ratio: 1 / 1;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 6px 4px 39px 0px rgba(0,0,0,1);
    transition: transform 0.3s ease-in-out;
}

.game-button span {
    position: relative;
    z-index: 1;
    color: #333;
    font-size: xx-large;
    background-color: #20461b93;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40%;
    width: 60%;
    border-radius: 20px;
          transition: ease 1s;

}

.game-button:hover span {
      background-color: #1dac0a91;
      box-shadow: 0px 3px 25px 11px rgba(66,176,27,0.75);
            transition: ease 1s;
}

/* Allgemeines Pseudo-Element für alle Buttons */
.game-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

/* Hover: Bild blendet aus */
.game-button:hover::before {
    opacity: 0.4;
}

.video_iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 20px;
    box-shadow: 6px 4px 39px 0px rgba(0,0,0,1);
    transition: transform 0.3s ease-in-out;
}

.programming_language_container {
    display: none;
    width: 95vw;
    height: 50vh;
    align-self: flex-end;
    overflow: hidden;
    background-color: rgba(46, 46, 46, 0.589);
     -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.programming_language_icon {
  filter: blur(0.7px);
  border-radius: 50%;
  aspect-ratio: 1/1;
  box-shadow: 1px 1px 62px 45px rgba(224, 224, 224, 0.75);
-webkit-box-shadow: 1px 1px 62px 45px rgba(224, 224, 224, 0.75);
-moz-box-shadow: 1px 1px 62px 45px rgba(224, 224, 224, 0.75);
}

/* Einzelne Hintergrundbilder pro Klasse */
.btn-jumper::before { background-image: url('/assets/games/Jumper.png'); }
.btn-pong::before { background-image: url('/assets/games/Pong.png'); }
.btn-snake::before { background-image: url('/assets/games/Snake-Game.png'); }
.btn-quiz::before { background-image: url('/assets/games/Quiz.png'); }
.btn-todolist::before { background-image: url('/assets/games/ToDoList.png'); }
.btn-calculator::before { background-image: url('/assets/games/Calculator.png'); }
.btn-cps::before { background-image: url('/assets/games/CPS.png'); }
.btn-web2dcraft::before { background-image: url('/assets/games/webMC.png'); }

.wrap_at_media {
    flex-wrap: nowrap;
  }

@media (max-width: 1000px) {
  #alert_window {
    width: 70%;  
  }
  #alert_window h1 {
    font-size: 130%;
    text-align: center;
    align-self: center;
    justify-self: center;
  }
   #alert_window button {
    font-size: 70%;
  }
  .efficient {
    column-width: calc(100vw/1.5);  /* flexible Spaltenbreite */
    column-gap: 15px;
  }
  .wrap_at_media {
    display: flex;
    flex-wrap: wrap;
  }
   .Headline {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 0.5rem 1rem;
    background-color: #443d3d54;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly; /* statt space-around → kompakter */
    align-items: center;
    overflow-x: auto;
    font-size: clamp(16px, 3vw, 24px); /* skaliert dynamisch */
    min-height: 60px;
    box-shadow: 6px 4px 39px 0px rgba(0,0,0,0.68);
  }

  /* für Links in der Headline: besser relative Größen */
  .Headline a {
      font-size: 1rem; /* statt 125%/145% */
      text-wrap: 1;
  }

  .Headline .icon {
    display: none;
  }
 .downloadButtons {
        width: 30%;
    }

  body {
    font-size: 20px;
  }

  .Headline a.active {
        rotate: 360deg;
        transition: 0.5s ease-in-out;
            text-shadow: 0 0 5px #FFF, 0 0 10px #FFF, 0 0 15px #FFF, 0 0 20px #49ff18, 0 0 30px #b7eea7, 0 0 40px #c2ffb1, 0 0 55px #c3ffb3, 0 0 75px #46683d;
        color: rgb(143, 255, 14);
        padding: 0.8%;
        border-radius: 10%;
    }

     .Headline a:hover {
        transition: 0.5s ease-in-out;
        color: rgb(11, 90, 11);
        background-color: #999999;
        background: linear-gradient(to left, rgb(11, 90, 11) 0%, #8ae68f 50%, #03831e 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        border-radius: 10%;
        margin: 1%;
    }

  .Headline select {
    font-size: 16px;
  }

  .game-button span {
    font-size: 16px;
  }
}