@font-face {
  font-family: computerFont;
  src: url(font/ocrabeckerrus_lat.otf) format("opentype");
}

@font-face {
  font-family: bookFont;
  src: url(font/static/EBGaramond-Regular.ttf);
}

/* a { */
/*   color: #36250d; */
/* } */

.content {
  margin: auto;
  max-width: 600px;
}

.container {
  width: 80%;
  margin: auto;
}

@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  .some-element {
    flex-direction: column;
  }

  nav {
    display: block;
  }
}

.edit {
  margin: 20px;
  display: flex;
  flex-direction: column;
}

.edit label {
  margin-bottom: 7px;
  padding-left: 10px;
}

.edit input {
  margin-bottom: 15px;
}

textarea {
  height: 40vh;
}


/* Правая панель */
.sidebar-static {
  width: 250px;
  background-color: #f8f9fa;
  border-left: 1px solid #ddd;
  min-height: 100vh;
  position: sticky;
  top: 0;
}

.sidebar-static .nav-link {
  color: #333;
  padding: 8px 16px;
  border-radius: 4px;
}

.sidebar-static .nav-link:hover {
  background-color: #e3f2fd;
}

/* Контейнеры */
.main-header {
  border-bottom: 1px solid #ddd;
  background-color: #fff;
}

@media (max-width: 768px) {
  .sidebar-static {
    display: none;
  }
}

.main-header {
  background-color: rgba(0, 0, 0, 0.1) !important;
}

aside {
  background-color: rgba(0, 0, 0, 0) !important;
}

.linebreak {
  white-space: pre-wrap;
}

body.book-theme #bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(rgba(179, 134, 0, 0.2), rgba(179, 134, 0, 0.2)), url('/static/plufow-le-studio-KLpyOKB1lt4-unsplash.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

body.book-theme {
  opacity: 0.8;
  font-family: bookFont;
  font-size: 120%;
}

body.book-theme form * {
  background-color: transparent;
}

body.book-theme a {
  color: #734d26;
}

body.clean-theme {
  background-color: #ffffff;
  color: #000000;

  font-family: bookFont;
  font-size: 120%;
}

body.computer-theme {
  background-color: #000000;

  font-family: computerFont;
  color: #00ff00;
  font-size: 100%;
}

body.computer-theme .nav-link {
  color: #c0ff00 !important;
}

body.computer-theme .nav-link:hover  {
  background-color: #333;
}

body.computer-theme a {
  color: #c0ff00 !important;
}

body.computer-theme .dropdown-menu {
  background-color: #333;
}

body.computer-theme input {
  background-color: #333;
  color: #c0ff90;
}

body.computer-theme textarea {
  background-color: #222;
  color: #6f6;
}
