:root {
  --cartoon-yellow: #ffd93d;
  --cartoon-orange: #ff9800;
  --cartoon-white: #ffffff;
  --cartoon-dark: #1a3a4a;
  --cartoon-stroke: #0d1f2d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", "Roboto", Helvetica, Arial, sans-serif;
  background: url("./assets/backgroundseawfull.png") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  background-color: #2a4d5c;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 20px 3rem;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

@media (max-width: 768px) {
  body {
    background-image: url("./assets/backgroundsea.png");
    background-size: cover;
    background-position: center center;
    padding: 4rem 15px 3rem;
  }
}

.content-container {
  text-align: center;
  max-width: 650px;
  width: 100%;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.content-container.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.error-code {
  font-size: clamp(8rem, 20vw, 11rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--cartoon-yellow);
  -webkit-text-stroke: 5px var(--cartoon-stroke);
  text-stroke: 5px var(--cartoon-stroke);
  text-shadow: 6px 6px 0 var(--cartoon-stroke), 8px 8px 0 var(--cartoon-orange),
    0 0 40px rgba(255, 217, 61, 0.5);
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.error-title {
  color: var(--cartoon-white);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  -webkit-text-stroke: 2px var(--cartoon-stroke);
  text-stroke: 2px var(--cartoon-stroke);
  text-shadow: 3px 3px 0 var(--cartoon-stroke),
    0 0 20px rgba(255, 255, 255, 0.5);
}

.error-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
  color: var(--cartoon-white);
  -webkit-text-stroke: 0.5px var(--cartoon-stroke);
  text-stroke: 0.5px var(--cartoon-stroke);
  text-shadow: 1px 1px 2px rgba(13, 31, 45, 0.5),
    0 0 20px rgba(255, 217, 61, 0.3);
}

.btn-back {
  display: inline-block;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: var(--cartoon-yellow);
  color: var(--cartoon-stroke);
  border: 4px solid var(--cartoon-stroke);
  box-shadow: 0 6px 0 var(--cartoon-stroke), 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn-back:hover {
  transform: translateY(-5px);
  background-color: var(--cartoon-orange);
  box-shadow: 0 8px 0 var(--cartoon-stroke), 0 12px 30px rgba(255, 152, 0, 0.6);
}

.btn-back:active {
  transform: translateY(-2px);
  box-shadow: 0 3px 0 var(--cartoon-stroke), 0 5px 15px rgba(0, 0, 0, 0.3);
}
