@font-face {
  font-family: "Inter";
  src: url("assets/inter-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --card: rgb(11, 9, 18);
  --text: #f8fafc;
  --auth-chrome-inset: 0.85rem;
  --switch-control-height: 2.05rem;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-width: 100vw;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  background-image: url("assets/error-bg.jpg");
  background-position: 75% 100%;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chrome-controls {
  position: absolute;
  top: max(var(--auth-chrome-inset), env(safe-area-inset-top, 0px));
  right: max(var(--auth-chrome-inset), env(safe-area-inset-right, 0px));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.locale-switch {
  margin: 0;
}

.switch-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: var(--switch-control-height);
  margin: 0;
  padding: 0.35rem 1.7rem 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--card) 70%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%23e2e8f0' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 0.7rem;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.locale-switch .switch-select {
  min-height: 2.35rem;
  padding: 0.25rem 1.55rem 0.25rem 0.55rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.switch-select:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background-color: color-mix(in srgb, var(--card) 85%, transparent);
}

.switch-select:focus {
  outline: none;
  border-color: rgba(220, 53, 69, 0.55);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.22);
}

.switch-select option {
  background: rgb(11, 9, 18);
  color: #f8fafc;
}

/* Content width roughly matches Bootstrap col-md-8 inside .container */
main {
  width: min(100%, 40rem);
  padding: 3rem 1.5rem;
}

.brand {
  display: block;
  width: 50%;
  height: auto;
  margin: 0 auto 1rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: calc(1.3rem + 0.6vw);
  font-weight: 500;
  line-height: 1.2;
}

@media (min-width: 1200px) {
  h1 {
    font-size: 1.75rem;
  }
}

.description {
  margin: 0 0 3rem;
}

.actions {
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.btn-primary {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-primary:hover {
  color: #fff;
  background-color: #bb2d3b;
  border-color: #b02a37;
}

.btn-primary:active {
  color: #fff;
  background-color: #b02a37;
  border-color: #a52834;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn-primary:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(225, 83, 97, 0.5);
}

.destination {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.destination a {
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .switch-select {
    transition: none;
  }
}
