/* Nav Section */
#top-nav .icon {
    margin: 0px 5px 0px 0px; 
    font-size: 30px; 
    color: black;
}

/* Header Section */
#categories-list {
    display: flex;
    flex-direction: column;
}
#categories-list span {
    margin: 5px 0px 0px 0px;
    cursor: pointer;
    font-family: 'Lusitana', serif;
}
#categories-list span:hover {
    opacity: 0.7;
}

/* Main Section */
#title {
    text-align: center;
    margin: 5px;
    padding: 0;
}
#date {
    text-align: center;
    margin: 5px;
    padding: 0;
}
#category-link {
    cursor: pointer;
}
#category-link:hover {
    font-weight: bold;
}
article {
    min-width: 100%;
    outline: none;
    white-space: pre-wrap;
    font-size: 16px;
    font-weight: normal;
    font-style: normal;  
    text-decoration: none;
    text-align: start;
    line-height: 1.15em;
    font-family: 'Times New Roman', Times, serif;
    color: black;
}
article img {
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
}
article img:hover {
    box-shadow: 5px 5px 5px gray, -5px -5px 5px gray;
    cursor: pointer;
}
article ul {
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Empty State Section */
#empty-state {
    width: 50%;
    display: flex;
    flex-direction: column;
    color: black;
    align-items: center;
    margin: auto;
}
#empty-state-icon {
    font-size: 200px;
}
#empty-state p {
    font-size: 20px;
    text-align: center;
}

/* Page Buttons Section */
#page-buttons {
    display: flex;
    flex-direction: row;
    margin: 20px;
    justify-content: space-between;
}

/* Comments Section */
#comments-section h2 {
    text-align: center;
}
.comments-button-layout {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    margin: 5px;
}
#new-comment-section h3 {
    text-align: center;
    margin: 10px 0px 0px 0px;
    padding: 0;
}

#sort-section {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}
#showMoreButton {
    align-self: center;
    margin: 5px;
}
.comment-card {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.comment-text-container {
    display: flex;
    flex-direction: column;
    margin: 5px 0px 5px 10px;
}
.comment-text-container h3 {
    margin: 0;
    padding: 0;
}
.comment-date {
    margin: 0;
    padding: 0;
    font-size: 14px;
}
.comment-message {
    margin: 0;
    padding: 0;
}

/* Footer Section */
#footer-image {
    width: 100%;
    height: 250px;
}
#footer-image img { 
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    opacity: 0.7;
}

/* Small screens (Mobile) */
@media only screen and (max-width: 600px) {
    /* Nav Section */
    #top-nav {
        display: flex;
        flex-direction: row;  
        align-items: center;
        justify-content: end;
        width: 90%;
        margin: 0px auto 0px auto;
    }

    /* Header Section */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 90%;
        margin: 0px auto 0px auto;
    }
    h1 {
        width: fit-content;
        font-size: 40px;
        font-style: italic;
        font-family: 'Dancing Script', cursive;
    }

    /* Main Section */
    main {
        width: 90%;
        margin: 60px auto 10px auto;
    }

    /* Comments Section */
    #comments-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
    }

    /* Image Viewer */
    #image-viewer-img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 90%;
        border-radius: 30px;
        object-fit: cover;
        margin: auto;
    }
}

/* Medium screens (Tablets) */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
    /* Nav Section */
    #top-nav {
        display: flex;
        flex-direction: row;  
        align-items: center;
        justify-content: end;
        width: 70%;
        margin: 0px auto 0px auto;
    }

    /* Header Section */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 70%;
        margin: 0px auto 0px auto;
    }
    h1 {
        width: fit-content;
        font-size: 50px;
        font-style: italic;
        font-family: 'Dancing Script', cursive;
    }

    /* Main Section */
    main {
        z-index: 1;
        width: 70%;
        margin: 60px auto 10px auto;
    }

    /* Comments Section */
    #comments-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
    }

    /* Image Viewer */
    #image-viewer-img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 90%;
        border-radius: 30px;
        object-fit: cover;
        margin: auto;
    }
}

/* Large screens (Desktops) */
@media only screen and (min-width: 1025px) {
    /* Nav Section */
    #top-nav {
        display: flex;
        flex-direction: row;  
        align-items: center;
        justify-content: end;
        width: 70%;
        margin: 0px auto 0px auto;
    }

    /* Header Section */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 70%;
        margin: 0px auto 0px auto;
    }
    h1 {
        width: fit-content;
        font-size: 60px;
        font-style: italic;
        font-family: 'Dancing Script', cursive;
    }

    /* Main Section */
    main {
        z-index: 1;
        width: 70%;
        margin: 60px auto 10px auto;
    }

    /* Comments Section */
    #comments-list {
        display: flex;
        flex-direction: column;
        width: 60%;
        margin: 0px auto 0px auto;
    }

    /* Image Viewer */
    #image-viewer-img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 90%;
        border-radius: 30px;
        margin: auto;
    }
}