/* Error page styling */
body.error-page-body {
  height: 100vh;
  background-image: radial-gradient(closest-side, #2EA3F2, #2874B8);
  text-align: center;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.error-logo {
  margin: 40px auto;
  display: block;
}

.error-container h1 {
  font-size: 24px;
  line-height: 40px;
  margin: 0 auto 16px;
  padding: 0 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 0.5px;
  font-weight: 600;
  max-width: 600px;
}

.error-container p {
  color: #D6DCE0;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 24px;
  text-shadow: 0 2px 3px rgba(0,0,0,0.1);
  letter-spacing: 0.5px;
  padding: 0 20px;
}

.error-container p a {
  color: inherit;
}

.error-container p a:hover {
  color: #fff;
}

.error-button {
  color: #2EA3F2;
  background: #fff;
  border-radius: 3px;
  display: inline-block;
  padding: 12px 48px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.2s ease-out;
}

.error-button:hover {
  margin-top: -2px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

.browser {
  width: 400px;
  min-width: 200px;
  min-height: 264px;
  background: #FFFFFF;
  box-shadow: 0 40px 80px 0 rgba(0,0,0,0.25);
  border-radius: 3px;
  animation: bobble 1.8s ease-in-out infinite;
  position: relative;
  left: 50%;
  margin-left: -200px;
}

.browser .controls {
  width: 100%;
  height: 32px;
  background: #E8ECEF;
  border-radius: 3px 3px 0 0;
  box-sizing: border-box;
  padding: 10px 12px;
}

.browser .controls i {
  height: 12px;
  width: 12px;
  border-radius: 100%;
  display: block;
  float: left;
  background: #D6DCE0;
  margin-right: 8px;
}

.eye {
  position: absolute;
  left: 34%;
  top: 80px;
  width: 32px;
  height: 32px;
  opacity: 1;
}

.eye + .eye {
  right: 34%;
  left: auto;
}

.eye:before, .eye:after {
  position: absolute;
  left: 15px;
  content: ' ';
  height: 40px;
  width: 3px;
  border-radius: 2px;
  background-color: #FF5E5B;
}

.eye:before {
  transform: rotate(45deg);
}

.eye:after {
  transform: rotate(-45deg);
}

.mouth {
  position: absolute;
  width: 250px;
  top: 178px;
  left: 50%;
  margin-left: -125px;
  height: 40px;
}

.mouth .lips {
  position: absolute;
  left: 15px;
  content: ' ';
  height: 40px;
  width: 3px;
  border-radius: 2px;
  background-color: #FF5E5B;
  transform: rotate(-54deg);
}

.mouth .lips:nth-child(odd) {
  transform: rotate(54deg);
}

/* Lips positioning */
.mouth .lips:nth-child(n+2) { margin-left: 31px; }
.mouth .lips:nth-child(n+3) { margin-left: 62px; }
.mouth .lips:nth-child(n+4) { margin-left: 93px; }
.mouth .lips:nth-child(n+5) { margin-left: 124px; }
.mouth .lips:nth-child(n+6) { margin-left: 155px; }
.mouth .lips:nth-child(n+7) { margin-left: 186px; }
.mouth .lips:nth-child(n+8) { margin-left: 217px; }
.mouth .lips:nth-child(n+9) { margin-left: 248px; }

@keyframes bobble {
  0%, 100% { 
    margin-top: 40px; 
    margin-bottom: 48px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.24);
  }
  50% { 
    margin-top: 54px; 
    margin-bottom: 34px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.40); 
  }
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
  .browser {
    width: 280px;
    margin-left: -140px;
  }
  
  .browser .eye {
    left: 30%;
  }
  
  .browser .eye + .eye {
    left: auto;
    right: 30%;
  }
}

/* Technical details styling */
.technical-details {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 30px;
  margin: 40px auto;
  width: 75%;
  text-align: left;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  min-height: 400px;
  max-height: calc(100vh - 600px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.technical-details h2 {
  color: #fff;
  margin-top: 0;
  font-size: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.technical-details h3 {
  color: #fff;
  margin-top: 20px;
  font-size: 18px;
  margin-bottom: 15px;
}

.technical-details .error-id {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 20px;
}

.technical-details code {
  display: block;
  background: #ffffff;
  border-radius: 4px;
  padding: 15px;
  flex: 1;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  color: #333333;
  font-family: monospace;
  margin: 10px 0;
  white-space: normal;
  font-size: 13px;
  line-height: 1.2;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.technical-details .error-type {
  color: #FF5E5B;
  font-weight: bold;
  font-size: 16px;
  padding: 10px;
  background: rgba(255, 94, 91, 0.1);
  border-radius: 4px;
  margin-bottom: 20px;
}

.technical-details .timestamp {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.technical-details .first-line {
  color: #e30000;
  font-weight: bold;
  margin-bottom: 0;
}

.technical-details code div {
  margin: 0 0 5px 0;
  padding: 0;
  white-space: normal;
  word-break: break-all;
}
