body {
  display: flex;
  background-color: #2b3137;
  justify-content: center;
  align-items: center;
  line-height: 1.5;
  overflow: hidden;
  font-family: 'PoppinsRegular';
  background: #D7E7FF;
  min-height: 100vh;
  
}

img {
  max-width: 100%;
  height: auto;
}

a,
a:hover {
  text-decoration: none;
  color: #e8734d;
  font-size: 20px;
}

.main-section {
  background: white;
  box-sizing: border-box;
  padding: 50px;
  height: 650px;
  max-width: 1236px;
  box-shadow: 0px 0px 15px rgba(65, 91, 145, 0.15);
  width: 90%;
    position: relative;
    max-height: 85vh;
  
}
.main-section .row{
  position: absolute;
  bottom: 10%;
  margin-right: 15px;
}

.orange-title {
  font-size: 40px;
  color: #E8734D;
  font-family: 'PoppinsSemiBold';
  margin: 30px 0px 100px;
  line-height: 1.2;
}

.sub-title {
  font-size: 25px;
  font-family: 'PoppinsMedium';
  margin-bottom: 100px;
}

.small-txt {
  margin-top: 30px;
  font-size: 20px;

}

.small-txt a {
  font-family: 'PoppinsMedium';
}
.image404{    align-self: flex-end;}
.main-section:before {
    position: absolute;
    height: 100%;
    width: 100%;
    content: "404";
    font-family: impact;
    font-size: 25rem;
    text-align: center;
    color: #f5f5f5;
    z-index: 0;
    opacity: 0.7;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

@media (max-width:1024px) {
  .main-section{height: 550px;}
  .orange-title {
    font-size: 30px;
    margin-bottom: 40px;
  }

  .sub-title {
    font-size: 23px;
    margin-bottom: 40px;
  }

  .small-txt {
    font-size: 18px;
  }
}



@media (max-width:768px) {
  .main-section { height: auto; overflow: auto;}
  .main-section:before {font-size: 20rem; height: auto;}
  .main-section .row {flex-direction: column; text-align: center; position: initial;}
  .main-section .row .col-md-6{
    max-width: 100%;
    order: 2;
    flex: 0 0 100%;
}
.main-section .row .col-md-6.image404{order: 1;}
.image404 img{max-width: 50%; margin-top: 20px;}
.orange-title, .sub-title{margin-bottom: 20px;}

}
@media (max-width:767px) {
  .main-section:before {font-size: 15rem;}
   .orange-title {
    font-size: 26px;
  }

.main-section{padding: 30px; max-height: 95vh;}
  .sub-title {
    font-size: 18px;
  }

  .small-txt {
    font-size: 16px;
  }

}
@media (max-height:640px) {
  
  body{max-height: none; overflow: scroll;}
  .main-section .row {
    position: relative; 
    }
    .main-section{height: auto; max-height: none; margin: 30px auto;}
}