﻿body {
    background: #fff;
    font-family: "Source Sans Pro";
    background-image: url('../images/icons/svg-bg.svg');
    background-size: contain;
}

.main-content {
    position: relative;
    margin-top: 70px;
}

:root {
    --color: #f07662;
}

.blue {
    --color: #4976ba;
}

.yellow {
    --color: #bc9d45;
}

.orange {
    --color: #fcd385;
}

.green {
    --color: #1cc54e;
}

.brown {
    --color: #914146;
}

.red {
    --color: #c91432;
}

.teal {
    --color: #027180;
}

.recipe-wrapper {
    display: flex;
    flex-wrap: wrap;
    background: transparent;
    /*box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);*/
    align-self: stretch;
    box-sizing: border-box;
}

    .recipe-wrapper .recipe-content {
        background: transparent;
        flex: 5;
        padding: 7%;
        text-align: center;
        min-height: 500px;
        overflow: hidden;
        position: relative;
    }

    .recipe-wrapper .navigation {
        border: 2px solid blue;
        position: fixed;
        bottom: 0;
        /*top: 60px;*/
        font-size: 30px;
        text-align: center;
        color: #fff;
        z-index: 100;
        width: 100%;
        box-sizing: border-box;
    }

        .recipe-wrapper .navigation i {
            margin: 8px;
            display: inline-block;
            opacity: 0.6;
            cursor: pointer;
            border: 2px solid red;
            padding: 20px;
        }

            .recipe-wrapper .navigation i:hover {
                opacity: 1;
            }

            .recipe-wrapper .navigation i.disabled {
                opacity: 0.2;
                pointer-events: none;
            }

    .recipe-wrapper .recipe-page {
        font: 400 28px "Source Sans Pro";
        position: absolute;
        top: 10px;
        right: 20px;
        color: #999;
        opacity: 0;
        transition: all 600ms cubic-bezier(1, 0, 0, 1);
        display: none; /*to hide it from view*/
    }

    .recipe-wrapper .recipe-content-inner {
        transition: all 600ms cubic-bezier(1, 0, 0, 1);
        top: 150%;
        position: absolute;
        left: 0;
        margin: 0 10%;
        right: 0;
    }

.recipe.active .recipe-page {
    opacity: 1;
}

.recipe.active .recipe-content-inner {
    top: 12%;
}

.pie-name {
    font: 900 35px "Source Sans Pro";
    /*text-transform: uppercase;*/
    margin: 20px 0 5px;
    letter-spacing: 2px;
    color: var(--color);
    position: relative;
}

    .pie-name:before {
        content: "";
        position: absolute;
    }

.pie-context {
    font: 400 24px/1.3 "Source Sans Pro";
    color: #999;
    margin: 40px 20px;
}

.pie-serving {
    font: 400 24px "Source Sans Pro";
    color: var(--color);
    /*border: 0.5px solid var(--color);*/
    border-width: 0.5px 0;
    margin: 20px auto;
    /*max-width: 300px;*/
}

    .pie-serving svg {
        width: 40px;
    }

        .pie-serving svg path {
            fill: var(--color);
        }

    .pie-serving p {
        display: inline-block;
        vertical-align: top;
        margin: 12px 6px 6px;
    }

.pie-cta {
    display: inline-block;
    padding: 15px;
    border-radius: 5px;
    background: var(--color);
    width: 180px;
    font-size: 20px;
    color: #fff;
    position: relative;
    margin: auto;
    top: 0;
    transition: all 200ms cubic-bezier(0.77, 0, 0.175, 1);
    text-decoration: none;
}

    .pie-cta:hover {
        top: -5px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .pie-cta.js-left {
        background: #b2b2b2;
    }

aside.context {
    text-align: center;
    color: #fff;
    line-height: 2;
}

    aside.context a {
        text-decoration: none;
        color: #fff;
        padding: 3px 0;
        border-bottom: 1px dashed;
    }

        aside.context a:hover {
            border-style: solid;
        }

    aside.context .explanation {
        max-width: 700px;
        margin: 2em auto;
    }

footer {
    text-align: center;
    margin: 5em auto;
    width: 100%;
}

    footer a {
        text-decoration: none;
        display: inline-block;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: transparent;
        border: 1px dashed #fff;
        color: #fff;
        margin: 5px;
    }

        footer a:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        footer a .icons {
            margin-top: 12px;
            display: inline-block;
            font-size: 20px;
        }

.recipe-wrapper input {
    padding: 0 0 0 0px;
    outline: 0 !important;
    border: 0;
    font-size: 100% !important;
    background: 0;
    color: #3032c1;
    border-bottom: 1px dashed #3032c1;
    font: inherit;
    min-width: 30px;
}

.recipe-wrapper .inputGroup {
    background-color: #fff;
    display: block;
    margin: auto;
    position: relative;
    width: 100%;
    max-width: 340px;
    box-sizing: border-box;
    border: 1px dashed #3032c1;
    margin-bottom: 10px;
}

    .recipe-wrapper .inputGroup label {
        padding: 10px 30px;
        /*width: 80%;*/
        display: block;
        text-align: left;
        color: #3C454C;
        cursor: pointer;
        position: relative;
        z-index: 2;
        transition: color 200ms ease-in;
        overflow: hidden;
    }

        .recipe-wrapper .inputGroup label:before {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            content: '';
            background-color: var(--color);
            position: absolute;
            left: 50%;
            top: 50%;
            -webkit-transform: translate(-50%, -50%) scale3d(1, 1, 1);
            transform: translate(-50%, -50%) scale3d(1, 1, 1);
            transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
            z-index: -1;
        }

        .recipe-wrapper .inputGroup label:after {
            width: 32px;
            height: 32px;
            content: '';
            border: 2px solid #D1D7DC;
            background-color: #fff;
            background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.414 11L4 12.414l5.414 5.414L20.828 6.414 19.414 5l-10 10z' fill='%23fff' fill-rule='nonzero'/%3E%3C/svg%3E ");
            background-repeat: no-repeat;
            background-position: 2px 3px;
            border-radius: 50%;
            z-index: 2;
            position: absolute;
            right: 20px;
            top: 50%;
            -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
            cursor: pointer;
            transition: all 200ms ease-in;
        }

    .recipe-wrapper .inputGroup input:checked ~ label {
        color: #fff;
    }

        .recipe-wrapper .inputGroup input:checked ~ label:before {
            -webkit-transform: translate(-50%, -50%) scale3d(56, 56, 1);
            transform: translate(-50%, -50%) scale3d(56, 56, 1);
            opacity: 1;
        }

        .recipe-wrapper .inputGroup input:checked ~ label:after {
            background-color: #54E0C7;
            border-color: #54E0C7;
        }

    .recipe-wrapper .inputGroup input {
        width: 32px;
        height: 32px;
        order: 1;
        z-index: 2;
        position: absolute;
        right: 30px;
        top: 50%;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        cursor: pointer;
        visibility: hidden;
    }

.recipe-wrapper .select {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 45px;
    background: #f4f6fb;
    border: 2px solid #d3dae7;
    border-radius: 2px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 10px auto;
}

    .recipe-wrapper .select:hover {
        border-color: #c5cddf;
    }

    .recipe-wrapper .select > select {
        display: block;
        width: 100%;
        height: 40px;
        line-height: 17px;
        color: inherit;
        background: #fff;
        border: 0;
        -webkit-appearance: none;
        outline: 0;
        margin: 0;
        font-size: 80%;
        padding: 7px 6px 6px 10px;
    }

        .recipe-wrapper .select > select:focus {
            color: inherit;
            outline: 0;
            outline-offset: 0;
            -moz-outline-radius: 2px;
        }

    .recipe-wrapper .select:before, .recipe-wrapper .select:after {
        content: '';
        position: absolute;
        pointer-events: none;
    }

    .recipe-wrapper .select:before {
        top: 0;
        bottom: 0;
        right: 0;
        width: 35px;
        background: inherit;
    }

    .recipe-wrapper .select:after {
        top: 18px;
        right: 13px;
        width: 0;
        height: 0;
        border: 7px solid transparent;
        border-top-color: #333;
    }

.field-validation-error {
    color: red;
    font-weight: 700;
    font-size: 70%;
}

.hide {
    display: none;
}

.avatar {
    position: absolute;
    width: 100%;
    margin: 10px auto !important;
    /*border: 1px red solid;*/
    display: block;
    text-align: center;
}

    .avatar img {
        width: 90px;
    }

.logo {
    width: 60px;
    height: 60px;
}

.header-wrap {
    height: 70px;
    border-bottom: 1px #DADADA solid;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #4976ba;
    z-index: 1000;
}

    .header-wrap .header-advisor {
        width: 100px;
        height: 100px;
        position: absolute;
        left: 50%;
        margin-left: -40px;
        bottom: -50px;
        -webkit-transition: bottom 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
        -moz-transition: bottom 0.2s ease-in-out, -moz-transform 0.2s ease-in-out;
        -o-transition: bottom 0.2s ease-in-out, -o-transform 0.2s ease-in-out;
        transition: bottom 0.2s ease-in-out, transform 0.2s ease-in-out;
    }

    .header-wrap .logo {
        display: inline-block;
        background: transparent url('/images/icons/axa-logo-60.svg') no-repeat 0 0;
        width:60px;
        height: 60px;
        margin-left: 10px;
    }

    .header-wrap .header-actions-menu {
        position: absolute;
        height: 30px;
        top: 15px;
        right: 22px;
    }

.btn-standard {
    display: inline-block;
    cursor: default;
    background-color: #fff;
    width: auto;
    height: 35px;
    line-height: 30px;
    padding: 5px 12px 0 12px;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 16px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    text-decoration: none;
    text-align: center;
    overflow: hidden;
    -moz-transition: background-color ease-out 100ms 0;
    -webkit-transition: background-color ease-out 100ms 0;
    -o-transition: background-color ease-out 100ms 0;
    transition: background-color ease-out 100ms 0;
    color: #494df4;
    background-image: url(../images/button-gradient-light.png);
}

    .btn-standard:hover {
        -moz-transition: background-color ease-out 100ms 0;
        -webkit-transition: background-color ease-out 100ms 0;
        -o-transition: background-color ease-out 100ms 0;
        transition: background-color ease-out 100ms 0;
        /*background-color: #00005b;*/
        cursor: pointer;
    }

.avatar.med {
    width: 80px;
    height: 80px;
    background-size: 80px;
}

.avatar {
    background: center center no-repeat;
    display: inline-block;
    border-radius: 50%;
    flex-shrink: 0;
    flex-grow: 0;
    -webkit-transition: width 0.15s, height 0.15s, background-size 0.15s;
    -moz-transition: width 0.15s, height 0.15s, background-size 0.15s;
    -o-transition: width 0.15s, height 0.15s, background-size 0.15s;
    transition: width 0.15s, height 0.15s, background-size 0.15s;
}


/* For Mobile*/
@media (max-width: 750px) {
    .recipe-wrapper .recipe-content {
        flex: 1 1 100%;
    }

    .pie-cta {
        width: 100px;
        font-size: 20px;
    }

    .recipe-wrapper .recipe-content {
        min-height: 600px;
    }
}

@media (max-width: 500px) {
    .recipe-wrapper .recipe-content {
        min-height: 600px;
    }

    .pie-name {
        font: 900 28px "Source Sans Pro";
        margin: 10px 0 5px;
    }

    .recipe-wrapper .inputGroup label {
        padding: 10px 10px;
        font-size: 80%;
    }

        .recipe-wrapper .inputGroup label:after {
            width: 28px;
            height: 28px;
            right: 10px;
        }

    .recipe.active .recipe-content-inner {
        top: 17%;
    }

    .recipe-wrapper .recipe-content-inner {
        margin: 0 5%;
    }

    .recipe-wrapper .recipe-page {
        font: 400 20px "Source Sans Pro";
    }
}
