* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  padding: 0;
  margin: 0;
}

#notfound {
  position: relative;
  height: 100vh;
}

#notfound .notfound {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.notfound {
  max-width: 520px;
  width: 100%;
  line-height: 1.4;
  text-align: center;
}

.notfound .notfound-404 {
  position: relative;
  height: 240px;
}

.notfound .notfound-404 h1 {
  font-family: 'Montserrat', sans-serif;
  position: absolute;
  left: 50%;
  top: 50%;
  color: black;
  /* text fill */
  -webkit-text-stroke: 8px white;
  /* stroke color */
  -webkit-text-fill-color: black;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 252px;
  font-weight: 10;
  margin: 0px;
  color: #262626;
  text-transform: uppercase;
  letter-spacing: -40px;
  margin-left: -20px;
}

.notfound .notfound-404 h1>span {
  text-shadow:
    8px 8px 0 white,
    -8px 8px 0 white,
    8px -8px 0 white,
    -8px -8px 0 white,
    0px 8px 0 white,
    8px 0px 0 white,
    0px -8px 0 white,
    -8px 0px 0 white;
}

.notfound .notfound-404 h3 {
  font-family: 'Cabin', sans-serif;
  position: relative;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: #262626;
  margin: 0px;
  letter-spacing: 3px;
  padding-left: 6px;
}

.notfound h2 {
  font-family: 'Cabin', sans-serif;
  font-size: 20px;
  font-weight: 400;
  text-transform: uppercase;
  color: #000;
  margin-top: 0px;
  margin-bottom: 25px;
}

@media only screen and (max-width: 767px) {
  .notfound .notfound-404 {
    height: 200px;
  }

  .notfound .notfound-404 h1 {
    font-size: 200px;
  }
}

@media only screen and (max-width: 480px) {
  .notfound .notfound-404 {
    height: 162px;
  }

  .notfound .notfound-404 h1 {
    font-size: 162px;
    height: 150px;
    line-height: 162px;
  }

  .notfound h2 {
    font-size: 16px;
  }
}

.error-code {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.digit {
  position: relative;
}

.zero {
  z-index: 1;
  margin: 0 2rem;
}

.four-left,
.four-right {
  z-index: 2;
  /* Higher than zero */
  position: relative;
  margin: 0 -2rem;
  /* Overlap the zero */
}

/* Mobile view: smaller stroke */
@media (max-width: 768px) {
  .notfound .notfound-404 h1>span {
    letter-spacing: -30px;
    text-shadow:
      4px 4px 0 white,
      -4px 4px 0 white,
      4px -4px 0 white,
      -4px -4px 0 white,
      0px 4px 0 white,
      4px 0px 0 white,
      0px -4px 0 white,
      -4px 0px 0 white;
  }

}

/* Optional: Extra small screens */
@media (max-width: 480px) {
  .notfound .notfound-404 h1>span {
    letter-spacing: -30px;
    text-shadow:
      2px 2px 0 white,
      -2px 2px 0 white,
      2px -2px 0 white,
      -2px -2px 0 white,
      0px 2px 0 white,
      2px 0px 0 white,
      0px -2px 0 white,
      -2px 0px 0 white;
  }
}