@font-face {
    font-family: Calinastiya;
    src: url(../static/fonts/Calinastiya_demo.ttf);
}

@keyframes hide {
    to {
        opacity: 0;
    }
}

:root {
    --lightorange: rgb(252, 183, 109);
}

html {
    background-color: black;
}

body {
    margin: 0 0 2rem 0;
}

@media screen and (min-width: 600px) {
    header {
        position: sticky;
        top: 0;
        font-family: sans-serif;
        background-color: orange;
        padding: 0.5rem 1rem;
        margin: 0;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    #title-div {
        text-align: center;
        font-size: 3rem;
    }

    #nav-links-div {
        display: flex;
        flex-direction: row;
        align-items: center;
        column-gap: 2rem;
    }
}

@media screen and (max-width: 600px) {
    header {
        position: sticky;
        top: 0;
        font-family: sans-serif;
        background-color: orange;
        padding: 0rem 1rem;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        row-gap: 2rem;
    }

    #title-div {
        text-align: center;
        font-size: 1.5rem;
    }
    
    #nav-links-div {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 0.5rem;
    }
}

.nav-link:link,
:visited {
    font-size: 2rem;
    color: black;
    text-decoration: none;
}

.nav-link:hover {
    text-decoration: underline dotted black;
}

.splash-div {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quote-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#index-quote {
    color: white;
    font-family: Calinastiya;
    font-size: 70px;
    margin-bottom: 0;
}

#index-quote-person {
    color: white;
    font-family: Calinastiya;
    font-size: 70px;
    align-self: flex-end;
    margin-top: 0;
}

.splash-img-container {
    max-width: 75%;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#splash-img {
    width: 100%;
}

#img-src-text {
    color: white;
    max-width: 65%;
    align-self: end;
    text-align: right;
    font-size: 1rem;
}

.about-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    gap: 1.5rem;
}

.about-image {
    width: 40%;
    height: 100%;
}

.article-container,
.about-container,
.contact-container {
    font-family: Arial, Helvetica, sans-serif;
    background-color: white;
    margin-left: 25px;
    margin-right: 25px;
    padding-left: 25px;
    padding-right: 25px;
    padding-bottom: 20px;
    padding-top: 20px;
}

@media  (max-width: 600px) {
    .article-container, .about-container, .contact-container {
        margin-left: 0;
        margin-right: 0;
        padding-left: 2%;
        padding-right: 2%;
        word-wrap: break-word;
    }

    .about-container{
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

}

.author-date-container {
    padding-left: 10px;
    display: flex;
    flex-direction: row;
    word-wrap: normal;
}

#post-title {
    margin-bottom: 0;
    margin-top: 0;
    font-size: 70px;
}

#author-date-info {
    margin-top: 0;
    font-size: 15px;
}

.article-content {
    font-size: 20px;
    text-align: justify;
}

.article-photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-photo {
    max-width: 50%;
}

.article-photo-desc {
    max-width: 100%;
    word-break: break-all;
}

.article-quote-block {
    background-color: lightgray;
}

.article-quote-origin {
    color: black;
    font-size: medium;
}

#share-btn {
    font-size: 1rem;
    border-style: solid;
    border-width: 2px;
    border-color: black;
    color: black;
    text-decoration: none;
}

#share-btn:hover {
    background-color: var(--lightorange);
}

#copied-message {
    display: none;
}

@media screen and (min-width: 600px) {

    .preview-and-search-container {
        font-family: Arial, Helvetica, sans-serif;
        margin-left: 5%;
        margin-right: 5%;
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        gap: 1rem;
    }

    .preview-and-button-container {
        background-color: var(--lightorange);
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .preview-container {
        margin-left: 20px;
        margin-right: 20px;
        width: 100%;
        height: 100%;

        display: grid;
        grid-template-columns: repeat(2, minmax(200px, 2fr));
        row-gap: 10px;
        column-gap: 20px;
    }

    .preview-post {
        padding-bottom: 1rem;
        background-color: white;
        font-family: Arial, Helvetica, sans-serif;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .preview-image {
        width: 100%;
    }

    .preview-link:link,
    :visited {
        font-size: 2rem;
        border-style: solid;
        border-width: 2px;
        border-color: black;
        color: black;
        text-decoration: none;
    }

    .preview-link:hover {
        background-color: var(--lightorange);
    }

    .tags-container {
        background-color: var(--lightorange);
        font-family: Arial, Helvetica, sans-serif;
        height: 100%;
        padding: 0.5rem;
    }

    .tag:link,
    :visited {
        color: black;
        text-decoration: none;
    }

    .tag:hover {
        text-decoration: underline solid black;
    }

    #load-posts-btn:link,
    :visited {
        color: black;
        text-decoration: none;
        text-align: center;
    }

    #load-posts-btn:hover {
        text-decoration: underline solid black;
    }
}

@media screen and (max-width: 600px) {
    .preview-and-search-container {
        font-family: Arial, Helvetica, sans-serif;
        margin-left: 5%;
        margin-right: 5%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        gap: 1rem;
    }

    .preview-and-button-container {
        background-color: var(--lightorange);
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .preview-container {
        /*margin-left: 20px;
        margin-right: 20px;*/
        width: 100%;
        height: 100%;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .preview-post {
        padding-bottom: 1rem;
        background-color: white;
        font-family: Arial, Helvetica, sans-serif;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .preview-image {
        width: 100%;
    }

    .preview-link:link,
    :visited {
        font-size: 2rem;
        border-style: solid;
        border-width: 2px;
        border-color: black;
        color: black;
        text-decoration: none;
    }

    .preview-link:hover {
        background-color: var(--lightorange);
    }

    .tags-container {
        background-color: var(--lightorange);
        font-family: Arial, Helvetica, sans-serif;
        height: 100%;
        padding: 0.5rem;
    }

    .tag:link,
    :visited {
        color: black;
        text-decoration: none;
    }

    .tag:hover {
        text-decoration: underline solid black;
    }

    #load-posts-btn:link,
    :visited {
        color: black;
        text-decoration: none;
        text-align: center;
    }

    #load-posts-btn:hover {
        text-decoration: underline solid black;
    }
}