/* style.css */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: sans-serif;
}

body {
  width: 100vw;
  height: 100vh;
  background: url(/assets/images/bg1.jpg) center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.container {
  position: relative;
  width: 300px;
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: white;
  text-align: center;
  transition: height 0.3s ease;
  overflow: hidden;
}

.container.open {
  height: 470px;
}

.title {
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 700;
}

.searchbox {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.searchbox input {
  flex: 1;
  padding: 10px 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  background: none;
  color: #fff;
  outline: none;
  font-size: 14px;
}

.searchbox input::placeholder {
  color: #ddd;
}

.searchbox i {
  position: absolute;
  left: 10px;
  font-size: 18px;
  color: white;
}

.searchbox button {
  position: absolute;
  right: 5px;
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.status {
  font-size: 12px;
  margin-bottom: 10px;
  height: 18px;
  color: #f0f0f0;
}

.weatherbox {
  display: none;
  text-align: center;
}

.container.open .weatherbox {
  display: block;
}

.weatherbox img {
  width: 100px;
}

.temp {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-size: 48px;
  font-weight: 700;
}

.temp span {
  margin-left: 4px;
  font-size: 18px;
  font-weight: 500;
}

.keterangan {
  font-size: 16px;
  text-transform: capitalize;
}

.weather-details {
  display: none;
  justify-content: space-between;
  margin-top: 20px;
}

.container.open .weather-details {
  display: flex;
}

.item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item i {
  font-size: 32px;
}

.text .info {
  font-size: 18px;
  font-weight: bold;
}

.text p {
  font-size: 12px;
  font-weight: 300;
}

@media (max-width: 400px) {
  .container {
    width: 90vw;
  }
}
