@font-face {
  font-family: 'OpenSans';
  font-display: swap;
  src: url("/assets/OpenSans-VariableFont_wdth,wght.ttf") format('truetype');
}

body {
  font-family: "OpenSans", sans-serif;
  line-height: 1.5em;
  font-size: 0.9em;
  color: #282520 !important;
  max-width: 40rem;
  padding: 1.1rem;
  margin: auto;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

body.dark {
  background: #1e1e1e;
  color: #a8a8a8;
}

body.dark a {
  color: #66ccff;
}

body.dark .footer-signature {
  color: #888888;
}

body.dark #console {
  color: #c2c2c2;
}

body.dark .console-text {
  color: #c2c2c2;
}

body.dark .prompt-prefix {
  color: #39ff14;
}

body.dark .cursor {
  background-color: #39ff14;
}

body.dark h1, body.dark h2, body.dark h3, body.dark h4, body.dark h5, body.dark h6 {
  color: #f0f0f0;
}

body.dark p {
  color: #a8a8a8;
}

body.dark ul li {
  color: #a8a8a8;
}

body.dark a:hover {
  text-decoration: underline;
}

main {
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 1rem;
}

.footer-signature {
  text-align: center;
  font-size: 0.8em;
  color: gray;
  margin-top: auto;
  padding: 10px 0;
}

.footer-signature a {
  color: #0074D9;
  text-decoration: none;
}

.footer-signature a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

a {
  color: #0074D9;
  text-decoration: none;
}

@media (max-width: 768px) {
  .footer-signature {
      font-size: 0.7em;
  }
}

#console-window {
  background-color: #2a2a2a;
  border-radius: 5px;
  overflow: hidden;
  width: 100%;
  max-width: 40rem;
  margin-top: 1.5rem;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333333;
  padding: 10px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.console-buttons {
  display: flex;
  gap: 8px;
}

.button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
}

.red {
  background-color: #ff4c4c;
}

.yellow {
  background-color: #ffcc00;
}

.green {
  background-color: #33cc33;
}

#console {
  background-color: #232323;
  font-family: monospace;
  padding: 1rem;
  font-size: 0.9em;
  white-space: pre-wrap;
}

.console-text {
  color: white;
}

.prompt-prefix {
  color: #39ff14;
}

.cursor {
  display: inline-block;
  width: 10px;
  background-color: #39ff14;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

#themeToggle {
  cursor: pointer;
}