* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  font-family: "Andika New Basic", sans-serif;
}
body {
  background: #eee;
  background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
  padding: 0 16px;
  overflow-x: hidden;
}

header {
  background-color: #f5ba13;
  margin: auto -16px;
  padding: 16px 32px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
  text-align: center;
}

header h1 {
  color: #fff;
  font-family: "McLaren", cursive;
  font-weight: 200;
  text-transform: uppercase;
}
header a {
  text-decoration: none;
}

header h1:hover {
  transform: skew(3deg, 5deg);
}

footer {
  position: fixed;
  text-align: center;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2.5rem;
  margin: 0;
}

footer p {
  color: #ccc;
}

/* HOME */
.home-box {
  text-align: center;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.home-header {
  margin-bottom: 2rem;
  white-space: nowrap;
  text-transform: uppercase;
  width: 100vw;
  display: block;
}

.home-header-1 {
  display: block;
  animation: moveInLeft 1s ease-out;
}

.home-header-2 {
  display: block;
  animation: moveInLeft 1.5s ease-in-out;
}

@keyframes moveInLeft {
  0% {
    opacity: 0;
    transform: translateX(-10rem);
  }
  80% {
    transform: translateX(1rem);
  }
  100% {
    opacity: 1;
    transform: translate(0);
  }
}

.button-box {
  text-align: center;
}

.btn {
  display: block;
  text-decoration: none;
  text-transform: uppercase;
  background-color: #0f0f0f;
  width: 10rem;
  margin: 1rem auto;
  padding: 8px;
  border-radius: 10rem;
  color: #eee;
  transition: all 0.2s;
  animation: moveUp 1s ease-out 1s backwards;
}

@keyframes moveUp {
  0% {
    transform: translateY(3rem);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
  }
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0rem 0.5rem 1rem rgba(0, 0, 0, 0.342);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0rem 0.25rem 0.5rem rgba(0, 0, 0, 0.342);
}

.note {
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 2px 5px #ccc;
  padding: 10px;
  width: 240px;
  margin: 16px;
  float: left;
}
.note h1 {
  font-size: 1.1em;
  margin-bottom: 6px;
}
.note p {
  font-size: 1.1em;
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.note button {
  position: relative;
  float: right;
  margin-right: 10px;
  color: #f5ba13;
  border: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  outline: none;
}

form.create-note {
  position: relative;
  width: 480px;
  margin: 30px auto 20px auto;
  background: #fff;
  padding: 15px;
  border-radius: 7px;
  box-shadow: 0 1px 5px rgb(138, 137, 137);
}
form.create-note input,
form.create-note textarea {
  width: 100%;
  border: none;
  padding: 4px;
  outline: none;
  font-size: 1.2em;
  font-family: inherit;
  resize: none;
}
form.create-note button {
  position: absolute;
  right: 18px;
  bottom: -18px;
  background: #f5ba13;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  outline: none;
}

/* BOOKLIST */
.reading-page {
  height: 100%;
}
.reading {
  background: #f5ba13;
  color: #fff;
  margin: 3rem auto;
  max-width: 40rem;
  width: 75%;
  border-radius: 10px;
  padding: 1rem;
  padding-bottom: 0;
  text-transform: uppercase;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.459);
}
.navbar {
  padding: 10px 20px;
  text-align: center;
}
.navbar h1 {
  margin: 10px 0;
}

.book-list {
  margin: 20px;
}
.book-list ul {
  padding: 0;
  list-style-type: none;
}
.book-list li {
  background: #fff;
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  margin: 10px 0;
}
.book-list li:hover {
  opacity: 0.7;
  text-decoration: line-through;
}
.book-list .title {
  font-weight: bold;
  color: #000;
  font-size: 1.2em;
}
.book-list .author {
  font-size: 0.9em;
  color: #000;
}
.empty {
  margin: 20px;
  text-align: center;
}

form {
  padding: 20px;
}
input[type="text"] {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  margin: 6px 0;
  background: #fff;
  color: #000;
  border: 0;
  border-radius: 4px;
}
input[type="submit"] {
  margin: 1.5rem auto 0;
  background: #000;
  color: #ccc;
  border: 0;
  padding: 0.5rem 2rem;
  display: block;
  border-radius: 4px;
  text-transform: uppercase;
  font-family: "Andika New Basic", sans-serif;
  transition: all 0.2s;
}

input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5);
}

input[type="submit"]:active {
  border: 0;
  transform: translateY(-1px);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
}
