@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto Condensed", sans-serif;
  color: #f8f8f8;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1f241c;
  min-height: 100vh;
  max-height: 100%;
  padding: 2rem;
}


.upper-sec {
  width: 40vw;
  height: 100%;
  border-radius: 1.5rem;
  background-color: #424747;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
}


.input {
  width: 100%;
  height: 25vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(66,71,71,0), #424747 98%), url("sec-1-img.jpeg") center/cover no-repeat;
}

input {
  width: 70%;
  height: 2.8rem;
  border-radius: 1rem;
  padding: 0 1rem;
  background-color: #1f241c;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

input:focus {
  background-color: #2a3124;
  transform: scale(1.02);
}


.area-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.area-detail h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.area-detail div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4rem;
}

.area-detail img {
  width: 1.4rem;
}


.btn {
  width:85.4%;
  display: flex;
  justify-content: space-between;
  background-color: #242424;
  border-radius: 1rem;
  margin: 1.5rem 0;
  overflow: hidden;
}

.btn button {
  flex: 1;
  background-color: transparent;
  border: none;
  font-size: 1.1rem;
  padding: 1rem;
  cursor: pointer;
  color: #f8f8f8;
  transition: all 0.3s ease;
}

.btn button:hover,
.btn button.active {
  background-color: #000;
  font-weight: 600;
}


.details {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 85%;
  gap: 1rem;
  margin: 1rem 0;
}

.details div {
  background-color: #242424;
  flex: 1;
  padding: 1.2rem;
  border-radius: 1rem;
  text-align: center;
}

.details h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}


.day-night {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 92%;
  background: linear-gradient(to top, rgba(66,71,71,0), #424747 99.9%), url("last.jpeg") center/cover no-repeat;
  padding: 1.5rem;
  border-radius: 1rem;
  margin-top: auto;
  margin-bottom: 1.5rem;
}

.day-night div {
  background-color: rgba(34,24,9,0.7);
  border-radius: 1rem;
  width: 28%;
  padding: 1rem;
  text-align: center;
}

.day-night h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.day-night p {
  font-size: 1rem;
}


.loader {
  position: absolute;
  inset: 0;
  background: rgba(66, 71, 71, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.loader::after {
  content: "";
  width: 70px;
  height: 70px;
  border: 6px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.popup {
  position: absolute;
  display: none;
  background-color: white;
  border-radius: 1rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 20vh;
  width: 30vw;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  z-index: 1000;
}

.popup h2 {
  color: #221809;
  font-size: 2rem;
  font-weight: 700;
}

.popup button {
  margin-top: 1rem;
  width: 6rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  border: none;
  background-color: #221809;
  color: #fff;
  cursor: pointer;
}


@media (max-width: 1600px) {
  .upper-sec { width: 50vw;height: 100%; }
}


@media (max-width: 1200px){
  .upper-sec{
    width: 65vw;
    height:100%;
  }
  .details h3 { font-size: 1.8rem; }

}


@media (max-width: 992px) {
  html { font-size: 14px; }
  .upper-sec {
    width: 90vw;
    height: 100%;
    border-radius: 1rem;
  }
  .btn { flex-direction: column; gap: 0.5rem; }
  .btn button { width: 100%; }
}


@media (max-width: 768px) {
  html { font-size: 13px; }
  .upper-sec { width: 95vw; height: auto; border-radius: 0; }
  .details { flex-direction: column; }
  .details div { width: 100%; }
  .day-night { flex-direction: column; gap: 1rem; }
  .day-night div { width: 80%; }
}

@media (max-width: 576px) {
  html { font-size: 12px; }
  body { padding: 0; }
  .upper-sec { width: 100vw; min-height: 100%; }
  .area-detail h1 { font-size: 2.2rem; }
  .details { gap: 0.7rem; }
  .btn { width: 90%; }
  .btn button { font-size: 1rem; padding: 0.8rem; }
  .day-night div { width: 85%; }
  .popup { width: 80vw; height: 25vh; }
}
