/* Apply box-sizing globally */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body Styling */
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* Disable scrolling */
  text-align: center;
  background: linear-gradient(to right, #fff66d, #cfa7f7); /* Lighter Yellow to Light Purple Gradient */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align content to the top */
  align-items: center; /* Center horizontally */
  padding-top: 5px; /* Padding for content from top */
  -ms-touch-action: none; /* Disable touch interactions for scrolling on IE/Edge */
  touch-action: none; /* Disable touch actions (scrolling, zooming) on modern browsers */
}

/* 404 Page Wrapper */
#notfound {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Centered Content */
.notfound {
  max-width: 900px;
  width: 100%;
  padding: 3px;
}

/* Large 404 Text */
.notfound-404 h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 220px;
  font-weight: 900;
  color: #232323;
  margin-bottom: 10px;
}

/* Logo Inside 404 (Make logo as big as possible) */
.notfound-404 h1 > span {
  display: inline-block;
  width: 500px; /* Increase width for larger logo */
  height: 200px; /* Increase height for larger logo */
  background-image: url('../images/website/mylogo_resize.png');
  background-size: contain; /* Ensure logo is responsive */
  background-repeat: no-repeat;
  background-position: center;
}

/* Subtitle */
.notfound h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 900;
  text-transform: uppercase;
  color: #232323;
  margin-bottom: 10px;
}

/* Description */
.notfound p {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  color: #787878;
  font-weight: bold;
  margin-bottom: 30px;
}

/* Button Styling */
.notfound a {
  font-family: 'Montserrat', sans-serif;
  display: inline-block;
  padding: 20px 50px;
  font-size: 24px;
  font-weight: 900;
  background-color: yellow;
  color: #000;
  border-radius: 60px;
  text-decoration: none;
  transition: 0.3s all;
}

.notfound a:hover {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1440px) {
  .notfound-404 h1 {
    font-size: 180px;
  }
  .notfound-404 h1 > span {
    width: 450px;
    height: 180px;
  }
  .notfound h2 {
    font-size: 34px;
  }
  .notfound p {
    font-size: 24px;
  }
}

@media (max-width: 1024px) {
  .notfound {
    max-width: 700px;
  }
  .notfound-404 h1 {
    font-size: 160px;
  }
  .notfound-404 h1 > span {
    width: 420px;
    height: 170px;
  }
  .notfound h2 {
    font-size: 30px;
  }
  .notfound p {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .notfound {
    max-width: 500px;
  }
  .notfound-404 h1 {
    font-size: 140px;
  }
  .notfound-404 h1 > span {
    width: 350px;
    height: 140px;
  }
  .notfound h2 {
    font-size: 26px;
  }
  .notfound p {
    font-size: 18px;
  }
  .notfound a {
    padding: 16px 40px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .notfound {
    max-width: 350px;
  }
  .notfound-404 h1 {
    font-size: 120px;
  }
  .notfound-404 h1 > span {
    width: 300px;
    height: 120px;
  }
  .notfound h2 {
    font-size: 22px;
  }
  .notfound p {
    font-size: 16px;
  }
  .notfound a {
    padding: 14px 35px;
    font-size: 18px;
  }
}

