@font-face {
  font-family: "Averia";
  src: url("/css/AveriaSerifLibre-Regular.woff2") format("woff2");
}

:root {
  --blue: #003049;
  --black: #001524;
  --white: #f5ebe0;
  --content-white: #fffaf4;
  --red: #c42847;
  --orange: #e28413;
  --brown: #463f3a;
}

body > * {
  max-width: 1300px;
}

body {
  color: var(--black);
  padding: 0 0 3vh;
  margin: 0;
  font-family: "Averia", serif;
  background-color: var(--white);
  background-image: linear-gradient(
      45deg,
      #d9cdc1 25%,
      transparent 25%,
      transparent 75%,
      #d9cdc1 75%,
      #d9cdc1
    ),
    linear-gradient(
      -45deg,
      #d9cdc1 25%,
      transparent 25%,
      transparent 75%,
      #d9cdc1 75%,
      #d9cdc1
    );
  background-size: 60px 60px;
  background-repeat: repeat;
  flex-direction: column;
  display: flex;
  align-items: center;
}

.bar-home {
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  padding: 25px;
  font-size: 30px;
  background: url("/images/banner.png") no-repeat right/25%, var(--blue);
}

.bar-home:hover {
  color: var(--red);
}

.motd label,
.motd p {
  padding: 10px 20px;
  background: #88a9bd;
}

.motd {
  display: flex;
  flex: 1 0 0;
  margin: 0;
  border-bottom: 5px solid var(--brown);
}

.motd label,
.motd p {
  display: inline;
  margin: 0;
}

.title-post {
  margin: 10px 0;
}

h3,
h4 {
  margin: 0;
}

.top-bar {
  width: 100%;
}

.top-bar ul {
  list-style: none;
}

.top-bar li:not(:last-of-type) {
  margin-right: 5px;
}

pre {
  padding: 10px;
  border: 1px solid var(--black);
  background-color: var(--black);
  white-space: pre-wrap;
}

code {
  color: var(--orange);
}

a {
  color: var(--blue);
}

a:hover {
  color: var(--red);
}

.main-page,
.content,
.sidebar {
  background: var(--content-white);
}

.content,
.motd p {
  padding: 10px 20px;
}

.motd p {
  flex: 1 0 0;
}

.content {
  flex: 10 0 0;
}

.box h2 {
  margin: 0 0 10px 0;
}

h2 {
  border-bottom: 1px solid var(--black)
}

.box {
  padding-top: 20px;
}

.index-content .box ul {
  padding: 0;
  list-style: none;
}

tr:nth-child(even) {
  background-color: #d1d1d1;
}

tr:nth-child(odd) {
  background-color: #c4c4c4;
}

.two-row-list p {
  margin-top: 0;
}

ul {
  margin: 0;
  list-style: square;
}

img {
  width: 450px;
  display: block;
  margin: auto;
}

.main-page {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  border-bottom: 3px solid var(--brown);
}

.sidebar {
  flex: 0 1 300px;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--brown);
  max-width: 100%;
  min-width: 0;
}

.sidebar ul {
  padding: 0 10px;
  margin-bottom: 1em;
  max-width: 100%;
  min-width: 0;
}

.sidebar ul:last-of-type {
  flex: 1 0 0;
}

.sidebar ul:before {
  margin-top: 5px;
  content: attr(aria-label);
  border-bottom: 1px solid black;
  display: inline-block;
  width: 100%;
  padding: 5px 0;
  margin-bottom: 1em;
  font-weight: 600;
}

.sidebar ul li:first-of-type {
  padding-top: 0;
}

.sidebar ul li {
  list-style: none;
  max-width: 100%;
  min-width: 0;
  gap: 10px;
  padding: 0 5px;
  margin: 10px 0;
  border-left: 3px solid var(--blue);
}

.sidebar ul li a {
  max-width: 100%;
  min-width: 0;
}

h1 {
  font-size: 2em;
  margin: 0;
}

ul.leaders {
  padding-left: 0;
  margin-bottom: 1em;
}

.leaders li a {
  text-decoration: none;
  flex: 1 0 0;
}

.leaders li {
  display: flex;
  border-bottom: 1px dotted black;
  padding: 0.7em 0;
}

.leaders li:last-of-type {
  margin-bottom: 1em;
}

.buttons img {
  width: initial;
}

.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
}

.sidebar-footer {
  text-align: center;
  padding: 1em 0;
}

.text-with-image {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.text-block {
  flex: 5 0 0;
  padding-right: 10px;
}

.text-with-image img {
  flex: 2 0 0;
  min-width: 200px;
  max-width: 300px;
}

@media (max-width: 900px) {
  .main-page {
    flex-direction: column;
  }

  .text-with-image {
    flex-direction: column;
  }
}