/* You can either copy the below and paste it between style tags on your HTML page, OR you can copy this to a file and name it .css and link it from your HTML page. */

@font-face {
    font-family: 'Terminus';
    src: url('../fonts/TerminusTTF-Bold-4.49.3.ttf');
}

@font-face {
    font-family: 'VCR';
    src: url('../fonts/VCR_OSD_MONO_1.001.ttf');
}

:root {
    --header-bg:#000000;
    --nav-bg:#000000;
    --article-bg:#000000ce;
    --border-color:#F1F1F1;
    --sidebar-text-color:#e9e8e8;
    --article-text-color:#d8d8d8;
    --article-heading-color:#F1F1F1;
    --nav-link-color:#F1F1F1;
    --darker-border-color:#290f0f;
    --code-bg-color:#700d0d;
    --code-border-color:#845194;
  }
  html, body {
    position: relative;
    padding:0;
    margin:0;
    height: 100% 
  }

  @keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
  }
  .cloud-background {
    image-rendering: pixelated;
    }
  img.cloud1 {
    position: fixed;
    image-rendering: pixelated;
    top: 50%;
    left: 50%;
    width: 2048px;
    height: 2048px;
    margin-top: -1024px; 
    margin-left: -1024px;
    z-index: -1;
    animation: spin 700s infinite linear;
    
  }
  img.cloud2 {
    position: fixed;
    image-rendering: pixelated;
    top: 50%;
    left: 50%;
    width: 2048px;
    height: 2048px;
    margin-top: -1024px; 
    margin-left: -1024px;
    z-index: -2;
    animation: spin 1100s infinite linear;

  }
  img.cloud3 {
    position: fixed;
    image-rendering: pixelated;
    top: 50%;
    left: 50%;
    width: 2048px;
    height: 2048px;
    margin-top: -1024px; 
    margin-left: -1024px;
    z-index: -3;
    animation: spin 1300s infinite linear;
  }
  img.cloud4 {
    position: fixed;
    image-rendering: pixelated;
    top: 50%;
    left: 50%;
    width: 2048px;
    height: 2048px;
    margin-top: -1024px; 
    margin-left: -1024px;
    z-index: -4;
    animation: spin 1400s infinite linear;
  }
  img.cloud5 {
    position: fixed;
    image-rendering: pixelated;
    top: 50%;
    left: 50%;
    width: 2048px;
    height: 2048px;
    margin-top: -1024px; 
    margin-left: -1024px;
    z-index: -5;
    animation: spin 1500s infinite linear;
  }
  img.cloud6 {
    position: fixed;
    image-rendering: pixelated;
    top: 50%;
    left: 50%;
    width: 2048px;
    height: 2048px;
    margin-top: -1024px; 
    margin-left: -1024px;
    z-index: -6;
    animation: spin 1600s infinite linear;
  }
  img.cloud7 {
    position: fixed;
    image-rendering: pixelated;
    top: 50%;
    left: 50%;
    width: 2048px;
    height: 2048px;
    margin-top: -1024px; 
    margin-left: -1024px;
    z-index: -7;
    animation: spin 1700s infinite linear;
  }

  img.column1{
    position: fixed; 
    transform: scaleX(0.7); 
    float: left; 
    left: -100;
    z-index: -1;
    image-rendering: pixelated;
    -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
    filter: grayscale(100%);
    max-height: 100lvh;
  }

  img.column2{
    position: fixed; 
    transform: scaleX(-0.7); 
    right: -100;
    z-index: -1;
    image-rendering: pixelated;
    -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
    filter: grayscale(100%);
    max-height: 100lvh;
  }
  
  img.cameras{
    position: fixed; 
    transform: scaleX(-0.5) scaleY(0.8);
    right: -10%;
    bottom: -150;
    z-index: -1;
    image-rendering: pixelated;
    filter: grayscale(100%);
    max-height: 100lvh;
  }

  img.dishes{
    position: fixed; 
    transform: scaleX(.5) scaleY(.5);
    top: -200;
    left: -150;
    z-index: -1;
    image-rendering: pixelated;
    -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
    filter: grayscale(100%);
    max-height: 100lvh;
  }

  img.background{
   display: none
  }

  img.article-thumbnail{

    max-height: 300;
    float: left;

  }

  body {
    font-size:12px;
    background-color: #000000;
    height: 100%
  }
  body a {
    color:var(--nav-link-color);
    text-decoration: none;
  }
  
  header, nav {
    max-width:100%;
  }
  aside {
    width:20%;
    position: absolute;
  }
  .flex {
    display:flex;
    width: 100%;            /* Take full viewport width */
    justify-content: center; /* Center content horizontally */
    margin: 0;              /* Remove any margins */
  }
  nav {
    display: flex;
    justify-content: center;  /* Center the nav element itself */
    width: 100%;
    margin-bottom: 50px;
    font-family: 'Terminus', monospace;
    -webkit-text-stroke: 1px black;
}

.nav {
    display: flex;
    justify-content: center;  /* Center the items */
    gap: 2rem;               /* Even spacing between items */
    padding: 0;
    margin: 0;
    width: auto;            /* Let content determine width */
    list-style: none;
}

.nav li {
    display: inline-block;
    font-size: clamp(10pt, 30pt, 5vw);
    font-weight: bold;
    font-family: "vcr";
    white-space: nowrap;
    text-align: center;
    text-shadow: 1px 1px 2px #000000;
    /* Remove border properties that might affect spacing */
    border: none;
    padding: 0 1rem;      /* Add horizontal padding instead */
}
  header {
    display: flex;
    justify-content: space-evenly;
    font-family: 'VCR', monospace;
    color: #F1F1F1;
    margin-top: 0;
    font-size: clamp(10pt, 65pt, 7vw);
    -webkit-text-stroke: 2px black;
    text-align: center;
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px #000000;
  }
  main {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px; /* Add max-width for large screens */
  }
  section {
    margin-bottom: 10px;
    color: var(--sidebar-text-color);
    width: 100%;
    display: flex;
    flex-direction: column;  /* Stack children vertically */
    align-items: center;     /* Center children horizontally */
}

  hr {
    display: none;
  }

  article { 
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    background-color: var(--article-bg);
    background-position-y: 100%;
    background-position-x: 30%;
    background-size: 110%;
    color: var(--article-text-color);
    padding: 40px;
    font-family: 'courier';
    font-size: large;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.664), 0 6px 20px 0 rgba(0, 0, 0, 0.705);
    image-rendering: pixelated;
    font-weight: bold;
    width: 95%; /* Increased from 80% to give more room */
    max-width: 1400px; /* Increased from 1000px for larger screens */
}

  article img {
    /* -webkit-filter: grayscale(70%); */
  }

  div.article-content {
    text-align: left;
    display: flex;
  }
  p.article-text {

    padding-left: 5%;
    text-align: left;
    width: 100%;
    min-height: 800px; /* Add minimum height for PDF viewer */
  }
  .subtitle {
    background-image: url(../images/static.jpg);
    background-position-y: 5%;
    padding: 5px;
    font-family: 'Terminus', monospace;
    font-size: 20pt;
    color: #F1F1F1;
  }

  .subtitle:hover {
    background-image: url(../images/static.gif);
    background-position-y: 5%;
  }

  .sidebar-subtitle {
    background-color:var(--nav-bg);
    background-position-y: 5%;
    padding: 5px;
    font-family: 'Terminus', monospace;
    font-size: xx-large;
    font-weight: bold;
    color: #F1F1F1;
    -webkit-text-stroke: 1px black;
    text-transform: uppercase;
    letter-spacing: 1;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.664), 0 6px 20px 0 rgba(0, 0, 0, 0.705)
  }

  .links,
  .tail-links {
    list-style-type:none;
    font-family: 'Terminus';
    font-size: x-large;
    padding: 0;
    width: 60%;
    max-width: 600px;      /* Add max-width for larger screens */
    margin: 0 auto;        /* Keep your existing margin */
  }
  .links li,
  .tail-links li {
    background-image: url(../images/static.jpg);
    background-position-y: 10%;
    padding: 10px;
    margin-bottom:10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.664), 0 6px 20px 0 rgba(0, 0, 0, 0.705);
    text-align: center;
    width: 100%;
  }
  .links li:hover,
  .tail-links li:hover {
    background-image: url(../images/static.gif);
    background-position-y: 5%;
  }
  .links li a ,
    .tail-links li a {
    text-decoration:none;
    color:inherit;
  }

  .tail-links{
    max-width: 25%;
    margin:auto;
    padding-left: 0;
  }

  .nav {
    display: flex;
    justify-content: center;  /* Center the items */
    gap: 2rem;               /* Even spacing between items */
    padding: 0;
    margin: 0;
    width: auto;            /* Let content determine width */
    list-style: none;
  }

  .nav li {
    display: inline-block;
    font-size: clamp(10pt, 30pt, 5vw);
    font-weight: bold;
    font-family: "vcr";
    white-space: nowrap;
    text-align: center;
    text-shadow: 1px 1px 2px #000000;
    /* Remove border properties that might affect spacing */
    border: none;
    padding: 0 1rem;      /* Add horizontal padding instead */
}
  .subtitle {
    color:var(--article-text-color);
    letter-spacing:1px;
    text-decoration:none;
  }
  article .subtitle {
    text-transform:uppercase;
    color:var(--article-heading-color);
    margin-top:10px;
    margin-left:5px;
    margin-right:5px;
    margin-bottom:10px;
    font-size: xx-large;
    text-decoration:none;
    text-align: center;
  }

  article a .subtitle {
    text-decoration:none;
  }

  footer {
    max-width:800px;
    text-align:center;
    color:var(--sidebar-text-color);
  }
  footer a{
    color:var(--navbar-link-color);
  }


md-block a {
  color: rgb(255, 0, 0);
  -webkit-filter: grayscale(50%);
}

md-block hr {
  display: block;
}

blockquote {
  border-left: 3px solid #ccc;
  padding-left: 29px;
}



  @media only screen and (max-width: 990px) {
    .flex {
      flex-wrap:wrap;
    }
    aside {
      width:100%;
      margin-left:5%;
      margin-right:5%;
    }
    /* aside > section {
      margin-right:10px;
    } */
    .nav {
      margin-left:0 !important;
      /* margin-right:50px; */
      position:unset;
    }
    .nav li {
      padding-bottom:5px;
      -webkit-text-stroke: 1px black;
    }
    main {
        display: flex;          /* Changed from block to flex */
        justify-content: center;
        width: 100%;
        margin: 0 auto;        /* Center the main element */
        padding: 0 10px;       /* Add some padding instead of margins */
        box-sizing: border-box; /* Include padding in width calculation */
    }

    article {
        width: 100%;           /* Take full width of container */
        margin: 0 auto 60px;   /* Center article, keep bottom margin */
        padding: 20px;         /* Reduce padding for mobile */
        box-sizing: border-box; /* Include padding in width calculation */
    }

    .article-text {
        width: 100%;
        padding: 0;            /* Remove left padding on mobile */
    }

    embed {
        width: 100%;
        height: 600px;         /* Slightly shorter on mobile */
        box-sizing: border-box;
    }
    
    img.article-thumbnail{
      display:none;
    }
    header {
      -webkit-text-stroke: 1px black;;
    }
    img.column2{
      display: none;
      max-height: 200%;
    }
    img.dishes{
      top: -250
    }
    img.cameras{
      display: none;
    }
    img.cameras{
      right: -40%;
    }
    article .subtitle {

      font-size: x-large
  
    }
  }

  @media only screen and (max-width: 1400px) {

    img.article-thumbnail{
      display:none;
    }

  }