@import url('https://fonts.googleapis.com/css2?family=Martian+Mono:wght@100..800&display=swap');
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: auto;
  background-image: url("/space_bg.gif");
  background-repeat: repeat;
}

.layout {
  width: 1250px;
  height: 850px;

  display: grid;
  grid-template-columns: 200px 1fr 200px;
  grid-template-rows: 95px 1fr;
  grid-template-areas:
    "header header header"
    "aside  main   updates";
  gap: 6px;
  font-size: 18px;
}

.header,
.aside,
.main,
.updates {
  min-width: 0;
  min-height: 0;
  padding: 16px 16px;
  background: black;
border: 1px solid #00AF00;
border-radius: 3px;
  color: #fff;
  line-height: 1.4;

  overflow-x: hidden;
  overflow-y: auto;
  
}

.layout--journal {
  grid-template-columns: 200px 1fr;
  grid-template-areas:
    "header header"
    "aside  main";
}

.header  { grid-area: header;  }
.aside   { grid-area: aside;   }
.main    { grid-area: main;    }
.updates { grid-area: updates; }

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-y: hidden;
  font-family: 'Martian Mono', monospace;
}

.header img {
  flex-shrink: 0;
  max-width: 100%;
}

.header span {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main {
  font-size: 14px;
  font-family: 'Martian Mono', monospace;
}

.aside {
font-family: 'Martian Mono', monospace;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aside hr {
  width: 100%;
  margin: 6px 0;
  border: none;
  border-top: 1px solid white;
}

.nav__item {
  position: relative;
  display: block;
  padding: 8px 12px 8px 24px;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #b8b8b8;
  text-decoration: none;
  background: #151515;
  border: 1px solid #00AF00;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.nav__item::before {
  content: ">";
  position: absolute;
  left: 10px;
  color: #4a4a4a;
  transition: color 0.15s, transform 0.15s;
}

.nav__item:hover {
  color: #e8e8e8;
  background: #1a1a1a;
  border-color: #3a3a3a;
  border-left-color: #6a6a6a;
}

.nav__item:hover::before {
  color: #e8e8e8;
  transform: translateX(2px);
}

.nav__item:active {
  background: #0f0f0f;
  color: #fff;
}

.nav__item:focus-visible {
  outline: 1px solid #6a6a6a;
  outline-offset: 2px;
}

.updates {
font-family: 'Martian Mono', monospace;
}


.log {
  border: 1px solid #2a2a2a;
  border-left: 2px solid #6a6a6a;
  border-radius: 3px;
  margin-bottom: 8px;
  background: #151515;
}

.log summary {
  padding: 8px 12px;
  cursor: pointer;
  color: #b8b8b8;
}

.log summary:hover {
  color: #e8e8e8;
}

.log__body {
  padding: 0 12px 12px 12px;
  color: #e8e8e8;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.log__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 8px 0;
  border-radius: 3px;
}
