@import url("normalize.css");
html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

.loading_bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background-color: orange;
  z-index: 9999;
  transition: width 0.5s ease-out;
  padding: 0;
  margin: 0;
}

.loading_bar.fade {
  opacity: 0;
  display: none;
  transition: opacity 0.5s ease-out, display 0.5s ease-out 0.5s;
}

main {
  height: 696px;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

#wrapper {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  transition: opacity 0.5s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  -webkit-mask-image: url(assets/blob.svg);
  mask-image: url(assets/blob.svg);
  -webkit-mask-size: 0%;
  mask-size: 0%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-composite: destination-out;
  mask-composite: subtract;
  -webkit-mask-clip: content-box;
  mask-clip: content-box;
  z-index: 11;
}

.sky {
  position: absolute;
  height: 80%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 8;
  background-image: url("assets/sky-bg.webp");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: top center;
}

.logo {
  width: fit-content;
  height: fit-content;
  position: absolute;
  z-index: 12;
  /* transform: translateY(-178px); */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.5s ease-out;
  min-width: 240px;
  min-height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#StadtSpielRaum-logo {
  width: 196px;
  height: auto;
  filter: drop-shadow(2px 4px 6px #666);
  opacity: 0;
  transition: all 0.3s ease-out;
}

#arrimo-logo {
  width: 240px;
  height: auto;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.road {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 10;
  background-image: url("assets/road.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
  width: 100%;
  background-image: url();
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom center;
  z-index: 16;
}

.card {
  padding-bottom: 4rem;
}

.nav-btns {
  display: flex;
  align-items: center;
  column-gap: 1rem;
  justify-content: center;
}

.catamaran-font {
  font-family: "Catamaran", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.text-900 {
  font-weight: 900;
}

.text-700 {
  font-weight: 700;
}

.text-400 {
  font-weight: 400;
}

.title {
  color: #001b3f62;
  font-size: 4rem;
  text-transform: uppercase;
  line-height: 0.6;
  text-align: center;
  padding: 0;
  margin: 0;
  margin-top: -30%;
}

.title .small {
  font-size: 56%;
}

#slogan {
  color: white;
  font-size: 2.4rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0 0 0.6rem 0;
  text-align: center;
}

.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#wrapper.reveal {
  animation: maskGrow 1.5s ease-out forwards;
}

@keyframes maskGrow {
  0% {
    -webkit-mask-size: 0vw;
    mask-size: 0vw;
  }
  100% {
    -webkit-mask-size: 150vw;
    mask-size: 150vw;
  }
}

#revealer-gif {
  display: none; /* Hide the actual GIF since we're using it as a mask */
}

#loading-logo {
  position: relative;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

#loading-logo.fade {
  opacity: 0;
}

#wrapper {
  opacity: 1;
}

#wrapper.hidden {
  opacity: 0;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #001b3f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes logoPulse {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
}

#loading-logo {
  animation: logoPulse 2.5s ease-in-out infinite;
}

/* CSS */
.button {
  appearance: none;
  background-color: #e0e0e0;
  border: 2px solid #e2e2e2;
  border-radius: 12px;
  color: #1d1d1d;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  align-items: center;
  column-gap: 0.4rem;
  font-size: 1.24rem;
  font-weight: 600;
  margin: 0;
  min-height: 60px;
  outline: none;
  padding: 10px 16px;
  text-align: center;
  transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  width: fit-content;
  min-width: 192px;
  will-change: transform;
}

.button span {
  line-height: 1;
  padding: 2px 0 0;
  margin: 0;
}

#municipality {
  text-decoration: none;
  line-height: 1;
}

.button > img {
  width: 28px;
  height: auto;
}

.button:disabled {
  pointer-events: none;
}

.button:hover {
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
  transform: translateY(-2px);
}

.button:active {
  box-shadow: none;
  transform: translateY(0);
}

.mascot {
  width: fit-content;
  height: 52vh;
  position: absolute;
  bottom: 10px;
  left: 23%;
  z-index: 17;
  display: flex;
  justify-content: center;
}

.mascot picture {
  width: auto;
  height: 100%;
  cursor: pointer;
}

.mascot picture img {
  height: 100%;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.6rem 2rem;
  background-color: #181925;
  border-top: 1px solid #282a3e;
  box-sizing: border-box;
  position: relative;
  z-index: 20;
}

.footer_center {
  position: absolute;
  bottom: 10px;
  z-index: 20;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

img#meine-stadtder-zukunft-logo {
  height: 48px;
}

img#land-brandenburg-logo {
  height: 64px;
}

.logos-card {
  display: flex;
  column-gap: 16px;
  align-items: center;
  width: fit-content;
  background: white;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #e9e9e9;
}

.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0.6rem 0;
}

.footer-nav li {
  display: inline;
}

.footer-nav li a {
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  font-family: "Catamaran", sans-serif;
}

.footer_left,
.footer_right {
  width: fit-content;
  height: auto;
  position: absolute;
  bottom: 12px;
  z-index: 20;
  padding: 0.3rem 0.8rem;
}

.footer_left img,
.footer_right img {
  width: 200px;
  height: auto;
}

.footer_left {
  left: 12px;
}

.footer_right {
  right: 12px;
}

#messageModal {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99999999;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(80%);
  transition: 0.15s ease-in-out all;
}

#messageModal .modal {
  position: relative;
  width: 100%;
  height: 580px;
  max-width: 720px;
  padding: 2rem 6.5rem;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: top;
  align-items: center;
  box-sizing: border-box;
  outline: 8px solid rgba(190, 190, 190, 0.3);
  border-radius: 1rem;
  box-shadow: 6px 6px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  overflow-y: scroll;
}

#messageModal .modal p {
  line-height: 1.6;
  font-size: 0.9rem;
  flex-grow: 1;
}

#msg {
  max-width: 480px;
  font-size: 1.6rem;
  width: 74%;
  height: auto;
  background-color: white;
  border: 4px solid #e2e2e2;
  border-radius: 12px;
  text-align: center;
  padding: 2rem 1.6rem;
  position: relative;
}

.close_modal {
  display: inline-block;
  position: absolute;
  top: 0.6rem;
  right: 0.4rem;
  z-index: 101;
  transition: 0.1s ease all;
  border: none;
  background: transparent;
  cursor: pointer;
}

.close_modal:hover {
  opacity: 0.7;
}

.close_modal img {
  width: 24px;
  height: 24px;
}

/* Medium screens (Tablets - up to 1280px) */
@media (max-width: 1440px) {
  .title {
    font-size: 3.4rem;
    margin-top: -39%;
  }
  body {
    font-size: 14px;
  }
  .sky {
    background-size: auto 200%;
    top: -100px;
  }
}

/* Medium screens (Tablets - up to 1280px) */
@media (max-width: 1280px) {
  html,
  body {
    overflow: auto;
  }
  .title {
    font-size: 2.8rem;
    margin-top: -36%;
  }
  .logo img {
    width: 96px;
    height: auto;
    filter: drop-shadow(2px 4px 6px #666);
  }
  .logo {
    transform: translate(-50%, -100%);
  }

  .road {
    background-size: cover !important;
  }

  .mascot {
    height: 32vh !important;
    bottom: 15% !important;
    left: 20% !important;
  }

  #msg {
    font-size: 1rem;
  }
  #slogan {
    font-size: 1.8rem;
  }

  .button {
    border-radius: 12px;
    font-size: 1.04rem;
    min-height: 48px;
    padding: 6px 15px;
    min-width: 140px;
  }

  @keyframes maskGrow {
    0% {
      -webkit-mask-size: 0vw;
      mask-size: 0vw;
    }
    100% {
      -webkit-mask-size: 150vw;
      mask-size: 240vw;
    }
  }
}

/* Small screens (Mobile - up to 768px) */
@media (max-width: 980px) {
  .title {
    font-size: 2.8rem;
    margin-top: -420px;
  }
  #messageModal .modal {
    width: 90%;
    height: fit-content;
    max-width: 780px;
    max-height: 480px;
  }

  .mascot {
    height: 32vh !important;
    bottom: 15% !important;
  }

  /* .mascot img {
    width: 400px;
    height: auto;
  } */
  #message {
    font-size: 0.8rem;
  }
  #slogan {
    font-size: 1.8rem;
  }

  .button {
    border-radius: 12px;
    font-size: 1.04rem;
    min-height: 48px;
    padding: 6px 15px;
    min-width: 140px;
  }
  .mascot {
    bottom: 10px;
    height: 42vh;
    left: 50%;
    transform: translateX(-50%);
  }

  .footer_center {
    bottom: 20px;
  }

  .footer_center .logos-card #stadt-brandenburg-logo {
    height: 32px;
  }

  .footer_center .logos-card #meine-stadtder-zukunft-logo {
    height: 24px;
  }
}

@media (max-width: 768px) {
  .title {
    margin-top: -480px;
  }

  .logo {
    transform: translate(-50%, -100%);
  }

  #slogan {
    font-size: 1.6rem;
  }

  .mascot {
    bottom: 20%;
    height: 24vh;
    left: 50%;
  }

  .mascot img {
    margin-left: 0;
  }

  @keyframes maskGrow {
    0% {
      -webkit-mask-size: 0vw;
      mask-size: 0vw;
    }
    100% {
      -webkit-mask-size: 150vw;
      mask-size: 200vh;
    }
  }
}

/* Small screens (Mobile - up to 768px) */
@media (max-width: 520px) {
  .title {
    font-size: 2.4rem;
    margin-top: -420px;
  }
  #slogan {
    font-size: 1.4rem;
  }

  #messageModal .modal {
    padding: 1.6rem;
  }

  .button {
    border-radius: 12px;
    column-gap: 4px;
    font-size: 0.8rem;
    min-height: 40px;
    padding: 5px 9px;
    min-width: 100px;
  }

  .button > img {
    width: 20px;
    height: auto;
  }

  footer {
    flex-direction: column;
  }

  .footer_left img,
  .footer_right img {
    width: auto !important;
    height: 20px !important;
    transition: all 0.2s ease-out;
  }

  .footer_left,
  .footer_right {
    padding: 0.3rem 0.2rem !important;
  }

  .footer_center {
    bottom: 12px;
  }

  .mascot {
    bottom: 20% !important;
    height: 24vh !important;
    left: 50% !important;
  }
}

/* Extra small screens (Phones - up to 320px) */
@media (max-width: 380px) {
  .title {
    font-size: 2rem;
  }
  #slogan {
    font-size: 1.2rem;
  }

  .button {
    border-radius: 12px;
    column-gap: 4px;
    font-size: 0.6rem;
    min-height: 32px;
    padding: 5px;
    min-width: 80px;
  }

  .button > img {
    width: 16px;
    height: auto;
  }

  .mascot {
    bottom: 22%;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .mascot {
    bottom: 15%;
    height: 42vh;
    left: 20%;
  }

  @keyframes maskGrow {
    0% {
      -webkit-mask-size: 0vw;
      mask-size: 0vw;
    }
    100% {
      -webkit-mask-size: 150vw;
      mask-size: 250vw;
    }
  }
}

@media (max-width: 980px) and (orientation: landscape) {
  .mascot {
    bottom: 15% !important;
    height: 48vh !important;
    left: 20% !important;
  }
}

@media (max-width: 1280px) and (orientation: landscape) {
  .mascot {
    bottom: 15%;
    height: 32vh;
    left: 20%;
  }
}

@media (max-width: 1280px) and (orientation: portrait) {
  .mascot {
    bottom: 15% !important;
    height: 32vh !important;
    left: 10% !important;
  }
}

@media (max-width: 1600px) {
  .mascot {
    bottom: 10% !important;
    height: 42vh !important;
    left: 15% !important;
  }

  html,
  body {
    overflow: auto;
  }
}
