@font-face {
    font-family: Oxanium;
    src: url(./assets/Oxanium-VariableFont_wght.ttf);
}
@font-face {
    font-family: "SF Pro";
    src: url(./assets/SF-Pro.ttf);
}
@font-face {
    font-family: PlayFair;
    src: url(./assets/PlayfairDisplay-VariableFont_wght.ttf);
}
:root {
    --header-font: Oxanium, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --body-font: "SF Pro", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
html {height: 100%}
body {
    height: 100%;
    font-family: var(--body-font);
}
div.hero {
    display: flex;
    flex-direction: column;
    color: white;
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(./assets/bg2.jpeg);
    background-repeat: no-repeat;
    background-size:cover;
    background-position: center;
    position: relative;

    & h1.hero {
        margin-top: 120px;
        font-size: 4rem;
        width: 10ch;
        text-align: center;
        align-self: center;
    }

    & p {
        margin-top: 10px;
        font-family: PlayFair;
        font-size: 1.3rem;
        align-self: center;
    }
    
    & header {
        display: flex;
        justify-content: space-between;
        font-family: var(--header-font);
        background-color: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 5px 30px;

        & h1.header {
            margin-left: 20px;
        }
        
        & a {
            font-family: var(--body-font);
            text-decoration: none;
            font-family: var(--body-font);
            font-weight: 600;
            align-self: center;
            margin-right: 30px;
            padding: 5px 15px;
            border-radius: 10px;
            background-color: white;
            color: black;
        }
        & a:hover {
            background-color: black;
            color: white;
            border: 1px solid white;
            cursor: pointer;
        }
    }
}
div.content {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;

    & h2 {
        grid-column: 1/3;
        /* font-size: 1.7rem; */
    }

    & button.add-book {
        grid-columns: 3/4;
        justify-self: end;
        font-size: 1.2rem;
        padding: 5px 10px;
        background-color: black;
        color: white;
        font-weight: 600;
        border: 1px solid white;
        border-radius: 7px;
    }
    & button.add-book:hover {
        background-color: white;
        border: 1px solid black;
        color: black;
        cursor: pointer;
    }

    & .empty-library {
        grid-column: 1 / -1;
        justify-self: center;
    }

    & img {
        width: 180px;
    }

    & p.library-is-empty {
        margin-left: 20px;
        font-size: 2rem;
    }

    & .book {
        font-size: 1.4rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 10px;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
        border-radius: 10px;  

        & button {
            padding: 4px 7px;
            margin-top: 10px;
            background-color: black;
            color: white;
            font-size: 1.1rem;
            font-weight: 480;
            border: 1px solid white;
            border-radius: 5px;
        }
        & button:hover {
            background-color: white;
            border: 1px solid black;
            color: black;
            cursor: pointer;
        }  

        & button.remove {
            background-color: white;
            color: black;
            border: 1px solid black;
        }
        & button.remove:hover {
            background-color: red;
            border: 1px solid white;
            color: white;
            cursor: pointer;
        }

    }
}
dialog {
    margin: auto;
}
form {
    display: grid;
    grid-template-rows: repeat(9, fit-content);
    gap: 5px;

    & select {
        font-size: 13px;
    }

    & input {
        padding-left: 5px;
    }

    & div.status {
        margin: 5px 0 5px 0;
        display: flex;
        gap: 5px;
    }

    & div.buttons {
        
    }

    & button {
        padding: 4px 7px;
        background-color: black;
        color: white;
        font-size: 13px;
        font-weight: 480;
        border: 1px solid white;
        border-radius: 5px;
    }
    & button:hover {
        background-color: white;
        border: 1px solid black;
        color: black;
        cursor: pointer;
    }
}

