
.animation-delay-2000 {
  animation-delay: -10s;
}

.animation-delay-4000 {
  animation-delay: -5s;
}

@keyframes draw-line {
  from {
    stroke-dashoffset: 2000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.animate-draw {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-line 8s ease-in-out forwards;
}

/* Sænk farten på mobil */
/* @media (max-width: 768px) {
  .background-line.animate-draw {
    animation-duration: 25s;
  }
} */

@keyframes customBounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

.custom-bounce {
  animation: customBounce 1s infinite;
}

@keyframes textPulse {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.custom-heading {
  background: linear-gradient(270deg, #bb13e5 0%, #c4b5fd 30%, #8b5cf6 60%, #a884df 75%, #bb13e5 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.custom-subheading {
  background: linear-gradient(270deg, #d8b4fe 0%, #c4b5fd 30%, #a78bfa 60%, #c4b5fd 75%, #d8b4fe 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Slide-in animation */
@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.slide-in {
  animation: slideIn 0.5s ease-out;
}

/* Pulserende effekt */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Roterende animation */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rotate {
  animation: rotate 5s linear infinite;
}

/* Skygge-pulserende effekt */
@keyframes shadowPulse {
  0% { box-shadow: 0 0 0 0px rgba(139, 92, 246, 0.2); }
  100% { box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); }
}

.shadow-pulse {
  animation: shadowPulse 2s infinite;
}

/* Bølge-effekt */
@keyframes wave {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.wave {
  animation: wave 2s ease-in-out infinite;
}

/* Skala-ind effekt */
@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Shake-effekt */
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-2px, 0, 0); }
  40%, 60% { transform: translate3d(2px, 0, 0); }
}

.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes slideOutUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

.slide-out-up {
  animation: slideOutUp 0.5s ease-out forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-15px);
  }
}

.slide-up {
  animation: slideUp 0.5s ease-out forwards;
}

@keyframes fadeOutMap {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fade-out-map {
  animation: fadeOutMap 1s ease-out forwards;
}

@keyframes zoomMapAnimation {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(10.5);
    opacity: 1;
  }
}

.map-zoomed {
  animation: zoomMapAnimation 2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  z-index: 9999;
}

.map-container-zoomed {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.fade-out {
  animation: fadeOut 0.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.error-input {
    transition: all 0.3s ease;
}

.shake-animation {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}
