@import './base.css';

a,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
li {
  color: var(--color-text);
  text-decoration: none;
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0px 0px 0px 12px;
}

#app {
  width: 100vw;
  margin: 0 auto;
  padding: 0.8rem;
  font-weight: normal;
  min-height: 100vh;
}

@media (hover: hover) {
  a:hover {
    background-color: rgb(from var(--color-accent) r g b / 50%);
  }
}

@media (min-width: 1024px) {
  body {
    display: flex;
    place-items: center;
  }

  #app {
    grid-template-columns: 1fr 1fr;
    padding: 0 2rem;
    width: 1024px;
  }
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 5px solid var(--color-accent);
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: spinner-anim 1s linear infinite;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%);
}

@keyframes spinner-anim {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
