@font-face {
  font-family: "kulbaskervilleregular";
  src: url("font/kulbaskerville-webfont.eot");
  src:
    url("font/kulbaskerville-webfont.eot?#iefix") format("embedded-opentype"),
    url("font/kulbaskerville-webfont.woff2") format("woff2"),
    url("font/kulbaskerville-webfont.woff") format("woff"),
    url("font/kulbaskerville-webfont.ttf") format("truetype"),
    url("font/kulbaskerville-webfont.svg#kulbaskervilleregular") format("svg");
  font-weight: normal;
  font-style: normal;
}

header h1 {
  background: #c0c0c0;
  margin-left: 17px;
  font-family: "kulbaskervilleregular";
  font-size: 19px;
}

h2 {
  background: #c0c0c0;
  font-family: "kulbaskervilleregular";
  font-size: 30px;

  color: blue;
}

h3 {
  background: #c0c0c0;
  margin-left: 20px;
  font-family: "kulbaskervilleregular";
  line-height: 1em;
  font-size: 15px;
}

body {
  background: #c0c0c0;
  font-family: "kulbaskervilleregular";
}
a {
  text-decoration: none;
}

a:link {
  color: black;
} /* unvisited link */
a:visited {
  color: black;
} /* visited link */
a:hover {
  color: black;
} /* mouse over link */
a:active {
  color: black;
}
a.href {
  max-width: 100%;
  height: auto;
}

ul.rig {
  list-style: none;
  font-size: 0px;
  margin-left: -2.5%;
}
ul.rig li {
  display: inline-block;
  padding: 10px;
  margin: 0 0 2.5% 2.5%;
  background: #c0c0c0;
  border: 1px solid #c0c0c0;
  font-size: 16px;
  font-size: 1rem;
  vertical-align: top;
  box-shadow: 0 0 5px #c0c0c0;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}
ul.rig li img {
  max-width: 100%;
  height: auto;
  margin: 0 0 5px;
}
ul.rig li h3 {
  margin: 0 0 5px;
}
ul.rig li p {
  font-size: 0.9em;
  line-height: 1.5em;
  color: #999;
}
ul.rig.columns-4 li {
  width: 22.5%;
}

@media (max-width: 480px) {
  ul.grid-nav li {
    display: block;
    margin: 0 0 5px;
  }
  ul.grid-nav li a {
    display: block;
  }
  ul.rig {
    margin-left: 0;
  }
  ul.rig li {
    width: 100% !important; /* over-ride all li styles */
    margin: 0 0 20px;
  }
}

.ascii-header {
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 4vh 2vw;
}
.ascii-header pre {
  font-family: monospace;
  white-space: pre;
  line-height: 1;

  color: rgb(4, 85, 246);

  font-size: clamp(6px, 1.2vw, 14px);

  transform: scale(1.2);
  transform-origin: center;

  margin: 1px;

  position: relative;
  z-index: 1;
}
.ascii-hitbox {
  position: absolute;
  inset: 0;

  display: block;

  z-index: 2; /* ważne */

  cursor: pointer;
}
.ascii-header.glitch pre {
  text-shadow:
    2px 0 red,
    -2px 0 cyan;

  transform: scale(1.2) translate(1px, -1px);

  filter: contrast(120%) brightness(110%);
}
.terminal-window {
  position: fixed;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 80vw;
  max-width: 900px;

  background: black;

  border: 1px solid rgb(0, 255, 120);

  box-shadow: 0 0 20px rgba(0, 255, 120, 0.3);

  z-index: 9999;

  display: none;

  overflow: hidden;
}
.terminal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 10px;

  background: rgb(0, 255, 120);

  color: black;

  font-family: monospace;

  font-size: 12px;
}
#closeTerminal {
  background: transparent;

  border: none;

  cursor: pointer;

  font-family: monospace;

  font-size: 14px;

  color: black;
}
.terminal-content {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 15px;

  background: rgb(8, 8, 8);
}
#terminalGif {
  max-width: 100%;
  max-height: 80vh;

  object-fit: contain;
}
#closeTerminal {
  position: relative;

  z-index: 99999;
}
.terminal-bar {
  cursor: move;
}
@media screen and (max-width: 768px) and (orientation: portrait) {
  .terminal-window {
    width: 100vw;
    max-width: 100vw;

    height: auto;

    left: 0;
    top: 50%;

    transform: translateY(-50%);

    border-left: none;
    border-right: none;

    border-radius: 0;
  }

  #terminalGif {
    width: 100%;
    max-height: 85vh;

    object-fit: contain;
  }
}
