* {
    margin: 0;
    font-family: "Roboto";
}

#nav {
    width: 100vw;
    height: 80px;
    background-color: white;
    filter: drop-shadow(8px 8px 8px rgba(0, 0, 0, 0.134));
}


#navInner, #booksContainer {
    width: 80%;
    margin: 0 auto;
    display: flex;
}

#navInner {
    align-items: center;
    width: 80%;
    height: 100%;
    margin: 0 auto;
    display: flex;
}

#navInner h1 {
    color: black;
}

#navInner button {
    background-color: lightgray;
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    margin-left: auto;
}

#booksContainer {
    margin-top: 128px;
    margin-bottom: 128px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-auto-rows: 400px;
    gap: 32px;
}

.book {
    width: 100%;
    height: 100%;
    margin: 0;
    display: grid;
    grid-column: span 1;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.134);
    border-radius: 16px;
    text-align: center;
    font-size: 16px;
}

.book a {
    height: 70%;
    margin-left: auto;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.unread {
    color: white;
    background-color: red;
    border-radius: 16px;
    border: none;
    justify-self: center;   /* or center / end */
    align-self: center;    /* vertical control */
    padding: 24px 64px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.134);
    font-size: 16px;
} 

.read {
    color: white;
    background-color: green;
    border-radius: 16px;
    border: none;
    justify-self: center;   /* or center / end */
    align-self: center;    /* vertical control */
    padding: 24px 64px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.134); 
    font-size: 16px;
}


#formContainer {
    width: 400px;
    height: 500px;
    background-color: rgb(228, 228, 228);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    
    display: none;
}

#formContainer.active {
    display: flex;
}


#formContainer > * {
    padding: 16px;
    font-size: 32px;
}

#formContainer input {
    width: auto;
    height: 32px;
}

.field {
    padding-top: 32px;
}

label {
    padding-right: 8px;
}

input[type="checkbox"] {
  accent-color: #2563eb;
  transform: scale(2);
}


@media (max-width: 1100px) {
  #booksContainer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  #booksContainer {
    grid-template-columns: 1fr;
  }
}

