/* ==========================================
   style.css
   These are the final styles for the project.
   Author:
   Website: (TODO)
   ========================================== */

/* ====== Import fonts =========== */
/* ====== Import fonts =========== */
@font-face {
  font-family: 'Kalam';
  font-display: swap;
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/Kalam/Kalam-Regular.ttf') format('truetype');
}

/* ====== Global Rules ======*/
* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  background-color: rgb(12, 36, 37);
}

body {
  margin: 0 !important;
  padding: 0 !important;
}

.container {
  /* width: 1024px;
            height: 768px; */
  display: grid;
  grid-template-rows: 100vh;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0;
  position: relative;
  align-items: end;
  justify-items: center;
  padding: 0;
  background-color: rgb(12, 36, 37);
  overflow: hidden;
}

.titleText {
  font-size: 1.5em;
  font-family: 'Kalam', "Helvetica", "Arial", sans-serif;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0%);
  width: 80% !important;
  margin: 0vh 1vw;
}

.background-image {
  position: absolute;
  bottom: -10%;
  left: 0;
  width: 100%;
  /* height: 100%; */
  object-fit: contain;
  /* Bild passt sich an */
  z-index: 10;
  /* Mittlere Ebene */
  opacity: 0.8;
  /* Optional */
  background-repeat: no-repeat;
  background-size: cover;
}

.candles {
  position: relative;
  padding: 0 50%;
  border-radius: 10px;
  text-align: center;
}

/* Zwei Elemente hinter dem Bild */
.candle3,
.candle4 {
  z-index: 5;
  /* hinter dem Bild */
}

/* Zwei Elemente vor dem Bild */
.candle,
.candle2 {
  z-index: 15;
  /* vor dem Bild */
}




/* @keyframes sparkle {
  50% {
    opacity: 0.4;
    transform: scale(0.5);
    box-shadow: 0px 0px 10px 5px #ffffff5e;
  }
  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0px 0px 10px 5px white;
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
    box-shadow: 0px 0px 10px 5px #ffffff5e;
  }
} 
.containersparkle {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: black;
}

.sparklestars {
  position: absolute;
  z-index:99;
  width: 2px;
  height: 2px;
  background-color: white;
  border-radius: 50%;
  opacity: 1;
  animation: sparkle 4s infinite alternate;
} */





/* @media only screen 
   and (min-device-width: 375px)
   and (max-device-width: 960px){ */

/* @media screen and (min-width: 320px) and (max-width: 767px) and (orientation: portrait) {
  html {
    transform: rotate(-90deg);
    transform-origin: left top;
    width: 100vh;
    overflow-x: hidden;
    position: absolute;
    top: 100%;
    left: 0;
  }    
}   */

@media (orientation: portrait) {
  body::before {
    content: "Bitte drehen Sie das Gerät, um fortzufahren.";
    display: block;
    /* Hier können Sie weitere Stil-Regeln hinzufügen, z.B. Position, Farbe etc. */
    background-color: rgb(12, 36, 37 / 0.5);
    color: white;
    text-align: center;
    padding: 1em;
    font-size: 20px;
    display: inline-block;
    /* margin: 0 auto; */
    text-align: center;
    /* white-space: pre;  */
  }

  .titleText {
    font-size: 14px;
    margin: auto;
    width: 50%;
    /* border: 3px solid green; */
    padding: 10px;
  }

  .titleText > p {
    display: none;
  }

  .candle,
  .candle2,
  .candle3,
  .candle4 {
    display: none !important;
  }
}


@media only screen and (min-width: 320px) and (max-width: 790px) {

  .background-image {
    position: absolute;
    bottom: -100px;
  }

  .titleText {
    font-size: 11px;
    position: absolute;
    left: 1vw !important;
    top: 1vh !important;
    transform: none !important;
    width: 90% !important;
    margin: 1vh 1vw;
  }


  .flame-onfire {
    margin-top: -8vh !important;
  }

  .flame-big {
    margin-top: -5vh;
  }

  .flame-small {
    margin: 0 !important;
    margin-left: 1.5vw !important;
  }

  div.circles {
    display: none;
  }

  .popupCon {
    width: 100%;
    height: auto;
    background-color: aqua;
  }

  .popupCon a {
    display: block;
  }

  .circleNr {
    position: absolute;
    /* z-index:9999; */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    height: 1.5em !important;
    width: 1.8em !important;
    background-color: white;
    color: darkgoldenrod;
    border: 3px dashed darkgoldenrod;
    border-radius: 50%;
    line-height: 1.5em !important;
    font-size: 1em !important;
    display: inline-table;
    text-align: center;
  }

}