* {
  padding: 0;
  margin: 0;
}
body {
  padding-left: 1rem;
  padding-right: 1rem;
}
header {
  margin-bottom: 1.2rem;
}
#sheet-name {
  margin: 10px 0;
}
#cards-container {
  min-height: 100vh;
}
.card {
  border: 2px solid var(--border);
  padding: 1rem;
  margin: 1rem 0;
  transition: 0.3s;
}
.card ul {
  display: flex;
}
.card li:nth-child(1) {
  border: 2px solid var(--border);
}
.card li:nth-child(2) {
  font-size: 1.2rem;
}
.card li:nth-child(2).cover {
  background-color: var(--text-main);
}
.card li {
  transition: 0.2s;
  cursor: pointer;
  list-style: none;
  padding: 7px;
  margin: 0.5rem;
}
.card button {
  margin-left: 5px;
}
#menu-toggler {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
}
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-size: 1.1rem;
}
#loading::before {
  content: "";
  position: relative;
  display: block;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 5px solid var(--border);
  border-top-color: var(--text-main);
  animation: spin 1s linear infinite;
  margin: 20px;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  padding: 1rem;
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#popup-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hidden {
  display: none !important;
}