@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
    --bg-dark-color: #0a0d10;
    --text-dark-color: #eaeaea;
    --text-dark-subtext-color: #8a8a8a; 
    --text-highlight: #b6ff00;
    --seperator: #b6ff00;
    --bg-light-color: #fff;
}

html, body {
    font-family: "IBM Plex Mono", monospace;
}

body {
    margin: 0;
    padding: 0 1rem 0rem 1rem;
    min-height: 100vh;
    color: var(--text-dark-color);
    background-color: var(--bg-dark-color);
    line-height: 1.3;
}

hr {
  border: none;
  height: 1px;
  background-color: var(--seperator, #ccc);
  margin: 1rem 0;
}

.nav {
    margin-top: 2rem;
    display: flex;
    flex: 1 1 0%;
    justify-content: flex-end;
    gap: 10px;
}

.nav a {
    color: var(--text-highlight);
    background-color: transparent;
    padding: 0 0px;
    transition: color 0.25s ease, background-color 0.25s ease;
    border-radius: 0;
    outline: none;
    text-decoration: none;
}

.nav a:hover,
.nav a:focus,
.nav a:active {
    color: #0a0d10;
    background-color: #eaeaea;
    text-decoration: none;
}

.main {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    flex-direction: column;
}

.main div, footer {
    flex: 1;
    width: 100%;
    max-width: 75ch;
}

.main footer {  
    height: 100%;
    display: flex;
    flex: 1;
    align-items: flex-end;
    justify-content: center;
    color: var(--text-dark-subtext-color);
}

a, .text-highlight {
    color: var(--text-highlight);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.nav a:hover,
.nav a:focus,
.nav a:active {
    text-decoration: none;
}

.text-normal {
    color: var(--text-dark-color);
}

ul {
    padding: 1rem;
}

.glitch-soft {
    display: block;
    margin: 20px 0;
    position: relative;
    color: var(--text-dark-color);
    transition: color 0.1s ease, transform 0.1s ease;
    user-select: text;
}

.glitch-soft.glitching {
  transform: 
    translate(var(--rand-x-0,0px), var(--rand-y-0,0px))
    translate(var(--rand-x-1,0px), var(--rand-y-1,0px))
    translate(var(--rand-x-2,0px), var(--rand-y-2,0px));

  text-shadow:
    calc(var(--shadow-x-0, 1px)) 0 var(--text-highlight),
    calc(-1 * var(--shadow-x-1, 1px)) 0 rgba(0,255,0,0.7),
    0 calc(var(--shadow-y-2, 1px)) rgba(0,255,255,0.4),
    0 calc(-1 * var(--shadow-y-0, 1px)) rgba(255,0,255,0.4);
}

.cursor {
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

::selection {
    background: #b6ff00;
    color: #0a0d10;
}

::-moz-selection {
    background: #b6ff00;
    color: #0a0d10;
}

.app-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid #333;
  box-sizing: border-box;
}

.app img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.app h3 {
  margin: 0;
  font-size: 1rem;
}

.app p {
  margin: 0.2rem 0 0;
  color: #aaa;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.hw-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.8rem;
}

.hw-table th,
.hw-table td {
  border: 1px solid #333;
  padding: 0.4rem;
  text-align: left;
  vertical-align: top;
}

.hw-table th {
  background: #111;
  font-weight: 600;
}

/* MOBILE CARD VIEW */
@media (max-width: 600px) {

  .hw-table {
    border: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .hw-table thead {
    display: none;
  }

  .hw-table,
  .hw-table tbody,
  .hw-table tr {
    display: block;
    width: 100%;
  }

  .hw-table tr {
    background: transparent;
    border: 1px solid #333;
    margin: 0 0 10px 0;
    padding: 10px 12px;
    box-sizing: border-box;
  }

  .hw-table td {
    display: block;
    text-align: left;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    padding: 3px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .hw-table td::before {
    content: attr(data-label);
    color: #888;
    font-weight: 600;
    width: 80px;
    flex-shrink: 0;
    display: inline-block;
}

  .hw-table td {
    color: #eaeaea;
  }

  .hw-table td span {
    text-align: right;
  }
}

.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
}