div, p {
    font-family: 'Roboto', sans-serif;
}

a {
    text-decoration: none;
}

.center {
    text-align: center;
}

.small {
    font-size: 14px;
}

.bold {
    font-weight: bold;
}


#mainContainer {
    display: flex;
    flex-direction: column;
    background: white;
    height: 100%;
    width: 100%;
}

#mainContainer h1 {
    font-family: 'Poppins', sans-serif;
}

#mainContainer p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    word-break: break-word;
    margin: 10px 0;
}

#mainContainer .ad-unit {
    text-align: center;
    margin: 15px auto;
}

.bg-gray {
    background-color: #555;
}

.bg-dark-white {
    background-color: #f0f0f0;
}

.bg-light-gray {
    background-color: #ddd
}

/*------- Content -------*/
#content {
    width: 100%;
}

#contentSpacer {
    flex-grow: 5;
}

.content-section {
    padding: 10px 20px;
    overflow: auto;
}


/*---- Hero image ----*/
#heroImage {
    background-color: black;
    background-image: linear-gradient(#00000088, #00000099),url("/images/index/recipe_ingredients.jpg");
    background-size: cover;
    background-repeat: no-repeat;
	background-position: center bottom 0px;
	min-height: 350px;
    color: white;
    position: relative;
}

#heroImage .hero-button {
    margin: 50px 0;
}

#heroImage .hero-button button {
    height: 40px;
    padding: 10px;
    font-size: 20px;
    color: white;
    background-color: deepskyblue;
    cursor: pointer;
    border: none;
    outline: none;
}

#heroImage .hero-button button:hover,
#heroImage .hero-button button:active {
    background-color: #ccc;    
}

#heroImage .share-text {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

#heroImage .share-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 40px 0 10px 0;
}

#heroImage .share-icons a {
    text-decoration: none;
    margin: 0 5px;
}


/*---- Tools info ----*/
#toolsInfo {
    background-color: white;
}

#toolsInfo.content-section {
    padding: 20px;
}

#toolsInfo .row.cards {
    max-width: 1000px;
    margin: auto;
}

#toolsInfo h3 {
    font-size: 20px;
    margin: 5px 0;
}

#toolsInfo p {
    margin: 5px 0;
}

#toolsInfo .card {
    display: block;
    text-align: center;
    padding: 10px;
    margin: 20px 0;
    background-color: #fefefe;
    box-shadow: 0 2px 5px 0 gray;
}

#toolsInfo .card .card-image {
    width: 100%;
    padding: 5px 30px;
}

#toolsInfo .card-head {
    display: block;
    text-align: center;
}

#toolsInfo .badge {
    padding: 10px 0;
    margin: 5px;
}

#toolsInfo .app-badge {
    margin: 5px;
    height: 50px;
    width: 170px;
}

#toolsInfo .button-bottom {
    padding-bottom: 30px;
}

#toolsInfo .orange-button {
    position: relative;
    background-color: coral;
    color: white;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

#toolsInfo .app-badge:hover,
#toolsInfo .app-badge:active {
    box-shadow: 0 0 10px 1px #1e90ff;
    background-color: #1e90ff80;
}

/*---- Recipe Converter info ----*/
#recipeConverterInfo {
    background: #f0f0f0;
}

#recipeConverterInfo .card .orange-link {
    position: relative;
    text-decoration: none;
    color: coral;
    margin: 10px 0;
}

#recipeConverterInfo .card .orange-link:hover {
    text-decoration: underline;
}


/*-------- Recipe Search info --------*/
#recipeSearchInfo {
    background: #333;
    color: white;
}

#searchImage {
    text-align: center;
    margin: 30px 0;
}

#searchImage img {
    width: 100%;
    max-width: 430px;
}


/*-------- Kitchen Calculator info --------*/
#kitchenCalculatorInfo {
    background: lightblue;
    color: black;
}

#unitImage {
    text-align: center;
    margin: 30px 0;
}

#unitImage img {
    width: 100%;
    max-width: 650px;
}



#toolsInfo .orange-button:hover,
#toolsInfo .orange-button:active,
#recipeConverterInfo .orange-button:hover,
#recipeConverterInfo .orange-button:active,
#kitchenCalculatorInfo .orange-button:hover,
#kitchenCalculatorInfo .orange-button:active {
    background-color: gray;
}

#toolsInfo .orange-button,
#recipeConverterInfo .orange-button,
#kitchenCalculatorInfo .orange-button {
    background-color: coral;
    color: white;
    width: 150px;
    font-size: 16px;
    padding: 10px;
    margin: 10px;
    border: none;
    cursor: pointer;
}

.ad-unit {
    max-width: 1000px;
}


/* Disable hovering effects for mobile/touch applications */
@media (hover: none) {
    .icon-button:hover {
        background-color: transparent;
    }

    #toolsInfo .app-badge {
        box-shadow: none;
        background-color: transparent;
    }

    #recipeConverterInfo .card .orange-link:hover {
        text-decoration: none;
    }
}


@media only screen and (min-width: 150px){    
    
    .content-section h1 {
        font-family: 'Poppins', sans-serif;
        text-align: center;
        font-size: 18pt;
        margin: 20px 0 0 0;
    }

    .title-desc {
        font-size: 18px;
        text-align: center;
        font-weight: 300;
        margin: 2px 0 20px 0;
    }

    #recipeConverterInfo .card {
        background: white;
        padding: 15px;
        margin: 20px 0;
        box-shadow: 0 2px 5px 0 gray;
    }

    #recipeConverterInfo .card h3 {
        text-align: center;
        font-size: 40px;
        margin: 10px 0;
    }

    #recipeConverterInfo .card-head {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        padding: 5px 0;
    }
    
    #recipeConverterInfo .card-head .blue {
        color: dodgerblue;
    }

    #recipeConverterInfo .card-head .yellow {
        color: gold;
    }

    #recipeConverterInfo .card-head .purple {
        color: darkviolet;
    }

    #recipeConverterInfo .card-head i {
        margin-right: 10px;
        font-size: 40px;
    }    

    .search-info,
    .kitchen-calculator-info {
        text-align: left;
        margin: 0 15px;
    }    
}


@media only screen and (min-width: 400px) {
    .content-section h1 {
        font-size: 24pt;
    }

    #heroImage {
        min-height: 350px;
    }

    #heroImage .hero-button {
        margin: 50px 0;
    }

    .search-info,
    .kitchen-calculator-info {
        text-align: center;
        margin: 0 15px;
    }

    #toolsInfo .card {
        display: block;
        padding: 10px;
        margin: 20px auto;
        max-width: 400px;
    }
         
}


@media only screen and (min-width: 700px) {
    #toolsInfo .cards {
        display: flex;
    }
    
    #toolsInfo .row.cards {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    #toolsInfo .card {
        position: relative;
        display: block;
        padding: 10px;
        margin: 10px auto;
        width: 200px;
    }

    #toolsInfo .badge {
        margin: 0;
    }

    #toolsInfo .orange-button {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translate(-50%, 0);
        margin: 0;
    }
}


@media only screen and (min-width: 800px) {
    .content-section {
        padding: 20px 10%;
    }

    .content-section h1 {
        font-size: 40pt;
    }    
        
    #heroImage .hero-button {
        margin: 110px 0 50px 0;
    }
    
    .title-desc {
        font-size: 24px;
        font-weight: 400;
        margin: 5px 0 30px 0;
    }
    
    .search-info,
    .kitchen-calculator-info {
        max-width: 700px;
        margin: auto;
    }

    .recipe-converter-info {
        max-width: 1000px;
        margin: auto;
    }    

    #toolsInfo .row.cards {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    #toolsInfo .card {
        position: relative;
        display: block;
        padding: 10px;
        margin: 10px 10px;
        width: 250px;
    }

    #toolsInfo .orange-button {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translate(-50%, 0);
    }
}


@media only screen and (min-width: 1000px) {
    #heroImage {
        min-height: 400px;
    }
    
    .row.cards {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-around;
    }

    .col-3 {
        width: 30%;
        margin: 0 2%;
    }    

    #recipeConverterInfo .card {
        position: relative;
        background: white;
        padding: 20px 20px 50px 20px;
        margin: 30px 10px;
        box-shadow: 0 2px 5px 0 gray;
    }    

    #recipeConverterInfo .card-head {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }

    #recipeConverterInfo .card-head.red {
        color: darkred;
    }

    #recipeConverterInfo .card-head.blue {
        color: dodgerblue;
    }

    #recipeConverterInfo .card-head.purple {
        color: darkviolet;
    }  

    #recipeConverterInfo .card .orange-link {
        position: absolute;
        text-decoration: none;
        color: coral;
        margin: 0;
        bottom: 20px;
    }

    .content-section ol {
        margin: 10px 15px;
    }  

    #toolsInfo .row.cards {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-around;
    }

    #toolsInfo .card {
        position: relative;
        padding: 15px;
        margin: 10px;
        width: 30%;
        max-width: unset;
    }

    #toolsInfo .orange-button {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translate(-50%, 0);
    }
}