@charset "utf-8";

:root {
    --image-width: 200px;
    scroll-behavior: smooth;
}

* {
    font-family: "Inter";
}

html,
body {
    margin-top: 0;
    background-color: #1e2b25;
}

.hidden {
    display: none;
}

nav {
    width: 380px;
    margin: auto;
}

nav li {
    display: inline-block;
    justify-content:center;
    text-align: center;
    margin: auto 0;
}

nav li:not(:first-child):before {
    content: "\2022";
    color: #828282;
}

nav a, article a {
    color: #3794ff;
    text-decoration: none;
}

nav ul {
    padding: 0;
    text-align: center;
}

.search-container {
    display: flex;
    width: 380px;
    margin: 32px auto;
}

.search-bar {
    font-size: 16px;
    width: 100%;
    height: 40px;
    border: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    padding: 0 2.25em 0 .8em;
    box-sizing: border-box;
    background-color: #1d1d1d;
    color: #f0f0f0;
}

.search-bar:focus {
    outline: 1px solid #606060;
}

.content {
    margin-top: 32px;
}

.book-container {
    margin: auto 250px;
    display: grid;
    place-items: center;
    grid-template-columns: repeat(auto-fit, minmax(var(--image-width), 1fr));
    gap: 30px;
    width: 100%;
}

.book img {
    width: var(--image-width);
    aspect-ratio: 2 / 3;
    border: 1px solid #262626;
    object-fit: cover;
    border-radius: 8px;
}

.book p, .book-author {
    margin: 0;
    color: #828282;
    line-height: 150%;
    max-width: 200px;
}

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

.tooltip-container {
    display: inline-block;
    position: relative;
}

.book-title {
    margin-top: 12px;
    margin-bottom: 4px;
    color: #ffffff;
}

.tooltip {
    max-width: 200px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.tooltiptext {
    visibility: hidden;
    background-color: #505050;
    color: #ffffff;
    text-align: center;
    padding: 5px;
    border-radius: 8px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #505050 transparent transparent transparent;
}

.tooltip-container:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.logo {
    margin-top: 16px;
    text-align: center;
}

.logo-container {
    text-align: center;
}

.dropdown-button {
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1rem;
    text-align: center;
    color: #1f2937;
    background-color: #f0f0f0;
    border: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-button:hover {
    background-color: #e0e0e0;
}

select {
    background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat;
    background-position: calc(100% - 0.75rem) center !important;
    -moz-appearance: none !important;
    -webkit-appearance: none !important; 
    appearance: none !important;
    padding-right: 2rem !important;
}

select:focus {
    outline: 1px solid #606060;
}

.pagination {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
}

.pagination a {
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-block;
}

.pagination a:hover {
    cursor: pointer;
}

.pagination a.active {
    background-color: #26483b;
    color: white;
}

article h2 {
    margin-top: 32px;
    text-align: center;
    font-weight: 200;
    color: white;
}

article {
    margin: auto 400px;
    text-align: center;
}

article p {
    color: #828282;
}

.sidebar {
    position: absolute;
    width: 200px;
    margin-left: 50px;
    z-index: 1;
}

.sidebar p:first-of-type {
    margin-top: 0;
}

.sidebar p {
    color: white;
}

.sidebar ul {
    padding: 0;
}

.sidebar li {
    color: #828282;
    list-style-type: none;
    cursor: pointer;
}

.library-container {
    display: flex;
    flex-direction: row;
}

.bold {
    font-weight: bold;
    color: #3794ff;
}

.language-button {
    position: absolute;
    top: 0;
    right: 0px;
    margin-right: 258px;
    padding: 0 !important;
    border: none;
    color: #606060;
    margin-top: 16px;
    background: none;
}

.language-button:focus {
    outline: 1px solid #606060;
}

.gold {
    background: linear-gradient(to bottom, #cfc09f 27%, #ffecb3 40%, #ad8532 78%); 
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    position: relative;
	text-transform: uppercase;	
	margin: 0;
}

.gold::after {
    background: none;
    content: attr(data-heading) / "";
    left: 0;
	top: 0;
    z-index: -1;
    position: absolute;
}

@media (max-width: 768px) {
    .book-container {
        margin: auto 0;
    }

    .sidebar {
        visibility: hidden;
        margin-left: 0;
        margin-bottom: 0;
        padding: 15px;
        border-radius: 8px;
        background-color: #1d1d1d;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    }

    .settings {
        background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path fill='%23606060' d='M0 416c0 17.7 14.3 32 32 32l54.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-246.7 0c-12.3-28.3-40.5-48-73.3-48s-61 19.7-73.3 48L32 384c-17.7 0-32 14.3-32 32zm128 0a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zM320 256a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm32-80c-32.8 0-61 19.7-73.3 48L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l246.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48l54.7 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-54.7 0c-12.3-28.3-40.5-48-73.3-48zM192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm73.3-64C253 35.7 224.8 16 192 16s-61 19.7-73.3 48L32 64C14.3 64 0 78.3 0 96s14.3 32 32 32l86.7 0c12.3 28.3 40.5 48 73.3 48s61-19.7 73.3-48L480 128c17.7 0 32-14.3 32-32s-14.3-32-32-32L265.3 64z'/></svg>") no-repeat center right;
        width: 32px;
        margin-right: 8px;
        cursor: pointer;
    }

    .library-container {
        display: flex;
        justify-content: center;
    }

    .language-button {
        margin-right: 17px;
    }

    .book-title, .book-author {
        white-space: normal;
    }
}

@media (max-width: 1000px) {
    article {
        margin: auto 16px;
    }
}