* {
  box-sizing: border-box;
}

html {
  font-family: system-ui;
}

h1 {
  font-size: 2rem;
}

span {
  border: 1px solid black;
  padding: 4px;
}
span#green {
  background-color: yellowgreen;
}
span#gray {
  background-color: lightgrey;
}

header,
section {
  margin: 0 auto;
  width: 80vw;
  max-width: 1024px;
}

header {
  margin: 42px auto;
}
header h1 {
  margin-bottom: 12px;
}

section h2 {
  font-size: 1.5rem;
}
section.instructions {
  margin-bottom: 84px;
}
section.instructions h2 {
  margin-bottom: 12px;
}
section.instructions ul {
  list-style: square inside;
  line-height: 2.2;
}
section.icons {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid black;
  padding-bottom: 42px;
  margin-bottom: 42px;
}
section.icons ul {
  display: flex;
  flex-wrap: wrap;
  width: 80%;
  margin: 42px auto;
  gap: 42px;
  justify-content: space-evenly;
}
section.icons ul li {
  width: 100px;
  height: 100px;
  padding: 10px;
}
section.icons ul li[data-descr]::after {
  content: attr(data-descr);
  display: block;
  text-align: center;
  margin-top: 12px;
}
section.selections {
  display: flex;
  flex-direction: column;
  margin-bottom: 42px;
}
section.selections .selection-container {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  margin: 42px;
}
section.selections .selection-container .icon-selection {
  text-align: center;
  margin: 0 auto;
  width: clamp(200px, 30%, 300px);
}
section.selections .selection-container .icon-selection p {
  font-size: 2rem;
  margin: 0 auto 1em;
  border: 1px solid black;
  width: 50px;
  padding: 10px;
}
section.selections .selection-container .icon-selection label {
  line-height: 2;
}
section.selections .selection-container .icon-selection select {
  background-color: transparent;
  border: none;
  padding: 0 1em 0 0;
  margin: 0;
  min-width: 15ch;
  max-width: 30ch;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
  border: 1px solid black;
}
section.selections .calculate {
  display: flex;
  justify-content: space-between;
  margin: 24px auto;
  width: 250px;
}
section.selections .calculate button {
  border: none;
  background-color: transparent;
  font-family: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 44px;
  border: 1px solid black;
  box-shadow: 1px 2px 4px black;
  color: #000;
  cursor: pointer;
}
section.selections .calculate button#calculate {
  background-color: yellowgreen;
}
section.selections .calculate button#reset {
  background-color: lightgray;
}
section.calc-values {
  text-align: center;
  padding-bottom: 164px;
}
section.calc-values p {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  border: 1px solid black;
  margin: 42px auto;
  padding: 10px;
}

svg {
  width: 100%;
  height: 100%;
}