* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: playfair display, sans serif;
}
.background {
    background-image: url(./../images/background-arrows-web.jpg);
    background-size: cover;
    background-attachment: fixed;
}
/* Header */
.container {
    width: 90vw;
    margin: 0 auto;
    height: fit-content;
}
a {
    text-decoration: none;
    color: black;
    text-transform: uppercase;
}
#logo {
    width: 220px;
    margin-bottom: 10px;
    margin-top: 5px;
}
/* Motto part-Three major words */
section .motto {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    width: 80%;
    margin: 0.5% auto 2% auto;
}
.word {
    width: 24vw;
    font-size: 2.5em;
    font-weight: 700;
    padding: 1%;
}
.word1 {
    width: 90%;
    font-size: 0.8em;
    padding: 1%;
    flex-wrap: wrap;
}
/* Middle part  */
.pic {
    background-size: cover;
    background-position: 50% 50%;
    max-width: 50%;
    min-width: 50%;
    min-height: 250px;
}
.text {
    display: block;
    text-align: center;
    padding: 15px;
    word-wrap: break-word;
    background-color: rgba(240, 240, 229, 0.848);
}
#yh {
    background-color: rgb(85, 33, 33);
    color: white;
}
#medical {
    background-color: rgb(85, 33, 33);
    color: white;
}
#academic {
    background-size: cover;
    background-position: 20% 80%;
    max-width: 50%;
    min-width: 50%;
    min-height: 250px;
}
a.light-bg {
    display: inline-block;
    background-color: rgb(85, 33, 33);
    color: white;
    font-weight: 500;
    margin-top: 20px;
    padding: 10px 57px 10px 56px;
    border-radius: 50px;
}
a.red-bg {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 57px 10px 56px;
    border-radius: 50px;
    border: solid white 2px;
    color: white;
    font-weight: 500;
}
.flex-row-1,
.flex-row-2,
.flex-row-3,
.flex-row-4,
.flex-row-5 {
    display: flex;
    flex-direction: row;
    margin: 0 auto;
    width: 70vw;
    line-height: 1.6;
}

.flex-row-1 .pic {
    background-image: url(./../images/landing-students-smaller.jpg);
}

.flex-row-2 .pic {
    background-image: url(./../images/landing-general-hands-smaller.jpg);
}

.flex-row-3 .pic {
    background-image: url(./../images/enterprise-wood-smaller.jpg);
}

.flex-row-4 .pic {
    background-image: url(./../images/landing-medical-1-smaller.jpg);
}

.flex-row-5 .pic {
    background-image: url(./../images/leadership-smaller.jpg);
}

/* Footer */

footer .flex-row-6 {
    display: flex;
    justify-content: space-evenly;
    background-color: rgb(105, 105, 105);
    color: white;
    padding: 10px;
    border-top-style: solid;
    border-top-color: black;
}

/* Breakpoints */
@media screen and (min-device-width: 768px) and (max-device-width:1024px) {
    .background {
        background-image: url(./../images/background-arrows-web-small.jpg);
        min-width: 100vw;
    }
    .flex-row-1,
    .flex-row-2,
    .flex-row-3,
    .flex-row-4,
    .flex-row-5 {
        display: flex;
        flex-direction: row;
        margin: 0 auto;
        width: 90%;
        line-height: 1.6;
    }
    section .motto {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        width: 80%;
    }

    #empower {
        display: block;
        margin-left: -6%;
    }

    .word {
        width: 25vw;
        font-size: 1.8em;
        font-weight: 700;
        padding: 0.5%;
    }

    .word1 {
        width: 90%;
        font-size: 0.7em;
        padding: 0.5%;
        flex-wrap: wrap;
    }

    /* FOOTER */
    .flex-row-6 p {
        text-align: center;
        font-size: 0.9em;
    }

    footer .flex-row-6 {
        padding: 7px;
    }
}

@media screen and (min-device-width:320px) and (max-device-width:498px) {
    .background {
        background-image: none;
        background-color: rgb(247, 245, 242);
    }

    #logo {
        width: 25vw;
        margin-bottom: 10px;
        margin-top: 5px;
    }

    section .motto {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        text-align:center;
        width: 90%;
        margin: 0.5% auto 4% auto;
    }

    #empower {
        display: block;
        margin-left: -20%;
    }

    .word {
        width: 20vw;
        font-size: 0.75em;
        padding: 2%;
    }

    .word1 {
        width: 90%;
        font-size: 0.5em;
        padding: 2%;
        flex-wrap: wrap;
    }

    .flex-row-1,
    .flex-row-2,
    .flex-row-3,
    .flex-row-4,
    .flex-row-5 {
        display: flex;
        flex-direction: row;
        margin: 0 auto;
        width: 80vw;
        height: 20vh;
        line-height: 1.6;
        font-size: 0.6em;
    }
    footer .flex-row-6 {
        padding: 4px;
        font-size: 0.5em;
    }
    .pic {
        background-size: cover;
        background-position: 50% 50%;
        max-width: 50%;
        min-width: 50%;
        min-height: 20vh;
    }
    .text {
        font-size: 0.9em;
        max-width: 50%;
        min-width: 50%;
        padding: 3%;
        word-wrap: break-word;
        }
    #academic {
        background-size: cover;
        background-position: 48% 40%;
        max-width: 50%;
        min-width: 50%;
        min-height: 20vh;
    }

    a.light-bg {
        width: 25vw;
        font-size: 0.7em;
        margin-top: 10px;
        padding: 7%;
        border-radius: 50px;
    }
    a.red-bg {
        width: 25vw;
        font-size: 0.7em;
        margin-top: 10px;
        padding: 7%;
        border-radius: 50px;
        font-weight: 500;
    }
    .flex-row-1 .pic {
        background-image: url(./../images/smaller/landing-students-s.jpg);
    }
    .flex-row-2 .pic {
        background-image: url(./../images/smaller/landing-general-hands-s.jpg);
    }
    .flex-row-3 .pic {
        background-image: url(./../images/smaller/enterprise-wood-s.jpg);
    }
    .flex-row-4 .pic {
        background-image: url(./../images/smaller/landing-medical-427x427.jpg);
    }
    .flex-row-5 .pic {
        background-image: url(./../images/smaller/leadership-s.jpg);
    }
    span.extra-text{
        display: none;
    }
    #camp-h1{
        font-size: 1.2em;
    }
    .flex-row-6 p {
        text-align: center;
        font-size: 0.9em;
    }

    footer .flex-row-6 {
        padding: 4px;
    }
}