/* Basic page styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: "Arial", sans-serif;
  background-color: #8a8a8a;
  color: #fff;
}

.error-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  padding: 20px;
}

.error-content h1 {
  font-size: 8rem;
  margin-bottom: 20px;
  color: #2a623d;
  text-shadow: 2px 2px 5px #000;
}

.error-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #fff;
}

.error-content p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #eee;
}

.back-home {
  display: inline-block;
  padding: 12px 30px;
  background-color: #2a623d;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s ease;
}

.back-home:hover {
  background-color: #1f482c;
  transform: scale(1.05);
}

/* CSS Coffin - natural wood look with vertical planks, color variation, and knots */
.coffin {
  width: 120px;
  height: 200px;
  margin: 20px auto;
  position: relative;

  /* Shake animation every 5 seconds */
  animation: shake 5s infinite;
  transform-origin: center bottom;
}

/* Coffin body - tapered shape with vertical planks and subtle knots */
.coffin .body {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  clip-path: polygon(30% 0%, 70% 0%, 100% 20%, 86% 54%, 70% 100%, 30% 100%, 14% 54%, 0% 20%);

  background-color: #a9745b;

  background-image: repeating-linear-gradient(
      to right,
      rgba(139, 94, 60, 0.3) 0px,
      rgba(139, 94, 60, 0.3) 3px,
      transparent 3px,
      transparent 12px
    ),
    repeating-linear-gradient(
      to right,
      rgba(168, 116, 91, 0.3) 0px,
      rgba(168, 116, 91, 0.3) 6px,
      rgba(139, 94, 60, 0.2) 6px,
      rgba(139, 94, 60, 0.2) 12px
    ),
    radial-gradient(circle at 20% 30%, rgba(80, 50, 30, 0.25) 0px, transparent 8px),
    radial-gradient(circle at 70% 50%, rgba(90, 55, 35, 0.2) 0px, transparent 10px),
    radial-gradient(circle at 40% 70%, rgba(85, 50, 30, 0.2) 0px, transparent 6px),
    linear-gradient(160deg, #a9745b 0%, #8b5e3c 50%, #a9745b 100%);

  background-blend-mode: multiply;
  border: 2px solid #6b4226;
  border-radius: 5px;
  box-shadow: inset -3px -3px 6px rgba(0, 0, 0, 0.3), inset 3px 3px 6px rgba(255, 255, 255, 0.1);
}

/* Coffin lid - top highlight with wood gradient */
.coffin .lid {
  width: 60%;
  height: 18px;
  background: linear-gradient(145deg, #8b5e3c 0%, #6b4226 100%);
  position: absolute;
  top: 10px;
  left: 20%;
  border-radius: 3px;
  box-shadow: inset -1px -1px 3px rgba(0, 0, 0, 0.3);
}

/* Shake animation keyframes */
@keyframes shake {
  0%,
  90%,
  100% {
    transform: rotate(0deg);
  }
  92% {
    transform: rotate(-5deg);
  }
  94% {
    transform: rotate(5deg);
  }
  96% {
    transform: rotate(-5deg);
  }
  98% {
    transform: rotate(3deg);
  }
}
