@font-face {
    font-family: 'Fjalla One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap);
}

* {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Fjalla One", sans-serif;
    font-weight: normal;
}

body {
    background: #f8fafc;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    max-width: 100vw;
    font-family: Arial, Helvetica, sans-serif;
}

.top-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: rgb(248, 248, 248);
    padding: 10px;
    margin: 0;
    width: 100%;
    border-bottom: 1px solid rgb(231, 231, 231);
}

.top-bar img {

    height: 30px;
}

.survey {
    margin: 0 auto;
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

.survey-header {
    background-color: hsl(211, 75%, 25%);
    color: white;
    text-align: center;
    padding: 16px;
}

.survey-header h1 {
    margin: 0 0 6px 0;
    font-size: 36px;
    line-height: 1.4;
}

.survey-header h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
}

.female .survey-header {
    background-color: hsl(331, 63.2%, 56.3%);
}

.survey-content {
    padding: 0 16px;
    background-color: #FFF;
}

.survey-progress {
    border: 3px solid #cfcfcf;
    width: 100%;
    background: #e9ecef;
    padding: 3px;
    margin: 12px auto;
    height: 25px;
    border-radius: 6px;
}

.progress-bar {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    background-color: #ffae42;
    height: 100%;
    transition: 0.5s ease all;
}

.survey-question {
    margin-bottom: 48px;
}

.unit-select {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 15px 0 -14px 0;
    gap: 15px;
}

.question-title {
    text-align: center;
    color: #005c66;
    font-size: 26px;
}

.question-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    justify-content: space-around;
}

.question-type-height,
.question-type-weight {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.question-options .question-option {
    cursor: pointer;
    max-width: calc(50% - 8px);
    width: 100%;
}

.question-options img {
    max-width: 100%;
    height: auto;
}


.slider-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
}

.slider-value {
    font-size: 50px;
    font-weight: 400;
    margin: -12px 0 13px 0;
    color: rgb(0, 92, 102);
    width: 100px;
    text-align: center;
}

.slider-value small {
    font-size: 50%;
    display: block;
}

.slider-wrapper input[type="range"] {
    appearance: none;
    cursor: pointer;
    height: 32px;
    background-color: #f5f5f5;
    background-image: linear-gradient(to bottom, #f5f5f5 0, #f9f9f9 100%);
    background-repeat: repeat-x;
    border-radius: 4px;
    outline: none;
    border: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0px 0 32px 0;
    width: 250px;
}

.slider-wrapper input[type="range"]::-webkit-slider-runnable-track {
    appearance: none;
    box-sizing: border-box;
    border-radius: 4px;
    height: 100%;
    top: 0;
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #337ab7;
    background-image: linear-gradient(to bottom, #149bdf 0, #0480be 100%);
    background-repeat: repeat-x;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.05);
    border: 0 solid transparent;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-wrapper input[type="range"]::-moz-range-thumb {
    appearance: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #337ab7;
    background-image: linear-gradient(top, #149bdf 0, #0480be 100%);
    background-repeat: repeat-x;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.05);
    border: 0 solid transparent;
}

input[type="range"]::-moz-range-progress {
    background-color: white;
}

button.continue {
    background-color: #cf0614;
    border-color: #cf0614;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 18px;
    cursor: pointer;
}


.footer {
    background-color: #eee;
    border-top: 1px solid #898989;
    padding: 8px 16px;
}

.footer p,
.footer a {
    font-size: 12px;
    color: #585858;
    line-height: 1.3;
}

.inline-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.footer ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    width: 100%;
}


/* Helpers */

.hidden {
    display: none;
}

.main {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    min-height: 60vh;
}

@media (min-width: 576px) {
    .question-options {
        column-gap: 8px;
    }
}

@media (min-width: 768px) {
    .hidden-sm {
        display: none;
    }

    .top-bar {
        margin-bottom: 16px;
    }

    .survey {
        max-width: 720px;
    }

    .footer ul {
        list-style-type: none;
        padding: 0;
        display: flex;
        justify-content: space-around;
        width: 500px;
    }

    .footer-content {
        max-width: 800px;
        margin: auto;
    }
}

@media (min-width: 992px) {
    .hidden-md {
        display: none;
    }

    .survey {
        max-width: 960px;
    }

    .question-options {
        column-gap: 16px;
    }

    .question-options .question-option {
        max-width: 285px;
        margin: auto;
    }

    .question-options .question-option:nth-last-child(1):nth-child(odd) {
        grid-column: span 2;
        justify-self: center;
    }

    .question-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 30px;
    }

    body {
        background-image: url("https://d12hfwo7xdmxn8.cloudfront.net/salespages/survey/tinypngopt-img/hero3.jpg");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        background-attachment: fixed;
    }

    .survey-content {
        background: #FFF;
        padding: 19px;
    }

    .transparent-border {
        background-color: rgba(245, 245, 245, 0.4);
        padding: 48px 64px;
        margin: 3em 0;
    }

    .survey-header {
        padding: 20px;
    }
}

@media (min-width: 1200px) {
    .hidden-lg {
        display: none;
    }

    .survey {
        max-width: 1110px;
    }
}