:root {
  --color-main-bg: #352F44;
  --color-main: #FAF0E6;
  --color-aside-bg: #5C5470;
  --color-aside-lighter: #B9B4C7;
}

body {
  background-color: var(--color-main-bg);
  color: var(--color-main);

  font-family: 'Inter', sans-serif;
  font-size: 1.125em;
  line-height: 1.5;
  letter-spacing: 0em;
  font-weight: 300;

  margin: 0;
}

a {
  color: inherit;
}

body > header, body > footer {
  display: flex;
  align-items: center;
  background-color: var(--color-aside-bg);
  padding: 12px 20px;
  flex-wrap: wrap;
  row-gap: 12px;
}

body > footer {
  margin-top: 80px;
  padding: 30px 50px;
  justify-content: center;
}

body > header nav > * {
  margin-right: 20px;
}

main {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

input { font-size: 1em; }

.frontpage {
  max-width: 800px;
  margin: 0 auto;
}

.song {
  text-align: center;
  margin: 0 auto;
}

.song h1 {
  margin-bottom: 0;
  font-weight: 700;
  font-size: 1.6em;
}

.song h2 {
  margin-top: 0;
  font-size: 0.9em;
  font-style: italic;
  font-weight: 500;
  margin: 0 auto;
}

.song p {
  white-space: pre-line;
  margin-bottom: 1.5em;
}


.songdir {
  text-align: center;
}

table.songs {
  max-width: 800px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin: 0 auto;
  text-align: left;
}

table.songs th {
  font-weight: 400;
}

table.songs td, table.songs th {
  padding: 8px 12px;
}

table.songs tbody tr {
  background-color: var(--color-aside-bg);
  transition: 0.3s;
}

table.songs tbody tr:hover {
  background-color: var(--color-aside-lighter);
  color: var(--color-main-bg);
}

table.songs a {
  display: block;
  text-decoration: none;
}

#song-search {
  padding: 4px 6px;
  margin-left: auto;
}

.search-result {
  display: block;
  position: absolute;
  right: 20px;
  top: 77px;

  padding-left: 0;
  list-style: none; 
  background-color: var(--color-aside-lighter);
  color: var(--color-main-bg);
}

.search-result > * {
  padding: 6px 8px;
  text-decoration: none;
  display: block;
}

.search-result > *:hover {
  text-decoration: none;
  color: white;
}

