/* CSS to style the awesome books */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

h1 {
  display: flex;
  justify-content: center;
}

a {
  text-decoration: none;
  color: black;
}

a.active {
  color: blue;
}

footer,
main {
  padding: 15px;
}

footer,
header {
  margin: 15px;
  height: 50px;
  border: 2px solid gray;
}

footer {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
}

header nav {
  display: flex;
  justify-content: space-between;
}

header nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  height: 100%;
}

header nav ul li {
  padding: 5px;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 2px solid gray;
}

header nav ul li:last-child {
  border-right: none;
}

.logo {
  padding: 15px;
}

.date {
  margin: 0 15px;
  display: flex;
  justify-content: flex-end;
}

#articles {
  max-height: 650px;
  overflow-y: auto;
  border: 2px solid gray;
}

article {
  padding: 10px;
  display: flex;
}

article span.separater {
  padding: 0 10px;
}

article button {
  padding: 5px 12px;
  margin-left: auto;
  font-weight: bold;
  background-color: #fff;
  border: 2px solid gray;
}

article:nth-child(odd) {
  background: #e3e3e3;
}

.add-book {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.add-book h2 {
  text-align: center;
  width: 100%;
}

#articleForm {
  max-width: 300px;
  width: 100%;
}

#articleForm input {
  width: 100%;
  height: 30px;
  border: 1px solid #949191;
  border-radius: 5px;
}

#articleForm button {
  margin-left: auto;
}

#articleForm div {
  margin-bottom: 15px;
}

#articleForm div:last-child {
  display: flex;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hidden {
  display: none;
}
