html, body {
    width: 100%;
    height: 100%;
    padding: 0px;
    margin: 0px;
    font-family: 'Roboto', sans-serif;
    font-stretch: condensed;
    font-weight: 600;
    font-size: 16px;
    font-variant: small-caps;
}

form {
    margin-block-end: 0em;
}

body {
    position: relative;
    box-sizing: border-box;
    min-height: 100%;
}

button {
    background-color: #f2c961;
    border: none;
    color: white;
    padding: 5px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-stretch: condensed;
    font-weight: 600;
    font-size: 16px;
    font-variant: small-caps;
}

button:hover {
    background-color: #f2b361;
}

button, select, input, .book, .book > div {
    border-radius: 5px;
    transition: .2s;
}

button:hover, select:hover, input:hover, .book:hover, .book:hover > div {
    border-radius: 8px;
}

h1 {
    position: absolute;
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    left: 10px;
    top : 25px;
    transform: translate(0%, -50%);
}

#login input, #logout input {
    padding-left: 5px;
    height: 29px;
    font-family: 'Roboto', sans-serif;
    font-stretch: condensed;
    font-weight: 600;
    font-size: 16px;
    font-variant: small-caps;
    width: 150px;
}

a {
    color: inherit; /* blue colors for links too */
    text-decoration: inherit; /* no underline */  
}

#sortselect select {
    padding: 2px 15px;
    font-family: 'Roboto', sans-serif;
    font-stretch: condensed;
    font-weight: 600;
    font-size: 16px;
    font-variant: small-caps;
    box-sizing: border-box;
    height: 29px;
}

#dirsize {
    position: absolute;
    top : 25px;
    transform: translate(-50%, -50%);
    left: 50%;
}

#bookcontainer {
    padding-top: 40px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

#bookcontainer > .fix {
    width: 140px;
}

#login, #logout {
    position: absolute;
    right: 10px;
    top : 25px;
    transform: translate(0%, -50%);
}

#logout{
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
}

#login form input:not(:first-child), #login form button:not(:first-child), #logout div:not(:first-child) {
    margin-left: 10px;
}

#nope {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#bookcontainer > a {
    margin: 10px;
}

.book {
    width:  120px;
    height: 160px;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
    position: relative;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: 120px 160px;
    font-size: 14px;
    border: 1px solid #BCBCBC;
}

.book > div {
    padding: 5px;
    margin: 0px;
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;    /* Firefox, other Gecko */
    box-sizing: border-box;         /* Opera/IE 8+ */
    height: 100%;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    transition: .2s;
    opacity: 0;
    background-image: linear-gradient(rgba(80, 80, 80, .9) 25%, rgba(50, 50, 50, .9) 25%, rgba(50, 50, 50, .9) 50%, rgba(80, 80, 80, .9) 50%, rgba(80, 80, 80, .9) 75%, rgba(50, 50, 50, .9) 75%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    color: white;
    font-size: 10px;
    font-weight: 300;
    line-height: 0.8;
}

.book:hover > div {
    opacity: 1;
}

.book div div {
    display: table-cell; 
    align-self: center;
    justify-self: center;
    text-align: center; 
    overflow: hidden;
}

@media (max-width: 800px), handheld {
    h1 {
        top : 25px;
        left: 50%;
        transform: translate(-50%, -50%);
        white-space: nowrap;
    }
    #dirsize {
        top : 65px;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    #login {
        top : 105px;
        right: inherit;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    #login form {
        display: inline-flex;
    }
    #logout {
        top : 105px;
        right: inherit;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    #bookcontainer {
        padding: 125px 5px 0px 5px;
    }
    .book {
        margin: 5px;
    }
}