/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
    font-family: 'Cormorant', serif;
    font-size: 20px;
    color: #38380e;
}

hr {
    border: 0;
    border-top: 1px solid  #e1e4e6;
}

a {
    color: #4a8bb2;
}

a:visited {
    color: #a0a3a5;
}

h1 {
    margin-bottom: 8px;
}

.post {
    margin: 0 auto;
}
@media screen and (min-width: 600px) {
    .post {
        max-width: 85%;
        margin: 0 auto;
    }
}

.post a {
    word-wrap: break-word;
}

.post__images img,
.post__videos video {
    max-width: 100%;
    max-height: 80vh;
}

@media screen and (min-width: 600px) {
    .post__images img,
    .post__videos video {
        max-width: 50vw;
	max-height: 50vh;
    }
}


nav.pagination {
    margin: 20px auto;
}

.pagination a,
.pagination .current {
    padding: 10px;
}

a:hover {
    background-color: #e1e4e6;
}


.sidebar {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: white;
    overflow: scroll;
    padding: 20px;
}

.sidebar.mobile-open {
    display: block;
}

.sidebar .menu-button {
    display: inline-block;
    border: none;
}

.sidebar h3 {
    margin-top: 0;
}

.sidebar ol {
    list-style-type: disc;
    padding-left: 20px;
}

.sidebar li:before {
    content: "•";
}

.sidebar li {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 10px;
}

.sidebar li .link-tags {
    display: block;
    padding-left: 20px;
    color: #787c7e;
    font-size: 16px;
}

main {}

.menu-button {
    position: absolute;
    right: 20px;
    top: 20px;
    border: none;
    width: 40px;
    height: 40px;
    padding: 4px;
    line-height: 32px;
    font-size: 32px;
}

@media screen and (min-width: 800px) {
    main {
        display: flex;
    }

    .posts {
        flex-grow: 1;
    }
    
    .sidebar {
        display: block;
        padding: 0;
        width: 300px;
        border: 1px solid #e1e4e6;
        padding: 10px;
        position: static;
        overflow: unset;
    }

    .menu-button {
        display: none !important;
    }


}
