:root {
  --bg-color-2: #00557f;
  --bg-color: #ced8c9;
  --grid-color: #707d6c4f;
  --w-grid-color: rgba(110, 120, 30, 0.08);
  --text-color: #131f50;
}

body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  height: 100vh;
  max-height: 100vh;
  color: var(--text-color);
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.15;
  justify-content: flex-start;
  box-sizing: border-box;
}

.main-menu {
  margin: 10px 0;
  list-style-type: none;
  display: flex;
  gap: 5px;
}

.main-menu a {
  color: #00557f;
  background-color: #00ffcc;
  padding: 10px 10px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 900;
  transform: skewX(-10deg);
  font-size: 16px;
  box-shadow: 4px 4px 0 rgb(95, 25, 175);
  border: 2px solid rgba(91, 52, 153, 0.664);
}

.workstation {
  display: flex;
  flex-direction: column;
  width: min(850px, 100%);
  border: 2px solid #0e1970;
  box-shadow:
    5px 5px 0 #444,
    -1px -1px 0 #eee;
  box-sizing: border-box;
  border-radius: 2px;
  flex: 1 1 auto;
  font-weight: 600;
}

.window-header {
  display: flex;
  align-items: center;
  padding: 5px 12px;
  box-sizing: border-box;
  background: #00ffcc;
  color: #2450ba;
  font-weight: bold;
  border-bottom: 2px solid #0e1970;
}

.window-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: start;
  margin: 5px;
  padding: 5px 5px;
  background: white;
  border: 2px solid #0e1970;
  box-shadow:
    2px 2px 0 #fff,
    -2px -2px 0 #999;
  box-sizing: border-box;
  flex: 1 1 auto;
  overflow-y: auto;
}

.navigation {
  margin-bottom: 30px;
}

.navigation a {
  font-size: 15px;
}

h1 {
  margin-top: 0;
  margin-bottom: 32px;
  font-size: 30px;
  font-weight: bold;
  letter-spacing: -1px;
}

h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: 20px;
}

p {
  max-width: 75ch;
  margin: 0 0 26px;
}

a {
  color: #000;
  text-decoration: underline;
  font-weight: bold;
}

a:hover {
  background: #000;
  color: #fff;
}

code {
  padding: 1px 4px;
  background: #d0d0d0;
  border: 1px solid #888;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
}

.terminal {
  margin: 18px 0 28px;
  padding: 14px 16px;
  background: #111;
  color: #eee;
  border: 2px solid #333;
  box-shadow:
    inset 2px 2px 0 #000,
    inset -2px -2px 0 #555;
  font-family: "Courier New", Courier, monospace;
  font-size: 16px;
  overflow-x: auto;
}

.prompt {
  font-weight: bold;
}

.filesystem {
  margin: 18px 0 30px;
  padding: 18px;
  background: #d2d2d2;
  border: 2px solid #555;
  box-shadow:
    inset 2px 2px 0 #fff,
    inset -2px -2px 0 #999;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  line-height: 1.4;
  overflow-x: auto;
}

hr {
  margin: 38px 0 28px;
  border: 0;
  border-top: 2px solid #777;
  border-bottom: 1px solid #fff;
}

.revision {
  margin-top: 40px;
  padding: 12px 16px;
  border-top: 2px solid #555;
  border-bottom: 2px solid #555;
  font-size: 14px;
  line-height: 1.5;
}

.bottom-navigation {
  margin-top: 30px;
}

.window-footer {
  min-height: 34px;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  background: #40a5cd38;
  border-top: 2px solid #555;
  font-size: 13px;
}

.article {
  max-width: 70ch;
  margin: 0 auto;
  text-align: justify;
}

.article-header {
  margin-bottom: 38px;
  padding-bottom: 18px;
  border-bottom: 2px solid #555;
}

.article h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.article p {
  margin-bottom: 26px;
}

.article blockquote {
  margin: 35px 0;
  padding: 18px 24px;
  background: #d2d2d2;
  border-left: 6px solid #444;
  box-shadow:
    inset 2px 2px 0 #fff,
    inset -2px -2px 0 #999;
  font-style: italic;
  text-align: left;
}

.article blockquote strong {
  display: block;
  margin-top: 12px;
  font-style: normal;
}

.article-footer {
  margin-top: 45px;
  padding-top: 18px;
  border-top: 2px solid #555;
  font-size: 14px;
  text-align: left;
}

.article-footer p {
  margin-bottom: 8px;
}

.article-window .window-content {
  padding: 22px 18px;
  overflow-y: auto;
}


h1, .article h1 {
    font-size: 25px;
}


/* Aggiungo la griglia */

body {
  background-color: var(--bg-color);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 23px 23px;
}

.window-content {
  background-color: white;
  background-image:
    linear-gradient(var(--w-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--w-grid-color) 1px, transparent 1px);
  background-size: 2px 2px;
}

.window-content > * {
  position: relative;
  z-index: 1;
}

::selection {
  background: #1eec3c3c;
}

.e-content {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.466);
  padding: 1em;
  border: 2px solid #00ffcc;
  flex: 1 1 auto;
  
}

.tabby-avatar img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    image-rendering: pixelated;
}

.tabby-dialog {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1em;
    border: 2px solid #00ffcc;
    background: rgba(241, 236, 236, 0.85);
    box-shadow:
        0 0 8px rgba(0, 255, 204, 0.5),
        inset 0 0 15px rgba(0, 255, 204, 0.08);

    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco,
                 Consolas, "Liberation Mono", monospace;
    height: 100px;
}

.tabby-text strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #00ffcc;
    text-transform: uppercase;
}

.tabby-banner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tabby-text {
  width: 100%;

}

.back-arrow {
  display: flex;
  margin-right: 10px; 
  text-decoration: none; 
  background-color: rgb(17, 172, 184); 
  padding: 0 10px;
  border-radius: 5px;
  font-size: 18px;
  box-shadow: 2px 2px 4px 1px darkcyan;
  border: 2px solid cyan;
  transform: skewX(-10deg);

}

.scene {
  display: none;
}

.scene:target {
  display: block;
}


#adventure:not(:has(.scene:target)) #intro {
  display: block;
}

.window-content section {
  padding: 1em;
}

.choices {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.choices a {
  width: fit-content;
  padding: 0.5em;
  background: cyan;
  transform: skewX(-10deg);
  width: 150px;
  border: 2px solid blue;
}

.scene-image {
  padding: 1em;
  opacity: 0.3;
  border: 1px solid blue;
  margin: 1em;
}

#stats {
  border: 1px solid blue;
  padding: 1em;
  border-radius: 10px;
  background-color: rgb(158, 247, 177);
}

.assistente {
  color: rgb(218, 9, 173);
  font-weight: 600;
  font-size: 18px;
}

@media screen and (min-width: 650px) {
  body {
    max-width: 960px;
    padding: 20px;
    flex-direction: row;
    margin: 0 auto;
  }

  .main-menu {
    flex-direction: column;
    padding: 10px;
    align-items: center;
  }

  .main-menu a{
    width: 80px;
  }

  .tabby-banner {

    justify-content: end;
    align-items: end;
  }

  .e-content {
    flex-direction: row;
  }

  .window-content {
    padding: 14px 18px;
  }

.main-menu-nav{
    background: #40a5cd38;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 2px 2px 2px darkcyan;
    border: 2px solid aqua;

  }

}
