/* Make html and body take full height */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Body as flex column container to push footer down */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main takes available space */
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Content wrapper fills main and centers content */
.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  align-items: center; /* horizontal centering */
  padding: 20px;
  text-align: center;
}

/* Style for error titles */
.error-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Style for error messages */
.error-message {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  max-width: 600px;
}

/* Stack trace box */
.error-stack {
  margin-top: 1.5rem;
  background-color: #f8f9fa;
  color: #212529;
  padding: 1rem;
  border-radius: 8px;
  max-width: 800px;
  overflow-x: auto;
  text-align: left;
  font-family: monospace;
  white-space: pre-wrap;
}

/* Return home button */
.btn-return-home {
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
}

/* Text colors based on error type */
.text-danger {
  color: #dc3545 !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-muted {
  color: #6c757d !important;
}

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

.content-wrapper > * {
  animation: fadeIn 0.8s ease forwards;
}
