:root {
  --blu: rgb(63, 145, 204);
}

a {
  color: var(--blu);
}

body {
  font-family: "Source Serif Pro", sans;
  margin: 32px;
  margin-bottom: 48px;
  background-color: var(--background-color);
}

#stopwatch {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

h1, h2, h3, h4, blockquote, #stopwatch {
  margin-bottom: 24px;
}

p {
  margin-bottom: 16px;
  line-height: 1.4;
}

ul {
  list-style-type: circle;
}

li {
  margin-bottom: 12px;
}

blockquote {
  border-left: 4px solid rgba(0, 0, 0, .15);
  padding-left: 14px;
  padding-right: 46px;
}

ul {
  margin-bottom: 32px;
}

code {
  background-color: rgba(0, 0, 0, .05);
  border: 0;
  padding: 2px;
  border-radius: 4px;
}

.listing {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.delete {
    display: none;
    padding: 4px;
    background-color: lightgray;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.listing:hover .delete {
    display: block;
}

.book {
    display: flex;
    flex-direction: column;
}

.highlight {
    background-color: papayawhip;
}

.title {
    font-size: 16px;
}

.time {
    font-size: 12px;
    color: var(--text-color-alt);
}

.author {
    color: var(--text-color-alt);
    font-size: 12px;
}

.year-and-books {
    position: relative;
    display: flex;
    gap: 12px;
    border-left: 1px solid lightgray;
}

.year {
    position: sticky;
    top: 20px;
    width: 10px;
    height: 100%;
    color: var(--text-color-alt);
    font-size: 12px;
    text-align: center;
}

.year .reposition {
    position: relative;
    left: -13px;
    width: 24px;
    padding-top: 2px;
    background: var(--background-color);
}

.bookshelf {
    margin-bottom: 24px;
}

.recommended {
    margin-left: 4px;
    font-size: 12px;
    color: var(--text-color-alt);
}

#tooltip {
    position: absolute;
    background: white;
    font-size: 9px;
    box-shadow: 2px 2px 2px rgb(0 0 0 / 30%);
    padding: 4px;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}

svg line {
    pointer-events: none;
}

button {
  whitespace: nowrap;
}

