/* Base Styles */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212; /* Dark background */
  color: #e0e0e0; /* Light text */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

.container {
  text-align: center;
  padding: 40px;
  box-sizing: border-box;
  border-radius: 10px;
  background-color: #1e1e1e; /* Slightly lighter dark background */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.error-code {
  font-size: 8em;
  font-weight: bold;
  color: #f44336; /* More alarming accent color */
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  animation: pulse-error 1.5s infinite alternate; /* Add pulse to the error code */
}

@keyframes pulse-error {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.error-message {
  font-size: 2em;
  margin-bottom: 20px;
  color: #f0f0f0;
  font-weight: bold;
  animation: fade-in 1s ease-out forwards 0.5s; /* Fade in the error message */
  opacity: 0;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.suggestion {
  font-size: 1.1em;
  color: #ccc;
  margin-bottom: 30px;
  animation: slide-up 1s ease-out forwards 1s; /* Slide up the suggestion */
  transform: translateY(20px);
  opacity: 0;
}

/* Search Bar */
.search-container {
  display: flex;
  margin-bottom: 30px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  animation: slide-left 0.8s ease-out forwards 1.5s; /* Slide in the search bar */
  transform: translateX(-50px);
  opacity: 0;
}

@keyframes slide-left {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#search-input {
  flex-grow: 1;
  padding: 12px;
  border: none;
  border-radius: 5px 0 0 5px;
  background-color: #2c2c2c;
  color: #e0e0e0;
  font-size: 1em;
  outline: none;
}

#search-button {
  padding: 12px 20px;
  border: none;
  border-radius: 0 5px 5px 0;
  background-color: #5c6bc0;
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#search-button:hover {
  background-color: #3949ab;
}

/* Helpful Links */
.helpful-links {
  font-size: 1em;
  color: #ccc;
  margin-bottom: 10px;
  animation: fade-in 0.8s ease-out forwards 2s; /* Fade in helpful links */
  opacity: 0;
}

.links-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  animation: slide-right 0.8s ease-out forwards 2.3s; /* Slide in the links */
  transform: translateX(50px);
  opacity: 0;
}

@keyframes slide-right {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.links-list li {
  margin: 8px 0;
}

.links-list a {
  color: #80cbc4; /* Teal accent color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.links-list a:hover {
  color: #26a69a;
}

/* Loading Animation (Subtle Spin) */
.animation-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.circles {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin: 0 10px;
  opacity: 0.7;
  animation: subtle-spin 2s infinite linear,
    pulse-opacity 1.5s infinite alternate; /* Combined spin and pulse */
}

.circle-1 {
  background-color: #f44336;
}

.circle-2 {
  animation-delay: 0.3s;
  background-color: #ff9800;
}

.circle-3 {
  animation-delay: 0.6s;
  background-color: #4caf50;
}

@keyframes subtle-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-opacity {
  0% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .error-code {
    font-size: 6em;
  }
  .error-message {
    font-size: 1.8em;
  }
  .suggestion {
    font-size: 1em;
  }
  .search-container {
    max-width: 90%;
  }
  .links-list a {
    font-size: 0.9em;
  }
}
