
.banner-archive {
  font-size: clamp(3rem, 10vw, 5rem);
  background: linear-gradient(90deg, #dddddd, #5f5e60);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 1.5rem rgba(220, 233, 237, 0.3);
  word-wrap: break-word;
  margin: 8rem 0 3rem 0;
}
@media (max-width: 380px) {
  .banner-archive {
    font-size: clamp(2rem, 10vw, 3.5rem);
    margin: 6rem 0 1.5rem 0;
  }
}
@media (min-width: 381px) and (max-width: 768px) {
  .banner-archive {
    font-size: clamp(3rem, 10vw, 5rem);
    margin: 6rem 0 2rem 0;
  }
}
@media (orientation: landscape) and (max-height: 800px) {
  .banner-archive {
    font-size: clamp(2.5rem, 10vw, 4rem);
    margin: 4rem 0 2rem 0;
  }
}



form#queryForm {
  padding: 2rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 0.1rem solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  color: rgba(249, 249, 249, 0.7);
  max-width: 32rem;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  form#queryForm {
    width: 70vw;
    max-width: 70vw;
  }
}

form#queryForm label {
  display: block;
  background: linear-gradient(90deg, #dddddd, #5f5e60);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(0.8rem, 0.9rem, 1.1rem);
  text-shadow: 0 0 1.5rem rgba(220, 233, 237, 0.3);
  text-align: left;
  margin-bottom: 0.5rem;
}

form#queryForm input[type="text"],
form#queryForm select {
  font-family: "SyneMono";
  font-size: clamp(0.95rem, 10vw, 1.05rem);
  background: rgba(255, 255, 255, 0.05);
  border: 0.1rem solid rgba(255, 255, 255, 0.1);
  color: rgba(249, 249, 249, 0.7);
  border-radius: 0.5rem;
  width: 100%;
  padding: 0.6rem;
  box-sizing: border-box;
  transition: border 0.2s;
}
@media (hover: hover) {
  form#queryForm input:hover,
  form#queryForm select:hover {
    background: rgba(255, 255, 255, 0.07);
    border: 0.1rem solid rgba(255, 255, 255, 0.2);
  }
}

form#queryForm input:focus,
form#queryForm select:focus {
  border-color: #5b6cdc;
  outline: none;
}

form#queryForm button {
  font-family: "SyneMono";
  font-size: clamp(1rem, 1.1rem, 1.2rem);
  background: linear-gradient(90deg, #dddddd, #7617d6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 1.5rem rgba(220, 233, 237, 0.3);
  border: 0.08rem solid rgb(146, 145, 145);
  padding: 0.8rem;
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out, transform 0.3s ease;
}
@media (hover: hover) {
  form#queryForm button:hover {
    background: linear-gradient(90deg, #dddddd, #190131);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 1.5rem rgba(220, 233, 237, 0.3);
  }
}

form#queryForm button:active {
  background: linear-gradient(90deg, #dddddd, #8a2ce8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 1.5rem rgba(220, 233, 237, 0.3);
  transform: scale(0.97);
  transition: none;
}

.query-label {
  font-size: clamp(1.25rem, 1.5rem, 1.75rem);
  color: rgba(249, 249, 249, 0.7);
  padding-bottom: 0.5rem;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.archive-wrapper {
  display: block;
  max-width: 59%;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 768px) {
  .archive-wrapper {
    max-width: 90%;
  }
}

.archive-infotext {
  color: rgba(249, 249, 249, 0.7);
  margin: 2rem 0;
  font-size: clamp(0.85rem, 0.95rem, 1.05rem);
}
@media (max-width: 768px) {
  .archive-infotext {
    margin: 1rem 0;
    font-size: clamp(0.8rem, 0.9rem, 1rem);
  }
}



#chartOverlay {
  position: fixed;
  height: 100%;
  width: 100%;
  opacity: 0;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10998;
  pointer-events: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.2s ease;
}

#chartOverlay.visible {
  display: flex;
  opacity: 1;
  background-image: url('../wallpapers/rainy.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}
@media (max-width: 768px), (orientation: portrait) {
  #chartOverlay.visible {
    background-image: url('../wallpapers/rainyMobile.webp');
    background-attachment: scroll;
  }
}

#chartWrapper {
  position: relative;
  display: flex;
  height: 100%;
  width: 100%;
  border-radius: 0.25rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

#chart {
  display: block;
  width: 100%;
  height: 60vh;
  max-height: 70vh;
  padding: 0 1rem;
}
@media (max-width: 768px) {
  #chart {
    height: auto !important;
  }
}

#chartContainer {
  display: none;
  width: 100%;
  height: 100%;
  padding: 0.5rem 0;
  opacity: 1;
  overflow: auto;
}
@media (max-width: 768px) {
  #chartContainer {
    max-height: 90%;
  }
}

#chartContainer h2 {
  text-align: center;
  width: 100%;
  background: linear-gradient(90deg, #ebebeb, #9c9c9c);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 1.5rem rgba(220, 233, 237, 0.3);
}
@media (orientation: landscape) and (max-width: 768px) {
  #chartContainer,
  #chart {
    min-height: 100% !important;
    min-width: 100% !important;
    overscroll-behavior: contain;
  }
}

#chartContainer.visible {
  display: block;
  opacity: 1;
}

#chartInfo {
  font-size: clamp(0.9rem, 1rem, 1.1rem);
  background: linear-gradient(90deg, #ebebeb, #9c9c9c);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 1.5rem rgba(220, 233, 237, 0.3);
  text-align: center;
  border-bottom: 0.1rem solid rgba(220, 233, 237, 0.15);
  margin: 3rem 0 0 0;
}
@media (max-width: 768px) {
  #chartInfo {
    margin: 1rem 0 0 0;
  }
}
@media (min-width: 769px) and (max-width: 1023px) {
  #chartInfo {
    margin: 2rem 0 0 0;
  }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  #chartInfo {
    margin: 3rem 0 0 0;
  }
}
.charts-semibold {
  text-shadow: 0 0.02rem 0 rgba(248, 248, 248, 0.9);
}



#closeArchive {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  padding: 0.5rem 0.8rem;
  font-size: 1.2rem;
  font-family: "Audiowide";
  color: rgba(249, 249, 249, 0.7);
  background: rgba(225, 54, 54, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 0 1.2rem 0 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  z-index: 12000;
  transition: background 0.25s ease, transform 0.15s ease;
}
@media (max-width: 768px) {
  #closeArchive {
    top: 0.4rem;
    right: 0.4rem;
  }
}
#closeArchive:hover {
  background: rgba(225, 54, 54, 0.6);
  color: rgba(249, 249, 249, 0.9);
}
#closeArchive:active {
  transform: scale(0.92);
}
