 body {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f5f5f0;
    color: #111;
    margin: 0;
    padding: 0;
  }
  

  .crt {
    background: repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0px,
      rgba(0,0,0,0) 2px,
      rgba(0,255,0,0.12) 1px,
      rgba(0,255,0,0.12) 1px
    );
    animation: scanlines 8s linear infinite;
  }
  @media screen{
  .crt {
    animation: scanlines infinite 55s linear ;
  }
  } 
  @keyframes scanlines {
    from { background-position: 0 0; }
    to   { background-position: 0 20px; }
  }
  
  body.crt {
  position: relative;
  }
  
  body.crt::after {
    content:"";
    position:fixed;
    inset:0;
    background: radial-gradient(circle at center, transparent 60%, rgba(0,0,0,0.6));
    pointer-events:none;
  }
  
  body.crt::before {
    content:"";
    position:fixed;
    inset:0;
    background: repeating-linear-gradient(
      to bottom,
      rgba(0,255,0,.08) 0px,
      rgba(0,255,0,.08) 1px,
      transparent 2px,
      transparent 3px
    );
    animation: scanlines 6s linear infinite;
    pointer-events:none;
  }
    
     
  #crtToggle{
  position:fixed;
  top:12px;
  right:12px;
  z-index:9999;

  background:red;
  color:white;
  border:red;
  padding:6px 10px;
  cursor:pointer;
  }
  
  #crtToggle:hover{
    background:#0f0;
    color:black;
  }  
  
  
  .container {
    max-width: 1000px;
    margin: auto;
    padding: 2rem;
  }
  
  h1, h2, h3 { 
    font-family: 'Courier New', Courier, monospace;
  }
    
  .header { 
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #444;
    padding-bottom: 1rem; 
  }
    
  .header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #444;
  }
    
  .stamp {
    display: inline-block;
    color: white;
    background-color: red;
    padding: 0.3rem 0.6rem;
    font-weight: bold;
    font-size: 70px;
    font-family: 'Allerta Stencil';
    transform: rotate(-10deg);
    margin-left: auto; 
  }
    
  .field {
    margin-bottom: 0.5rem;
  }
    
  .field label {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-right: 0.5rem;
  }
    
  .tabs {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    cursor: pointer;
  }
    
  .tab {
    padding: 0.5rem 1rem;
    border: 1px solid #444;
    border-bottom: none;
  }
    
  .tab.active {
    background-color: #ddd;
    font-weight: bold;
  }
    
  .tab-content { 
    border: 1px solid #444;
    padding: 1rem;
    display: none;
  }
    
  .tab-content.active {
    display: block;
  }
    
  .card {
    border: 1px solid #444; 
    padding: 1rem; 
    margin-bottom: 1rem; 
    background-color: #fff;
  }

  .redacted {
    background-color: black;
    color: black;
    padding: 0 2px;
    border-radius: 2px;
  }
  .redacted::selection {
    color: white;
    background-color: #555;
  }
    
  button { 
    padding: 0.3rem 0.6rem;
    margin-top: 1rem; 
    cursor: pointer; 
  }
    
  input, select {
    padding: 0.3rem 0.5rem; 
    margin-right: 0.5rem; 
  }
    
  .badge { 
    display: inline-block;
    padding: 0.2rem 0.5rem; 
    border-radius: 4px; 
    font-size: 0.8rem; 
    color: white; 
    margin-right: 0.3rem;
  }
    
  .force-airborne { 
    background-color: teal;
  }
    
  .force-naval { 
    background-color: navy; 
  }
    
  .force-landbased {
    background-color: green;
    color: black;
  }
    
  .timeline {
    border-left: 3px solid #444;
    padding-left: 1rem; 
    margin-top: 1rem; 
  }
    
  .event {
    margin-bottom: 1rem;
    position: relative;
  }
    
  .event::before {
    content: ''; 
    position: absolute;
    left: -9px; 
    top: 0; 
    width: 15px;
    height: 15px;
    background: #444; 
    border-radius: 50%;
  }
  
  
  /* mobile */
  @media (max-width: 900px) {

  .stamp {
    display: none;
  }


  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  .header img {
    width: 60px;
    height: 60px;
  }


  .tabs {
    flex-wrap: wrap;
  }
  .tab {
    flex: 1 1 45%; 
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .tab-content {
    padding: 0.5rem;
  }


  .card {
    width: 100%;
    box-sizing: border-box;
  }


  .card img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }


  #search, #forceFilter {
    width: 100%;
    margin-bottom: 0.5rem;
  }
} 