/* === BASIS === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "MuseoModerno", sans-serif;
  letter-spacing: 0.1em;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: rgb(175, 175, 255);
}

@font-face {
  font-family: "MuseoModerno";
  src: url(MuseoModerno/static/MuseoModerno-Medium.ttf);
}

/* === LAYOUT === */
.layout {
  display: flex;
  height: 100vh;
  width: 100%;
}

.left {
  width: 40%;
  display: flex;
  flex-direction: column;
}

.right {
  width: 60%;
  display: flex;
  flex-direction: column;
}

/* === LEFT TOP === */
.left-top {
  flex: 0 0 25%;
  background-color: #a7c7ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.title h1 {
  font-size: clamp(3rem, 6vw, 8rem);
  text-shadow: 0.2em 0.2em 0.3em rgba(255,235,145,0.8);
}

.title img {
  width: clamp(120px, 15vw, 300px);
  height: auto;
}

.subtitle {
  text-align: center;
}

.subtitle h2 {
  font-size: clamp(1.5rem, 3vw, 3.5rem);
  text-shadow: 0.15em 0.15em 0.25em rgba(247,179,179,1);
}

/* === LOCATION DROPDOWN === */
.location-dropdown {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
}

#locationButton {
  background-color: white;
  border: 2px solid rgb(145, 255, 186);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  cursor: pointer;
  color: #333;
}

#dropdownMenu {
  display: none;
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border: 2px solid rgb(145, 255, 186);
  border-radius: 10px;
  width: min(220px, 80vw);
  list-style: none;
  padding: 0.4rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 10;
}

#dropdownMenu li {
  padding: 0.6rem;
  text-align: center;
  cursor: pointer;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}

#dropdownMenu li:hover {
  background-color: rgb(230, 255, 230);
}

#dropdownMenu.show {
  display: block;
}

/* === LEFT BOTTOM === */
.left-bottom {
  flex: 1;
  background-color: #7ea7e0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.europa-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.europa-container img {
  width: 75%;
  height: auto;
  object-fit: contain;
}

/* === MARKER === */
.marker {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 2;
}

.marker:hover {
  transform: translate(-50%, -50%) scale(1.3);
}

/* === RIGHT TOP === */
.right-top {
  flex: 0 0 15%;
  background-color: #ffe59d;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 5%;
}

.button-container {
  display: flex;
  gap: 1rem;
}

.karte-button,
.analyse-button {
  height: 50px;
  width: 150px;
  border-radius: 10px;
  border: 5px white solid;
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: bold;
  cursor: pointer;
}

.analyse-button {
  background-color: rgb(189, 189, 189);
  color: rgb(105, 105, 105);
}

.karte-button {
  background-color: rgb(255, 146, 138);
}

/* === CHART === */

.right-middle {
  flex: 1;
  background-color: #fff2cc;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-container {
  width: 90%;
  height: auto; /* Chart nimmt etwa 60% der rechten Seite ein */
  background-color: white;
  border: 8px solid white;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

#myChart {
  width: 100% !important;
  height: 100% !important;
}




/* .chart-container {
  width: min(90%, 1000px);
}

#myChart {
  width: 100%;
  height: auto;
} */

/* === RIGHT BOTTOM === */
.right-bottom {
  flex: 0 0 25%;
  background-color: #c8e1d3;
  display: flex;
  justify-content: center;
  align-items: center;
}



/* === UV-Container (oben oder seitlich vom Chart) === */
.uv-container {
  width: 90%;
  height: 80%;
  background-color: rgb(145, 255, 186);
  border: 8px solid white;
  border-radius: 20px;
  padding: 2%;
  box-sizing: border-box;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.uv-container h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  text-shadow: 0.15em 0.15em 0.25em rgba(255,235,145,1);
}

.uv-container h2 {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-style: normal; 
  margin-top: 0.5rem;
}


.uv-container p {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-style: italic;
  margin-top: 0.5rem;
} 



/* === MEDIA QUERIES === */
@media (max-width: 1024px) {
  .layout { flex-direction: column; }
  .left, .right { width: 100%; }
  .title { flex-direction: column; }
  .subtitle { text-align: center; }
  .europa-container img { width: 90%; }
}

@media (max-width: 600px) {
  .button-container { justify-content: center; flex-wrap: wrap; }
  .karte-button, .analyse-button { flex: 1 1 100%; }
  .uv-container { width: 90%; padding: 1rem; }
  #locationButton { font-size: 1rem; }
}
