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

body {
  font-family: 'Poppins', sans-serif;
  background: url("bg.jpg") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 0 30px rgba(155, 89, 182, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 400px;
  width: 100%;
  animation: fadeIn 1s ease-in-out;
  transition: all 0.3s ease;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid #9b59b6;
}

.weather-info {
  position: absolute;
  top: 10px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 12px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

.weather-info img {
  width: 28px;
  height: 28px;
  animation: float 2s infinite ease-in-out;
}

/* Egyszerű lebegő animáció */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

h1 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px #9b59b6;
}

.quote {
  font-style: italic;
  color: #dddddd;
  margin-bottom: 1rem;
}

.info {
  color: #bbbbbb;
  font-size: 0.9rem;
  line-height: 1.5;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 🔁 Reszponzivitás frissítve */
@media (max-width: 768px) {
  .card {
    padding: 2rem 1.5rem;
    max-width: 90%;
  }

  .avatar {
    width: 80px;
    height: 80px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .quote, .info {
    font-size: 0.85rem;
  }

  .weather-info {
    top: 8px;
    right: 10px;
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .weather-info img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .card {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .avatar {
    width: 70px;
    height: 70px;
  }

  h1 {
    font-size: 1.3rem;
  }

  .quote, .info {
    font-size: 0.8rem;
  }

  .weather-info {
    top: 6px;
    right: 8px;
    font-size: 0.75rem;
    padding: 4px 8px;
    gap: 6px;
  }

  .weather-info img {
    width: 20px;
    height: 20px;
  }
}