:root {
  --brand: rgb(245, 93, 5);
  --brand-hover: rgb(255, 143, 87);
  --brand-active: rgb(229, 77, 7);
  --bg-system-primary: rgb(0, 0, 0);
  --bg-overlay: rgba(0, 0, 0, 0.6);
  --bg-input: rgba(255, 255, 255, 0.05);
  --content-primary: rgb(235, 235, 235);
  --content-secondary: rgba(214, 214, 214, 1);
  --content-onbrand: rgb(27, 27, 27);
  --border-overlay: rgba(255, 255, 255, 0.3);
  --border-input: rgba(255, 255, 255, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg-system-primary);
  color: var(--content-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.main-container {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 48px 20px;
  overflow-y: auto;
  background: var(--bg-system-primary) url('./images/background.webp') no-repeat center center;
  background-size: cover;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  user-select: none;
  cursor: default;
  gap: 24px;
}

.brand-logo {
  width: 60vw;
  max-width: 198px;
  margin-bottom: 16px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  min-height: 140px;
  margin-bottom: 16px;
}

.hero-gradient {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(
          to top right,
          var(--brand) 0%,
          var(--bg-overlay) 50%,
          transparent 100%
  );
  pointer-events: none;
  z-index: 0;
  transition: transform 300ms ease-out;
}

.hero:hover .hero-gradient {
  transform: translate(-50%, -50%) scale(1.05);
}

.hero-icon {
  position: relative;
  z-index: 30;
  width: 180px;
  height: 180px;
  object-fit: contain;
  mix-blend-mode: luminosity;
  transition: transform 300ms ease-out;
}

.hero:hover .hero-icon {
  transform: scale(1.03);
}

.hero-border {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 16px;
  border: 2px solid var(--border-overlay);
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 20;
  transition: transform 300ms ease-out;
}

.hero:hover .hero-border {
  transform: translate(-50%, -50%) scale(1.05);
}

.text-container {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header,
.error-status {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--content-primary);
}

.description,
.cf-error-details {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--content-secondary);
}

.btn {
  display: inline-block;
  padding: 16px 44px;
  background-color: var(--brand);
  color: var(--content-onbrand);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: var(--brand-hover);
}

.btn:active {
  background-color: var(--brand-active);
}

.email {
  color: var(--content-primary);
}

.actions-container {
  margin-top: 24px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-error-container,
.after-submit-error-report-container {
  display: none;
  flex-direction: column;
  gap: 16px;
  max-width: 380px;
  width: 100%;
}

.report-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.report-error-header {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--content-primary);
}

.report-error-question {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--content-secondary);
}

.report-error-textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-input);
  background-color: var(--bg-input);
  color: var(--content-primary);
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

/* CF style overrides */

.cf-error-details {
  max-width: 380px;
  user-select: text;
  -webkit-user-select: text;
}

.cf-error-details a {
  color: var(--content-primary);
  font-weight: 500;
  text-decoration: none;
}

.cf-error-details a:hover {
  text-decoration: underline;
}

.cf-error-details ul {
  padding-top: 12px;
  list-style-type: none;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: center;
}

.cferror_details {
  word-break: break-all;
}

@media (min-width: 1024px) {
  .header,
  .error-status {
    font-size: 24px;
  }
}
