/* --- Desktop Styles (Default) --- */
.comments-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.comments-body hr {
    padding: 0;
    margin: 0;
    width: 60vw;
    height: 1px;
    background-color: black;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.comments-body h1 {
    font-family: "Garamond", serif;
    font-size: 2.5rem;
    font-weight: 550;
    margin: 0;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
#comments {
    display: none;
}
.commentlist {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: top;
    width: 65vw;
    row-gap: 2rem;
}
.comment {
    list-style: none;
}
.comment-body {
    display: block;
    font-family: "Lora", serif;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}
.comment-author {
    display: inline;
    text-decoration: none;
    vertical-align: middle;
}
.comment-author img {
    display: inline;
    width: fit-content;
    height: 2rem;
    vertical-align: middle;
    margin-right: 0.5rem;
    border-radius: 0.25rem;
}
.fn {
    color: black;
    font-weight: bold;
    font-size: 1.35rem;
    vertical-align: middle;
}
.fn a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 1.35rem;
    vertical-align: middle;
}
.says {
    display: none;
}
.comment-meta {
    display: inline;
    margin-left: 0.25rem;
    vertical-align: middle;
}
.comment-meta a {
    text-decoration: none;
    color: black;
    opacity: 70%;
    font-size: 1rem;
}
.comment-body p {
    padding: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.comment-reply-link {
    display: inline;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    color: black;
}
#respond { 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: top;
    text-align: center;
}
#reply-title {
    font-family: "Garamond", serif;
    font-size: 2rem;
    font-weight: 550;
    margin: 0;
    padding-top: 0.5rem;
}
.comment-notes {
    font-style: italic;
}
.comment-form p {
    font-family: "Lora", serif;
    font-size: 1.3rem;
    text-decoration: none;
    overflow: visible;
    word-break: break-word;
}
.comment-form-comment {
    display: flex;
    flex-direction: column;
    justify-content: top;
    row-gap: 1rem;
}
.comment-form textarea {
    height: 7rem;
    font-family: "Lora", serif;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 2px solid black;
    border-radius: 1rem;
    margin-bottom: 1rem;
}
.comment-form input[type="text"] {
    height: 1rem;
    font-family: "Lora", serif;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 2px solid black;
    border-radius: 0.5rem;
    margin-left: 0.5rem;
    margin-bottom: 1rem;
}
.comment-form input[type="submit"] {
    display: block;
    width: fit-content;
    justify-self: center;
    height: 3rem;
    font-family: "Lora", serif;
    font-size: 1.3rem;
    text-decoration: none;
    overflow: visible;
    word-break: break-word;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: gainsboro;
}
.comment-form input[type="submit"]:hover {
    cursor: pointer;
}

/* --- Tablet Styles (Screens up to 768px wide) --- */
@media screen and (max-width: 768px) {
    .comments-body hr {
        width: 90vw;
    }
    .commentlist {
        width: 90vw;
    }
    .comments-body h1 {
        font-size: 2.2rem;
    }
    .comment-body {
        font-size: 1.1rem;
    }
    .fn, .fn a {
        font-size: 1.25rem;
    }
    #reply-title {
        font-size: 1.8rem;
    }
}

/* --- Mobile Styles (Screens up to 480px wide) --- */
@media screen and (max-width: 480px) {
    .comments-body hr {
        width: 95vw;
    }
    .commentlist {
        width: 95vw;
    }
    .comments-body h1 {
        font-size: 1.8rem;
    }
    .comment-body {
        font-size: 1rem;
    }
    .fn, .fn a {
        font-size: 1.1rem;
    }
    .comment-meta {
        display: block; /* Stack date/time below author name */
        margin-left: 0;
        margin-top: 0.5rem;
    }
    #reply-title {
        font-size: 1.5rem;
    }
    .comment-form p {
        font-size: 1.1rem;
    }
    /* Stack form labels on top of their inputs */
    .comment-form-author, .comment-form-email, .comment-form-url {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align labels to the left */
        text-align: left;
    }
    .comment-form input[type="text"] {
        width: 95%; /* Make inputs take up more width */
        margin-left: 0;
    }
    .comment-form input[type="submit"] {
        width: 100%; /* Make submit button full-width */
        font-size: 1.1rem;
    }
}