*,
:before,
:after {
  box-sizing: border-box;
}

body {
  font-family: Roboto, sans-serif;
  background: #333;
}

.nav {
  list-style: none;
  border-radius: 5px;
  background-color: #2ce0b9;
  padding: 10px;
  box-shadow: 0 5px #1b8a72;
  z-index: 10;
  cursor: pointer;
  position: fixed;
  top: 20px;
  left: 20px;
}
.nav:hover > .menu {
  display: block;
}
.nav svg {
  width: 24px;
  height: 24px;
}
.nav .menu {
  display: none;
  list-style: none;
  padding: 0;
  z-index: 11;
}
.nav .menu li {
  text-align: center;
  border-radius: 5px;
}
.nav .menu li:hover {
  background-color: #23ad8f;
  transition: background-color 0.2s;
}
.nav .menu li a {
  text-decoration: none;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  color: #10493d;
  font-weight: bold;
  padding: 10px;
  display: block;
}
.nav .menu-visible {
  display: block;
}

.contacts {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  z-index: 99;
}
.contacts a {
  max-width: 50px;
  max-height: 50px;
  margin-left: 0.5rem;
  transition: transform 0.2s;
}
.contacts a:first-child {
  margin-left: 0;
}
.contacts a img {
  width: 50px;
  height: 50px;
}
.contacts a:hover {
  transform: scale(1.2);
}

main {
  width: 100%;
  padding: 0 20px;
  color: #fff;
  position: relative;
  top: 5rem;
  font-family: "Sulphur Point", sans-serif;
  letter-spacing: 0.3px;
}
main article {
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background-color: rgba(155, 155, 155, 0.8);
  max-width: 1000px;
  margin: 0 auto 2rem;
}
@media screen and (max-width: 950px) {
  main article {
    max-width: 100%;
  }
}
main article a {
  color: inherit;
}
main article a:hover {
  color: #2ce0b9;
}
main article header {
  box-shadow: 0 2px 12px -5px rgba(0, 0, 0, 0.5);
  font-size: 1.3rem;
  transition: background-color 0.1s;
  border-radius: 5px;
}
main article header:hover {
  background-color: rgba(100, 100, 100, 0.8);
}
main article header a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px 20px;
}
main article .article-body {
  padding: 20px;
  display: flex;
}
main article .article-body picture {
  flex: 1 1 50%;
  margin-right: 1rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 200px;
  max-width: 100%;
  height: auto;
}
main article .article-body span {
  flex: 1 1 60%;
}
main article .article-body span h1 {
  font-size: 1.2rem;
}
main article .article-body span p {
  font-size: 1rem;
  margin-top: 1rem;
}

.page-header {
  text-align: center;
  margin: 2rem 0;
  color: #fff;
}

.color-description {
  margin: auto;
  display: flex;
  justify-content: center;
}
.color-description div {
  width: auto;
  height: auto;
  border-radius: 3px;
  padding: 2px 5px;
  text-align: center;
  margin: 0 3px;
}
.color-description .red {
  background-color: #ff5956;
  box-shadow: 0 5px #913231;
  cursor: pointer;
  position: relative;
}
.color-description .green {
  background-color: #48b847;
  box-shadow: 0 5px #31792f;
  cursor: pointer;
  position: relative;
}
.color-description .pressed-color-button {
  box-shadow: none;
  top: 5px;
}

.table {
  width: 100%;
  display: grid;
  grid-template-rows: 3rem;
  grid-template-columns: 30% auto;
  align-items: stretch;
  padding: 1rem 1rem 0.5rem 1rem;
  box-sizing: border-box;
}
.table .table-header {
  grid-column: 1/3;
  text-align: center;
  font-size: 23px;
  color: #fff;
}
.table div {
  border-radius: 5px;
  padding: 5px 10px;
  margin: 5px;
  transition: box-shadow 0.3s;
  background-color: #2ce0b9;
}
.table div:nth-of-type(odd) {
  word-break: break-all;
}
.table div:nth-of-type(4n + 3) {
  background: #23ad8f;
}
.table div:nth-of-type(4n + 4) {
  background: #23ad8f;
}
.table div .optional {
  color: #1e701d;
}
.table div .required {
  color: #e0130f;
}

@media all and (max-width: 900px) {
  :root {
    font-size: 20px;
  }

  main article .article-body {
    flex-direction: column;
  }
  main article .article-body picture {
    margin: 0;
    min-height: 250px;
  }
  main article .article-body span {
    margin-top: 1rem;
  }
}
@media all and (max-width: 600px) {
  :root {
    font-size: 15px;
  }
}
@media all and (max-width: 500px) {
  .page-header {
    margin-top: 5rem;
    font-size: 1.75rem;
  }
}