/* Apply to the whole page for a consistent look... */
:root {
  --matrix-monitor: rgb(177	212	203	);
  --matrix-green: rgb(99,	197,	120);
  --matrix-green-highlight: rgb(182,	245,	216);
  --page-padding-x: 1rem;
  --page-padding-bottom: 1.5rem;
  font-size: 3rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

ul {
  padding: 0;
  list-style-type: none;
}

li {
  list-style-type: none;
}

body {
  background-color: #000;
  color: var(--matrix-green);
  text-shadow: 0 0 3px var(--matrix-green);
  font-family: "Courier Prime", Courier, monospace;
  font-size: 1rem;
  margin: 0;
  padding: 0 var(--page-padding-x) var(--page-padding-bottom);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

h1 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  min-height: 1.8rem;
  font-size: 1.2rem;
  font-weight: 590;
  line-height: 1.3;
}

h2 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.3;
}

h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

p {
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

/* Style the navigation */
nav {
  display: flex;
  justify-content: space-evenly; /* Space links evenly */
  background-color: rgba(0, 0, 0, 0.8); /* Slightly transparent black */
  padding: 0 1rem 1rem 1rem;
  position: fixed; /* Stick the nav to a specific position */
  bottom: 0; /* Stick to the bottom of the page */
  width: 100%; /* Ensure it spans the full width */
  z-index: 1000; /* Ensure it stays above other elements */
}

/* Style the main content area */
main {
  padding: 0.5rem 0 1rem;
  max-width: 100%;
}

main ul li {
  margin-bottom: 0.65em;
  padding: 0.15em 0;
}

main ul li a {
  display: inline-block;
  padding: 0.2em 0;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 1em;
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  color: rgb(54, 97, 97);
  text-shadow: 0 0 3px rgb(22, 38, 38);
  font-size: 0.45rem;
  line-height: 1.4;
}

footer p {
  margin: 0;
  font-size: inherit;
}

.footer-rust-logo {
  display: block;
  height: 1em;
  width: auto;
}

a {
  color: rgb(54, 97, 97);
  text-shadow: 0 0 3px rgb(22, 38, 38);
  text-decoration: none; /* Remove underlines */
}

a:hover {
  color: var(--matrix-green-highlight);
  text-shadow: 0 0 5px var(--matrix-green-highlight); /* Stronger glow on hover */
}

code {
  color: var(--matrix-monitor);
}

.blog-entry img {
  max-height: 40vh;
  max-width: 100%;
  height: auto;
}

.blog-entry,
.legal-notice,
.inner {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.blog-entry img,
.legal-notice img,
.inner img {
  max-width: 100%;
  height: auto;
  max-height: 50vh;
  display: block;
  margin: 0.5rem 0;
}
.blog-entry pre,
.legal-notice pre,
.inner pre {
  overflow-x: auto;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}
.blog-entry a,
.legal-notice a,
.inner a {
  overflow-wrap: anywhere;
}

.content-left-right {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.text-block-left {
  width: 60%; /* Ensure this is width, not min-width */
}

.text-block-right {
  width: 40%; /* Adjusted to take up more space */
}

.typewriter-text {
  color: var(--matrix-green-highlight);
  font-weight: 590;
  text-shadow: 0 0 5px var(--matrix-green-highlight);
}

.rabbit {
  display: flex;
  justify-content: flex-end;
  font-size: 1.5rem;
  color: var(--matrix-monitor);
  font-weight: 590;
  text-shadow: 0 0 5px var(--matrix-monitor);
}

/* Form / biohazard pages */
form {
  margin: 1.5rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(99, 197, 120, 0.35);
  border-bottom: 1px solid rgba(99, 197, 120, 0.35);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--matrix-monitor);
}

input[type=text],
input[type=email] {
  width: 100%;
  max-width: 24rem;
  box-sizing: border-box;
  background-color: black;
  color: var(--matrix-green);
  border: none;
  border-bottom: 2px solid var(--matrix-green);
  padding: 0.25rem;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

input[type=text]:focus,
input[type=email]:focus {
  border-bottom: 2px solid var(--matrix-green-highlight);
}

input[type=submit],
button {
  margin-top: 1rem;
  background: none;
  border: 1px solid rgba(99, 197, 120, 0.5);
  padding: 0.5rem 0.75rem;
  color: var(--matrix-green);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-transform: uppercase;
}

input[type=submit]:hover,
button:hover:not(:disabled) {
  color: var(--matrix-green-highlight);
  border-color: var(--matrix-green-highlight);
  text-shadow: 0 0 5px var(--matrix-green-highlight);
}

button:disabled {
  opacity: 0.5;
  cursor: wait;
}

button.danger {
  border-color: rgba(220, 120, 120, 0.6);
  color: rgb(220, 120, 120);
  text-shadow: 0 0 3px rgb(120, 40, 40);
}

button.danger:hover:not(:disabled) {
  border-color: rgb(255, 140, 140);
  color: rgb(255, 140, 140);
  text-shadow: none;
}

.message {
  margin-top: 1rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.message.success {
  color: var(--matrix-green-highlight);
}

.message.error {
  color: rgb(220, 120, 120);
  text-shadow: 0 0 3px rgb(120, 40, 40);
}

.panel {
  margin: 1.5rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(99, 197, 120, 0.35);
  border-bottom: 1px solid rgba(99, 197, 120, 0.35);
}

.biohazard-links li {
  margin: 1rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(99, 197, 120, 0.35);
}

.biohazard-links li:last-child {
  border-bottom: 1px solid rgba(99, 197, 120, 0.35);
}

.biohazard-links a {
  display: block;
  color: var(--matrix-green);
  text-shadow: 0 0 3px var(--matrix-green);
}

.link-desc {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgb(54, 97, 97);
  text-shadow: none;
}

.biohazard-doc ul {
  list-style-type: disc;
  padding-left: 1.25rem;
}

.biohazard-doc li {
  list-style-type: disc;
  margin: 0.5rem 0;
}

.biohazard-doc strong {
  color: var(--matrix-green-highlight);
}

.back-button {
  font-size: 1.5rem;
}

#about-me-years {
  color: var(--matrix-monitor);
}

.fit-about-image {
  width: 100%; /* Make the image take up the full width of its container */
  height: 100%; /* Make the image take up the full height of its container */
  object-fit: cover; /* Ensures the image covers the container without distortion */
  display: block; /* Removes any extra spacing around the image */
  padding-left: 1rem;
}

.blog img {
  display: inline;
  max-height: 40vh;
}

.red {
  color: red;
}

.green {
  color: green;
}

textarea {
  width: 100%;
  border: none;
  outline: none;
  background: none;
  resize: none;
  color: inherit;
  border-bottom: 1px solid green;
}

@media (max-width: 768px) {
  :root {
    font-size: 18px;
    --page-padding-x: 1rem;
    --page-padding-bottom: 1.25rem;
  }
  body {
    font-size: 0.9rem;
    line-height: 1.55;
  }
  h1 {
    font-size: 1.15rem;
    margin-top: 0.75rem;
    min-height: auto;
  }
  h2 {
    font-size: 1rem;
  }
  h3 {
    font-size: 0.95rem;
  }
  p {
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
  }
  main {
    padding: 0.25rem 0 0.75rem;
  }
  .content-left-right {
    flex-direction: column;
    gap: 1rem;
  }
  .text-block-left,
  .text-block-right {
    width: 100%;
  }
  .fit-about-image {
    width: 100%;
    max-height: 40vh;
    height: auto;
    object-fit: cover;
    padding-left: 0;
    border-radius: 2px;
  }
  .blog-entry img,
  .blog img {
    max-height: 45vh;
  }
  footer {
    font-size: 0.75rem;
    gap: 0.35em 0.75em;
    margin-top: 1rem;
  }
  .footer-rust-logo {
    height: 1.1em;
  }
  a {
    overflow-wrap: anywhere;
  }
  .tt-numpad button {
    font-size: 1.2rem;
    padding: 12px 0;
  }
}
@media (max-width: 500px) {
  :root {
    font-size: 16px;
    --page-padding-x: 0.85rem;
  }
  body {
    font-size: 0.875rem;
  }
  h1 {
    font-size: 1.05rem;
  }
  p {
    font-size: 0.875rem;
  }
  footer {
    font-size: 0.7rem;
  }
}
