@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/rubik-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

#error-page-container * {
  font-family: "Rubik", sans-serif;
}

#error-page-container {
  display: flex;
}

body:not(.fix-header) #error-page-container {
  min-height: 100svh;
}

#error-page-container > div {
  flex: 1;
}

#error-page-container #left-section {
  background-image: url("/images/bg-error.jpg");
  background-size: auto 100%;
  background-position: right;
  display: flex;
  align-items: center;
  justify-content: center;
}

#error-page-container #left-section {
  display: none;
}

body:not(.fix-header) #error-page-container #left-section {
  display: flex;
}

#error-page-container #left-section #logo-container {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  padding: 48px 24px;
  display: flex;
  justify-content: center;
}

#error-page-container #left-section #logo-container img {
  width: 50%;
}

#error-page-container #right-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px;
}

#error-page-container #right-section img {
  max-width: 65%;
}

#error-page-container #right-section h1 {
  font-size: 40px;
  line-height: 120%;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.9);
  text-align: center;
  margin: 0;
}

#error-page-container #right-section #description {
  font-size: 20px;
  text-align: center;
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
  max-width: 80%;
}

#back-home-btn {
  display: none;
}

body:not(.fix-header) #back-home-btn {
  display: block;
}

body:not(.fix-header) {
  margin: 0 !important;
}

#back-home-btn {
  background-color: #4862ff;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
}

#back-home-btn:hover {
  background-color: #3950DD;
}

@media (max-width: 768px) {
  #error-page-container {
    flex-direction: column;
  }

  #error-page-container #left-section {
    background-size: 100% auto;
    flex: none;
  }

  #error-page-container #left-section img {
    max-width: 70%;
  }

  #error-page-container #left-section #logo-container {
    padding: 24px;
  }

  #error-page-container #right-section h1 {
    font-size: 32px;
  }

  #error-page-container #right-section #description {
    font-size: 16px;
  }
}
