* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #f5f5f5;
}

main {
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
}

header {
  width: 100%;
  height: 72px;
  display: flex;
  z-index: 50;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  opacity: 0.9;
  position: sticky;
  top: 0;

  h1 {
    flex: 80%;
  }

  .logo-container {
    padding: 10px;
    z-index: 0;
    width: 64px;
    height: 64px
  }

  .logo {
    width: 100%;
    height: 100%;
  }
}

.search-books-input {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  outline: none;

  &:focus {
    border: 1px solid #000;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  }
}

.btn-search {
  padding: 8px;
  border-radius: 4px;
  font-weight: 600;
  color: #fff;
  border: 1px solid #ccc;
  outline: none;
  cursor: pointer;
  background-color: #333;
  transition: all 0.2s ease-in-out;

  &:hover {
    background-color: #ccc;
    color: #333;
  }

}

.input-form-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  opacity: 0.9;
  padding: 32px 60px;

  h2 {
    margin-bottom: 16px;
  }
}

.input-form {
  width: 100%;
  max-width: fit-content;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;

  input {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    outline: none;

    &:focus {
      border: 1px solid #000;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    }
  }

  div.checkbox {
    margin-bottom: 8px;

    input {
      margin-bottom: 0px;
    }
  }

  button {
    padding: 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #fff;
    border: 1px solid #ccc;
    outline: none;
    cursor: pointer;
    background-color: #333;
    transition: all 0.2s ease-in-out;

    &:hover {
      background-color: #ccc;
      color: #333;
    }
  }
}

.book-card {
  height: 100%;
  width: 400px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  opacity: 0.9;
  padding: 32px;
  gap: 16px;
}

@media (max-width: 768px) {
  .book-card {
    width: 100%;
  }
}

.book-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 4px;
  border: #000 1px solid;
  border-radius: 8px;
  opacity: 0.9;
  padding: 12px;
}

.book-author {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.6;
}

.book-year {
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 8px;
}

.btn-green {
  padding: 8px;
  border-radius: 4px;
  font-weight: 600;
  color: #fff;
  border: 1px solid #003603;
  outline: none;
  cursor: pointer;
  background-color: #006b07;
  transition: all 0.2s ease-in-out;

  &:hover {
    background-color: #003603;
  }
}

.btn-red {
  padding: 8px;
  border-radius: 4px;
  font-weight: 600;
  color: #fff;
  border: 1px solid #ccc;
  outline: none;
  cursor: pointer;
  background-color: #a60000;
  transition: all 0.2s ease-in-out;

  &:hover {
    background-color: #610000;
  }
}

.btn-blue {
  padding: 8px;
  border-radius: 4px;
  font-weight: 600;
  color: #fff;
  border: 1px solid #ccc;
  outline: none;
  cursor: pointer;
  background-color: #0000a6;
  transition: all 0.2s ease-in-out;

  &:hover {
    background-color: #000061;
  }
}

footer {
  width: 100%;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);

  p {
    font-size: 12px;
    font-weight: 400;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}