@font-face {
  font-family: 'WebsupportSans';
  src: url("../WebsupportSans-Black.woff2") format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-secondary: #DD5656;
  --color-primary: #2FD17D;
  --color-white: #FFFFFF;
}

body {
  font-family: 'WebsupportSans', 'Arial', sans-serif;
  background: linear-gradient(135deg, #1E262D 0%, #2B3742 100%);
  color: var(--color-white);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 40px;
  overflow: hidden;
}

a {
  color: var(--color-primary);
}

.container {
  display: flex;
  align-items: center;
  max-width: 80%;
}

.character-section {
  flex: 0 0 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 50px;
}

.cary {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.4));
}

.text-section {
  flex: 0 0 50%;
  text-align: left;
}

.error-code {
  font-size: 8rem;
  margin: 0;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 0.8;
  letter-spacing: -5px;
}

.error-title {
  font-size: 3rem;
  font-weight: 900;
  margin-top: 10px;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
}

.error-message {
  font-family: 'Arial', sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 40px;
  font-weight: 400;
  color: #E0E0E0;
}

.home-button {
  display: inline-block;
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: .75rem 1.5rem;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 900;
  font-size: 1.2rem;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.home-button:hover {
  background-color: #e05c5c;
  transform: translateY(-4px);
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }

  .character-section {
    padding-right: 0;
    padding-bottom: 30px;
    order: -1;
  }

  .text-section {
    flex: 0 0 100%;
    text-align: center;
  }

  .error-code {
    font-size: 6rem;
  }

  .error-title {
    font-size: 2rem;
  }
}