/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Typography
    ## Fonts
# Layout
    ## Elements
    ## Form

--------------------------------------------------------------*/

:root {
    --bg-color: #ffc8d3;
    --bg-content: #ffffff;
    --color: #000000;
    --primary: #ffc8d3;
    --secondary: #c8fbc0;
    --danger: #ffc8d3;
    --progress: #ffc8d3;
    --border-radius: 50px;
    --bg-repeat: no-repeat;
    --degres: 315deg;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

/*--------------------------------------------------------------
## Fonts
--------------------------------------------------------------*/

@font-face {
    font-family: "Roboto";
    src: url("../font/OpenSans-Regular.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Roboto-Light";
    src: url("../font/OpenSans-Light.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Roboto-Bold";
    src: url("../font/OpenSans-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

body {
    background-color: var(--bg-color);
    background-image: url("../img/background.png");
    background-repeat: var(--bg-repeat);
    background-size: 1200px;
    color: var(--color);
    overflow-y: scroll;
    overflow-x: hidden;
    font-family: "Roboto", sans-serif;
}

.container {
    background-color: var(--bg-content);
}

::-moz-selection {
    background: var(--primary);
    color: var(--color);
}

::selection {
    background: var(--primary);
    color: var(--color);
}

::-moz-selection {
    background: var(--primary);
    color: var(--color);
}

/*--------------------------------------------------------------
## Elements
--------------------------------------------------------------*/

/* Welcome/Language selection text */
.languages-selection-box.hide {
    display: none;
}

.language-selection-text h1 {
    font-size: 20px;
    margin: 25px 0 35px;
}

.landingpage-content.hide {
    display: none;
}

.page-content {
    position: relative;
}

.page-content:before {
    background-image: var(--bg-content);
    background-repeat: no-repeat;
    background-position: 50% 0;
    background-size: 100%;
    content: "";
    position: fixed;
    display: block;
    top: -200px;
    height: 1200px;
    width: 1200px;
    z-index: -10;
    left: 0;
    right: 0;
    margin: auto;
}

/*--------------------------------------------------------------
## Form
--------------------------------------------------------------*/
.form-holder {
    max-width: 640px;
    margin: auto;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    font-size: 15px;
}

.form-control,
.custom-select,
.form-control.is-valid,
.was-validated .form-control:valid {
    background: var(--bg-content);
    border-radius: var(--border-radius);
    border: 2px solid var(--color);
    color: var(--color);
    height: 42px;
    padding: 0.375rem 1.3rem;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--bg-content) inset !important;
    -webkit-text-fill-color: var(--color);
    color: var(--color) !important;
    border: 2px solid var(--color);
    background: var(--bg-content);
}

.form-control:focus,
.form-control.is-valid:focus,
.was-validated .form-control:valid:focus {
    border: 2px solid var(--color);
    background: var(--bg-content);
    color: var(--color);
    -webkit-box-shadow: none;
    box-shadow: none;
}

.form-control.is-invalid,
.was-validated .form-control:invalid,
.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus {
    border: 2px solid var(--danger);
    background: var(--bg-content);
    color: var(--color);
    -webkit-box-shadow: none;
    box-shadow: none;
}

.form-control::-webkit-input-placeholder {
    color: var(--color);
    opacity: 0.6;
    /* color: rgba(255, 255, 255, 0.75); */
}

input[type="date"]:invalid::-webkit-datetime-edit{
    color: var(--color);
    opacity: 0.6;
}

.form-control::-moz-placeholder {
    color: var(--color);
    opacity: 0.6;
    /* color: rgba(255, 255, 255, 0.75); */
}

.form-control:-ms-input-placeholder {
    color: var(--color);
    opacity: 0.6;
    /* color: rgba(255, 255, 255, 0.75); */
}

.form-control::-ms-input-placeholder {
    color: var(--color);
    opacity: 0.6;
    /* color: rgba(255, 255, 255, 0.75); */
}

.form-control::placeholder {
    color: var(--color);
    opacity: 0.6;
    /* color: rgba(255, 255, 255, 0.75); */
}

.custom-select option:disabled {
    color: rgba(255, 255, 255, 0.5);
}

/* Checkbox */
.custom-checkbox .custom-control-label {
    cursor: pointer;
}

.custom-checkbox .custom-control-label::before {
    top: 0;
    left: -32px;
    width: 22px;
    height: 22px;
    border: var(--color) solid 1px;
    -webkit-box-shadow: 0px 0px 1px 1px var(--color);
    box-shadow: 0px 0px 1px 1px var(--color);
    border-radius: 30px !important;
    background: var(--bg-content);
}

.custom-checkbox .custom-control-label::after {
    top: -2px;
    left: -28px;
    width: 20px;
    height: 20px;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23000000;%7D .st1%7Bfill:none;stroke:%23FFFFFF;stroke-width:1.5;stroke-linecap:round;stroke-miterlimit:10;%7D%0A%3C/style%3E%3Cpath class='st0' d='M18.8,2.6C18.4,2.3,17.9,2,17.2,2c-0.6,0-1.1,0.2-1.7,0.8l-8.4,9L4.8,9.3C4,8.6,2.5,8.4,1.5,9.3 c-0.4,0.4-0.6,1-0.6,1.7s0.2,1.3,0.6,1.7l5.8,5.8L19,5.9c0.3-0.4,0.6-0.9,0.6-1.6C19.6,3.6,19.3,3,18.8,2.6z'/%3E%3Cpolyline class='st1' points='3.2,11 7.2,15.1 17.3,4.3 '/%3E%3C/svg%3E");
    background-size: 18px;
    background-position: 0;
}

.custom-control-input:checked ~ .custom-control-label::before,
.custom-control-input.is-valid:checked ~ .custom-control-label::before,
.was-validated .custom-control-input:valid:checked ~ .custom-control-label::before {
    color: var(--color);
    border-color: var(--color);
    background-color: var(--bg-content);
    -webkit-box-shadow: 0px 0px 1px 1px var(--color);
    box-shadow: 0px 0px 1px 1px var(--color);
}

.custom-control-input:focus ~ .custom-control-label::before {
    -webkit-box-shadow: 0px 0px 1px 1px var(--color);
    box-shadow: 0px 0px 1px 1px var(--color);
}

.custom-control-input:focus:not(:checked) ~ .custom-control-label::before {
    border-color: var(--color);
}

/* Select */
.form-control.is-invalid,
.was-validated .form-control:invalid,
.custom-select.is-invalid,
.was-validated .custom-select:invalid {
    background: var(--bg-content);
    background-image: none;
}

.form-control.is-invalid,
.was-validated .form-control:invalid,
.custom-select.is-invalid,
.was-validated .custom-select:invalid {
    border-color: var(--danger);
}

.custom-select.is-valid,
.was-validated .custom-select:valid,
.custom-select.is-valid:focus,
.was-validated .custom-select:valid:focus,
.select2-container--default .select2-selection--single {
    background: var(--bg-content);
    background-image: none;
    border: 2px solid var(--color);
    -webkit-box-shadow: none;
    box-shadow: none;
}

.select2-container--default .select2-selection--single:focus {
    outline: 0 !important;
}

.custom-select:focus {
    border-color: var(--color);
}

/* Select 2 */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 42px;
}

.select2-container--default .select2-selection--single {
    background: var(--bg-content);
    color: var(--color);
    border-radius: 21px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--color);
    line-height: 26px;
    padding: 0.375rem 1.3rem;
}

.select2-dropdown {
    background: var(--bg-content);
    border: 2px solid var(--color);
}

.select2-results__option {
    padding: 6px 1.3rem;
}

.select2-container--default .select2-results__group {
    padding: 6px 1.3rem;
}

.select2-container--default .select2-results__option .select2-results__option {
    padding-left: 2em;
}

.select2-container--default .select2-results__option[aria-disabled="true"] {
    color: var(--primary);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--color);
    color: var(--primary);
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: var(--color);
    color: var(--primary);
}

.select2-container--open .select2-selection--single {
    border-color: var(--color);
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--primary) transparent transparent transparent;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--color) transparent;
    border-width: 0 4px 5px 4px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 8px;
    right: 12px;
}

.select2-results__options::-webkit-scrollbar {
    width: 14px;
    height: 18px;
}

.select2-results__options::-webkit-scrollbar-thumb {
    height: 80px;
    border: 4px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    -webkit-border-radius: 7px;
    background-color: rgba(255, 255, 255, 0.5);
    -webkit-box-shadow: inset -1px -1px 0px rgba(0, 0, 0, 0.05), inset 1px 1px 0px rgba(0, 0, 0, 0.05);
}

.select2-results__options::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

.select2-results__options::-webkit-scrollbar-corner {
    background-color: transparent;
}

/* Validation */
.custom-control-input.is-valid ~ .custom-control-label,
.was-validated .custom-control-input:valid ~ .custom-control-label,
.custom-control-input.is-invalid ~ .custom-control-label,
.was-validated .custom-control-input:invalid ~ .custom-control-label {
    color: var(--color);
}

.custom-control-input.is-valid ~ .custom-control-label::before,
.was-validated .custom-control-input:valid ~ .custom-control-label::before {
    border: 1px solid var(--color) !important;
    -webkit-box-shadow: 0px 0px 1px 1px var(--color) !important;
    box-shadow: 0px 0px 1px 1px var(--color) !important;
}

.custom-control-input.is-invalid ~ .custom-control-label::before,
.was-validated .custom-control-input:invalid ~ .custom-control-label::before {
    background-color: var(--danger);
    border-color: var(--danger);
    -webkit-box-shadow: 0px 0px 1px 1px var(--danger) !important;
    box-shadow: 0px 0px 1px 1px var(--danger) !important;
}

/* Error messages */
.invalid-feedback {
    display: none;
    background: var(--color);
    width: auto;
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 10px;
    position: relative;
}

.invalid-feedback:before {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--color);
    position: absolute;
    top: -5px;
    left: 15px;
}

.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-tooltip,
.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-tooltip,
.custom-select.is-invalid ~ .invalid-feedback,
.custom-select.is-invalid ~ .invalid-tooltip,
.was-validated .custom-select:invalid ~ .invalid-feedback,
.was-validated .custom-select:invalid ~ .invalid-tooltip {
    display: inline-block;
}

.form-control.is-invalid ~ .select2 .select2-selection--single,
.form-control.is-invalid ~ .invalid-tooltip,
.was-validated .form-control:invalid ~ .select2 .select2-selection--single,
.was-validated .form-control:invalid ~ .invalid-tooltip,
.custom-select.is-invalid ~ .select2 .select2-selection--single,
.custom-select.is-invalid ~ .invalid-tooltip,
.was-validated .custom-select:invalid ~ .select2 .select2-selection--single,
.was-validated .custom-select:invalid ~ .invalid-tooltip {
    border-color: var(--danger);
}

.custom-control-input.is-invalid ~ .invalid-feedback,
.custom-control-input.is-invalid ~ .invalid-tooltip,
.was-validated .custom-control-input:invalid ~ .invalid-feedback,
.was-validated .custom-control-input:invalid ~ .invalid-tooltip {
    display: inline-block;
    margin-left: 0;
}

/* language radio button */
.language-radio input[type="radio"] {
    display: none !important;
    visibility: hidden;
    opacity: 0;
}

.language-radio .custom-control-label {
    background: linear-gradient(var(--degres), var(--primary), var(--primary));
    min-width: 160px;
    color: var(--color);
    border-radius: var(--border-radius);
    border: 3px solid var(--color);
    cursor: pointer;
    padding: 7px;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    font-family: "Roboto-Bold";
}

.language-radio .custom-control-label:before,
.language-radio .custom-control-label:after {
    display: none;
}

.language-radio .custom-control-label:hover {
    background: linear-gradient(var(--degres), var(--primary), var(--primary));
    color: var(--color);
    border: 3px solid var(--color);
}

/* Buttons */
.btn {
    border: 3px solid var(--color);
    border-radius: var(--border-radius);
    padding: 0.5rem 3rem;
    font-size: 1rem;
    font-family: "Roboto-Bold";
}

.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary.focus,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus {
    background: linear-gradient(var(--degres), var(--primary), var(--primary));
    color: var(--color);
    border-color: var(--color);
    padding: 0.5rem 3rem;
    box-shadow: none;
}

.btn-primary:hover {
    /* background: linear-gradient(var(--degres), var(--secondary), var(--secondary)); */
    color: var(--color);
    border-color: var(--color);
    /* -moz-transform: scale(-1, -1);
    -webkit-transform: scale(-1, -1);
    -o-transform: scale(-1, -1);
    -ms-transform: scale(-1, -1);
    transform: scale(-1, -1); */
}

.btn-secondary,
.btn-secondary:disabled,
.btn-secondary.disabled,
.btn-secondary:not(:disabled):not(.disabled).active,
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary.focus,
.btn-secondary:focus,
.btn-secondary:not(:disabled):not(.disabled).active:focus,
.btn-secondary:not(:disabled):not(.disabled):active:focus {
    background: linear-gradient(var(--degres), var(--secondary), var(--secondary));
    color: var(--color);
    border-color: var(--color);
    padding: 0.5rem 3rem;
    box-shadow: none;
}

.btn-secondary:hover {
    /* background: linear-gradient(var(--degres), var(--primary), var(--primary)); */
    color: var(--color);
    border-color: var(--color);
    /* -moz-transform: scale(-1, -1);
    -webkit-transform: scale(-1, -1);
    -o-transform: scale(-1, -1);
    -ms-transform: scale(-1, -1);
    transform: scale(-1, -1); */
}

.btn-danger,
.btn-danger:disabled,
.btn-danger.disabled,
.btn-danger:not(:disabled):not(.disabled).active,
.btn-danger:not(:disabled):not(.disabled):active,
.btn-danger.focus,
.btn-danger:focus,
.btn-danger:not(:disabled):not(.disabled).active:focus,
.btn-danger:not(:disabled):not(.disabled):active:focus {
    background: var(--color);
    border-color: var(--color);
    color: var(--danger);
    box-shadow: none;
}

.btn-danger:hover {
    background: var(--color);
    border-color: var(--color);
    color: var(--danger);
}

.home-btn {
    margin-top: 10px;
    background: none;
    border: none;
    /* opacity: 0.5; */
    outline: 0 !important;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    padding: 0;
    overflow: hidden;
    color: var(--color);
    text-transform: uppercase;
}

/* .home-btn:hover {
    opacity: 1;
} */

.home-btn.v-hidden {
    visibility: hidden;
}

/* Privacy policy */
.privacy-policy-text {
    font-style: italic;
    opacity: 0.7;
    font-size: small;
}

.privacy-policy-link {
    color: var(--color);
    text-decoration: underline;
}

.privacy-policy-link:hover {
    color: linear-gradient(var(--degres), var(--primary), var(--primary));
}

.progress-bar {
    background-color: var(--progress);
}

/* Lds ripple */
.lds-ripple {
    display: inline-block;
    position: relative;
    width: 72px;
    height: 72px;
}

.lds-ripple div {
    position: absolute;
    border: 4px solid var(--color);
    opacity: 1;
    border-radius: 50%;
    -webkit-animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
    -webkit-animation-delay: -0.5s;
    animation-delay: -0.5s;
}

@-webkit-keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

@keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

/* Change the var(--color) color ;) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--secondary) inset !important;
}

/**/

/* Home button svg */

.st0 {
    fill: none;
    stroke: var(--color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-miterlimit: 10;
}

/**/

.noscript {
    width: 100%;
    height: 100%;
    /* will cover the text displayed when javascript is enabled*/
    z-index: 100000;
    /* higher than other z-index */
    position: absolute;
}

.noscript #div100 {
    display: block;
    height: 100%;
    background-color: white;
}

.dropzone {
    background-color: var(--bg-content);
    color: var(--color);
    font-family: "Roboto-Bold";
    border: 3px solid var(--primary);
    border-radius: var(--border-radius);
}

.dropzoneIcon {
    color: var(--primary);
}

.dropzone .dz-filename,
.dropzone .dz-size,
.dropzone .dz-error-message {
    display: none;
}

/* ::-webkit-calendar-picker-indicator {
    filter: invert(1);
} */

.invalid-feedback {
    color: var(--danger);
}
