@font-face {
    font-family: "All the way";
    src: url(fonts/alltheway.woff2);
}

* {
    margin: 0;
}

body {
    min-height: 100vh;
    background-color: #f2f1f1;
    margin: 0;
    padding: 0;
}

nav {
    background-color: #cbc7c7;
    width: 100%;
}

nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    height: 50px;
}

nav a {
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: black;
}

nav a:hover {
    background-color: #f2f1f1;
}

nav li:first-child {
margin-right: auto;
}

.stor-bokhylla {
    width: 90vw;
    margin: auto;
    display: block;
    padding: 0;
}

.bokhyllor {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 50px
}

.bokhyllor img {
    width: 27vw;
    min-width: 300px;
    max-width: 700px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.bokgalleri {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 50px
}

.bokgalleri img {
    width: auto;
    height: 300px;
    object-fit: cover;
    border-radius: 2px;
}

.bok-detaljer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0px auto;
    padding: 20px;
}

.bok-bild img {
    height: 80vh;
    width: auto;
    border-radius: 4px;
}

.bok-info {
    flex: 1;
    text-align: left;
}

@media (min-width: 900px) {
    .bok-detaljer {
        flex-direction: row;
        align-items: flex-start;
        max-width: 1000px;
    }

    .bok-info {
        text-align: left;
        padding-left: 20px;
    }
}

.bok-titel {
    margin-top: 40px;
}

.bok-forfattare {
    margin-top: 10px;
}

.bok-beskrivning {
    margin-top: 20px;
    font-size: 16px;
    letter-spacing: 2px;
    line-height: 2;
    word-spacing: 5px;
}

#filter-controls {
    display: flex;
    flex-direction: row;
    margin: 20px auto 10px auto;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 90vw;
}

.filter-knapp {
    padding: 15px;
    border: none;
    background-color: #f2f1f1;
    color: black;
}

.filter-knapp.aktiv {
    background-color: #fbfbfb;
}

.filter-knapp:hover {
    background-color: #fbfbfb;
}

.filter-knapp.aktiv:hover {
    background-color: #f2f1f1;
}

button {
    padding: 15px;
    border: none;
}