body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    margin: auto;
    background-color: #ffffff;
}

.container1 {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    background-color: #ffffff;
    margin-top: 80px;
    gap: 70px;
    margin-bottom: 100px;
}

.intro-text {
    width: 30%;
    cursor: pointer;
    margin-left: 220px;
}

.faq {
    width: 70%;
    cursor: pointer;
}

.faq-question {
    width: 70%;
    padding: 15px;
    text-align: left;
    font-size: 18px;
    font-family: 'Red Hat Display', sans-serif;
    background-color: #f1f1f1;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #e3e3e3;
}

.faq-answer {
    width: 66.8%;
    flex-wrap: wrap;
    max-height: 0;
    padding: 0 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.faq-answer p {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 16px;
    color: #333;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.intro-text h2 {
    font-size: 26px;
    font-weight: 400;
    font-family: "Red Hat Display", sans-serif;
    color: #2d2d2d;
}

.intro-text p {
    font-size: 40px;
    font-weight: 700;
    font-family: "Red Hat Display", sans-serif;
    color: #171717;
}

.form h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 56px;
    padding: 15px;
    font-weight: 300;
    text-align: center;
    color: #ececec;
    background-color: #6a0e0e;
    letter-spacing: normal;
}

#text-anim div {
    display: inline-block;
    transform: translateY(0);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

#text-anim div:hover {
    -webkit-text-fill-color: #C40000;
    background-clip: text;
    cursor: pointer;
    transform: translateY(-3px);

}

#guestbookForm {
    margin-bottom: 20px;
    font-size: 18px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 500;
    text-align: center;
}

#guestbookForm div {
    margin-bottom: 10px;
}

#guestbookForm label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-family: 'Red Hat Display', sans-serif;
    padding: 10px;
}

#guestbookForm input[type="text"],
#guestbookForm textarea {
    width: calc(100% - 12px);
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: inherit;
    font-family: 'Red Hat Display', sans-serif;
}

#guestbookForm textarea {
    resize: vertical;
    rows: 4;
    /* Increased rows for better visibility */
}

#guestbookForm button[type="submit"] {
    background-color: #C40000;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: inherit;
    font-family: 'Red Hat Display', sans-serif;
    transform: translateY(0);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

#guestbookForm button[type="submit"]:hover {
    background-color: #8e251a;
    transform: translatey(5px);
    /* Darker red on hover */
}

#submissionMessage {
    margin-top: 10px;
    color: green;
    font-weight: bold;
}

.messages h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 56px;
    padding: 15px;
    font-weight: 300;
    text-align: center;
    color: #f5f5f5;
    background-color: #6a0e0e;
    letter-spacing: normal;
}

#text-anim-messages div {
    display: inline-block;
}

#text-anim-messages div:hover {
    background: #C40000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
}

.h2 {
    font-size: 20px;
    font-weight: 700;
    font-family: "Red Hat Display", sans-serif;
    color: #2d2d2d;
}

/* Style for recent messages */
#commentsSection .comment {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: white;
    font-family: 'Red Hat Display', sans-serif;
    /* Adjust background color */
}

.comment-header {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #777;
}

.comment-header .nickname {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
}

.comment-header .date {
    margin-right: 10px;
}

.comment-body p {
    line-height: 2.0;
    margin-bottom: 0;
}

/* Style for the separator */
.faq-separator {
    border-top: 1px solid #ccc;
    margin: 30px 0;
}

/* Style for the pagination (if you implement it) */
#pagination {
    margin-top: 20px;
    text-align: center;
}

#pagination a,
#pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

#pagination a:hover {
    background-color: #eee;
}

#pagination .current {
    background-color: #C40000;
    color: white;
    border-color: #e74c3c;
}

@media screen and (max-width: 964px) {
    .intro-text h2 {
        font-size: 22px;
    }

    .intro-text p {
        font-size: 35px;
    }
}

@media screen and (max-width: 768px) {

    .intro-text {
        width: 100%;
        margin-left: 50px;
    }

    .intro-text h2 {
        font-size: 24px;
    }

    .intro-text p {
        font-size: 40px;
    }

    .faq {
        width: 100%
    }

    .container1 {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 20px;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-answer p {
        font-size: 14px;
    }
}

@media screen and (max-width: 375px) {
    .form h2 {
        font-family: 'DM Serif Display', serif;
        font-size: 36px;
    }

    .messages h2 {
        font-family: 'DM Serif Display', serif;
        font-size: 33px;
    }
}