﻿
html, body {
    height: 100%;
    font-family: 'Nunito', sans-serif;
}

.header-bar {
    position: relative;
    padding: 20px;
    padding-right: 30px;
    height: 80px;
    background: black;
    text-align: right;
}

    .header-bar .logo {
        height: 45px;
        position: absolute;
        left: 20px;
        top: 15px;
    }

    .header-bar .link {
        margin-left: 20px;
    }

    .header-bar .link, .header-bar .link:hover, .header-bar .link:active, .header-bar .link:focus, .header-bar .link:visited {
        font-weight: 100;
        font-size: 18px;
        color: white;
        text-decoration: none;
        position: relative;
        top: 10px;
        font-family: 'Nunito', sans-serif;
    }


.calculator-landing {
    width: 100%;
    height: calc(100% - 80px);
    background: url('/Content/images/landing_bg.png');
    background-repeat: no-repeat;
    background-position: right 20%;
    background-size: 40%;
    padding-top: 10%;
    padding-left: 10%;
}

    .calculator-landing.thankyou {
        background-image: url('/Content/images/thankyou_graphic.png');
    }

    .calculator-landing .calc-b-next {
        margin: 0;
    }

    .calculator-landing .content-body {
        width: 600px;
        padding-top: 70px;
    }

    .calculator-landing .calc-title {
        font-size: 40px;
    }

    .calculator-landing .calc-text {
        font-size: 18px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

.calc-progress-bar {
    display: block;
    width: 500px;
    height: 8px;
    border-radius: 5px;
    background: #f1f1f1;
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 40px;
}

.calc-back, .calc-progress-bar, #calc-next {
    display: none;
}

.calc-fill {
    display: block;
    width: 30px;
    height: 8px;
    border-radius: 5px;
    background: #0f99cb;
}

.calculator-question {
    font-family: 'Nunito', sans-serif;
    display: none;
    width: 800px;
    margin: 0 auto;
    margin-bottom: 50px;
    text-align: center;
}

.calc-q-title {
    font-size: 34px;
}

.calc-q-description {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.calculator-question input, .calculator-question .calc-select-plain {
    padding: 10px 15px;
    border: 1px solid #b7b7b7;
    border-radius: 5px;
}

.calc-currency {
    display: inline-block;
    position: relative;
}

    .calc-currency input {
        padding-left: 30px;
    }

    .calc-currency.perc input {
        padding-left: 15px;
        padding-right: 30px;
    }

    .calc-currency.big {
        padding-top: 0px;
        padding-bottom: 20px;
    }

    .calc-currency .currency-placeholder {
        position: absolute;
        left: 10px;
        top: 11px;
        display: none;
    }

        .calc-currency .currency-placeholder.usd {
            display: block;
        }

.calculator-question select {
    -moz-appearance: none; /* Firefox */
    -webkit-appearance: none; /* Safari and Chrome */
    appearance: none;
    padding: 10px 15px;
    border: 0;
    background: black;
    color: white;
    border-radius: 5px;
    padding-right: 35px;
}

.calculator-question .calc-select.white select {
    background: white;
    color: black;
    border: 1px solid #999999;
    width: 300px;
}

.calculator-question .calc-select.white .glyphicon-chevron-down {
    color: black;
}

.calculator-question .calc-select-plain {
    -webkit-appearance: auto;
    appearance: auto;
    background: white;
    color: black;
}

.calculator-question .calc-select {
    position: relative;
    display: inline-block;
}

    .calculator-question .calc-select .glyphicon-chevron-down {
        position: absolute;
        right: 12px;
        color: white;
        font-size: 12px;
        top: 14px;
    }

.calc-b-next {
    padding: 15px 50px;
    border: 0;
    background: #0f99cb;
    color: white;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
    min-width: 140px;
    margin-bottom: 10px;
    outline: 0;
    margin-top: 10px;
}

    .calc-b-next:focus, .calc-b-next:hover, .calc-b-next:active {
        outline: 0;
    }

    .calc-b-next[disabled] {
        background: #7597a3;
    }

.calc-back {
    color: #bfbfbf;
    position: absolute;
    top: 122px;
    left: calc(50% - 400px);
    display: none;
    cursor: pointer;
}

    .calc-back .glyphicon-chevron-left {
        font-size: 12px;
        position: relative;
        top: -0.5px;
        margin-right: 5px;
    }

.calc-inline-inputs {
    display: inline-block;
    width: 150px;
    position: relative;
}

.calc-inline-hint {
    position: absolute;
    bottom: -45px;
    font-size: 13px;
    font-weight: normal !important;
}


.admin-question {
    font-size: 18px;
    font-weight: bold;
    background: #ffca00;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

    .calc-inline-inputs input {
        width: 110px;
    }

    .calc-inline-inputs label {
        font-weight: bold;
        display: block;
    }

    .calc-inline-inputs .currency-placeholder.perc {
        position: absolute;
        right: 12px;
        z-index: 999999;
        top: 12px;
        left: unset;
        display: block;
    }

.calc-currency.big .currency-placeholder.perc {
    top: 6px;
    left: unset;
    display: block;
    font-size: 22px;
}

#calc-error {
    display: none;
    margin: 0 auto;
    width: 500px;
    text-align: center;
}

.calc-button-big {
    display: inline-block;
    width: 190px;
    vertical-align: top;
}


    .calc-button-big .image {
        display: block;
        width: 180px;
        height: 180px;
        background-size: 180px;
        background-position: center;
        background-repeat: no-repeat;
        cursor: pointer;
        margin: 0 auto;
    }

    .calc-button-big.active .image {
        border: 2px solid #1c82f4;
    }

    .calc-button-big .image.growth-negative {
        background-image: url('/Content/images/growth-negative.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .image.growth-roughly {
        background-image: url('/Content/images/growth_roughly.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .image.growth-slow {
        background-image: url('/Content/images/growth_slowly.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .image.growth-fast {
        background-image: url('/Content/images/growth_fast.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .image.rank-leader {
        background-image: url('/Content/images/amazon_leader.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .image.rank-top3 {
        background-image: url('/Content/images/amazon_top3.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .image.rank-page1 {
        background-image: url('/Content/images/amazon_page1.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .image.rank-page2 {
        background-image: url('/Content/images/amazon_page2.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .image.product1 {
        background-image: url('/Content/images/product1.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .image.product2 {
        background-image: url('/Content/images/product2.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .image.product3 {
        background-image: url('/Content/images/product3.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .image.product4 {
        background-image: url('/Content/images/product4.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .image.branding1 {
        background-image: url('/Content/images/branding1.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .image.branding2 {
        background-image: url('/Content/images/branding2.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .image.branding3 {
        background-image: url('/Content/images/branding3.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .image.branding4 {
        background-image: url('/Content/images/branding4.png');
        background-repeat: no-repeat;
    }

    .calc-button-big .title {
        font-weight: bold;
        font-size: 16px;
        min-height: 46px;
        margin: 0 auto;
        margin-top: 15px;
    }

    .calc-button-big .subtitle {
        margin: 0 auto;
        margin-top: 15px;
        width: 180px;
    }

.calc-selection-button {
    display: inline-block;
    vertical-align: top;
    padding: 10px;
    min-width: 150px;
    background: white;
    border: 2px solid #4bb2d8;
    color: #4bb2d8;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    margin-right: 20px;
    cursor: pointer;
}

    .calc-selection-button:last-child {
        margin-right: 0px;
    }

.calc-msg-chbox {
    font-size: 15px;
    margin-top: 20px;
}

    .calc-msg-chbox label {
        font-weight: normal;
        margin-bottom: 0;
    }

    #calc-msg-name, #calc-msg-address, #calc-msg-phone, #calc-msg-source,
    #calc-msg-location, #calc-msg-location-other {
        margin-bottom: 15px;
    }

#calc-next:disabled {
    background-color: #73a6de;
    color: #383838;
}

.calculator-question input::-webkit-outer-spin-button,
.calculator-question input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

.hidden-field {
    display: none;
}

.calculator-question input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}

.calculator-question input[type=text], .calculator-question .calc-select-plain {
    width: 220px;
}

.calculator-question.thankyou {
    padding-top: 150px;
}

    .calculator-question.thankyou img {
        max-width: 300px;
        margin-top: 50px;
    }

    .calculator-question.valuation input[type=text], .calculator-question.valuation .calc-select-plain {
        width: 350px;
    }

.calculator-question .calc-text {
    margin-top: 15px;
}

.login {
    text-align: left;
    display: block;
    width: 400px;
    margin: 0 auto;
    margin-top: 20px;
    padding: 20px;
    background: #f1f1f1;
    -webkit-box-shadow: 0px 0px 9px 0px rgb(112 112 112);
    -moz-box-shadow: 0px 0px 9px 0px rgba(112,112,112,1);
    box-shadow: 0px 0px 9px 0px rgb(112 112 112);
}

.badge {
    background: #efffed;
    padding: 5px 10px;
    color: black;
    font-weight: bold;
}

.post-login {
    display: none;
}

table {
    width: 100%;
    text-align: left;
}

    table tr td, table tr th {
        padding: 10px;
    }

    table tr:nth-child(odd) {
        background-color: #73a6de;
    }

        table tr:nth-child(odd) input {
            background-color: #a9cbef;
        }

        .visible-mobile {
            display: none;
        }

#custom-logic {
    min-height: 600px;
}

@media (max-width: 1000px) {
    .visible-mobile {
        display: block;
    }

    .tgraph {
        display: block;
        width: 90%;
        margin: 0 auto;
    }

    .calculator-landing .content-body {
        width: 100%;
    }

    .calc-currency .currency-placeholder {
        top: 13px;
    }

    .calc-button-big .subtitle {
        margin-top: 10px;
        width: 90%;
        margin-bottom: 10px;
    }
    .calc-button-big.branding .subtitle {
        margin-top: -10px;
    }

    .calc-button-big .title {
        margin-top: 0px;
        width: 90%;
    }
    #calc-error {
        width: 90%;
        margin: 0 auto;
    }
    .calc-button-big {
        width: 49%;
    }

        .calc-button-big.branding {
            background: #f4f7f9;
            margin-bottom: 5px;
            min-height: 356px;
        }

        .calc-button-big .image {
            width: 90%;
            background-size: 90%;
        }

        .calc-q-title {
            font-size: 27px;
        }

    .calc-currency input {
        font-size: 16px;
        width: calc(100% - 90px);
    }

    .calc-q-description {
        font-size: 16px;
        margin-top: 10px;
        margin-bottom: 20px;
    }

    .header-bar {
        height: 50px;
        padding: 15px;
        padding-right: 20px;
    }

        .header-bar .logo {
            height: 25px;
            left: 10px;
        }

        .header-bar .link, .header-bar .link:hover, .header-bar .link:active, .header-bar .link:focus, .header-bar .link:visited {
            top: 0px;
            line-height: 26px;
            font-size: 10px;
        }

    .calculator-question {
        padding: 0px 20px;
        width: 100%;
    }

    .calc-progress-bar {
        width: calc(100% - 40px);
    }

    .calc-back {
        color: #bfbfbf;
        position: absolute;
        top: 65px;
        left: calc(50% - 25px);
    }

    .calculator-landing {
        background: none;
        padding-left: 20px;
        padding-right: 20px;
    }

    .calc-selection-button {
        display: block;
        margin-right: 0px;
        margin-bottom: 15px;
    }
    .calculator-question.valuation {
        font-size: 16px;
    }

    .calculator-question.valuation input[type=text], .calculator-question.valuation .calc-select-plain {
        width: 100%;
        font-size: 16px;
    }

    .calc-inline-inputs {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .calc-select-plain {
        width: 100%;
    }

    .calc-b-next {
        margin-bottom: 20px;
    }

    .calculator-landing.thankyou {
        background-image: none;
    }
}

@media(max-width: 380px) {
    .calc-button-big .image {
        height: 150px;
    }
}

.spinner {
    height: 20px;
    display: none;
}

.lds-circle {
    display: inline-block;
    transform: translateZ(1px);
    height: 20px;
}

    .lds-circle > div {
        display: inline-block;
        width: 20px;
        height: 20px;
        margin: 0px;
        border-radius: 50%;
        background: #fff;
        animation: lds-circle 2.4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

@keyframes lds-circle {
    0%, 100% {
        animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);
    }

    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(900deg);
        animation-timing-function: cubic-bezier(0, 0.5, 0.5, 1);
    }

    100% {
        transform: rotateY(1800deg);
    }
}