html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-size: 16px;
  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;
}

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

.stadtspielraum-logo {
  width: 200px;
  height: auto;
  margin-top: 36px;
}

.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;
}

.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;
}

.mascot {
  width: 100%;
  overflow: hidden;
  height: fit-content;
  position: absolute;
  bottom: 0px;
  z-index: 16;
  display: flex;
  justify-content: center;
}

.mascot picture {
  width: auto;
  height: 54vh;
  cursor: pointer;
  margin-left: -50vw;
}

.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: relative;
  z-index: 24;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.15s ease-in-out all;
}

.modal {
  width: 960px;
  height: 90vh;
  max-width: 100%;
  padding: 4px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  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);
  position: relative;
  overflow: hidden;
}

.impressium-content {
  height: 100%;
  width: 960px;
  max-width: 100%;
  display: flex;
  padding: 2rem 4.5rem 3em;
  flex-direction: column;
  overflow-y: scroll;
  overflow-x: auto;
  box-sizing: border-box;
}

.impressium-content ul {
  margin-block-start: 0.36em;
  margin-block-end: 1em;
}

.impressium-content p {
  margin-block-start: 0.1em;
  margin-block-end: 0.1em;
}

.impressium-content h1,
.impressium-content h2 {
  margin-block-start: 1em;
  margin-block-end: 0.64em;
}

.impressium-content h3,
.impressium-content h4,
.impressium-content h5,
.impressium-content h6 {
  margin-block-start: 0.36em;
  margin-block-end: 0.36em;
}

.modal p {
  text-align: left;
  line-height: 1.4;
  font-size: 1rem;
}

button.close_modal {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

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

.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;
  transition: opacity 0.5s ease-out;
}

.loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.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);
  }
}

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

/* Tablet and medium screens */
@media (max-width: 1024px) {
  .impressium-content {
    padding: 1rem 3rem;
  }
}

/* Small screens (Mobile - up to 768px) */
@media (max-width: 768px) {
  .impressium-content {
    padding: 1rem 2.25rem;
  }

  #messageModal .modal {
    padding: 1rem;
  }

  .modal h1 {
    text-align: center;
  }

  #messageModal .modal {
    width: 96%;
    max-width: 960px;
  }

  #messageModal {
    padding: 1rem !important;
  }

  .stadtspielraum-logo {
    width: 80px;
    height: auto;
    margin-top: 36px;
  }

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

/* Small screens (Mobile - up to 520px) */
@media (max-width: 520px) {
  .impressium-content {
    padding: 0.5rem 1.125rem;
  }

  #messageModal .modal {
    padding: 1.6rem;
  }
}
