@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@100;200;500&family=Raleway:wght@100;500&display=swap');

/* Styling */
:root {
    /* CSS HEX */
    --powder-blue: #c0deddff;
    --dark-sky-blue: #7fbdd4ff;
    --persian-plum: #77191eff;
    --maximum-red: #cd2f24ff;
    --arylide-yellow: #ebd65eff;

    /* CSS HSL */
    --powder-blue: hsla(178, 31%, 81%, 1);
    --dark-sky-blue: hsla(196, 50%, 66%, 1);
    --persian-plum: hsla(357, 65%, 28%, 1);
    --maximum-red: hsla(4, 70%, 47%, 1);
    --arylide-yellow: hsla(51, 78%, 65%, 1);
}

* {
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
}

h1,
h2,
h3 {
    font-family: 'Montserrat Alternates', sans-serif;

}

h1 {
    color: white;
}

h2 {
    color: black;
}

.white {
    filter: invert(100%) sepia(0%) saturate(7487%) hue-rotate(327deg) brightness(106%) contrast(101%);
}


#addBook,
button {
    border-radius: 20px;
    padding: 10px;
    margin: 10px;
    background-color: var(--powder-blue);
    border: none;
    color: black;
    font-weight: 500;
    box-shadow: 3px 3px 6px hsla(0, 0%, 60%, 0.3);
}

.standard-width {
    width: 100px;
}

#addBook:hover,
button:hover {
    cursor: pointer;
}

.card {
    box-shadow: 3px 3px 6px #cacaca;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    color: #8f8f8f;
}

.plum {
    border-left: 10px solid var(--persian-plum);
}

/* form styling */
ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: auto;

}

input[type=text] {
    border-radius: 20px;
    padding: 10px;
    margin: 10px;
    border: none;
    background-color: hsl(225, 24%, 93%);
    width: 300px;
}

/* Structure */

.wrapper {
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background-color: hsl(225, 24%, 93%);
}

.container {
    display: grid;
    grid-template-rows: minmax(1fr, 250px) 100%;
    grid-template-areas:
        "header"
        "main"
}

.main,
.header {
    padding: 30px;
}

.header {
    grid-area: header;
    width: 100%;
    background-color: var(--dark-sky-blue);
    color: white;
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 5px #989898;
    z-index: 1;
}

.nav {
    display: flex;
    justify-self: end;
}


.header img {
    vertical-align: middle;
    margin-right: 20px;
}

.main {
    grid-area: main;
    background-color: hsl(225, 24%, 93%);

}

.footer {
    position: fixed;
    bottom: 0px;
    padding: 5px;
    text-align: center;
    color: white;
    background-color: var(--persian-plum);
    width: 100%;
    box-shadow: 0px 0px 5px #989898;
    z-index: 1;
}

.library {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

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

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

.cancel {
    background-color: var(--maximum-red);
}

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

/* Display options */

.book-info {
    display: none;
}

.pages-li {
    display: none;
}

.length-li {
    display: none;
}