:root {
  --text-c: white;
  --background: #202020;
  --background-l: #303030;
  --background-h: #404040;

  --border-c : #010101;
  
  --gutter-w: 6rem;
}

@font-face {
  font-family: "intelOneMono";
  src: url(/static/fonts/IntelOneMono.woff2);
}

[x-cloak] {
   display: none !important;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: var(--text-c);
}

body {
  opacity: 0;
  font-family: sans-serif;
  line-height: 1.6;
  background: var(--background);
  transition: opacity 0.35s ease-out;
  
}
body.fade-in {
  opacity: 1;
}

input {
  color: var(--background);
}

button {
  background: var(--background);
}

button.active {
  background: var(--background-h);
  border-color: orange
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem; 
}

.hbox { display: flex !important; flex-direction: row    !important; }
.vbox { display: flex !important; flex-direction: column !important; }
.fillw { width:  100% !important; }
.fillh { height: 100% !important; }

.align-start   { align-items: flex-start !important; }   
.align-center  { align-items: center     !important; } 
.align-end     { align-items: flex-end   !important; } 
.align-stretch { align-items: stretch    !important; } 
.align-stretch { align-items: stretch    !important; } 

.just-start    { justify-content: flex-start   !important; }
.just-center   { justify-content: center       !important; }
.just-end      { justify-content: flex-end     !important; }
.just-spread   { justify-content: space-around !important; }
.just-even     { justify-content: space-evenly !important; }

.gap     { gap:     0.5rem !important; }
.wrap    { flex-wrap: wrap !important; }

.flex-0  { flex: none !important; }    
.flex-1  { flex: 1    !important; }
.flex-2  { flex: 2    !important; }
.flex-3  { flex: 3    !important; }
.flex-4  { flex: 4    !important; }
.flex-5  { flex: 5    !important; }
.flex-6  { flex: 6    !important; }
.flex-8  { flex: 8    !important; }
.flex-10 { flex: 10   !important; } 

.grid    {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.header-main {
  font-family: "intelOneMono", monospace;
  background-color: var(--background-l);
  border-bottom: 1px solid #ccc;
  padding: 0.5rem 0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  @media (max-width: 768px) {
    flex-direction: column;
    gap: 0.5rem;
  }


  & .header-title a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
  }

  & nav {
    display: flex;
    gap: 1rem; 
    justify-content: center; 
    flex-wrap: wrap;

    & a {
      text-decoration: none;
      color: #555;
      padding: 0.25rem 0.5rem;

      &:hover {
        color: #ffffff;
        text-decoration: underline;
      }
    }
  }
}


.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 80%;
  max-height: 80%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  padding: 20px;
  background-color: darkslategray;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;

}


@media (max-width: 768px) {
}

@media (max-width: 480px) {
}
