@charset "UTF-8";

html {
    font-size: 100%;
}

body {
    color: gray;
    font-family: 'Crimson Text', serif;
}
 img{
    width: 100%;
    height: 80vh;
 }

 /* mainpic */
 .mainpic {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    object-position: 50% 50%;
 }

 /* nav */
 .main {
    width:100%;
    display: flex;
    text-align: center;
 }
 .main-nav {
    display: flex;
    justify-content: space-between;
    height: 10vh;
    padding: 30px;
    margin-top: 5px;
 }
 h1 {
    font-size: 1.25rem;
    font-weight: bold;
 }
 nav {
    display: flex;
 }
ul {
    display: flex;
}
li {
    margin-left: 15px;
}

 /* column */
section {
    width: 80%;
    display: flex;
    margin-bottom: 60px;
    justify-content: space-between;
    margin: 0 auto 40px auto;
}

section:nth-child(odd) {
    flex-direction: row-reverse;
}

.pic {
    width: 400px;
    object-fit: cover;
}
.pic img {
    width: 400px;
    height: fit-content;

}

.text {
    display: block;
    justify-content: center;
    transform: translateY(30%);
    width: calc(100% -400px -20px);
    margin: 0 20px;
}
h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}
h3 {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

/* footer */
footer {
    width: 80%;
    margin: 0 auto;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
}

footer h2 {
    font-size: 1.23rem;
    font-weight: bold;
}
footer p {
    font-size: 1.25rem;
}

@media (max-width: 767px) {
    img{
        width: 100%;
        height: fit-content;
     }
    
     .mainpic {
        width: 100%;
        height: fit-content;
        object-fit: cover;
     }


    section {
        width: 100%;
        display: block;
        margin-bottom: 100px;
        margin: 0 auto 40px auto;
    }
    
    .pic {
        width: 100%;
        object-fit: cover;
    }
    .pic img {
        width: 100%;
        height: fit-content;
    
    }
    
    .text {
        display: block;
        justify-content: center;
        margin: 0px 20px 100px 20px;
    }
    
    footer h2 {
        font-size: 0.95rem;
        font-weight: bold;
    }
    footer p {
        font-size: .8rem;
    }
}