main {
    margin: 0;
    max-width: 100%;
    padding: 0;
}
.homeBlock {
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
}
.homeBlock img {
    width: 40%;
    max-width: 300px;
    margin: 10px;
}
header.home {
    margin: 0 auto;
    background: url(/images/header_image.jpg) no-repeat center center; 
    background-size: cover;
    z-index: 10;
    height: 300px;
}
header.home .header-text {
    margin: 0 auto;
    display: block;
    padding-left: 136px;
    max-width: 100%;
}

/*///// Welcome Section //////*/
.home-welcome {
    background: var(--pink-background);
    padding: 20px 0;
}
.welcome-large {
    font-size: 60px;
    color: white;
    position: relative;
    margin: 10px 0 0;
    text-align: center;
}
.welcome-small {
    font-size: 20px;
    color: black;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 100%;
}
.home-welcome .welcome-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-evenly;
    align-items: stretch;
}
.home-welcome .welcome-head {
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    width: 50%;
}
.home-welcome .welcome-text {
    border-bottom: 1px solid black;
    width: 50%;
    padding: 20px;
}
.home-welcome .welcome-buttons-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-evenly;
    align-items: stretch;
    margin-top: 20px;
}
.home-welcome .welcome-buttons {
    background: var(--light-pink);
    display: block;
    padding: 5px 20px;
}
.home-welcome .welcome-buttons:hover {
    color: var(--background);
    background: var(--green-dark);
}

/*///// Images Section //////*/
.welcome-section-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-evenly;
    align-items: stretch;
    margin: 20px;
}
.welcome-section-flex .block {
    width: 50%;
}
.flex-img, .flex-txt {
    order: auto;
}
.middle-content {
    border-top: 1px solid var(--main-gray);
    border-bottom: 1px solid var(--main-gray);
    padding: 20px;
}
.welcome-section-flex h2 {
    color: var(--dark-pink);
    font-family: var(--font-db);
}
.welcome-section-flex ul {
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: center;
    flex-wrap: wrap;
}
.welcome-section-flex ol {
    column-count: 2;
    width: 300px;
}

.home-why {
    background: var(--green-light);
}
.why-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-evenly;
    align-items: stretch;
    margin: 30px 20px 0;
}
.why-flex img {
    width: 60px;
}
.why-flex h4 {
    padding: 20px 0;
}
.why-flex block {
    padding: 10px;
}
.book-flex {
    display: flex;
}
.home-book {
    height: 220px;
    position: relative;
    overflow: hidden;
}
.home-book .background {
    position: absolute;
    right: 0;
    top: 0;
    height: 230px;
}
.home-book .container {
    z-index: 10;
    position: relative;
}
.book-block {
    padding: 50px 0 0 0;
    width: 400px;
    text-align: center;
    position: relative;
    margin-left: 100px;
    z-index: 10;
}
.book-block a {
    margin-top: 40px;
    background: var(--green-dark);
    display: block;
    padding: 5px 20px;
    width: 160px;
    color: white;
}
.book-block a:hover {
    color: black;
    background: var(--dark-pink);
}

.book-block img {
    position: absolute;
    right: 35px;
    top: 85px;
    height: 80px;
}

@media only screen and (max-width: 500px) {
    .homeBlock img {
        width: 100%;
        max-width: 500px;
        margin: 5px 0;
    }
}
@media screen and (max-width:767px) {
    header.home {
        height: 150px;
    }
    header.home .navbar-collapse {
        background: rgba(0,0,0,0.7);
        padding: 10px;
        border: 1px solid black;
        border-radius: 15px;
        z-index: 20;
    }
    header.home .nav-link {
        color: #AAA;
    }
    header.home .header-text {
        display: none;
    }

    .home-welcome {
        padding: 0 0 20px;
    }
    .welcome-small {
        font-size: 16px;
        bottom: 8px;
    }
    .home-welcome .welcome-flex,
    .welcome-section-flex,
    .why-flex {
        flex-direction: column;
    }
    .welcome-section-flex .block {
        width: 100%;
    }
    .home-welcome .welcome-head {
        border: 0;
        width: 100%;
    }
    .home-welcome .welcome-text {
        border: 0;
        width: 100%;
        padding: 20px;
    }
    .flex-img {
        order: 1;
    }
    .flex-txt {
        order: 2;
        margin-top: 20px;
    }
    .book-block {
        margin-left: 60px;
        width: 300px;
    }
    .book-block img {
        right: 0px;
    }
    .book-block a {
        width: 140px;
    }
    .home-book .background {
        right: -100px;
    }
}

@media screen and (max-width:600px) {
    .book-block {
        margin-left: 10px;
        width: 250px;
    }
    .book-block div {
        font-size: var(--text-small);
    }
    .book-block img {
        right: 0;
        top: 75px;
        height: 63px;
    }
    .book-block a {
        margin-top: 25px;
        padding: 5px 5px;
        width: 126px;
    }
    .home-book .background {
        right: -160px;
    }
}