body {
  margin: 0;
  font-family: "Verdana", sans-serif;
  background-color: #f9ffdb;
}

header {
  padding: 0 10px 10px;
}

header a {
  color: #000;
  text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| Header and banner
|--------------------------------------------------------------------------
*/

.banner {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #cee64a;
}

.text {
  position: relative;
  flex-shrink: 0;
  color: #000;
  font-family: "Genos", sans-serif;
  font-optical-sizing: auto;
  font-size: 45pt;
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
  z-index: 1;
}

.square-container {
  position: absolute;
  top: -1px;
  left: -50px;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(7, 30px);
  grid-template-rows: repeat(2, 30px);
  gap: 10px;
  width: fit-content;
  opacity: 0.7;
  pointer-events: none;

  mask-image: linear-gradient(135deg, #000, transparent);
  -webkit-mask-image: linear-gradient(135deg, #000, transparent);
}

.square {
  width: 30px;
  height: 30px;
  background-color: #76d105;
  border-radius: 5px;
}

/*
|--------------------------------------------------------------------------
| Main navigation links
|--------------------------------------------------------------------------
*/

nav#main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 0;
}

.link {
  display: inline-block;
  box-sizing: border-box;
  width: auto;
  height: auto;
  padding: 1px 5px;
  border: 2px solid #cee64a;
  border-radius: 7px;
  background-color: #fbffad;
  color: #000;
  font-family: "Genos", sans-serif;
  font-size: 15pt;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.link:hover,
.link.active {
  background-color: #fefe54;
}

.link:hover {
  transform: translateY(-3px);
}

a.link:link,
a.link:visited,
a.link:hover,
a.link:active {
  color: #000;
  text-decoration: none;
}

.link:hover {
  border-color: #fefe54;
  background-color: #cee64a;
}

/*
|--------------------------------------------------------------------------
| General page content
|--------------------------------------------------------------------------
*/

h1 {
  margin-block-start: 0;
  margin-block-end: 0;
  color: #76d105;
  font-family: "Genos", sans-serif;
  font-size: 40pt;
  line-height: 0.8em;
  text-align: center;
}

h2 {
  box-sizing: border-box;
  width: 300px;
  max-width: 100%;
  padding: 3px 3px 3px 9px;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  background-color: #76d105;
  color: #f9ffdb;
  font-family: "Genos", sans-serif;
  font-size: 1.5em;
}

pre {
  box-sizing: border-box;
  width: 600px;
  max-width: 100%;
  overflow: auto;
  padding: 10px;
  border: 1px dashed #a300ff;
  border-radius: 10px;
  background-color: #ffebfe;
}

figure {
  text-align: center;
}

.big-image {
  max-width: 40%;
}

.content {
  box-sizing: border-box;
  width: 100%;
  max-width: 800px;
  padding-right: 30px;
  padding-left: 30px;
  line-height: 1.4em;
}


.content a {
  border-bottom: 1px solid #c224e3;
  color: #c224e3;
  text-decoration: none;
}

.content a:hover {
  color: #e876ff;
  border-bottom: 1px solid #e876ff;
}

ul.intra-page {
  box-sizing: border-box;
  width: 300px;
  max-width: 100%;
  padding: 10px;
  border-radius: 10px;
  background-color: #bded81;
  list-style-type: none;
}

ul.intra-page li {
  padding-left: 10px;
}

.dropdown a {
  text-decoration: none;
}

.blog-posts {
  list-style-type: none;
}

.blog-posts li {
  display: flex;
  list-style-type: none;
}

.time-class {
  min-width: 150px;
  font-style: italic;
}

/*
|--------------------------------------------------------------------------
| Page layout
|--------------------------------------------------------------------------
*/

#side-menu {
  display: none;
}

.container {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 10px;
  margin-top: 20px;
}

/*
|--------------------------------------------------------------------------
| Dropdown navigation
|--------------------------------------------------------------------------
*/

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dropdown-content {
  position: absolute;
  z-index: 10;
  display: none;
  min-width: 153px;
  padding-top: 5px;
  background-color: #fff;
}

.dropdown-content a {
  display: block;
  padding: 8px;
  border-top: 1px solid #fff;
  border-radius: 10px;
  background-color: #d4ed6d;
  color: #000;
  font-family: "Genos", sans-serif;
  font-size: 13pt;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #ceff04;
}

/*
|--------------------------------------------------------------------------
| Medium screens
|--------------------------------------------------------------------------
*/

@media (max-width: 800px) {
  .banner nav#main {
    flex-basis: 100%;
    margin-top: 4px;
  }

  .content {
    padding-right: 20px;
    padding-left: 20px;
  }
}

/*
|--------------------------------------------------------------------------
| Small screens
|--------------------------------------------------------------------------
*/

@media (max-width: 520px) {
  header {
    padding-right: 6px;
    padding-left: 6px;
  }

  .banner {
    align-items: center;
    gap: 8px;
  }

  .text {
    font-size: 38pt;
  }

  .square-container {
    left: -38px;
    grid-template-columns: repeat(7, 26px);
    grid-template-rows: repeat(2, 26px);
    gap: 8px;
  }

  .square {
    width: 26px;
    height: 26px;
  }

  nav#main {
    gap: 7px;
  }

  .link {
    padding: 1px 4px;
    font-size: 14pt;
  }

  .container {
    padding: 0;
    margin-top: 28px;
  }

  .content {
    padding-right: 30px;
    padding-left: 30px;
  }

  h1 {
    font-size: 36pt;
  }

  h2 {
    width: 300px;
    font-size: 1.35em;
  }

  .big-image {
    max-width: 100%;
  }
}