* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  font-family: "Fredoka", sans-serif;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

/* Psychedelic animated background */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(255, 255, 255, 0.05) 35px,
      rgba(255, 255, 255, 0.05) 70px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 35px,
      rgba(0, 0, 0, 0.03) 35px,
      rgba(0, 0, 0, 0.03) 70px
    );
  animation: slide 20s linear infinite;
  z-index: 0;
}

@keyframes slide {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Tartan pattern overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      rgba(216, 180, 254, 0.3) 10%,
      transparent 10%,
      transparent 20%,
      rgba(216, 180, 254, 0.3) 20%,
      rgba(216, 180, 254, 0.3) 30%,
      transparent 30%,
      transparent 40%,
      rgba(250, 208, 232, 0.3) 40%,
      rgba(250, 208, 232, 0.3) 50%,
      transparent 50%,
      transparent 60%,
      rgba(196, 181, 253, 0.3) 60%,
      rgba(196, 181, 253, 0.3) 70%,
      transparent 70%
    ),
    linear-gradient(
      0deg,
      rgba(216, 180, 254, 0.3) 10%,
      transparent 10%,
      transparent 20%,
      rgba(216, 180, 254, 0.3) 20%,
      rgba(216, 180, 254, 0.3) 30%,
      transparent 30%,
      transparent 40%,
      rgba(250, 208, 232, 0.3) 40%,
      rgba(250, 208, 232, 0.3) 50%,
      transparent 50%,
      transparent 60%,
      rgba(196, 181, 253, 0.3) 60%,
      rgba(196, 181, 253, 0.3) 70%,
      transparent 70%
    );
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

.weather-app {
  background: rgba(255, 255, 255, 0.95);
  max-width: 650px;
  margin: 20px auto;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 8px rgba(255, 255, 255, 0.8),
    0 0 0 16px rgba(216, 180, 254, 0.6),
    0 0 0 24px rgba(250, 208, 232, 0.6);
  border-radius: 30px;
  padding: 40px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  border: 4px solid #fff;
}

/* Decorative circles */
.weather-app::before {
  content: "☀";
  position: absolute;
  top: -20px;
  right: 40px;
  font-size: 50px;
  animation: float 3s ease-in-out infinite;
}

.weather-app::after {
  content: "🌙";
  position: absolute;
  bottom: -20px;
  left: 40px;
  font-size: 40px;
  animation: float 4s ease-in-out infinite reverse;
}

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

header {
  border-bottom: 4px dashed #d8b4fe;
  padding: 0 0 30px 0;
  margin-bottom: 30px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form-input {
  background: linear-gradient(135deg, #fae8ff 0%, #f5d0fe 100%);
  border: 3px solid #d8b4fe;
  border-radius: 25px;
  width: 100%;
  font-size: 18px;
  padding: 18px 25px;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  color: #2d3436;
  transition: all 0.3s ease;
}

.search-form-input:focus {
  outline: none;
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(216, 180, 254, 0.4);
}

.search-form-input::placeholder {
  color: rgba(45, 52, 54, 0.6);
}

.search-form-button {
  background: linear-gradient(135deg, #d8b4fe 0%, #c084fc 100%);
  padding: 18px 35px;
  border: 3px solid #fff;
  font-size: 18px;
  border-radius: 25px;
  color: white;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(192, 132, 252, 0.4);
}

.search-form-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(192, 132, 252, 0.6);
}

.search-form-button:active {
  transform: translateY(-1px);
}

main {
  padding: 20px 0;
}

.weather-app-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.weather-app-city {
  margin: 0 0 15px 0;
  font-size: 56px;
  line-height: 1.2;
  font-family: "Alfa Slab One", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.weather-app-details {
  font-size: 18px;
  color: #636e72;
  line-height: 30px;
  font-weight: 400;
  background: rgba(250, 232, 255, 0.5);
  padding: 15px 20px;
  border-radius: 20px;
  border-left: 5px solid #d8b4fe;
}

.weather-app-details strong {
  color: #c084fc;
  font-weight: 700;
}

#time {
  font-weight: 600;
  color: #2d3436;
}

.weather-app-temperature-container {
  display: flex;
  align-items: flex-start;
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  padding: 30px;
  border-radius: 30px;
  border: 4px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.weather-app-temperature-container::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.weather-app-icon {
  font-size: 80px;
  margin-top: 10px;
  filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.2));
  animation: bounce 2s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.weather-app-icon img {
  width: 80px;
  height: 80px;
}

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

.weather-app-temperature {
  font-size: 120px;
  margin-left: 20px;
  font-weight: 900;
  font-family: "Alfa Slab One", sans-serif;
  color: #2d3436;
  line-height: 1;
  position: relative;
  z-index: 1;
  text-shadow: 4px 4px 0px rgba(216, 180, 254, 0.4);
}

.weather-app-unit {
  margin-top: 20px;
  font-size: 40px;
  font-weight: 700;
  color: #c084fc;
  position: relative;
  z-index: 1;
}

footer {
  border-top: 4px dashed #fad0e8;
  padding: 30px 0 0 0;
  margin-top: 30px;
  text-align: center;
  font-size: 16px;
  color: #636e72;
  font-weight: 500;
}

footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
}

footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

footer a:hover {
  color: #764ba2;
}

/* Responsive */
@media (max-width: 600px) {
  .weather-app {
    padding: 25px;
  }

  .weather-app-city {
    font-size: 40px;
  }

  .weather-app-temperature {
    font-size: 90px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form-button {
    width: 100%;
  }
}
