.top-section {
    min-height: 40px;
}

.profile-container {
    margin-bottom: 10px;
}

.top-switches {
    margin-top: -10px;
    margin-bottom: 0px;
}

.profile {
    background-image: url("../img/profile.svg");
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: top left;
    padding-left: 32px;
}

.name {
    margin-top: -2px;
    font-size: 18px;
    font-weight: bold;
}

.age {
    font-size: 14px;
}

.option {
    font-weight: 500;
    margin-bottom: 10px;
}

.value {
    margin-bottom: 10px;
}

.section-header,
.section-body {
    margin: 20px 0;
    padding: 10px;
    text-align: center;
}

.section-body {
    margin-bottom: 15px;
}

.section-header {
    margin-top: 60px;
    border-top: 4px solid gray;
    border-bottom: 4px solid gray;
    height: 75px;
}

.row .col-sm-4:first-child .section-header {
    margin-top: 20px;
}

.section-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header .title,
.section-header .subtitle {
    color: #000000;
}

.section-header .title {
    font-size: 18px;
    font-weight: bold;
}

.section-header .subtitle {
    font-size: 16px;
    font-weight: normal;
}

.section-body,
.section-footer {
    text-align: center;
    border: 5px solid rgb(216, 216, 216);
}

.dc-btn-video {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 5px solid rgb(216, 216, 216);
    padding: 14px 29px 14px 30px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.39;
    letter-spacing: normal;
}

/* Medium and large devices */
@media (min-width: 768px) {
    .dc-btn-video {
        font-size: 18px;
        padding: 14px 29px 14px 30px;
        font-weight: 500;
    }
}

.video-play {
    background-repeat: no-repeat;
    background-size: 28px 28px;
    width: 28px;
    height: 28px;
}

.section-body {
    height: 100%;
    margin-top: 0;
}

.section-body.dc-graph {
    height: 100%;
}

.vs-graph {
    margin-bottom: 45px;
}

.section-footer .value {
    font-size: 24px;
    font-weight: bold;
}

.section-body .value .style-0 {
    font-size: 28px;
    font-weight: bold;
}

.section-body .value .style-1 {
    font-size: 18px;
    font-weight: bold;
}

.vs:after {
    content: "vs";
    position: absolute;
    left: 50%;
    bottom: -70px;
    margin-left: -30px;
    margin-top: -30px;
    background-color: white;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.5);
    font-size: 36px;
    font-weight: 500;
    text-align: center;
    line-height: 55px;
    z-index: 1;
}

.vs.vs-graph:after {
    bottom: -60px;
}

.float-container {
    position: relative;
}

.floating-tooltip {
    position: absolute;
    left: 50%;
    background-repeat: no-repeat;
    background-image: url("../img/info.svg");
    background-size: 28px 28px;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    background-color: transparent;
    border: none;
    z-index: 1;
}

.switch-tooltip-button {
    background-color: transparent;
    background-image: url("../img/info.svg");
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: center center;
    border: none;
    width: 24px;
    height: 24px;
    position: absolute;
    left: -12px;
    top: 50%;
    margin-top: -12px;
}

.switch-tooltip-button {
    left: -28px;
}

.col-xs-5.thumbs-down-legend {
    padding-right: 0;
    overflow: visible;
}

.col-xs-5.thumbs-up-legend {
    padding-left: 0;
    overflow: visible;
}

.thumbs-down-legend,
.thumbs-up-legend,
.thumbs-legend-center:after {
    overflow: hidden;
    padding-top: 24px;
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 24px 24px;
}

.legend.thumbs-down,
.thumbs-down-legend {
    background-image: url("../img/thumb-down.svg");
}

.legend.thumbs-up,
.thumbs-up-legend {
    background-image: url("../img/thumb-up.svg");
}

.thumbs-legend-center {
    position: relative;
}

.thumbs-legend-center:after {
    content: "";
    position: absolute;
    background-image: url("../img/thumb-divider.svg");
    background-size: 100% 24px;
    left: -80%;
    right: -80%;
    top: 0;
    height: 24px;
}

.thumbs-up-legend .style-0,
.thumbs-down-legend .style-0 {
    font-size: 18px;
    font-weight: bold;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-caret {
    width: 12px;
    height: 12px;
    position: absolute;
    right: 12px;
    top: 50%;
    margin-top: -6px;
}

.dc-graph-canvas {
    margin-top: 0;
    height: 260px;
}

.dc-graph-switches {
    background-color: #f4f4f4;
    padding: 10px;
    margin: -10px;
    margin-top: 0;
}

.dc-graph-legends {
    padding: 10px 40px;
}

.legend {
    text-align: left;
    padding: 10px;
    padding-left: 32px;
    background-position: left center;
    background-size: 24px 24px;
    background-repeat: no-repeat;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.legend .line-container,
.legend .description {
    display: inline-block;
}

.legend .description {
    padding-bottom: 4px;
}

.legend .line {
    stroke-width: 2px;
    transform-origin: center center;
}

.legend.assumed-withdrawal .line {
    stroke-dasharray: 4px, 4px;
    transform: rotate(90deg);
}

.legend.regular-income .line {
    stroke-width: 4px;
}

.tooltip-button.inline {
    display: inline-block;
    margin: 0;
    margin-left: 4px;
    margin-top: -4px;
    width: 24px;
    height: 24px;
}

.graph-switch-divider {
    border-color: rgb(146, 148, 151);
    margin-top: 10px;
    margin-bottom: 10px;
}

.dc-graph .switch-container {
    margin-left: -30px;
    margin-right: -30px;
}

@media (min-width: 768px) {
    .section-body {
        margin-bottom: 20px;
    }

    .vs-graph {
        margin-bottom: 20px;
    }

    .section-footer .value {
        font-size: 44px;
    }

    .section-body .value .style-0 {
        font-size: 36px;
    }

    .section-header {
        margin-top: 20px;
        padding: 2px;
    }

    .graph-switch-divider {
        display: none;
    }

    .dc-graph .switch-container {
        margin-left: 0;
        margin-right: 0;
    }

    .section-body {
        position: relative;
        height: 525px;
    }

    .switch-block {
        position: absolute;
        left: 10px;
        bottom: 0;
        right: 10px;
    }

    .vs:after {
        left: auto;
        right: -30px;
        bottom: auto;
        top: 195px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .top-switches {
        margin-top: -20px;
    }

    .vs:after {
        right: -25px;
        width: 50px;
        height: 50px;
        line-height: 48px;
        top: 210px;
    }

    .vs-graph:after {
        top: 50%;
    }

    .display-option-number .switch {
        position: absolute;
        top: auto;
        bottom: 0;
        left: 12px;
        width: 76% !important;
    }

    .display-option-number .slider {
        position: absolute;
        top: auto;
        bottom: 0;
        width: 89px;
    }

    .display-option-number .switch-tooltip-button {
        position: absolute;
        left: auto;
        right: -30px;
    }

    .display-option-number .input-label {
        position: relative;
        width: 100% !important;
        height: auto;
        margin-bottom: 30px;
    }

    .profile-container {
        height: 60px;
    }

    .section-body {
        height: 665px;
    }
}

@media (min-width: 992px) {
    .section-body .value .style-0 {
        font-size: 44px;
    }

    .vs-graph:after {
        top: 49%;
    }

    .vs-graph {
        margin-bottom: 20px;
    }

    .section-body {
        position: relative;
        height: 495px;
    }

    .section-footer {
        height: 115px;
    }

    .dc-graph-canvas {
        height: 465px;
    }

    .section-body.vs {
        margin-bottom: 20px;
    }

    .legends {
        column-count: 2;
    }
}

@media (min-width: 1200px) {

    .dc-graph-canvas {
        height: 485px;
    }
}

.drawdown-line{
    stroke-width: 1;
    stroke: #979797;
    stroke-dasharray: 5;
}

.regular-income-line {
    stroke-width: 5;
    stroke: #9E0085;
    fill: none;
}

.savings-median-line {
    stroke-width: 2;
    stroke: #317EEE;
    fill: none;
}

.savings-better-line {
    stroke-width: 2;
    stroke: #007D61;
    fill: none;
}

.savings-better-area {
    opacity: 0.2;
    fill: #007D61;
}

.savings-worse-line {
    stroke-width: 2;
    stroke: #A61932;
    fill: none;
}

.savings-worse-area {
    opacity: 0.2;
    fill: #A61932;
}

.target-income-amount-enabled > .dc-graph-legends .legend.thumbs-up,
.target-income-amount-enabled > .dc-graph-legends .legend.thumbs-down,
.target-income-amount-enabled > .dc-graph-switches > .switch-section > div:last-of-type,
.dc-graph-switches > .switch-section > div:last-of-type > div + div,
.dc-graph-switches > .switch-section > div:last-of-type > div:last-of-type {
    display: none !important;
}

