@font-face {
  font-family: Roboto;
  src: url(../Roboto/Roboto-Regular.ttf);
  font-display: swap;
}

@font-face {
  font-family: RobotoCondensed;
  src: url(../Roboto_Condensed/RobotoCondensed-Regular.ttf);
  font-display: swap;
}

* {
  text-rendering: optimizeSpeed;
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100dvh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

div.wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100dvh;
  background: radial-gradient(#fff 40%, #ccc);
}

div.main {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 8px;
  gap: 16px;
  align-items: center;
}

div.main > section {
  display: flex;
  flex-direction: column-reverse;
  gap: 32px;
}

div.main > h1 {
  margin-top: 0;
  position: relative;
  cursor: default;
}

div.main > h1::first-letter {
  color: #0054d3;
  text-shadow: 0 0 1px #0054d3;
  cursor: default;
}

div.main > h1 span {
  position: absolute;
  bottom: -0.6em;
  font-size: 0.4em;
  left: 8em;
  text-transform: uppercase;
  font-weight: 300;
  font-family: 'RobotoCondensed';
  cursor: default;
}

ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
}

nav.navi {
  align-self: center;
}

.navi ul > li {
  border: 1px transparent solid;
  transition: 0.2s;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
}

/* .navi ul>li:hover {
border-color: #666;
} */

.navi a {
  text-decoration: none;
  color: #000;
  transition: 0.2s;
  padding: 8px;
  display: inline-block;
  position: relative;
  opacity: 0.7;
  transition: opacity 0.2s;
  font-weight: bold;
}

.navi a:hover {
  opacity: 1;
}

.navi a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  // width: 0;
  width: 100%;
  height: 2px;
  background: #000;
  // transition: width 0.2s;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.navi a:hover:after {
  // width: 100%;
  transform: scaleX(1);
  transform-origin: left;
}

.navi a:not(:hover)::after {
  transform-origin: right;
}

.navi ul > li:hover a {
  color: #000;
}

aside {
  display: flex;
  align-items: end;
  height: 2em;
}

.matrix {
  width: 100%;
  text-align: center;
  font-family: 'Courier New', Courier, monospace;
  cursor: default;
}

a > img {
  height: 1em;
}

.matrix span {
  color: #82be82;
  transition: 0.3s;
  padding-bottom: 2px;
  border-bottom: 1px transparent solid;
  filter: blur(0.5px);
}

.matrix *:not(._matrix_highlight) {
  letter-spacing: 0px;
}

.matrix ._matrix_highlight {
  color: #297fff;
  text-shadow: 0 0 2px #0040a06c;
  filter: blur(0);
}

.matrix.done_highlight ._matrix_highlight {
  color: #0046af;
  text-shadow: 0 0 2px #0040a0;
}

body > img {
  position: absolute;
  top: -100%;
}

/* #contact {
  text-align: center;
  font-size: 0.8em;
} */
#contact {
  display: inline;
}

.bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 6px;
  font-size: 12px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.bottom-bar a {
  text-decoration: none;
  color: #000;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.bottom-bar > a::before {
  content: '🔗';
}

.bottom-bar a:hover {
  text-decoration: underline;
  opacity: 1;
}
