body {
    background-color: #D9D9D9!important;
}

#home-background, #boards-background {
    background-color: #00505c;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

#boards-background {
    z-index: -1;
}

#contact-captcha-input #id_captcha_1 {
    margin-left: 1rem;
    display: inline-block;
    width: 50%;
}

#editor-captcha-input {
    display: flex;
    align-items: center;
    column-gap: 1rem;

    #id_captcha_1 {
        margin-left: 1rem;
        display: inline-block;
        max-height: 2.3rem;
    }
}

#contact-captcha-input .error, #editor-captcha-input .error {
    background-color: #ed9898;
    padding: .3em .8em;
    margin: .8em 0;
    font-size: 1.1em;
    border-radius: 5px;

    p {
        margin: 0;
        color: #701515;
    }
}

.contact-link {
    color: #00505c;
}

#contact-maps {
    margin: 2rem 0;
}

#homepage-teasers img {
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

#blog h3 {
    font-family: proto_monoregular;
    font-size: 2.8rem;
    color: #1adfc3;
}

#homepage-teasers {
    background-color: #f8f8f8;
}

.total_price {
    font-family: proto_monoregular;
    font-size: 2.4rem;
}

.total_price_info {
    background-color: #00505c;
}

.total_price_top_preview {
    background-color: #00505c;
    padding: .5rem 2.3rem;
}

.total_price_top_preview.mobile {
    position: sticky;
    top: 8.5rem;
    margin-bottom: 1rem;
    padding: .5rem 1rem;
    z-index: 5;
    justify-content: space-between;
}

.total_price_top_preview.desktop {
    margin-bottom: 1rem;
    z-index: 8;
    position: sticky;
    top: 9rem;
    justify-content: space-between;
}

.total_price_top_preview.mobile .price_preview_text {
    font-size: 1.2rem;
}

.total_price_top_preview.mobile .price_preview_sum {
    font-size: 1.4rem;
}

.price_preview_sum {
    font-family: 'proto_monoregular';
    font-size: 1.4rem;
    display: inline-block;
}

.price_preview_text {
    font-size: 1.2rem;
    display: inline-block;
}

.editor-tab .nav-link {
    background-color: #1adfc3;
    font-family: proto_monoregular;
    color: #000;
    padding: 1rem;
}

.editor-tab .nav-link:hover {
    color: #000;
    background-color: #fff;
}

.form-check-input:checked {
    background-color: #00505c;
    border-color: #00505c;
}
.form-switch .form-check-input:checked {
    background-position: right center;
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%231adfc3'/%3e%3c/svg%3e");
}

#postcode-city {
    display: flex;
    width: 100%;
    column-gap: 1rem;

    div:first-of-type {
        flex-grow: 0.5;
    }

    div:last-of-type {
        flex-grow: 3;
    }
}

/* don't let overlaying navbar block clicks on the editor tabs */
#wfNavbar {
    pointer-events: none;
}

/* let navbar links be clicked although navbar parent doesn't allow clicks */
#wfNavbar a,
#wfNavbar .navbar-toggler {
    pointer-events: auto;
}

#editor-error-message {
    background-color: #ed9898;
    padding: .8em;
    margin-bottom: .8em;
    color:#701515;
    font-size: 1.2em;
    border-radius: 5px;
}

.wfButton {
    background-color: #00505c;
    color: #00dfc3;
    border-radius: 2rem;
    border: none;
    padding: .8em 2.5em;
    font-family: proto_monoregular;
}

.wfButton:hover {
    background-color: #00dfc3;
    color: #00505c;
}

#editor_form select option {
    font-family: 'BryantRegular', sans-serif;
}

#editor_form {
    transition: clip-path 0s;
    -webkit-transition: clip-path 0s;
    -moz-transition: clip-path 0s;
}

#editor_form span {
    padding: 0 .75rem;
    display: inline-block;
}

#editor_form #Versandhinweis, #editor_form #shipment-note {
    span {
        padding: 0;
    }
} 

#editor_form #Versandhinweis {
    padding: 0;
}

#editor_form label, #design_form_modal label {
    font-family: proto_monoregular;
    font-size: .8rem;
}

#editor_form #editor-info-tab-pane label {
    padding: 0 .75rem;
    width: 100%;
}

#editor_form #editor-model-tab-pane label {
    padding: 0 .75rem;

}

#editor_form .price_label {
    padding: 0 .2rem 0 0rem;
    font-style: italic;
    color: #b8b8b8;
    font-size: .85rem;
    display: inline-block;
}

#editor_form .price_label_euro {
    font-style: italic;
    color: #b8b8b8;
    font-size: .85rem;
    display: inline-block;
    padding: 0 .75rem 0 0;
}

#editor-tabs .editor-tab {
    width: 33%;
}

.editor-tab .nav-link {
    width: 100%;
    border: none;
}

#editor-tabs {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-content: stretch;
}

#editor-tabs-content {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0px 0px 5px 5px;
}

/*** Styling of fin multiselect inputs ***/
#id_firstFin, #id_secondFin, #id_thirdFin {
    max-height: 6.8rem;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    gap: .4em;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: .5rem 0;

    label {
        font-family: BryantRegular;
        font-size: 1rem;
        line-height: 1.2em;
        display: inline-flex;
        align-items: center;
    }

    div {
        line-height: initial;
    }

    input[type="checkbox"] {
        box-sizing: border-box;
        appearance: none;
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
        max-width: 20px;
        max-height: 20px;
        border: 2px solid #00dfc3;
        border-radius: 22%;
        display: inline-block;
        position: relative;
        margin-right: .5rem;
          
        &:checked::before {
            content: '';
            width: 60%;
            height: 60%;
            display: block;
            left: 50%;
            top: 50%;
            position: absolute;
            background-color: #00505c;
            border-radius: 22%;
            transform: translate(-50%, -50%);
        }
    }
}

#id_thirdFin {
    max-height: 18.4rem;
    height: 100%;
}

#centerfins-container {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin: 0;
    padding: .2rem .8rem .8rem .8rem;


    .fin-label {
        font-size: .75rem;
    }

    .centerfin:nth-of-type(3) .fin-label {
        margin-top: 1rem;
    }

    .centerfin .price_label, .centerfin .price_label_euro {
        font-size: .75rem;
    }
}

#size-editor-container {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin: 0;
    padding: .4rem 0 .6rem 0;

    .col {
        padding-left: .8rem;
        padding-right: .8rem;

        .col-form-label {
            font-size: .75rem;
        }
    }
}

#size-row.row {
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
}

.col-fin-1 {
    padding-right: .2rem;
    padding-left: .8rem;
}

.col-fin-2 {
    padding-left: .2rem;
    padding-right: .8rem;
    display: flex;
    flex-direction: column;
}

#fin-inputs .label-price-heading {
    flex-wrap: wrap;
}

.label-price-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    &.oversize {
        flex-wrap: wrap;
    }

    &.centerfin {
        align-items: baseline;
    }
}

input.radiobutton-design {
    appearance: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: 20px solid;
    transition: 0.2s all linear;
    margin: .2rem;
    position: relative;
    top: 4px;
    box-shadow: 1px 1px 3px 1px #d8d8d8;
    cursor: pointer;
}

input.radiobutton-design:checked {
    border: 15px solid;

    &#WHITE, &#WEIß_010, &#WEIß, &#WEISS, &#White {
        background-color: #ddd;
    }
}

.radiobutton-decor-design {
    appearance: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    border: 0px solid white;
    transition: 0.2s all linear;
    margin: .2rem;
    position: relative;
    top: 4px;
    box-shadow: 1px 1px 3px 1px #d8d8d8;
    background-size: 360%;
    background-position: 18% 25%;
    cursor: pointer;
}

input.radiobutton-decor-design:checked {
    border: 3px solid #00505c;
}

#color-name, #color-name-modal, #decor-color-name-modal, #decor-color-name, #pads-color-name, #pads-color-name-modal, #decor-name, #decor-name-modal {
    font-style: italic;
    color: #b8b8b8;
    text-transform: uppercase;
    font-size: .85rem;
    display: inline-block;
    margin: 0 1rem;
}

#EditorTab {
    position: relative;
    top: 630px;
}

#open-design-modal-mobile {
    width: 60px;
    height: 60px;
    background-color: #00505c;
    border-radius: 30px 0px 0px 30px;
    position: fixed;
    right: 0;
    top: 50vh;
    box-shadow: 2px 2px 3px #666;
    font-family: proto_monoregular;
    text-align: center;
    font-size: .65rem;
    padding: .85rem .3rem .85rem 0.6rem;
    color: #1adfc3;
    display: none;
    cursor: pointer;
    z-index: 10;
}

#close-design-modal-mobile {
    padding: .85rem .6rem .85rem 0.3rem;
    font-size: .65rem;
    background-color: #00505c;
    font-family: proto_monoregular;
    border-radius: 0px 30px 30px 0px;
    box-shadow: 1px 2px 5px 2px #666;
    color: #1adfc3;
    cursor: pointer;
    display: none;
    margin: .2rem 1rem .2rem -47.5vw;
    width: 60px;
    height: 60px;
    text-align: center;
    position: fixed;
    top: 50vh;
    left: 50%;
    z-index: 16;
}

#modal-lightbox-mobile {
    width: 95vw;
    height: 98vh;
    top: .3rem;
    background-color: #d9d9d9;
    z-index: -1;
    left: 50%;
    margin-left: -47.5vw;
    position: fixed;
    display: none;
    border-radius: 5px;
    max-height: 98vh;
    box-shadow: 0px 0px 15px 3px #012e35;
}

#wfDesign div img {
    max-width: 520px;
    max-height: 610px;
    width: 95vw;
    height: auto;
}

#wfDesign #deckstickers_container svg {
    max-width: 520px;
    max-height: 610px;
    width: 95vw;
    height: auto;
}

#design_form_modal {
    display: none;
}

#design-tabs-content {
    background: #fff;
    border-radius: 0px 0px 5px 5px;
    padding: 1rem;
}

.design-tab .nav-link {
    width: 100%;
    border: none;
    color: #000;
    background-color: #1adfc3;
    font-size: .7rem;
    height: 100%;

    &.active{
        background-color: #fff;
    }

    &:hover {
        background-color: #fff;
        color: #000;
        border: none;
    }
}

.design-tab {
    flex: 1;
    font-family: proto_monoregular;
    color: #00505c;
}

#modal-design-tabs {
    width: 100%;
    display: flex;
    justify-content:stretch;
    align-content: space-between;
    gap: 3px;
    border: none;
}

/************ MOBILE ***************/

@media screen and (max-width: 992px) {
    .total_price_top_preview.desktop {
        display: none;
    }

    .total_price_top_preview.mobile {
        display: flex;
    }

    #wfCarousel.editor-carousel .wf-carousel-active img, #wfCarousel.contact-carousel .wf-carousel-active img {
        height: 25vh;
        object-fit: cover;
    }

    #blog h3 {
        font-size: 2.0rem;
    }

    #contact-captcha-input #id_captcha_1 {
        width: 100%;
        margin-left: 0;
        margin-top: 1rem;
    }

    .editor-tab .nav-link {
        font-size: .9rem;
        height: 100%;
    }

    ul#editor-tabs {
        border: none;
        position: sticky;
        top: 11.3rem;
        z-index: 9;
    }

    ul#editor-tabs > * {
        border: initial;
    }

    #wfDesign {
        display: none;
        position: fixed;
        top: 2rem;
        left: 50%;
        z-index: 100;
        overflow: scroll;
        width: 95vw;
        height: 92.5vh;
        margin-left: -47.5vw;
    }

    #design_form_modal {
        display: block;
        margin: .5rem;
    }

    #open-design-modal-mobile {
        display: block;
    }

    #deckcolours_container div {
        top: 53px;
    }

    #design-grid-parent {
        display: grid;
        grid-template-columns: 1fr;
        position: sticky;
        z-index: -1;
        top: -4rem;

        #deckcolours_container, #carbonbottom_container, #deckdesigns_container,
        #deckstickers_container, #constructiontype_container, #finsetups_container,
        #deckpads_container, #footstrapinserts_container, #modelle_container,
        #modelle_footstrapwidths_container, #modelle_stancewidths_container, #boardbag_container,
        #footstraps_container, #fins_container, #carbonrails_container {
            grid-row-start: 1;
            grid-column-start: 1;
        }
    }

    .total_price {
        white-space: nowrap;
    }
}

@media screen and (max-width: 576px) {
    .total_price_top_preview.mobile {
        top: 5rem;
    }

    #id_thirdFin {
        max-height: 17.8rem;
    }

    .total_price_top_preview.mobile .price_preview_text, 
    .total_price_top_preview.mobile .price_preview_sum {
        font-size: 1.1rem;
    }

    ul#editor-tabs {
        position: sticky;
        top: 7.4rem;
    }

    #editor-tabs-content {
        padding: .5rem;
    }

    #centerfins-container {
        padding: .2rem;
    }

    .col-fin-1 {
        padding-right: .1rem;
    }

    .col-fin-2 {
        padding-left: .1rem;
    }

    #size-editor-container {
        padding: .1rem;
    
        .col {
            padding-left: .1rem;
            padding-right: .1rem;
        }
    }
    
    #size-row.row {
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5);
    }
}

@media screen and (max-width: 385px) {
    #editor_form #fin-inputs .price_label {
        padding: 0 .2rem 0 .75rem;
    }

    #id_thirdFin {
        max-height: 20.35rem;
    }
}

/************ DESKTOP ***************/
@media screen and (min-width: 992px) {
    .total_price_top_preview.desktop {
        display: flex;
    }

    .total_price_top_preview.mobile {
        display: none;
    }

    ul#editor-tabs {
        position: sticky;
        top: 11.8rem;
        z-index: 9;
    }

    #wfDesign {
        position: sticky;
        top: 9rem;
        min-height: 610px;
        display: block;
    }

    #close-design-modal-mobile, #open-design-modal-mobile {
        display: none;
    }

    #deckcolours_container div {
        top: 0;
        max-height: 600px;
    }

    #deckcolours_container > div, #carbonbottom_container > div, #deckdesigns_container > div,
    #deckstickers_container > div, #constructiontype_container > div, #finsetups_container > div,
    #deckpads_container > div, #footstrapinserts_container > div, #modelle_container > div,
    #modelle_footstrapwidths_container > div, #modelle_stancewidths_container > div, #boardbag_container > div,
    #footstraps_container > div, #fins_container > div, #carbonrails_container > div {
        position: absolute;
    }
}
