/*-----------------------------------------------------------------------
			MOBILE CONFIGURATION (portrait orientation)
-----------------------------------------------------------------------*/

/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>  FONTS  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
@font-face {
    font-family: 'playfair_displayregular';
    src: url('https://www.bookastic.com/public/fonts/playfairdisplay-regular-webfont.woff2') format('woff2'),
         url('https://www.bookastic.com/public_html/public/fonts/playfairdisplay-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'courier_primeregular';
    src: url('https://www.bookastic.com/public_html/public/fonts/courier_prime-webfont.woff2') format('woff2'),
         url('https://www.bookastic.com/public_html/public/fonts/courier_prime-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'lobster_tworegular';
    src: url('https://www.bookastic.com/public_html/public/fonts/lobstertwo-regular-webfont.woff2') format('woff2'),
         url('https://www.bookastic.com/public_html/public/fonts/lobstertwo-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/*>>>>>>>>>>>>>>>>>>>>>>>>>>  VARIABLES  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
html {
    /* COLORS */
        --verydarkgrey_color: rgb(30, 30, 30);
        --lightgrey_color: rgb(186, 186, 186);
        --verylightgrey_color: rgb(225, 225, 225);
        --darkpink_color: rgba(143, 40, 129, 1);
}

/*>>>>>>>>>>>>>>>>>>>>>>>>>>  CSS CLASSES  >>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
    /*-- FLEXBOX ------------------------------------------------------*/
    .flex {
        display: flex;
    }

    .inline-flex {
        display: inline-flex;
    }

    .flex-direction-column {
        flex-direction: column;
    }

    .flex-direction-row {
        flex-direction: row;
    }

    .justify-content-start {
        justify-content: start;
    }

    .justify-content-center {
        justify-content: center;
    }

    .justify-content-space-around {
        justify-content: space-around;
    }

    .justify-content-space-between {
        justify-content: space-between;
    }

    .justify-content-space-evenly {
        justify-content: space-evenly;
    }

    .align-items-center {
        align-items: center;
    }

    .align-items-flex-start {
        align-items: flex-start;
    }

    .align-items-flex-end {
        align-items: flex-end;
    }

    .align-content-space-evenly {
        align-content: space-evenly;
    }

    .align-self-center {
        align-self: center;
    }

    .align-self-flex-start {
        align-self: flex-start;
    }

    .flex-wrap {
        flex-wrap: wrap;
    }

    .flex-grow-1 {
        flex-grow: 1;
    }

    .flex-basis-50 {
        flex-basis: 50%;
    }

    /*-- OTHER --------------------------------------------------------*/
    .display-none {
        display: none;
    }

    .cursor-pointer {
        cursor: pointer;
    }

    .button {
        cursor: pointer;
    }

    .visibility-hidden {
        visibility: hidden;
    }

    .visibility-visible {
        visibility: visible;
    }

/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>  GLOBAL  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
* {
    box-sizing: border-box;
    outline: none;
    color: var(--verydarkgrey_color);
}

body {
    background-color: var(--verylightgrey_color);
    font-family: 'playfair_displayregular', serif;
}

.page-container {
    width: var(--page_container_width_px);
    height: var(--page_container_height_px);
    max-width: var(--page_container_max_width_px);
    margin: auto;
}

header, main {
    padding: var(--page_top_bottom_padding_px) var(--page_left_right_padding_px);
    text-align: center;
}

h1, h2, h3, h4, h5 {
    font-weight: normal;
}

h1 {
    font-size: 1.1rem;
}

h2 {
    font-size: 1.5rem;
    margin: 0 0 0.9rem;
}

h3, legend {
    font-size: 1rem;
}

h3 {
    margin: 0 0 0.7rem;
}

legend {
    padding: 0 0.5rem;
}

h4, th {
    font-size: 0.9rem;
}

h4 {
    margin: 0 0 0.5rem;
    color: var(--darkpink_color);
}

h5, td, p, label {
    font-size: 0.8rem;
    margin: 0;
}

li {
    list-style: none;
}

fieldset {
    border: 1px solid var(--verydarkgrey_color);
    margin-bottom: 0.9rem;
}

    /*-- HEADER -------------------------------------------------------*/
    header {
        background-color: var(--verydarkgrey_color);
    }

    header .button[data-button-action="log-out"],
    header .button[data-button-action="log-out"] i {
        color: var(--verylightgrey_color);
    }

    header .button[data-button-action="log-out"]:hover,
    header .button[data-button-action="log-out"]:hover i {
        color: var(--darkpink_color);
    }

    header .button[data-button-action="log-out"] {
        position: absolute;
        left: 14px;
        font-size: 0.8rem;
    }

    header .button[data-button-action="log-out"] i {
        margin-right: 0.3rem;
    }

    header .bookastic-logo {
        display: block;
        margin: 0 auto 0.6rem;
        height: 5rem;
    }

    header h1 {
        color: var(--verylightgrey_color);
        margin: 0;
    }

    /*-- MAIN-NAV ----------------------------------------------------*/
    #main-nav {
        background-color: var(--lightgrey_color);
        font-size: 1rem;
    }

    #main-nav ul {
        margin: 0;
        padding: 0;
    }

    #main-nav .first-level-nav > li {
        position: relative;
        display: inline-block;
    }

    #main-nav li {
        width: 200px;
        padding: 5px 10px;
    }

    #main-nav .second-level-nav {
        position: absolute;
        background-color: var(--lightgrey_color);
        top: 28px;
        left: 0;
        z-index: 10;
        display: none;
    }

    #main-nav .first-level-nav > li:hover .second-level-nav {
        display: block;
    }

    #main-nav .second-level-nav li:hover {
        color: var(--darkpink_color);
        cursor: pointer;
    }

    #main-nav .fa-sort-down {
        float: right;
        vertical-align: top;
    }

    /*-- FORMs -------------------------------------------------------*/
    .login-form {
        max-width: 100%;
        width: 300px;
        margin: auto;
    }

    .login-form label {
        display: block;
        font-size: 0.9rem;
        margin: 0 0 0.3rem;
    }

    .login-form input {
        font-size: 0.8rem;
        margin: 0 0 1rem;
        padding: 0 1rem;
        width: 100%;
        text-align: center;
        background-color: transparent;
        border: none;
        border-bottom: 1px solid white;
        color: var(--darkpink_color);
    }

    .login-form button {
        text-transform: uppercase;
        cursor: pointer;
    }

    /*-- BOOK-TABLEs ------------------------------------------------------*/
    .books-table {
        width: 100%;
        border-collapse: collapse;
    }

    .books-table th,
    .books-table td {
        text-align: center;
        padding: 5px;
    }

    .books-table th {
        border-top: 1px solid var(--verydarkgrey_color);
        border-bottom: 1px solid var(--verydarkgrey_color);
    }

    .books-table thead .button {
        margin-left: 5px;
    }

    .books-table thead .button:hover {
        color: var(--darkpink_color);
    }

    .books-table tbody .button:hover {
        color: var(--verydarkgrey_color);
    }

    .books-table tbody tr:hover {
        background-color: var(--lightgrey_color);
    }

    .books-table tbody tr:hover td,
    .books-table tbody tr:hover td i {
        color: var(--darkpink_color);
    }

    .books-table td:nth-of-type(1),
    .books-table td:nth-of-type(2),
    .books-table td:nth-of-type(3) {
        width: 1.5rem;
        padding: 0;
    }

    .books-table td:nth-of-type(4) {
        text-align: left;
    }

    .button[data-button-action="show-front-cover"] {
        position: relative;
    }

    .button[data-button-action="show-front-cover"] .front-cover-bubble {
        position: absolute;
        top: calc(0px - (150px / 2) + 0.55rem);
        left: 35px;
    }

    .button[data-button-action="show-front-cover"] .front-cover-bubble img {
        height: 150px;
        background-color: var(--verydarkgrey_color);
        border: 2px solid var(--verydarkgrey_color);
        border-radius: 6px;
    }

    .button[data-button-action="show-front-cover"] .front-cover-bubble::before {
        content: "";
        display: block;
        position: absolute;
        border-right: 15px solid var(--verydarkgrey_color);
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        left: -15px;
        top: 62px;
        width: 0;
        height: 0;
    }

/*-----------------------------------------------------------------------
			MOBILE CONFIGURATION (landscape orientation)
-----------------------------------------------------------------------*/
@media (orientation: landscape) {
    /* Nothing... */
}

/*-----------------------------------------------------------------------
			TABLET CONFIGURATION (portrait orientation)
-----------------------------------------------------------------------*/
@media (min-width: 767px) and (orientation: portrait) {
    /* Nothing... */
}

/*-----------------------------------------------------------------------
		TABLET AND BIG SCREENS CONFIGURATION (landscape orientation)
-----------------------------------------------------------------------*/
@media (min-width: 1022px) and (orientation: landscape) {
    /* Nothing... */
}