@import url("preach.css");

* {
  margin: 0;
  padding: 0;
}

body {
  max-width: 80ch;
  margin: auto;
  padding: 1em;
  font-family: sans-serif;
  line-height: 1.33;
  background: var(--preach--base);
  color: var(--preach--text);
}

.preach-toast {
  border-radius: 6px;
  box-shadow: 0;
  background: var(--preach--success-light);
  color: var(--preach--success);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header > nav > ul {
  margin: 0px;
  padding: 0px;
}

header > nav > ul > li {
  list-style-type: none;
  display: inline-block;
  margin: 8px;
}

header > nav > ul > li > a {
  display: inline-block;
  text-decoration: none;
  color: var(--preach--subtle);
}

header > nav > ul > li > a:hover {
  color: var(--preach--text);
}

button {
  background: var(--preach--neutral-light);
  border: 0px;
  color: var(--preach--neutral);
  line-height: 32px;
  display: inline-block;
  padding: 3px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  border: 1px solid var(--preach--overlay);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

button:hover {
  cursor: pointer;
}

button:active {
  box-shadow: unset;
}

.card {
  position: relative;
  height: 150px;
  width: calc(100% / 3.2);
  border-radius: 6px;
  border: 1px solid var(--overlay);
  transition: all 0.2s ease-in-out;
}

.card:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.card::before {
  position: absolute;
  /* content: attr("color"); */
  content: attr(data-color);
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

#palette {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
