.weather-box {
  display: flex;
  flex-direction: column;
  height: 178px;
  align-items: flex-start;
  position: relative;
  /*margin-bottom:20px;*/
  overflow: hidden;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
}

.weather-box .info {
  display: flex;
  height: 128px;
  align-items: center;
  justify-content: space-between;
  padding: 0px 12px;
  position: relative;
  align-self: stretch;
  width: 100%;
  /*background-color: #3b82f6;
  border-radius: 12px 12px 0px 0px;*/
}

.weather-box .temper {
  display: flex;
  flex-direction: column;
  height: 112px;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0px 0px 4px;
  position: relative;
  flex: 1;
  flex-grow: 1;
}

.weather-box .group {
  position: relative;
  width: 50px;
  height: 19px;
}

.weather-box .image {
  position: absolute;
  width: 22px;
  height: 22px;
  top: 2px;
  left: 0;
}

/*리프레시 아이콘전용*/
.weather-box .image2 {
  position: absolute;
  width: 16px;
  height: 16px;
  top: 4px;
  left: 0;
}

.weather-box .text-wrapper {
  position: absolute;
  top: 0;
  left: 20px;
  font-family: 'Pretendard-Medium', Helvetica;
  font-weight: 500;
  color: #ffffff;
  font-size: 16px;
  white-space: nowrap;
  letter-spacing: 0;
  line-height: normal;
}

.weather-box .temp {
  position: relative;
  width: fit-content;
  font-family: 'Pretendard-Medium', Helvetica;
  font-weight: 500;
  color: #ffffff;
  font-size: 62px;
  white-space: nowrap;
  letter-spacing: 0;
  line-height: 1;
  top: 10px;
}

.weather-box .element {
  position: relative;
  width: fit-content;
  font-family: 'Pretendard-Medium', Helvetica;
  font-weight: 500;
  color: #ffffff;
  font-size: 15px;
  white-space: nowrap;
  letter-spacing: 0;
  line-height: normal;
}

.weather-box .time {
  position: relative;
  flex: 1;
  flex-grow: 1;
  height: 109px;
  margin-right: -2px;
  text-align: right;
}

.weather-box .overlap-group {
  position: relative;
  height: 109px;
  display: inline-block;
  min-width: 150px;
}

.weather-box .frame {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 60px;
  position: absolute;
  top: 0;
  right: 0;
}

.weather-box .text-wrapper-2 {
  position: relative;
  align-self: stretch;
  margin-top: -1px;
  font-family: 'Pretendard-Medium', Helvetica;
  font-weight: 500;
  color: #ffffff;
  font-size: 26px;
  text-align: right;
  letter-spacing: 0;
  line-height: normal;
}

.weather-box .text-wrapper-3 {
  position: relative;
  align-self: stretch;
  font-family: 'Pretendard-Medium', Helvetica;
  font-weight: 500;
  color: #ffffff;
  font-size: 15px;
  text-align: right;
  letter-spacing: 0;
  line-height: normal;
}

.weather-box .text-wrapper-4 {
  position: absolute;
  top: 34px;
  right: 0px;
  font-family: 'Pretendard-Regular', Helvetica;
  font-weight: 400;
  color: #ffffff;
  font-size: 15px;
  text-align: right;
  letter-spacing: 0;
  line-height: normal;
}

.weather-box .day {
  display: flex;
  flex-direction: column;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  position: relative;
  align-self: stretch;
  width: 100%;
  /*
  background-color: #326fd1;
  border-radius: 0px 0px 12px 12px;*/
  z-index: 99;
}

.weather-box .frame-2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  bottom: 3px;
}

.weather-box .group-2 {
  position: relative;
  width: 47.19px;
  height: 22px;
}

.weather-box .text-wrapper-5 {
  position: absolute;
  top: 2px;
  left: 0;
  font-family: 'Pretendard-Medium', Helvetica;
  font-weight: 500;
  color: #ffffff99;
  font-size: 16px;
  white-space: nowrap;
  letter-spacing: 0;
  line-height: normal;
}

.weather-box .group-3 {
  position: absolute;
  width: 22px;
  height: 22px;
  top: 0;
  left: 23px;
}

.weather-box .group-4 {
  position: relative;
  width: 46.19px;
  height: 22px;
}

.weather-box .group-5 {
  position: absolute;
  width: 22px;
  height: 22px;
  top: 0;
  left: 22px;
  background-image: url(./img/image-5.png);
  background-size: cover;
  background-position: 50% 50%;
}

.weather-box .group-6 {
  position: relative;
  width: 50.69px;
  height: 22px;
}

.weather-box .group-7 {
  position: absolute;
  width: 22px;
  height: 22px;
  top: 0;
  left: 27px;
  background-image: url(./img/image-2.png);
  background-size: cover;
  background-position: 50% 50%;
}

.weather-box .group-8 {
  position: relative;
  width: 50.69px;
  height: 22px;
  margin-right: -2px;
}

.weather-box .group-9 {
  position: absolute;
  width: 22px;
  height: 22px;
  top: 0;
  left: 27px;
  background-image: url(./img/image-4.png);
  background-size: cover;
  background-position: 50% 50%;
}
/* Original CSS code should be injected here */

/* Additional accessibility and semantic improvements */
.weather-box {
  color: #ffffff;
  font-family: 'Pretendard-Medium', Helvetica, Arial, sans-serif;
}

.weather-box .image {
  vertical-align: middle;
}

.weather-box .text-wrapper,
.weather-box .div,
.weather-box .element,
.weather-box .text-wrapper-2,
.weather-box .text-wrapper-3,
.weather-box .text-wrapper-4,
.weather-box .text-wrapper-5 {
  margin: 0;
}

.weather-box .group-3,
.weather-box .group-5,
.weather-box .group-7,
.weather-box .group-9 {
  background-repeat: no-repeat;
}

@media (max-width: 600px) {
  .weather-box {
    min-width: 100%;
  }
}

.animation-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.btn {
  display: inline-block;
  padding: 3px 5px;
  background: #6524fd;
  color: #fff;
  border-radius: 5px;
  margin: 3px;
  cursor: pointer;
}

.top-section {
  position: relative;
  z-index: 2;
  height: 120px;
  display: flex;
  flex-direction: column;
}

.weather-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
}

.left-content {
  display: flex;
  flex-direction: column;
}

.weather-type {
  font-size: 14px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.temp {
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.temp-range {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 4px;
}

.right-content {
  text-align: right;
}

.time {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 4px;
}

.date {
  font-size: 14px;
  opacity: 0.8;
}

.location {
  font-size: 14px;
  opacity: 1;
  text-align: right;
  margin-top: 30px;
}

.bottom-section {
  background: rgba(0, 0, 0, 0.15);
  margin: 0 -20px -16px;
  padding: 12px 20px;
}

.forecast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.forecast-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.8;
  font-size: 14px;
  gap: 4px;
}

.animation-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.sun {
  position: absolute;
  top: 20px;
  left: calc(50% + 30px);
  width: 60px;
  height: 60px;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.6) 0%,
    rgba(255, 215, 0, 0.2) 70%,
    transparent 100%
  );
  border-radius: 50%;
  z-index: 1;
}

.cloud {
  position: absolute;
  width: 100px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  animation: float 4s ease-in-out infinite;
  z-index: 2;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

.cloud::before {
  width: 50px;
  height: 50px;
  top: -20px;
  left: 15px;
}

.cloud::after {
  width: 30px;
  height: 30px;
  top: -10px;
  left: 45px;
}

.cloud-light {
  opacity: 0.7;
}

.cloud-night {
  background: rgba(240, 240, 240, 0.8);
}

.cloud-night::before,
.cloud-night::after {
  background: rgba(240, 240, 240, 0.8);
}

.moon_bun {
  position: absolute;
  top: 20px;
  left: calc(50% + 30px);
  width: 40px;
  height: 40px;
  transform: rotate(-45deg);
  z-index: 0;
}

.moon {
  position: absolute;
  top: 20px;
  left: calc(50% + 30px);
  width: 40px;
  height: 40px;
  background: transparent;
  box-shadow: 10px -10px 0 0 #ffd700;
  border-radius: 50%;
  transform: rotate(45deg);
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 1.5s infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-10px) translateX(10px);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}
.weather-card {
  width: 100%;
  min-width: 280px;
  max-width: 500px;
  height: 180px;
  padding: 16px 20px;
  border-radius: 16px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: background-color 2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  user-select: none;
  margin: 0 16px;
}

.top-section {
  position: relative;
  z-index: 2;
  height: 120px;
  display: flex;
  flex-direction: column;
}

.weather-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
}

.left-content {
  display: flex;
  flex-direction: column;
}

.weather-type {
  font-size: 14px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.temp {
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

.temp-range {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 4px;
}

.right-content {
  text-align: right;
}

.time {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 4px;
}

.date {
  font-size: 14px;
  opacity: 0.8;
}

.location {
  font-size: 14px;
  opacity: 1;
  text-align: right;
  margin-top: 30px;
}

.bottom-section {
  background: rgba(0, 0, 0, 0.15);
  margin: 0 -20px -16px;
  padding: 12px 20px;
}

.forecast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.forecast-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.8;
  font-size: 14px;
  gap: 4px;
}

.forecast-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.forecast-icons {
  display: flex;
  gap: 4px;
}

.animation-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.moon2 {
  position: absolute;
  top: 16px;
  left: 190px;
  width: 40px;
  height: 40px;
  background: #ffd700;
  border-radius: 50%;
  animation: glow 2s ease-in-out infinite;
}

.moon2::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.3) 0%,
    rgba(255, 215, 0, 0.2) 25%,
    rgba(255, 215, 0, 0.1) 50%,
    rgba(255, 215, 0, 0.05) 75%,
    transparent 100%
  );
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.moon2::after {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.1) 0%,
    rgba(255, 215, 0, 0.05) 50%,
    transparent 100%
  );
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite 0.5s;
}

.moon2_o {
  opacity: 0.7;
  position: absolute;
  top: 16px;
  left: 190px;
  width: 40px;
  height: 40px;
  background: #ffd700;
  border-radius: 50%;
  animation: glow 2s ease-in-out infinite;
}

.moon2_o::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.3) 0%,
    rgba(255, 215, 0, 0.2) 25%,
    rgba(255, 215, 0, 0.1) 50%,
    rgba(255, 215, 0, 0.05) 75%,
    transparent 100%
  );
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.moon2_o::after {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.1) 0%,
    rgba(255, 215, 0, 0.05) 50%,
    transparent 100%
  );
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite 0.5s;
}

.rain {
  position: absolute;
  width: 2px;
  height: 20px;
  background: rgba(255, 255, 255, 0.5);
  animation: rain linear infinite;
  opacity: 0;
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px #ffd700;
  }
  50% {
    box-shadow: 0 0 30px #ffd700;
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

@keyframes rain {
  0% {
    transform: translateY(-20px) rotate(15deg);
    opacity: 0;
  }
  0.1% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(170px) rotate(15deg);
    opacity: 0;
  }
}

.snow {
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: snow linear infinite;
  opacity: 0;
  z-index: 0;
}
@keyframes snow {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 0;
  }
  0.2% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  90% {
    opacity: 0;
  }
  100% {
    transform: translateY(170px) rotate(360deg);
    opacity: 0;
  }
}

.snow_big {
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
  animation: snow linear infinite;
  opacity: 0;
  z-index: 0;
}
@keyframes snow {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 0;
  }
  0.2% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.8;
  }
  90% {
    opacity: 0;
  }
  100% {
    transform: translateY(170px) rotate(360deg);
    opacity: 0;
  }
}
.snow_small {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: snow linear infinite;
  opacity: 0;
  z-index: 0;
}
@keyframes snow {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 0;
  }
  0.2% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  90% {
    opacity: 0;
  }
  100% {
    transform: translateY(170px) rotate(360deg);
    opacity: 0;
  }
}

.custom-lightning {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.custom-lightning.flash {
  opacity: 0.8;
  animation: flash-light 0.02s;
}
