@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap");

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #344CB7;
}

.container {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-bottom: 60px;
    justify-content: center;
}

.card {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    width: 80%;
}

.headBar {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pictureLeft {
    max-width: 60%;
}

.pictureLeft > img {
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.addBook {
    min-width: 38%;
    display: flex;
    flex-direction: column;
    padding: 10px 35px 10px 35px;
    border-radius: 10px;
    margin-left: 10px;
    background-color: #344CB7;
}

.addBook > .pictureRight > img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
    display: none;
}

.addBook > h2 {
    text-align: center;
    color: white;
}

.addBook > form > button {
    background-color: #FF7F3E;
    color: white;
    border: 0;
    border-radius: 5px;
    display: block;
    width: 100%;
    padding: 8px;
    cursor: pointer;
}

.addBook > form > button > span {
    font-weight: bold;
}

.addBook > form > .input > label {
    color: white;
}

.addBook > form > .input > input {
    width: 100%;
    font-size: 14px;
    padding: 5px;
    font-family: "Poppins";
    border-radius: 4px;
    border: 1px solid #ccc;
    border-bottom-width: 2px;
    outline: none;
}

::placeholder {
    padding-left: 3px;
    font-size: 12px;
}

.actionButton {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: end;
}

#delete,
#checklist {
    margin: 5px;
    font-size: 17px;
    border-radius: 50%;
    padding: 7px;
    background: #f1f3fb;
    border-color: transparent;
}

#checklist:hover {
    background: #f4d03f;
    color: white;
}

.search #checklist:hover {
    background: #5dade2;
    color: white;
}

.completBookList #checklist:hover {
    background: rgb(66, 163, 66);
    color: white;
}

#delete:hover {
    background: #e74c3c;
    color: white;
}

.addBook > form > .input > select {
    width: 100%;
    padding: 5px;
    font-size: 13px;
    font-family: "Poppins";
    border-radius: 4px;
    border: 1px solid #ccc;
    border-bottom-width: 2px;
    outline: none;
}

button {
    font-family: "Poppins";
}

.addBook > form > .input > label {
    font-size: 16px;
    font-weight: bold;
    color: white;
    pointer-events: none;
    transition: 0.5s;
}

.addBook > form > .input > input:focus,
.addBook > form > .input > input:valid {
    border-color: #5dade2;
    padding-left: 10px;
}

.addBook > form > .input > select:focus,
.addBook > form > .input >select:valid {
    border-color: #5dade2;
}

.addBook > form > .inputInline {
    margin: 12px 0;
    display: flex;
    align-items: center;
}

.addBook > form > .inputInline > label {
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

.status {
    white-space: nowrap;
    width: 100%;
    font-size: 12px;
    padding: 3px 5px 3px 5px;
    border-radius: 5px;
    color: #ffffff;
}

.complete {
    background-color: #344CB7;
}

.incomplete {
    background-color: #f4d03f;
}

.bookShelfCard {
    float: left;
    padding-left: 20px;
    border-radius: 10px;
    background-color: #FF7F3E;
    width: 50%;
}

.bookCard {
    display: flex;
    flex-direction: column;
    width: 96%;
}

.bookCover img {
    object-fit: cover;
}

.incompleteBookList {
    width: 48.5%;
    margin-right: 5px;
}

.completeBookList {
    width: 48.5%;
    margin-left: 5px;
}

.book {
    display: flex;
    width: 100%;
    background-color: #fff;
    margin-bottom: 15px;
    margin-right: 8px;
    padding: 7px;
    border-radius: 10px;
}

.bookDetail {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
    margin-top: -12px;
}

.bookGenre,
.bookAuthor,
.bookTitle,
.year {
    max-width: 110px;
    text-overflow: hidden;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
}

.bookTitle {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bolder;
}

.bookAuthor { 
    color: #3b3b3b;
    font-size: 13px;
    font-weight: lighter;
}

.bookGenre {
    font-size: 13px;
    font-weight: 500;
}

.year {
    font-size: 14px;
    font-weight: 500;
}

.bookShelfCard .bookCard img {
    width: 60px;
    height: 90px;
    border-radius: 7px;
    align-items: center;
}

.search .bookCard img {
    width: 60px;
    height: 90px;
    border-radius: 7px;
    align-items: center;
}

.search .bookCard {
    width: 100%;
    padding: 5px;
    margin-top: -5px;
    margin-bottom: -5px;
}

.search .bookCard .book {
    margin-bottom: 10px;
}

p {
    font-size: 13px;
    padding-left: 7px;
}

.shadow {
    box-shadow: 0 5px 10px rgba(154, 160, 185, 0.05),
    0 15px 40px rgba(166, 173, 201, 0.2);
}

.searchCard {
    width: 30%;
}

.bookShelf {
    width: 70%;
}

.search {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    background-color: #FF7F3E;
    margin-right: 10px;
    padding: 15px 7px 15px 7px;
}

.bookStatus {
    display: table;
    clear: both;
    width: 100%;
}

.searchBox {
    width: 100%;
    display: flex;
    background: #ffffff;
    height: 40px;
    border-radius: 40px;
    padding: 7px;
    align-items: center;
}

#searchSubmit {
    float: right;
    border: 1px solid black;
    background-color: #f1f3fb;
    background: #f1f3fb;
    border-radius: 50%;
    padding: 7px;
    cursor: pointer;
}

#searchSubmit i {
    font-size: 17px;
    color: #2f3640;
}

.searchBookTitle {
    width: 100%;
    padding-left: 8px;
    border: none;
    background: none;
    outline: none;
    float: left;
    color: #2f3640;
    font-size: 14;
    transition: 0.4s;
    font-family: "Poppins";
}

.popupBox {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 10px;
}

.background {
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: rgb(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

button {
    border: 0;
}

.popupBox {
  width: 450px;
  background: #f2f2f2;
  text-align: center;
  align-items: center;
  padding: 40px;
  border: 1px solid #b3b3b3;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.97);
  transition: all 0.3s ease;
}

#check:checked ~ .popupBox {
    opacity: 1;
    pointer-events: auto;
    transform: (-50%, -50%) scale(1);
}

#check:checked ~ .background {
    opacity: 1;
    pointer-events: auto;
}

#check {
    display: none;
}

.popupBox i {
    font-size: 60px;
    color: #f23b26;
    border: 5px solid #f23b26;
    padding: 20px 40px;
    border-radius: 50%;
    margin: -10px 0 20px 0;
}

.popupBox h1 {
    font-size: 20px;
    color: #1b2631;
    margin-bottom: 5px;
}

.popupBox label {
    font-size: 15px;
    color: #404040;
}

.popupBox .btns {
    margin-top: 30px;
    padding: 5px;
}

.btns .btn1,
.btns .btn2 {
    background: #999999;
    border-color: #999999;
    color: white;
    font-size: 18px;
    border-radius: 5px;
    padding: 10px;
}

.btns .btn2 {
    border-color: #ff3333;
    background: #ff3333;
}

.btns .btn1 {
    margin-left: 20px;
}
  
.btns .btn1:hover {
    transition: 0.5s;
    background: #696969;
    border-color: #696969;
}
  
.btns .btn2:hover {
    transition: 0.5s;
    background: #ca0101;
    border-color: #ca0101;
}
  
.toast {
    display: inline;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
  
    padding: 5px;
    padding-left: 10px;
    text-align: center;
    border: 1px solid #aaaaaa;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  
    visibility: hidden;
    opacity: 0;
    transition: all 0.9s ease-in-out;
}

@media screen and (max-width: 1200px) {
    .card {
      width: 100%;
      padding: 0px 20px 5px 30px;
      align-items: center;
    }
  
    .second {
      align-items: flex-start;
    }
}

@media screen and (max-width: 1100px) {
    .pictureLeft > img {
      max-height: 500px;
    }
    .search .actionButton {
      flex-direction: column;
    }
}