@font-face {
    font-family: 'filetext';
    src: url('/neocities-pixelplant/fonts/PixelOperatorMono.woff2') format('woff2'),
         url('/neocities-pixelplant/fonts/PixelOperatorMono.woff') format('woff');
}
/* General*/
body {
  margin: 0;
  padding: 0;
  height: 100vh;
}

.layout {
  display: flex;
  flex-direction: row;
  height: 100vh;
}


/* Navbar */
.navbar {
  color: black;
  width: 180px;
  display: flex;
  flex-direction: column;
  background-color: #d7e6c4;
  padding-right: 0px;
  border-right: 2px solid gray;
}

.navbar h2 {
  color: black;
  margin: 6px 4px 10px;
}

  /* makes the links sit together like in old windows + indent from title like file hierarchy*/
.navbar h3 {
  margin: 0;
}

  /* about the links in the navbar: static, when you hover over, and when you are reading that part*/
.navbar a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  color: #000;
  text-decoration: none;
  width: 100%;
}
  /* text and icons change when hover and active*/
.navbar a:hover {
  background: black;
  border: 1px solid gray;
  color:#d7e6c4;
  fill: currentColor;
}

.navbar a:focus {
  background: black;
  border: 1px solid gray;
  border-right: 0px; /* prevent double border on the right */
  color:#d7e6c4;
  fill: currentColor;
}

.navbar a:focus-visible {
 outline: none;
}

.navbar a:active {
  background: gray;
  border: 1px solid black;
  border-right: 0px; /* prevent double border on the right */
  color:#d7e6c4;
  fill: currentColor;
}


  /*text and icons in navbar*/
.title {
  display: inline-flex;
  align-items: baseline;
  font-family: 'filetext', monospace;
  line-height: 1;
}

.icon {
  height: 0.8em;
  width: auto;
  display: block;
  image-rendering: pixelated;
  transform: translateY(-0.03em);
}

.icon-back {
  height: 1em;
  width: auto;
  display: block;
  image-rendering: pixelated;
  transform: translateY(-0.03em);
}

/* Main content */
.main-content {
  flex: 1;
  background-color: #ffffff;
  padding: 16px;
  overflow-y: auto;
}
