/* Global */
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');


html {
  background-image: url("rdbg.jpg");
  background-repeat: repeat;
}

body {
  font-family: "Roboto", sans-serif;
  hyphens: auto;
  max-width: 1000px;
  margin: 50px auto;
  padding: 5px;
}

/* Layout */
.layout {
  max-width: 1000px;
  margin: 0 auto 200px;
}

.layout__columns {
  display: flex;
}

.layout__left-col {
  align-items: start;
}

figure {
  width: fit-content;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

img {
  max-width: 50%;
  display: block;
}

figcaption {
  text-align: center;
}

/* Left Navigation */
.left-nav {
  min-width: 60px;
  margin-right: 24px;
  font-size: 95%;
  align-self: normal;
}

.left-nav__categories {
  padding: 0;
  margin: 0;
  list-style: none;
  display: block;
  grid-template-columns: repeat(auto-fit, 100px);
}

.left-nav__category {
  display: box;
  list-style: none;
  margin-top: 4px;
  min-width: 100px;
}

.category-label {
  background-color: #edeee9;
  text-align: center;
}

.left-nav__li {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.left-nav__block {
  display: flex;
  border-bottom: 1px dotted;
  margin-bottom: 12px;
  justify-content: center;
  align-items: center;
}

.left-nav__li-link,
.left-nav__li-link:visited {
  color: black;
  padding: 6px;
}

/* Layout Columns */
.layout__lef-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Headings */

header, h2 {
    border-bottom: 1px solid black;
}

h1, h2, h3 {
  font-weight: normal;
  margin-bottom: 10px;
}

h2 { 
  font-size: 2em;
}

h3 {
  font-size: 1.4em;
}

.big-text-header { 
  font-size: 150%;
  line-height: 1;
  text-align: center;
  display: flex;
  justify-content: center;
}

/* Text */
p,
li {
  line-height: 2;
  letter-spacing: 1px;
}

p {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: none;
}

/* Utilities */
.center {
  margin: 0 auto;
  max-width: 100%;
}

/* Media Queries */
@media screen and (max-width: 859px) {
  .layout__columns {
    display: block;
  }

  .layout__left-col {
    align-items: center;
  }

  .left-nav {
    margin: 0 0 20px 0;
    width: 100%;
  }

  .left-nav__categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .left-nav__category {
    min-width: 90px;
  }

  .left-nav__block {
    margin-bottom: 8px;
  }
}
