/* 
 @author Dudi Iskandar
 CSS FE Web Pemula | Dicoding Submission
 */
@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/Poppins-Regular.ttf");
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: Poppins;
  margin: 20px 0;
}

.boxed {
  width: 70%;
  margin: 0 auto;
}

.flex-container {
  display: flex;
}

.flex-item {
  flex: 1;
}

.flex-space-between {
  justify-content: space-between;
}

header > div {
  background: rgba(32, 152, 202, 0.3);
  padding: 10px 30px;
  border-radius: 16px;
}

header img {
  width: 40px;
  margin-top: 2px;
  margin-right: 15px;
}

.brand {
  font-weight: bold;
  margin: auto 0;
}

.text-right {
  text-align: right;
}

.m-auto {
  margin: auto;
}

.mt-1 {
  margin-top: 1rem;
}

.mr-1 {
  margin-right: 1rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mr-0 {
  margin-right: 0;
}

.ml-0 {
  margin-left: 0;
}

.btn {
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 8px;
  padding: 10px 15px;
  background-color: #31a6d7;
}

.btn img {
  width: 15px;
}

.btn:hover {
  background-color: #2e8ab4;
}

.input-text {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 15px;
  width: 100%;
}

.toolbar-group {
  display: flex;
  justify-content: space-between;
}

#book-list {
  margin-top: 20px;
}

#book-list div h4 {
  font-weight: normal;
  font-size: 15px;
}

#book-list div h4 img {
  width: 25px;
  margin-top: -6px;
}

#book-list div h4 span {
  position: absolute;
  margin-top: -4px;
  margin-left: 10px;
}

.card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 20px;
}

.card-404 span {
  font-size: 14px;
  position: absolute;
  margin: 6px 0 0 12px;
}

.hide {
  display: none;
}

.btn-delete {
  background-color: #e74c3c;
}

.btn-delete:hover {
  background-color: #c0392b;
}

.btn-edit {
  background-color: transparent;
  border: 1px solid #f1c40f;
  color: #f1c40f;
}

.btn-edit:hover {
  background-color: #f1c40f;
  color: white;
}

.btn-move {
  float: right;
}

#form-wrapper {
  margin-top: 10px;
}

#form-book {
  background: #ededed9e;
  padding: 20px;
  font-size: 15px;
  border-radius: 10px;
}

#form-book h4 {
  font-weight: bold;
  font-size: 15.5px;
}

#form-book input {
  width: 97%;
}

#form-book .form-group label {
  font-size: 14px;
}

#form-book input.custom {
  width: 30px;
}

.form-group {
  margin-top: 10px;
}

@media screen and (max-width: 800px) {
  #book-list.flex-container{
    flex-direction: column;
  }

  .boxed {
    width: 90%;
  }
}