.bg {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  z-index: -1;
  overflow: hidden;
  background: #fafafa;
}

.main {
  line-height: 1.8;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 95vh;
  width: 100%;
  text-align: center;
}

.card {
  width: 280px;
  height: 215px;
  padding: 15px 25px 15px 25px;
  color: #541e1e;
  display: inline-block;
  background-color: #f0f0f0;
  border-radius: 20px;
  box-shadow: 16px 16px 20px #b0b0b0,
    -16px -16px 20px #ffffff;
  outline: none;
  overflow-y: auto;

  font-family: "Domine", Serif;
  line-height: 24px;
  transition: transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.card:hover,
.card:focus-visible {
  box-shadow:
    inset 6px -6px 10px #b0b0b0,
    inset -6px -6px 10px #ffffff;
  background-color: #f0f0f0;
}

footer {
  font-family: "Domine", serif;
  color: #541e1e;
  line-height: 1;
  font-size: 0.7em;
  position: fixed;
  bottom: 0;
  height: 30px;
  width: 100%;
  text-align: center;
  padding: 10px 0;
}

.container input {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.input-container {
  width: 23px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  font-size: 20px;
  user-select: none;
  border: 2px solid #541e1e80;
  border-radius: 8px;
  overflow: hidden;
  margin: 7.5px 0;
  margin-bottom: 2px;
}

.checked {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  background-color: #f6f6f6;
  border-bottom: 1.5px solid #b0b0b0;
  box-shadow: 0 0 1px #b0b0b0, inset 0 -2.5px 3px #f0f0f0,
    inset 0 3px 3px rgba(0, 0, 0, 0.34);
  border-radius: 7px;
  transition: transform 0.3s ease-in-out;
}

.card .input-container,
.card .checked {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  cursor: pointer;
}

.checklist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}

.checklist-text {
  flex: 1;
  min-width: 0;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Domine", serif;
  font-size: 14px;
  color: #541e1e;
  line-height: 14px;
  padding-top: 2px;
  padding-bottom: 4px;
  background-image:
    repeating-linear-gradient(to bottom,
      transparent 0,
      transparent 22px,
      rgba(176, 176, 176, 0.8) 22px,
      rgba(176, 176, 176, 0.8) 23px);
  background-repeat: repeat;
  background-position: 0 20px;
  background-size: 100% 23px;
}

.checklist-text:empty:before {
  content: attr(data-placeholder);
  color: #8a6d6d;
}


.container input:checked~.checked {
  transform: translateY(0);
  animation: Pop-Up 0.3s ease-in-out forwards;
}

.container input:not(:checked)~.checked {
  transform: translateY(100%);
  animation: Drop 0.3s ease-in-out forwards;
}

@keyframes Pop-Up {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes Drop {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(100%);
  }
}

.checked:after {
  content: "";
  position: absolute;
  display: none;
}

.container input:checked~.checked:after {
  display: block;
}

.container .checked:before {
  content: "";
  position: absolute;
  left: 10px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid #541e1e;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  display: none;
}

.container input:checked~.checked:before {
  display: block;
}

.botao-flutuante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.botao-flutuante .lista {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 0;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

.botao-flutuante .lista.aberto {
  display: flex;
}

.icon {
  color: #541e1e;
}

.item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  background-color: rgba(242, 242, 242, 0.95);
  box-shadow: -8px -8px 15px white, 8px 8px 15px rgba(163, 177, 198, .35);
  padding: 12px 15px;
  border-radius: 5px;
}

a {
  text-decoration: none;
  color: #541e1e;
  font-family: "Domine", serif;
}

.botao {
  display: flex;
}

button {
  border: none;
  cursor: pointer;
  border-radius: 30px;
  background: #f2f2f2;
  box-shadow: -8px -8px 15px white, 8px 8px 15px rgba(163, 177, 198, .35);
  transition: filter 0.8s ease, transform 0.2s ease;
  position: relative;
  padding: 5px;
}

button .icon {
  padding: 3px;
  display: flex;
  align-items: center;
}

#butao:active {
  box-shadow: inset -5px -5px 10px white, inset 5px 5px 10px rgba(163, 177, 198, .35);
}