body {
  margin: 0;
  background: #232e56; /* flat background */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* MAIN RESPONSIVE 16:9 BOX */
.box {
  width: min(80vw, 700px);
  aspect-ratio: 16 / 9;
  background-color: #f2f2f2;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
  border-radius: 0.6rem;
  padding: clamp(0.5rem, 2vw, 2rem);
  box-sizing: border-box;

  border: 4px solid #9bc31a;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(0.3rem, 1vw, 1rem);

  position: relative;
  overflow: hidden;
}

/* LOGO */
.ec-logo {
  width: clamp(120px, 50%, 300px);
  height: auto;
  margin-bottom: 0.4rem;
}

/* ICON + HEADING ROW */
.error-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.error-heading i {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: #00b4e6;
}

h1 {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  color: rgb(8, 45, 99);
}

/* PARAGRAPHS */
.box p {
  color: rgb(7, 7, 90);
  font-size: clamp(0.7rem, 2vw, 1.1rem);
  margin: 0;
}

/* TIMESTAMP */
.ts {
  color: rgb(53, 44, 44);
  font-size: clamp(0.6rem, 1.8vw, 1rem);
  font-family: monospace;
}

/* BUTTON */
.ec-error-button {
  background-color: rgb(35, 46, 86);
  font-weight: 500;
  text-decoration: none;
  width: 80%;
  padding: clamp(6px, 1vw, 12px);
  border: 3px solid white;
  border-radius: 6px;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  cursor: pointer;
  color: #fff;

  display: block;
  margin: 0 auto;
}

.ec-error-button:hover {
  border: 3px solid #00b4e6;
}

.ec-error-button:focus-visible {
  outline: 3px solid #00b4e6;
  outline-offset: 3px;
}

/* Very short screens: relax the 16:9 constraint a bit */
@media screen and (max-height: 500px) {
  .box {
    aspect-ratio: auto;
    max-height: calc(100vh - 2rem);
  }
}

@media screen and (max-width: 620px) {
  .box {
    width: 90vw;
  }
}
