html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Alumni Sans Pinstripe", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #ECDCD0;
    color: #482F04;
}

.nav-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background-color: #caac9d;
    padding: 12px 20px;
    list-style: none;
    z-index: 1000;
}

.logo img {
    height: 50px;
    width: auto;
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    padding-left: 30px;
}

.menu li a {
    display: inline-block;
    text-decoration: none;
    color: #482F04;
    text-align: center;
    transition: 0.15s ease-in-out;
    position: relative;
}

.menu li a::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #482F04;
    transition: 0.15s ease-in-out;
}

.menu li a:hover::after {
    width: 100%;
}

.open-menu,
.close-menu {
    position: absolute;
    color: #482F04;
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
}

.open-menu {
    top: 30px;
    right: 20px;
    position: absolute;
    z-index: 1001;
}

.close-menu {
    top: 30px;
    right: 20px;
}

#check {
    display: none;
}

@media(max-width: 610px) {
    .menu {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60%;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 100;
        background-color: #caac9d;
        transition: all 0.2s ease-in-out;
        font-size: large;
    }

    .menu li {
        margin-top: 40px;
    }

    .menu li a {
        padding: 30px;
    }

    .open-menu,
    .close-menu {
        display: block;
    }

    #check:checked~.menu {
        right: 0;
    }
}

.top {
    text-align: center;
    padding: 100px 20px;
}

main {
    text-align: left;
    padding: 10px 10px;
    font-family: "Playfair Display", serif;
    font-style: normal;
    font-size: xx-large;
    overflow: auto;
}

.intro-image {
    width: 200px;
    height: auto;
    display: block;
    margin: 2rem auto;
    margin-top: 0;
}

@media (max-width: 610px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.0rem;
        color: #097CA7;
        font-weight: lighter;
    }

    .intro-image {
        max-width: 300px;
        width: 100%;
        justify-content: center;
        margin-top: 0;
    }
}

@media (min-width: 611px) {
    .intro-image {
        max-width: 1200px;
        width: 100%;
        justify-content: center;
    }
}

.about-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    background-color: #ECDCD0;
}

.about-text {
    max-width: 60%;
}

.about-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: #4a341c;
    font-family: "Playfair Display", serif;
    font-weight: lighter;
}

.about-text p {
    font-size: 1.0rem;
    line-height: 1.5;
    color: #4a341c;
    margin: 0 0 20px 10px;
}

.cta-btn {
    padding: 10px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: #ECDCD0;
    background-color: #777B1B;
    border-radius: 1px;
    transition: transform 0.2s ease;
}

.cta-btn:hover {
    transform: translateY(-4px);
}

@media (max-width: 610px) {
    .about-section {
        flex-direction: column;
        text-align: center;
        font-size: smaller;
    }

    .about-text {
        max-width: 100%;
    }

    .about-text h3 {
        font-size: x-large;
        font-weight: lighter;
        font-style: normal;
    }

    .about-text p {
        font-size: small;
    }
}

.project-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    background-color: #ECDCD0;
}

.project-text {
    max-width: 60%;
}

.project-text h4 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: #4a341c;
    font-family: "Playfair Display", serif;
    font-weight: lighter;
}

.project-text p {
    font-size: 1.0rem;
    line-height: 1.5;
    color: #4a341c;
    margin: 0 0 20px 10px;
}

.cta-btn,
.cta-btn1 {
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-btn1 {
    padding: 10px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: #ECDCD0;
    background-color: #777B1B;
    border-radius: 1px;
    transition: transform 0.2s ease;
}

.cta-btn1 :hover {
    transform: translateY(-4px);

}

@media (max-width: 610px) {
    .project-section {
        flex-direction: column;
        text-align: center;
        font-size: smaller;
    }

    .project-text {
        max-width: 100%;
    }

    .project-text h4 {
        font-size: x-large;
        font-weight: lighter;
        font-style: normal;
    }

    .project-text p {
        font-size: small;
    }
}

@media (min-width:611px) {
    h1 {
        font-size: 4.5rem;
    }

    h2 {
        font-size: 3.5rem;
        color: #097CA7;
        font-weight: lighter;
    }

    .intro-image {
        transform: scale(0.80);
    }
}

@media (min-width:611px) {
    h3 {
        font-size: 3.0rem;
        margin-top: 30px;
        margin-bottom: 30px;
        padding-left: 10px;
    }

    h4 {
        font-size: 3.0rem;
        margin-top: 30px;
        margin-bottom: 30px;
        padding-left: 10px;
    }
}

.footer {
    background-color: #c8a99a;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #3a2c1e;
    font-size: 0.95rem;
    position: relative;
    width: 100%;
}

.footer-left {
    margin: 0;
}

.footer-right {
    text-align: right;
    line-height: 1.4;
}

hr {
    border: 1px solid #482F04;
}

@media (max-width: 600px) {
    .footer-left {
        text-align: left;
        font-size: 0.8rem;
    }

    .footer-right {
        text-align: right;
        font-size: 0.8rem;
    }
}

@media (min-width:611px) and (max-width: 2000px) {
    .footer-left {
        text-align: left;
        font-size: 0.8rem;
    }

    .footer-right {
        text-align: right;
        font-size: 0.8rem;
        margin-right: 0rem;
    }
}

.aboutme-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 10px 10px;
    max-width: fit-content;
    margin: auto;
}

.aboutme-text {
    flex: 1;
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.6;
    padding-bottom: 20px;
}

.aboutme-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 20px;
}

.aboutme-image img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 4px;
}

@media (max-width: 610px) {
    .aboutme-layout {
        flex-direction: column;
    }

    .aboutme-image {
        order: 1;
        justify-content: center;
    }

    .aboutme-text {
        order: 2;
        text-align: left;
        font-size: medium;
    }

    .aboutme-image img {
        max-width: 250px;
        width: 100%;
    }
}

@media (min-width: 611px) {
    .aboutme-text {
        font-size: 1.5rem;
    }

    .aboutme-image {
        max-width: 600px;
        width: 100%;
    }

    .aboutme-text {
        text-align: left;
        max-width: fit-content;
        padding-left: 10px;
        padding-top: 30px;
    }
}

.programs-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
}



@media (max-width: 610px) {
    .programs-image {
        max-width: 200px;
    }

    .programs-section h3 {
        margin-bottom: 20px;
    }

    .portrait-pair {
        max-height: 220px;
        overflow: hidden;
    }

    .portrait-pair img {
        width: 50%;
        height: 220px;
        object-fit: cover;
    }
}

@media (min-width: 611px) {
    .programs-section h3 {
        font-size: 1.5rem;
    }

    .programs-image {
        max-width: 300px;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.project-card {
    border: 1px solid #482F04;
    padding: 20px;
    background-color: #f4e6da;
}

.project-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.project-text {
    text-align: center;
}

@media (max-width: 610px) {
    .projectcard-image {
        flex-direction: column;
        text-align: center;
    }

    .projectcard-image img {
        max-width: 300px;
    }

    .project-text {
        display: flex;
        flex-direction: column;
        gap: 12px;

    }

    .project-card h4,
    .project-card p {
        text-align: center;
    }

    .project-card p {
        max-width: none;
        font-size: 1.0rem;
        line-height: 1.5;
    }

    .before-after {
        flex-direction: column;
    }
}

@media (min-width: 611px) {
    .projects-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        width: 80%;
        max-width: none;
        margin: 40px auto;
        padding: 0;
    }

    .project-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .project-card img {
        align-self: center;
        max-width: 300px;
        width: 100%;
        margin-bottom: 20px;
    }

    .project-text {
        width: 100%;
        max-width: none;
        text-align: left;
    }

    .project-card h4 {
        font-weight: bolder;
        text-align: center;
        font-size: 1.5rem;
    }

    .project-card p {
        font-size: 1.0rem;
        line-height: 1.5;
        text-align: center;
    }

    .project-card img.large-image {
        max-width: 430px;
    }

    .project-card img.larger-image {
        max-width: 600px;
        margin-top: 20px;
        margin-bottom: 80px;
    }
}

.movingart-video {
    max-width: 200px;
    max-width: 100%;
}

@media (min-width:611px) {
    .movingart-video {
        margin-bottom: 55px;
    }
}

.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.contact-text {
    font-size: larger;
}

form {
    background-color: #e7d3c3;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
}

form input,
textarea {
    margin: 10px 0;
    border: 0;
    background-color: white;
    border-radius: 5px;
    padding: 10px;
}

form input[type=submit] {
    background-color: #777B1B;
    color: #ECDCD0;
}

form textarea {
    min-height: 60px;
    max-height: 100px;
    resize: vertical;
}

.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
}

@media (max-width:610px) {
    .contact-layout {
        flex-direction: column;
        align-items: center;
    }

    .contact-text {
        flex: 1;
        padding-right: 1.5rem;
        text-align: center;
        line-height: 1.5;
    }

    .contact-text h5 {
        font-size: large;
    }

    #contact {
        flex: 1;
    }

    .formheader {
        text-align: center;
    }
}

@media (min-width:611px) {
    .contact-layout {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 4rem;
        max-width: 70%;
        margin: 4rem auto;
    }

    .contact-text {
        padding-right: 2rem;
        line-height: 3.0rem;
        font-size: 1.5rem;
        white-space: nowrap;
    }

    .contact-text h5 {
        font-size: 2.0rem;
        font-weight: 400;
        padding-bottom: 20px;
        white-space: nowrap;
    }

    .formheader {
        font-size: 1.5rem;
    }

}

#contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact input,
#contact textarea {
    width: 100%;
}