/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* NOS Teletekst Custom Font - required for correct box-drawing characters */
@font-face {
  font-family: 'veramonofont2web2';
  src: url('/vera-mono.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html, body {
  height: 100%;
  background: #000;
}

body {
  position: relative;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.2em;
  color: #fff;
  width: 25em;
  margin: 1em auto;
}

/* App Layout */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

/* Content Area */
.content-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: auto;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  -webkit-overflow-scrolling: touch;
}

.teletekst-pre {
  margin: 0 auto;
  font-family: "veramonofont2web2", monospace;
  font-size: 1em;
  white-space: pre-wrap;
  line-height: 1.2;
}

/* Link styling - exactly like original NOS */
.teletekst-pre a {
  text-decoration: none;
  color: inherit;
}

/* Status Messages */
.status-message {
  text-align: center;
  padding: 40px 20px;
  font-size: 1.2rem;
}

.hidden {
  display: none !important;
}

/* .vh class - exactly like original NOS (accessible hidden) */
.vh {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Color Classes - EXACTLY like original NOS (no prefixes) */
.red { color: #f00; }
.green { color: #0f0; }
.yellow { color: #ff0; }
.blue { color: #00f; }
.magenta { color: #f0f; }
.cyan { color: #0ff; }
.white { color: #fff; }

/* Background colors - EXACTLY like original NOS */
.bg-red { background: #f00; }
.bg-green { background: #0f0; }
.bg-yellow { background: #ff0; }
.bg-blue { background: #00f; }
.bg-magenta { background: #f0f; }
.bg-cyan { background: #0ff; }
.bg-white { background: #fff; }

/* Mobile adjustments */
@media (max-width: 480px) {
  body {
    font-size: 1em;
    width: 100%;
    margin: 0;
  }
  
  .teletekst-pre {
    font-size: 0.85em;
  }
}

@media (min-width: 768px) {
  body {
    margin: 1em auto;
  }
}
