@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto';
}

.header {
    margin-top: 0;
    background-color: #ffffff;
    height: 70px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    z-index: 150;
    position: relative;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 5vw;
    padding-right: 5vw;
}

.header h1 {
    font-size: 3vw;
    margin-top: 0;
    margin-bottom: 25px;
}

#new-book-btn {
    height: 40px;
    width: 12vw;
    max-width: 180px;
    margin-bottom: 25px;
    background-color: #3882F6;
    color: white;
    font-size: 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#new-book-btn:hover {
    background-color: #5996f7;
}

.main {
    min-height: 80vh;
    background-color: #f0eef1;
    padding: 20px;
}

.new-book-btn {
    width: auto;
    padding: 10px 20px;
    font-size: 1.2rem;
}

#new-book-form {
    position: fixed;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    background-color: #ffffff;
    padding: 20px;
    width: 90%;
    max-width: 270px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 200;
}

#new-book-form h2 {
    margin-left: 55px;
    margin-bottom: 20px;
}
  
#new-book-form div {
    display: flex;
    flex-direction: column;
    text-align: left;
}
  
#new-book-form label {
    font-weight: 600;
    margin-bottom: 5px;
}
  
#new-book-form input[type="text"],
#new-book-form input[type="number"] {
    margin-bottom: 20px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #cccccc;
    border-radius: 8px;
}
  
#new-book-form input[type="checkbox"] {
    margin-bottom: 20px;
    margin-left: 10px;
}
  
#new-book-form input[type="submit"] {
    font-size: 17px;
    width: 100%;
    height: 40px;
    color: white;
    background-color: #3882F6;
    padding: 10px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
  
#new-book-form input[type="submit"]:hover {
    background-color: #5996f7;
}

#bookshelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}
  
.book-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    gap: 20px;
    padding: 20px;
    margin-left: 25px;
    margin-right: 25px;
    border-radius: 8px;
    background-color: #fffbfb;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.16);
    line-height: 1.2;
}

.read-status, .remove-btn {
    display: inline-block;
    text-align: center;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: bold;
    color: #ffffff;
}
  
.read-yes {
    background-color: #6bff66;
}
  
.read-no {
    background-color: #ff6666;
}

.read-yes, .read-no, .remove-btn {
    cursor: pointer;
    width: 90%;
    height: 40px;
    font-size: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
}