@font-face {
  font-family: 'FE-Kennzeichen';
  src: url('../fonts/FE-FONT.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

#licenseGenerator {
  position: relative;
  background-image: url('../img/Tafel-web.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  Height: 316px;
  Width: 1365.33px;
  margin: 0 auto;
  margin-top: 30px;
}

.country-item {
  min-width: 10.5%;
}

.location-item {
  min-width: 24.24%;
  margin-top: 4%;
  margin-bottom: 4%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.location-flag-item {
  min-width: 9.65%;
  margin-top: 4%;
  margin-bottom: 4%;
  background-image: url('../img/Kaernten.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.custom-license-item {
  min-width: 55.47%;
  margin-top: 4%;
  margin-bottom: 4%;
  display: flex;
  justify-content: center;
  align-items: center;
}
/*
input, select, textarea {
  -webkit-text-size-adjust: 100%;
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active  {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}
*/

.input-segment {
  height: 100%;
  width: 100%;
  font-family: 'FE-Kennzeichen', sans-serif;
  font-size: 200px;
  font-weight: bold;
  border: none;
  outline: none;
  text-align: center;
  background-color: transparent;
  text-transform: uppercase;
  line-height: 100%; 
  padding: 0;
}

.input-segment::placeholder {
  text-align: center;
  vertical-align: middle;
}


.kennzeichenbtn {
  background-color: #1C244B !important;
  /* Hintergrundfarbe bei Hover */
  border-color: #1C244B !important;
  /* Randfarbe bei Hover */
  color: #FFFFFF !important;
  /* Textfarbe bei Hover */
  font-family: 'FE-Kennzeichen', sans-serif;
  font-size: 20px !important;
  border-radius: 10px !important;
  padding: 20px 50px !important;
  border-width: 3px !important;
  margin-top: 50px;
}

.kennzeichenbtn:hover {
  background-color: #394062 !important;
}

.hidden {
  display: none;
}

.toast {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  animation-name: fadeInUpAndOutUp;
  animation-duration: 3.5s;
  animation-fill-mode: both;
}

.toast-header {
  background-color: #1C244B !important;
  color: #FFFFFF;
}

.toast-close {
  color: white !important;
}

.toast-body {
  background-color: #1C244B;
  color: #FFFFFF;
}

.alertArea {
  min-width: 1365.33px;
  flex-direction: column;
  z-index: 999;
  position: fixed;
  left: 50%;
  translate: -50%;
}

.alert-success {
  border-width: 2px !important;
  border-style: solid;
  border-color: darkgreen !important;
  border-radius: 10px !important;
}

.alert-danger {
  border-width: 2px !important;
  border-style: solid;
  border-color: #721c24 !important;
  border-radius: 10px !important;
}

.alert {
  text-align: center;
  font-family: 'FE-Kennzeichen', sans-serif;
  font-size: 55px;
  min-width: 100%;
}

.inquiry-container {
  min-width: 1365.33px;
  flex-direction: column;
}

#container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 1365.33px;
  height: 8px;
  z-index: 10;
}

@media (max-width: 400px) {
  #licenseGenerator {
    max-width: 300px;
    max-height: 67.51px;
  }
}


/* Mobilgeräte */
@media (max-width: 600px) {
  #licenseGenerator {
    max-width: 360px;
    max-height: 81.01px;
  }

  .input-segment {
    font-size: 45px;
    height: 100%;
    width: 100%;
    line-height: 100%;
  }

  .alert {
    font-size: 10px;
  }

  .alertArea {
    min-width: 350px;
  }

  .inquiry-container {
    min-width: 350px;
  }

  .kennzeichenbtn {
    font-size: 12px !important;
    padding: 14px 20px !important;
  }

  #container {
    max-width: 350px;
  }
}

/* Tablets in Porträt */
@media (min-width: 601px) and (max-width: 1100px) {
  #licenseGenerator {
    max-height: 118.5px;
    max-width: 512px;
  }

  .input-segment {
    font-size: 70px;
    height: 100%;
    width: 100%;
    line-height: 100%;
  }

  .alert {
    font-size: 10px;
  }

  .alertArea {
    min-width: 512px;
  }

  .inquiry-container {
    min-width: 512px;
  }

  .kennzeichenbtn {
    font-size: 12px !important;
    padding: 14px 20px !important;
  }

  #container {
    max-width: 512px;
  }
}

/* Tablets in Landschaft & kleine Desktops */
@media (min-width: 1100px) and (max-width: 1500px) {
  #licenseGenerator {
    height: 237px;
    width: 1024px;
  }

  .input-segment {
    font-size: 140px;
    height: 100%;
    width: 100%;
    line-height: 100%;
  }

  .alert {
    font-size: 30px !important;
  }

  .alertArea {
    min-width: 1024px;
  }

  .inquiry-container {
    min-width: 1024px;
  }

  .kennzeichenbtn {
    font-size: 17px !important;
    padding: 16px 30px !important;
  }

  #container {
    max-width: 1024px;
  }
}


@keyframes fadeInUpAndOutUp {
  0% {
    opacity: 0;
    transform: translateY(100%);
    /* Startet außerhalb des Bildschirms unten */
  }

  20%,
  80% {
    /* Bleibt für 60% der Zeit (von 0.7 bis 2.8 Sekunden) sichtbar */
    opacity: 1;
    transform: translateY(0);
    /* Voll sichtbar und am Zielort */
  }

  100% {
    opacity: 0;
    transform: translateY(-100%);
    /* Endet außerhalb des Bildschirms oben */
  }
}

.fadeInUpAndOutUp {
  animation-name: fadeInUpAndOutUp;
  /* Stellt sicher, dass der Name hier übereinstimmt */
  animation-duration: 3.5s;
  /* Gesamtdauer für Ein- und Ausblenden */
  animation-fill-mode: both;
}


@keyframes fadeInLeftAndOutUp {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }

  20%,
  /* 20% von 3.5 Sekunden ist 0.7 Sekunden, was dem fadeIn entspricht */
  40% {
    /* 80% von 3.5 Sekunden ist 2.8 Sekunden, dies ist die Verzögerung bevor es ausblendet */
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.fadeInLeftAndOutUp {
  animation-name: fadeInLeftAndOutUp;
  animation-duration: 3.5s;
  /* Gesamtdauer für Ein- und Ausblenden */
  animation-fill-mode: both;
}
