.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  width: 100%;
  height: 100%;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  scrollbar-color: var(--scroll-thumb-color) transparent;
}

.error-page::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.error-page::-webkit-scrollbar:horizontal {
  height: 4px;
}

.error-page::-webkit-scrollbar-track {
  background-color: transparent;
}

.error-page::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: 2px;
}

@media (max-width: 1640px) {
  .error-page {
    padding: 2.5rem;
  }
}

@media screen and (max-width: 743px) {
  .error-page {
    padding: 1.5rem 1rem 1.5rem 1.5rem;
  }
}

.error-container {
  padding: 4.125rem 5.25rem 5rem;
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 76.5rem;
  height: auto;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1366px) and (max-width: 1640px) {
  .error-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media screen and (max-width: 1199px) {
  .error-container {
    padding-left: 2.125rem;
    padding-right: 2.125rem;
  }
}

@media screen and (max-width: 743px) {
  .error-container {
    padding: 1rem;
  }
}

.e404 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.e404__image {
  margin-bottom: 56px;
  max-width: 80%;
}

@media screen and (max-width: 1199px) {
  .e404__image {
    margin-bottom: 2.5rem;
  }
}

.e404__title {
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 36px;
  line-height: 44px;
}

@media screen and (max-width: 1199px) {
  .e404__title {
    font-size: 32px;
    line-height: 40px;
  }
}

@media screen and (max-width: 743px) {
  .e404__title {
    font-size: 24px;
    line-height: 32px;
  }
}

.e404__message {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 1.5rem;
  text-align: center;
}

@media screen and (max-width: 1199px) {
  .e404__message {
    font-size: 20px;
    line-height: 28px;
  }
}

@media screen and (max-width: 743px) {
  .e404__message {
    font-size: 16px;
    line-height: 22px;
  }
}

.e404__btn {
  align-items: center;
  border: 0.0625rem solid transparent;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  justify-content: center;
  padding: 0 1.6875rem;
  text-decoration: none;
  transition: background-color 0.2s;
  font-size: 16px;
  background-color: #ed131c;
  color: #fff;
  font-weight: 500;
  min-height: 2.5rem;
}

.e404__btn.--accent{
  color: #fff;
  background-color: #1c1c1c;
  &:hover:not(:disabled) {
    background-color: #3a3a3a;
  }
  &:active:not(:disabled) {
    background-color: #1c1c1c;
  }
}

.e404__btn:hover {
  color: #fff;
}

/* new error page design */

.page-error {
  padding-right: 20px;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  scrollbar-color: var(--scroll-thumb-color) transparent;
}
.page-error::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.page-error::-webkit-scrollbar:horizontal {
  height: 4px;
}

.page-error::-webkit-scrollbar-track {
  background-color: transparent;
}

.page-error::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: 2px;
}
.page-error-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: auto;
  height: 100%;
  max-width: 296px;
}

@media (min-width: 1920px) {
  .page-error-content{
    max-width: 432px;
  }
}

@media (min-width: 3840px) {
  .page-error-content{
    max-width: 810px;
  }
}
.not-found-code {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-bottom: 20px;
}

.not-found-code img {
  width: 87px;
  height: 126px;
}

@media (min-width: 1920px) {
  .not-found-code img{
    width: 118px;
    height: 170px;
  }
}

@media (min-width: 3840px) {
  .not-found-code img{
    width: 205px;
    height: 297px;
  }
}

.not-found-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0%;
  color: #1c1c1c;
  margin-bottom: 4px;
}


@media (min-width: 1920px) {
  .not-found-title{
    font-size: 36px;
    line-height: 44px;
    margin-bottom: 8px;
  }
}

@media (min-width: 3840px) {
  .not-found-title{
    font-size: 64px;
    line-height: 54px;
    margin-bottom: 24px;
  }
}

.not-found-description {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #1c1c1c;
  margin-bottom: 20px;
}

@media (min-width: 1920px) {
  .not-found-description{
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 24px;
  }
}

@media (min-width: 3840px) {
  .not-found-description{
    font-size: 40px;
    line-height: 54px;
    margin-bottom: 48px;
  }
}

.page-error-images{
  display: flex;
  flex-direction: row;
  gap: 12px;
  overflow: hidden;
  height: calc(100vh - 56px);
  contain: layout style paint;
  transform: translateZ(0);
}

.page-error-images-column{
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: infiniteScroll 55s linear infinite;
  height: fit-content;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  contain: layout style paint;
  isolation: isolate;
}

.page-error-images-column.--reverse{
  animation: infiniteScrollReverse 64s linear infinite;
}

.page-error-images-column img {
  width: 270px;
}

@media (min-width: 1640px) {
  .page-error-images-column img{
    width: 340px;
  }
}

@media (min-width: 1920px) {
  .page-error-images-column img{
    width: 420px;
  }
}

@media (min-width: 2560px) {
  .page-error-images-column img{
    width: 600px;
  }
}

@media (min-width: 3840px) {
  .page-error-images-column img{
    width: 800px;
  }
}

@media (min-width: 2560px) {
  .page-error-images-column{
    gap: 20px;
  }
}

@media (min-width: 3840px) {
  .page-error-images-column{
    gap: 24px;
  }
}

@keyframes infiniteScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}
@keyframes infiniteScrollReverse {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}
