body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Úszó gombok */
.floating-buttons {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
  flex-wrap: wrap;
}

.floating-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.floating-button:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 12px;
  opacity: 0.9;
  z-index: 2000;
}

/* Modalok */
.bottom-modal {
  display: none;
  position: fixed;
  bottom: 0;
  background: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  z-index: 999;
  animation: slideUp 0.3s ease-out;
  max-height: 70%;
  width: 90%;
  left: 50%;
  transform: translateX(-50%);
  overflow-y: auto;
}

@keyframes slideUp {
  from {transform: translateY(100%);}
  to {transform: translateY(0);}
}

.center-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  width: 90%;
  max-width: 400px;
  max-height: 80%;
  overflow-y: auto;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid #ddd;
  font-size: 18px;
}

.modal-body {
  padding: 15px;
  font-size: 16px;
}

.small-popup {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 20px;
  background: white;
  color: black;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-size: 14px;
  z-index: 1000;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

.fade-popup {
  animation: fadeInOut 3s forwards;
}

.family-list {
  list-style-type: none;
  padding: 0;
}

.family-list li {
  margin: 10px 0;
  cursor: pointer;
  color: #4CAF50;
}

.family-list li:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .floating-buttons {
    gap: 8px;
    bottom: 15px;
    left: 15px;
  }
  .floating-button {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  .bottom-modal, .center-modal {
    width: 95%;
    max-height: 65%;
  }
  .modal-header {
    font-size: 16px;
  }
  .modal-body {
    font-size: 14px;
  }
  .small-popup {
    font-size: 12px;
  }
}
