* {
  border: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

html, body {
  margin: 0;
}

footer {
  display: flex;
  height: 90px;
  align-items: center;
  justify-content: center;
  color: #70948f;
}

section h2 {
  align-self: flex-start;
  margin-left: 12px;
}

section.box {
  width: 90%;
  max-width: 900px;
  min-height: 100px;
  background-color: antiquewhite;
  border-radius: 12px;
  padding: 4px 8px 12px;
  margin-bottom: 12px;

  display: flex;
  align-items: center;
  flex-direction: column;
}

section.box:nth-child(odd) {
  background-color: gainsboro;
}

section.box.ativo {
  background-color: lightblue;
}

form.col90 {
  display: flex;
  flex-direction: column;
  width: 90%;
}

input[type=text], input[type=number], select {
  padding: 8px;
  border-radius: 8px;
  margin: 8px 4px;
}

input[type=number] {
  width: 90px;
}

input#verificar {
  text-transform: lowercase;
}

h2 {
  font-size: 20px;
  color: rgb(63, 63, 63);
}

h2 span {
  color: blue;
}

button.btn {
  padding: 12px;
  color: antiquewhite;
  background-color: brown;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all .2s;
  margin: 8px 4px;
  max-width: 200px;
  cursor: pointer;
}

button:hover {
  transform: scale(1.05);
  background-color: rgb(136, 35, 35);
}

button:active {
  transform: translateY(4px);
}

.btn-up, .btn-down {
  font-size: 20px;
  font-weight: bold;
  width: 60px;
}

li.clicavel {
  cursor: pointer;
}

li.selected {
  background-color: coral;
  border-radius: 4px;
}

div.resultado {
  /* display: flex; */
  align-items: center;
  gap: 8px;
}

div.resultado span {
  font-weight: bold;
  color: darkslateblue;
}

@media screen and (max-width: 770px) {
  section.box form {
      display: flex;
      flex-direction: column;
  }
}

div.modal-overlay {
  position: fixed;
  visibility: hidden;
  z-index: 1;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0, 0.5);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

div.modal-overlay.visible {
  opacity: 1;
}

div.modal {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 500px;
  max-width: 90%;
  height: 300px;
  background-color: snow;
  border-radius: 8px;
  text-align: center;
}

button.fechar {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 20px;
  height: 20px;
  background-color: crimson;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

button.fechar:active {
  transform: translateY(2px);
}

.accordion {
  width: 100%;
}

.accordion h3 {
  background-color: rgb(95, 158, 160);
  cursor: pointer;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  padding: 8px;
  color: white;
  margin: 12px 12px 0;
}

.accordion h3:hover {
  background-color: rgba(95, 158, 160, 0.8);
}

.accordion-detail {
  margin: 0 12px;
  margin-bottom: 12px;
  padding: 18px;
  background-color: white;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  font-size: 14px;
}
body {
  padding-bottom: 500px;
}

.quadrado {
  width: 100px;
  height: 100px;
  background-color: blue;
}
.ativo {
  background-color: green;
}

.selecionado {
  background-color: #ccc;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.accordion-header {
  cursor: pointer;
  padding: 15px;
  background-color: #f1f1f1;
  border: 1px solid #ccc;
}

.accordion-content {
  display: none;
  padding: 15px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-top: none;
}

ul {
  list-style-type: circle;
}

ul.main-menu {
  width: 90%;
  max-width: 700px;
}

ul.main-menu a {
  text-decoration: none;
}

ul.main-menu li {
  color: darkblue;
  font-size: 24px;
  padding: 4px 0;
}

ul.main-menu li:hover {
  color: blue;
  font-weight: bold;
}

i.fas {
  font-size: 24px;
}

i.fas:hover {
  transform: scale(1.15);
}

.titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 900px;
}

.titulo h1 {
  font-size: 32px;
  color: rgb(104, 98, 211);
  width: 100%;
  text-align: center;
}
