
html {
    width: 100%;
}
body {
    background-color: #fffbeb;
    background-image: url("papyrus_tile.jpg");
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: serif;
    width: 100%;
}

#density {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#navbar {
    display: flex;
/*    position: sticky;*/
    top: 0;
    background-color: rgba(255, 245, 233, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1;
    padding: 10px 0;
}

#search-input {
    box-sizing: border-box;
    background-color: rgb(245, 238, 220);
    width: 100%;
    max-width: 500px;
    padding: 15px 20px 15px 44px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.2 );
}

#search-input:focus-visible {
    outline: 1px solid rgba(0, 0, 0, 0.3);
}

#search {
    display: flex;
    position: relative;
    align-items: center;
}

#search-icon {
    position: absolute;
    left: 14px;
    margin: auto 0;
    opacity: 0.5;
}

#search-filters {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    margin-left: 10px;
}

.search-filter {
    cursor: pointer;
    font-family: sans-serif;
    background-color: #c7ffa2;
    border-radius: 15px;
    padding: 7px 12px 7px 9px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#footer {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.8em;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: center;
    width: 100%;
}

a {
    text-decoration: none;
}

#footer a {
    display: flex;
    align-items: center;
}

#footer a img {
    margin-right: 5px;
}

#quotes-list {
    margin-top: 10px;
    width: 100%;
}

#content {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    background-color: #f7eedb;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.quote {
    position: relative;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    background-color: #FFF4C6;
    border-radius: 5px;
    align-items: center;
    margin: 1px 0;
}

.interesting-TRUE {
    background-color: #ffe8c6;
}

.quote:hover {
    background-color: #ffeda3;
}

.quote-selected {
    align-items: start;
    background-color: #ffeea3;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.quote-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    padding: 5px 10px;
    box-sizing: border-box;
}

.quote-share {
    display: none;
    flex-direction: row;
    opacity: 0.8;
    gap: 5px;
    align-items: center;
}

.quote-share a {
    display: flex;
}

.quote-share img {
    cursor: pointer;
}

.quote-selected .quote-share {
    display: flex;
}

.quote-image-preview {
    height: 50px;
    width: 118px;
    object-fit: contain;
}

.quote-image-full {
    display: none;
    object-fit: contain;
}

.quote-selected .quote-image-preview {
    height: 200px;
    width: 470px;
}

.quote-selected .quote-image-full {
    position: absolute;
    top: 0;
    left: 0;
    height: 200px;
    width: 470px;
    display: block;
}

.quote-base {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.quote-expanded {
    display: flex;
    flex-direction: column;
    margin-top: 5px;
}

.quote-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: "Fira Sans Extra Condensed", sans-serif;
    font-style: normal;
    flex-grow: 1;
    gap: 10px;
    padding-right: 10px;
}

.quote-timecode {
    opacity: 0.3;
    font-family: monospace;
    font-size: 0.8em;
}

.quote-explication {
    margin-bottom: 5px;
}

.quote-explication-title {
    opacity: 0.5;
}

.quote-tag-title {
    opacity: 0.5;
    padding-right: 5px;
}

.quote-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 5px;
}

.quote-tag {
    font-family: sans-serif;
    font-size: 12px;
    background-color: #c7ffa2;
    border-radius: 5px;
    padding: 2px 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.quote-expanded {
    display: none;
}

.quote-selected .quote-expanded {
    display: flex;
}


@media all and (orientation: portrait) {
    .quote-image-full {
        max-width: 100%;
    }

    .quote-image-preview {
        max-width: 100%;
    }

    .quote-selected .quote-content {
        width: 100%;
        padding: 10px 15px;
    }

    .quote-selected {
        align-items: center;
        flex-direction: column;
    }

    .quote-selected .quote-image-full {
        height: unset;
        top: 15px;
    }
}
