@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inria+Serif:ital,wght@0,300;0,400;0,700;1,400&display=swap');

:root {
  --color1: black;
  --colorbg: #e6e5d8;
  --color2: black;
  --color3: #568070;
  --colorngrey: #e2e1e0;
  --colorperi: #5544f2;
  --colorlink: #5544f2;
  --colorlinkhover: #ff69b4;

  --fontmono: 'Geist Mono', monospace;
  --fontserif: 'Inria Serif';
  --fontmodernist:  Old Standard TT;

;
}

header {
  width: 100%;
  font-size: 1rem;
  padding: 2em 0 0.4em 0;
  letter-spacing: 0.5ex;
  color: var(--color1);
  border-bottom: 1px solid var(--color1);
}

header:after {
  content: 'EDIT.11/12/2025';
  float: right;
}


body {
  min-height: 100dvh;
  color: var(--color2);
  justify-content: center;
  align-items: center;
  font-family: var(--fontmono);
  font-weight: 400 !important;;
  font-size: small;
  line-height: 1.3;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--colorbg);
}



ul {
    padding-left: 1rem;

}

li {
  padding-top: 1ex;

}

li:before {

}

hr {
  border: 0.5px solid var(--color3);
}

a {
  text-decoration: none;
  white-space: nowrap;
  
  border: 1px solid var(--colorlink);
  color: var(--colorlink);
  
  cursor: pointer;
  margin: 1px 1px auto;
  font-family: inherit;
  transition: background 0.15s ease;
  padding: 1px 1ex 1px 1ex;
  font-size: smaller;

}

a:hover{
  background: #eeefef;
  color: var(--colorlinkhover);
  border: 1px solid #ff69b4;  

}
/*
a:before{
  content: "[";
}
a:after{
  content: "]";
}
*/
p{
  padding: 0 0 1ex 0;
}

.grid {
  margin: 1em;
  padding: 1px;
  background: var(--color1);
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);

}

.grid-item {
  position: relative; 
  background: var(--colorbg);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 250px;
  color: var(--color1);
}
.grid-item img{
  max-width: 25em;

}

.wide{
  grid-column: span 2;
}


.tall {
  grid-row: span 2;
}

.row {
  grid-column: span 3;
}

.cap{
  text-transform: uppercase;
  font-size:smaller;
}

.grid-item-content {
  font-size: smaller;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.nr {
  position: absolute;       /* new */
  top: 0.5rem;                 /* tune as needed */
  left: 0.5rem;                /* tune as needed */
  pointer-events: none;
  font-size: x-small;
  font-family: var(--fontmono);
}

.boxphoto{
    max-width: 100%;
    display: inline-flex;            /* matches other flex-based boxes */
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 3px rgba(0,0,0,0.16),
                0 2px 3px rgba(0,0,0,0.23);
    mix-blend-mode: multiply;
    box-sizing: border-box;
}

.box{
  display: flex;
}

.boxm{
  font-family: var(--fontmono);
  line-height: 1.8;
  max-width: 40em;
  margin-bottom: 3em;
  margin-top: 2em;



}
.boxs{
  font-family: var(--fontserif);
  text-align: justify;
  font-size: small;
  line-height: 1.5;
  max-width: 30em;
  margin-bottom: 3em;
  margin-top: 2em;
}

.app-block {
  font-family: var(--fontmono);
  line-height: 1.8;
  max-width: 40em;
  margin-bottom: 3em;
  margin-top: 2em;
}


#anim-container1 {
  max-width: 25em;
  max-height: 25em;
  position: relative; /* ensures absolute-positioned canvas fits correctly */
}

#anim-container1 canvas {
  width: 70% !important;
  height: 70% !important;
  padding: 15%;
}


.name{
      white-space: nowrap;
      font-size: x-large;
      margin-bottom: 0.5rem;
      font-weight: 500;
      font-family: var(--fontmono);
}


.legend {
  margin: 0 auto 10em 3em;
  line-height: 1;
  font-size: xx-small;


}

.legend-title {
  margin-bottom: 1rem;
  font-size: 0.75rem;


}

.legend-item {
  display: grid;
  grid-template-columns: 1rem auto;
  align-items: start;
  margin-bottom: 0.1rem;

}

.legend-key {
  opacity: 1;

}


button {
    border: 1px solid black;
    background: rgba(0,0,0,0.05);   /* 5% grey */
    cursor: pointer;
    margin: 2px 1px auto;
    font-family: inherit;
    transition: background 0.15s ease;
    padding: 2px 2px 2px 2px;
}


button:hover {
    background: rgba(0,0,0,0.12);
}

/*
DESKTOP
*/
@media (min-width: 901px) {

  .grid {
    grid-template-columns: repeat(9, 1fr);
    grid-column-gap: 1px;
    grid-row-gap: 1px;
  }

  .d-w-1 { grid-column: span 1; }
  .d-w-2 { grid-column: span 2; }
  .d-w-3 { grid-column: span 3; }
  .d-w-4 { grid-column: span 4; }
  .d-w-5 { grid-column: span 5; }
  .d-w-6 { grid-column: span 6; }
  .d-w-7 { grid-column: span 7; }
  .d-w-8 { grid-column: span 8; }
  .d-w-9 { grid-column: span 9; }



  .d-h-1 { grid-row: span 1; }
  .d-h-2 { grid-row: span 2; }

  .legend {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-row-gap: 0.2em;
    grid-column-gap: 4em;
  }

  .legend-title {
    grid-column: 1 / -1;
  }


}
/* MOBILE */
@media (max-width: 900px) {

  body{
        max-width: 100%;
        margin: 0 auto;

  }

  .grid {
    grid-template-columns: repeat(9, 1fr);
    grid-column-gap: 1px;
    grid-row-gap: 1px;
    font-size: small;
  }


  .m-w-1 { grid-column: span 1; }
  .m-w-2 { grid-column: span 2; }
  .m-w-3 { grid-column: span 3; }
  .m-w-4 { grid-column: span 4; }
  .m-w-5 { grid-column: span 5; }
  .m-w-6 { grid-column: span 6; }
  .m-w-7 { grid-column: span 7; }
  .m-w-8 { grid-column: span 8; }
  .m-w-9 { grid-column: span 9; }

  .m-h-1 { grid-row:1 }
  .m-h-2 { grid-row:2 }

  .grid-item {
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
  }

  .grid {
    margin-top: 1rem;
    padding: 1px 1px 1px 1px;
  }

  header{
    max-width: 90%;
    font-size: small;
  }
  .legend {
    max-width: 80%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    font-size: 7px;
    line-height: 1;
    grid-row-gap: 0.5em;
    grid-column-gap: 3em;

  }

  .legend-item{
  }

  .legend-title {
    font-size: 10px;
    grid-column: 1 / -1;
  }

}

.no-flex {
    display: inline;
    white-space: nowrap;
}
