
.page_404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #fff;
  font-family: "Poppins", sans-serif;
  padding: 40px 0;
  margin: 0;
  overflow-y: auto; 
}

.error-content {
  padding: 40px 20px;
  width: 100%;
}

.four_zero_four_bg {
  background-image: url(https://cdn.dribbble.com/users/285475/screenshots/2083086/dribbble_1.gif);
  height: 400px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  margin-bottom: 20px;
}

.four_zero_four_bg h1 {
  font-size: 80px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.four_zero_four_bg h3 {
  font-size: 80px;
}

.link_404 {
  color: #fff !important;
  padding: 10px 25px;
  background: linear-gradient(90deg, #FFD700, #FFA500); 
  border-radius: 30px;
  margin: 20px 0;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.link_404:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

.contant_box_404 {
  margin-top: -30px;
}

.main {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

.row.justify-content-center.align-items-center {
  min-height: 100vh;
  height: auto; 
}

@media (max-width: 768px) {
  .four_zero_four_bg {
    height: 300px;
  }
  
  .four_zero_four_bg h1 {
    font-size: 60px;
  }
  
  .contant_box_404 h3 {
    font-size: 24px;
  }
}

@media (max-height: 700px) {
  .four_zero_four_bg {
    height: 250px;
  }
}