@font-face {
  font-family: 'Helvetica Neue';
  src: url('CSS/Helveticaneue.ttc') format('truetype-collection');
  font-weight: 200;
  font-style: normal;
}

/* Base HTML font size for REM units */
html {
  font-size: 18px; 
}

body {
  font-family: 'Helvetica Neue';
  font-weight: 200;
  background-color: #000;
  color: #d8b4fe;
  text-align: center;
  margin: 0;
  padding: 0;
  overflow: auto;
}

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

button,
select {
  font-size: 0.9rem; 
  padding: 9px 18px; 
  background-color: transparent;
  color: #6b21a8;
  border: 1.8px solid #6b21a8; 
  border-radius: 1.8px; 
  cursor: pointer;
  appearance: none;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 9px; 
}

h1 {
  font-size: 4.05rem; 
  font-weight: bold;
  margin-bottom: 27px; 
  color: #d8b4fe;
}

#locationMenu {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 144px; 
  box-shadow: 0px 7.2px 14.4px rgba(0, 0, 0, 0.2); 
  z-index: 1;
  margin-top: 9px; 
  border-radius: 4.5px; 
}

#locationMenu a {
  color: black;
  padding: 10.8px 14.4px; 
  text-decoration: none;
  display: block;
}

#locationMenu a:hover {
  background-color: #ddd;
}

.show {
  display: block;
}

#clock {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 17.1rem; 
  font-weight: bold;
  letter-spacing: 0.54rem; 
  width: 100vw;
  transition: color 0.3s ease;
  margin: 18px 0; 
}

#clock span {
  -webkit-text-stroke: 1.8px #d8b4fe; 
  -webkit-background-clip: text !important;
  color: transparent;
  text-shadow: none;
}

.sun-info {
  font-size: 1.35rem; 
  line-height: 2.025rem; 
}

#locationSelect {
  font-family: 'Helvetica Neue';
  font-weight: 200;
  width: 18rem; 
  padding: 9px 18px; 
  color: #d8b4fe;
  border: 1.8px solid #d8b4fe;
  border-radius: 0px;
  background-color: transparent;
  margin: 18px; 
  cursor: pointer;
  appearance: none;
  font-size: 0.99rem; 
}

label[for="locationSelect"] {
  font-size: 1.62rem; 
  color: #6b21a8;
  margin-bottom: 0px;
  display: block;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #000;
  z-index: 100;
  padding: 10.8px 18px; 
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-left label {
  font-size: 1.62rem; 
  color: #d8b4fe;
}

.footer-right select.location-select {
  padding: 9px 18px; 
  color: #d8b4fe;
  border: 1.8px solid #d8b4fe; 
  border-radius: 1.8px; 
  background-color: transparent;
  cursor: pointer;
  appearance: none;
  margin: 0;
  font-size: 1.35rem; 
  width: 13.5rem; 
}

.footer-right {
  position: relative;
}

.footer-right::after {
  content: '\2304';
  position: absolute;
  right: 1.35rem; 
  top: 50%;
  transform: translateY(calc(-50% - 5.4px)); 
  pointer-events: none;
  color: #d8b4fe;
  font-size: 1.35rem; 
}

/* --- Media Queries --- */

/* Small Screens (z.B. Handy) */
@media (max-width: 600px) {

  h1 {
    font-size: 1.98rem; 
    margin-bottom: 18px; 
  }

  #clock {
    font-size: 4.95rem; 
    letter-spacing: 0.18rem; 
  }

  .sun-info {
    font-size: 0.9rem; 
    line-height: 1.35rem; 
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    padding: 9px 0; 
  }

  .footer-left label {
    font-size: 0.99rem; 
    margin-bottom: 9px; 
  }

  .footer-right select.location-select {
    font-size: 0.99rem; 
    width: 16.2rem; 
    padding: 7.2px 13.5px; 
  }

  .footer-right::after {
    right: 1.35rem; 
    font-size: 0.99rem;
    top: 50%;
    transform: translateY(calc(-50% - 2.7px));
  }

  #locationSelect {
    font-size: 0.99rem; 
    width: 16.2rem; 
  }

  label[for="locationSelect"] {
    font-size: 1.17rem; 
  }
}

/* Medium Screens (z.B. Tablet) */
@media (min-width: 601px) and (max-width: 1024px) {
  h1 {
    font-size: 3.15rem;
    margin-bottom: 22.5px; 
  }

  #clock {
    font-size: 12.15rem;
    letter-spacing: 0.45rem; 
  }

  .sun-info {
    font-size: 1.17rem; 
    line-height: 1.8rem; 
  }

  .footer-left label {
    font-size: 1.35rem; 
  }

  .footer-right select.location-select {
    font-size: 1.17rem; 
    width: 18rem; 
  }

  .footer-right::after {
    right: 1.35rem; 
    font-size: 1.17rem; 
    top: 50%;
    transform: translateY(calc(-50% - 5.4px)); 
  }

  #locationSelect {
    font-size: 1.08rem; 
    width: 18rem; 
  }

  label[for="locationSelect"] {
    font-size: 1.44rem; 
  }
}

/* Large Screens (z.B. Desktop) */
@media (min-width: 1025px) {
  h1 {
    font-size: 4.05rem; 
  }

  #clock {
    font-size: 17.1rem; 
    letter-spacing: 0.54rem; 
  }

  .sun-info {
    font-size: 1.35rem; 
    line-height: 2.025rem; 
  }

  .footer-left label {
    font-size: 1.62rem; 
  }

  .footer-right select.location-select {
    font-size: 1.35rem; 
    width: 13.5rem; 
  }

  .footer-right::after {
    right: 1.35rem; 
    font-size: 1.35rem; 
    top: 50%;
    transform: translateY(calc(-50% - 5.4px)); 
  }

  #locationSelect {
    font-size: 0.99rem; 
    width: 18rem; 
  }

  label[for="locationSelect"] {
    font-size: 1.62rem; 
  }
}
