* {
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}

body {
    background-color: #fad8d6;
    padding-bottom: 400px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* parent container */
.container {
    background-color: #f7f0f1;
    width: 80%;
    margin: 20px auto;
    display: flex;
    flex-flow: row wrap;
    overflow: hidden;
}

/* first child of main parent container */
.header {
    width: 100%; height: 80px;
    position: relative;
}

.title{
    padding: 6px;
    position: absolute; left: 0px; top: -8px;
    text-decoration: none;
    font-family: 'Quintessential', cursive; /* Google font */
    font-weight: bold;
    font-size: 32px;
    color: rgb(221, 85, 131);
}

/* title for narrow device */
.narrow-device {
    position: absolute; left: 60px; top: 40px;
}

.phone {
    position: absolute; right: 60px; top: 20px;
    padding: 10px;
    text-decoration: none;
    font-size: large;
    color: rgb(221, 85, 131);
}

.shopping-cart {
    background-image: url(../images/shopping-cart-original-final.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute; right: 0px; top: 20px;
    padding: 20px;
}

/* second child of main parent container */
.big-image {
    display: flex;
    flex-flow: row wrap;
    width: 100%; height: 48vh;
    margin-top: 8px;
    background-image: url(../images/big-image-original-final.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    align-items: center; 
    justify-content: center;
}

.tagline {
    width: 50%; height: 200px;
    background-color: rgba(7, 7, 7, 0.3);
    text-align: center;
    color:seashell;
    font-size: 32px;
    border-radius: 4px;
}

.tagline-span {
    font-size: 48px;
    font-family: 'Quintessential', cursive; /* Google font */
    text-shadow: 1px 1px 1px rgb(221, 85, 131);
}

/* third child of the main parent container */
.promo-parent {
    margin-top: 16px;
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

.promo-item-text{
    width: 100%; height: 24px;
    background-color: rgba(7, 7, 7, 0.6);
    text-align: center;
    color:seashell;
    font-size: large;
    border-radius: 4px;
}

/* children of third child of the main parent container */
.promo-item {
    /*width: 24%;*/ height: 130px;
    padding: 60px;
    text-decoration: none;
    color:seashell;
    flex: 0 0 24%;
}

.promo-item:nth-child(1) {
    background-image: url(../images/valentines-original-final.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.promo-item:nth-child(2) {
    background-image: url(../images/mothers-day-original-final.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.promo-item:nth-child(3) {
    background-image: url(../images/birthday-final.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.promo-item:nth-child(4) {
    background-image: url(../images/special-occations-final.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* outside of the main parent container */
.address {
    background-color:rgb(221, 85, 131);
    color:seashell;
    font-size: large;
    text-align: center;
    position: fixed;
    bottom: 0px;
    width: 100vw; height: 18vh;
    padding: 48px;
}

/* ====================== media queries =============================================== */
@media screen and (max-width: 1000px) {

    .title{
        position: absolute; left: 0px; top: 0px;
        font-size: 24px;
    }

    .narrow-device {
        position: absolute; left: 32px; top: 30px;
    }

    .tagline {
        font-size: 24px;
        height: 240px;
        text-align: center;
    }

    .tagline-span {
        font-size: 40px;
    }

    /* children of third child of the main parent container */
    .promo-item {
        height: 130px;
        flex-basis: 100%;
        margin-top: 8px;
    }

    .promo-item:nth-child(1) {
        background-position: top;
    }
    
    .promo-item:nth-child(2) {
        background-position: top;
    }

    /* outside of the main parent container */
    .address {
        padding: 32px;
    }

}

/* ============================================================================= */
@media screen and (max-width: 600px){
    .title{
        font-size: 24px;
    }

    .narrow-device {
        position: absolute; left: 20px; top: 30px;
    }

    .phone {
        font-size: small;
    }

    .tagline {
        font-size: 24px;
        height: 200px;
    }

    .tagline-span {
        font-size: 24px;
    }

    /* children of third child of the main parent container */
    .promo-item {
        height: 130px;
        flex-basis: 100%;
        margin-top: 8px;
    }

    .promo-item:nth-child(1) {
        background-position: top;
    }
    
    .promo-item:nth-child(2) {
        background-position: top;
    }

    /* outside of the main parent container */
    .address {
        padding: 24px;
    }

}