/* Background and Layout */
body {
  margin: 0;
  padding: 0;
  font-family: 'Krub', sans-serif;
  background-image: url('./background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main Container */
.MuiBox-root {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
}

main.MuiContainer-root {
  width: 100%;
  max-width: none;
  padding: 0;
}

/* Grid Container */
.MuiGrid-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.MuiGrid-item {
  width: 100%;
}

/* Card/Paper Styling */
.MuiPaper-root {
  background: rgba(60, 60, 60, 0.85);
  padding: 40px 60px;
  border-radius: 0;
  box-shadow: none;
  border: none;
  max-width: 650px;
  width: 80%;
  text-align: center !important;
}

/* Heading */
.MuiTypography-h4 {
  color: #ffffff;
  font-size: 36px;
  font-weight: 300;
  margin: 0 0 20px 0;
  line-height: 1.3;
  letter-spacing: 0.5px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

/* Error Path Text */
.error-path {
  color: #ffffff;
  font-size: 18px;
  font-weight: 300;
  margin: 0 0 40px 0;
  opacity: 0.9;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

/* Back Button Link */
a.ai-style-change-1 {
  display: inline-block;
  background: transparent;
  color: #ffffff !important;
  padding: 8px 0;
  text-decoration: underline;
  font-weight: 400;
  font-size: 18px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

a.ai-style-change-1:hover {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .MuiPaper-root {
    padding: 60px 40px;
  }

  .MuiTypography-h4 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .error-path {
    font-size: 18px;
    margin-bottom: 35px;
  }

  a.ai-style-change-1 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .MuiPaper-root {
    padding: 40px 25px;
    width: 95%;
  }

  .MuiTypography-h4 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .error-path {
    font-size: 16px;
    margin-bottom: 30px;
  }

  a.ai-style-change-1 {
    font-size: 14px;
  }
}
