html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #fcfcfc;
    min-height: 100vh;
    position: relative;
}


/* --- Text --- */

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Montserrat', sans-serif;
}

h1 {
    color: #fff;
    margin: 0;
    padding: 0;
    font-weight: 700;
    text-align: center;
    display: inline-block;
    font-size: 24px;
}

p>a,
small>a {
    color: #1d73be;
    font-weight: 700;
    transition: 0.3s;
}

p>a:hover,
small>a:hover {
    color: #155e9e;
    text-decoration: none;
}


/* --- Buttons --- */

i.fa-arrow-left,
i.fa-arrow-right,
i.fa-paper-plane,
i.fa-list {
    color: #fff;
    font-size: 16px;
    transition: 0.5s;
}

button[type="button"].btn,
button[type="submit"].btn,
a[type="button"].btn {
    outline: 0;
    padding: 10px 20px;
    font-weight: 600;
    transition: 0.5s ease-in-out;
    display: block;
}

.btn.btn-secondary[type="button"] {
    background-color: transparent;
    border: solid 3px #1d73be;
    color: #1d73be;
}

.btn.btn-secondary[type="button"] i.fas {
    margin-right: 10px;
}

#summaryButton i.fas {
    margin: 0 0 0 10px;
}

.btn.btn-secondary[type="button"] i.fas {
    color: #1d73be;
}

.btn.btn-primary[type="button"] i.fas,
.btn.btn-primary[type="submit"] i.fas {
    margin-left: 10px;
    color: #fff;
}

.btn.btn-primary[type="button"],
.btn.btn-primary[type="submit"] {
    background-color: #1d73be;
    border: solid 3px #1d73be;
    color: #fff;
}

.btn.btn-primary[type="button"]:hover,
.btn.btn-primary[type="submit"]:hover,
.btn.btn-secondary[type="button"]:hover {
    color: #1d73be;
    background-color: transparent;
}

.btn.btn-primary[type="button"]:hover i.fas,
.btn.btn-primary[type="submit"]:hover i.fas {
    color: #1d73be;
}


/* --- Custom modal --- */

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 60;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

.custom_modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    z-index: 70;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.05);
    min-width: 300px;
}

.modal_copy {
    margin: 15px 0 20px 0;
}

.modal_text {
    margin: 0;
}

.modal_title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.closeModal {
    position: absolute;
    right: 15px;
    top: 15px;
}

.closeModal>i {
    cursor: pointer;
    color: #201F1E;
    font-size: 18px;
    transition: 0.5s;
}

.closeModal>i:hover {
    color: #323130;
}

#errorModal p.modal_title {
    color: #fd544f;
}

#successModal p.modal_title {
    color: #01be70;
}


/* --- Spinner --- */

#spinner::before {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #23b3f5;
    font-size: 56px;
    animation-name: rotateSpinner;
    animation-duration: 0.75s;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    z-index: 70;
}


/* --- Header --- */

header {
    background-color: #1d73be;
    color: #fff;
}

nav>a {
    padding: 5px 0;
}

ul.languages {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    margin: 0;
}

ul.languages li {
    list-style-type: none;
    margin: 0 15px 0 0;
    padding: 0;
}

ul.languages li a {
    color: #cacaca;
    font-size: 18px;
    font-weight: 700;
}

ul.languages li a:hover {
    color: #fff;
}

ul.languages li a.language_active {
    color: #fff;
}


/* --- Form --- */

main {
    margin-top: 30px;
    padding-bottom: 80px;
}

.field {
    margin-bottom: 40px;
}

.field .form-group {
    margin-bottom: 17px;
}

.field .form-check-input {
    margin-left: 0;
}

.field .form-check-label,
label[for="otherApplication"] {
    font-weight: 600;
}

.field .form-check-label,
.field small[data-small-type="radios"] {
    margin-left: 20px;
    margin-top: 0;
}

.field_description p {
    margin: 0;
    padding: 0 0 10px 0;
    line-height: 1.8;
    font-weight: 400;
    font-size: 16px;
    max-width: 800px;
}

.field>label {
    font-weight: 700;
}

.field b {
    margin-bottom: 8px;
}

.form_error {
    color: #fd544f;
}

small.form_error {
    font-size: 16px;
}


/* --- Stepper --- */

.stepper_section {
    width: 100%;
    background-color: #f8f8f8;
    z-index: 50;
}

#stepperUp {
    position: sticky;
    top: 0;
    left: 0;
}

#completion,
#stepperBottom {
    padding-top: 15px;
    padding-bottom: 15px;
}

#stepperBottom {
    position: absolute;
    bottom: 0;
}

.progress_step {
    margin-left: 30px;
}

.progress_step h2 {
    font-weight: 600;
    font-size: 32px;
}

.progress_step p {
    font-size: 18px;
    margin: 0;
    padding: 0;
}

.progress_step p>span:first-child {
    font-weight: 300;
}

.circle,
.circle_wrapper {
    height: 90px;
    width: 90px;
}

.circle_wrapper {
    position: relative;
    clip: rect(0px, 100px, 100px, 50px);
}

.circle {
    position: absolute;
    border: 10px solid #01be70;
    border-radius: 50%;
    clip: rect(0px, 50px, 50px, 0px);
    transform: rotate(90deg);
}

.circle.filler {
    transform: rotate(180deg);
}

#fraction {
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

div[data-anim~=base] {
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
}

.wrapper[data-anim~=wrapper] {
    animation-duration: 0.01s;
    animation-delay: 3s;
    animation-name: close-wrapper;
}

.circle[data-anim~=left] {
    animation-duration: 0.5s;
}

.circle[data-anim~=right] {
    animation-duration: 0.5s;
}

#endForm {
    margin-top: 33px;
}


/* --- Cards --- */


/* 
label {
    cursor: pointer;
} */

div.card_outer {
    /* cursor: pointer; */
    margin-bottom: 30px;
    border: 0;
}

.card {
    top: 0;
    left: 0;
    transition: 0.5s;
    height: 100%;
    border: 0;
    -webkit-box-shadow: 0px 0px 61px -10px rgba(0, 0, 0, 0.08);
    -moz-box-shadow: 0px 0px 61px -10px rgba(0, 0, 0, 0.08);
    box-shadow: 0px 0px 61px -10px rgba(0, 0, 0, 0.08);
}

.card .card-img-top {
    border: 0;
    object-fit: cover;
    width: 80%;
    margin: 0 auto;
}

.card .card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.card .card-text {
    font-size: 16px;
    color: #6c757d;
    margin-top: 15px;
    margin-bottom: 0;
}

.card .card_input {
    margin-top: 15px;
}

.card .card_input small {
    margin-bottom: 5px;
}

.odd_card,
.even_card {
    padding-left: 15px !important;
    padding-right: 15px !important;
}


/* --- 3D Element --- */

section[data-form-step="1"] {
    margin-top: -30px;
}


/* Renderer */

#renderer {
    background-color: #f8f8f8;
}

canvas {
    cursor: pointer;
}


/* Controls */

aside.control {
    padding: 30px 15px 0 15px !important;
}

.control label {
    font-weight: 700;
    padding: 0;
    margin: 0;
}

.control .range {
    margin: 30px 0 0 0;
}

.control>p {
    margin: 0;
    padding: 0 0 10px 0;
    line-height: 1.8;
    font-weight: 400;
    font-size: 16px;
}

.range_value {
    font-weight: 600;
    font-size: 14px;
}

.range input[type="text"] {
    font-weight: 600;
    line-height: 1.8;
    width: unset;
    text-align: center;
    margin: 10px auto;
}

.range input[type="range"] {
    display: block;
    -webkit-appearance: none;
    appearance: none;
    width: calc(100% - 60px);
    height: 7px;
    border-radius: 5px;
    background-color: #EBEBEB;
    /* overflow: hidden; */
    outline: none;
}

.range input[type="range"]::-moz-range-thumb,
.range input[type="range"]::-webkit-slider-thumb {
    width: 17px;
    height: 17px;
    background-color: #757575;
    cursor: pointer;
    border-radius: 50%;
}

.range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 17px;
    height: 17px;
    background-color: #757575;
    cursor: pointer;
    border-radius: 50%;
}

.range p[data-range-type] {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    padding: 0;
    margin: -10px 0 0 0;
}

.color_input input[name="color"] {
    display: block;
    width: 100%;
    margin: 10px 0;
    border: 1px #ccc dashed;
    padding: 15px;
    pointer-events: none;
}

.color_input>small.form_error {
    display: block;
}



/* Projections */


/* .control>strong {
    display: block;
    font-size: 18px;
    margin: 0 0 15px 0;
}

.projection_box {
    width: 100%;
    margin-bottom: 40px;
}

.projection_box:last-child {
    margin: 0;
}

.projection_box p {
    font-weight: 700;
    padding: 0;
    margin: 0 0 5px 0;
}

.projection_outer {
    position: relative;
    width: 100%;
    padding-left: 15px;
    padding-bottom: 15px;
    border-left: 1px solid #757575;
    border-bottom: 1px solid #757575;
}

.projection_outer>span {
    display: block;
    position: absolute;
    z-index: 2;
}

.top_label {
    top: 1%;
    left: 1%;
}

.bottom_label {
    bottom: 1%;
    right: 1%;
}

.projection_inner {
    position: relative;
    width: 100%;
    background-color: #EBEBEB;
    height: 140px;
}

.projection_inner[data-projection="cSide"] {
    height: 220px;
}

.projection {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 3px;
    background-color: #b8b8b8;
} */


/* --- Summary --- */

#summaryModal {
    min-width: 40vw;
    max-height: 90vh;
}

#summaryModal .summary_container {
    max-height: calc(90vh - 82px);
    overflow-y: auto;
}

.summary_section {
    margin-bottom: 20px;
}

.summary_section>ul {
    padding: 0;
    margin: 0;
}

.summary_field {
    list-style-type: none;
    padding: 0;
    margin: 0 0 5px 0;
}

.summary_field span {
    font-weight: 300;
}

#preview3dSummuary {
    margin-top: 50px;
}

#preview3dSummuary>img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
}


/* --- Noscript modal --- */

noscript,
.ie_container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 60;
}

noscript>div {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    z-index: 70;
}

noscript>div p {
    margin: 0;
}

noscript>div b {
    margin-bottom: 8px;
    font-size: 18px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.alert {
    margin: 0;
    border-radius: 12px;
    position: fixed;
    z-index: 100;
    top: 50px;
    left: 50px;
    right: 50px;
}

#content .form-group img {
    vertical-align: top;
}

#content .form-group {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

#color-table {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0;
    text-align: center;
}

#color-table li {
    display: inline-block;
    width: 120px;
    height: 80px;
    background: #f0f0f0;
    margin: 0 1px 1px 0;
    overflow: hidden;
    font-size: 16px;
    transition: transform .3s;
}

#color-table li .code {
    font-weight: bold;
}

#color-table li .name {
    font-size: .8em;
    line-height: 1.1;
}

#color-table li a {
    padding: 10px;
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

#color-table li:hover {
    transform: scale(1.2);
    border: 2px solid #fff;
}

/* --- Media queries --- */

@media screen and (max-width: 992px) {
    /* Common */
    h3 {
        font-size: 1.5rem;
    }
    /* Header */
    header nav h1 {
        font-size: 16px;
    }
    ul.languages li {
        margin: 0 0 0 10px;
    }
    ul.languages li a {
        font-size: 16px;
    }
    nav img[alt="Borges Seelze"] {
        height: 30px;
    }
    /* Progress */
    .progress_step h2 {
        font-size: 18px;
    }
    .progress_step p {
        font-size: 16px;
    }
    /* Fields */
    .field_description p {
        font-size: 15px;
    }
    /* Cards */
    .card .card-title {
        font-size: 16px;
    }
    .card .card-text {
        font-size: 14px;
    }
    /* 3D */
    #renderer {
        height: 65vh;
    }
    .range input[type="range"]::-moz-range-thumb,
    .range input[type="range"]::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }
    /* Summary */
    #summaryModal {
        min-width: 70vw;
    }
}

@media screen and (max-width: 768px) {
    #emailGroup {
        padding-bottom: 100px;
    }
    .stepper_buttons button {
        margin-top: 10px;
    }
    /* Summary */
    #summaryModal {
        min-width: 80vw;
    }
}

@media screen and (max-width: 576px) {
    .odd_card {
        padding-left: 15px !important;
        padding-right: 7.5px !important;
    }
    .even_card {
        padding-right: 15px !important;
        padding-left: 7.5px !important;
    }
    /* Summary */
    #summaryModal {
        min-width: 90vw;
    }
}


/* --- Animations --- */

@keyframes right90-180-spin {
    from {
        transform: rotate(90deg);
    }
    to {
        transform: rotate(180deg);
    }
}

.to180deg {
    animation-name: right90-180-spin;
}

@keyframes right180-270-spin {
    from {
        transform: rotate(180deg);
    }
    to {
        transform: rotate(270deg);
    }
}

.to270deg {
    animation-name: right180-270-spin;
    clip: rect(0px, 50px, 100px, 0px);
}

@keyframes right270-360-spin {
    from {
        transform: rotate(270deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.to360deg {
    animation-name: right270-360-spin;
    clip: rect(0px, 50px, 100px, 0px);
}

@keyframes close-wrapper {
    to {
        clip: rect(auto, auto, auto, auto);
    }
}

@keyframes linearEntrance {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.addOpacity {
    animation-name: linearEntrance;
}

@keyframes linearExit {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -100%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translate(-50%, -100%);
    }
}

.fadeOutUp {
    animation-name: fadeOutUp;
}

@keyframes rotateSpinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Damnit Safari! */
@supports (background: -webkit-canvas(squares)){
    .btn.btn-primary[type="button"],
    .btn.btn-primary[type="submit"] {
        color: #1d73be;
        background-color: transparent;
    }
    .btn.btn-primary[type="button"] i.fas,
    .btn.btn-primary[type="submit"] i.fas {
        color: #1d73be;
    }   
}