:root {
    --app-main-color: #2686C2;
    --app-navi-color: #c6950d;
    --app-main-color-lighten: #d0e7f6;

    --cookiebanner_background_color: #ffffff;
    --cookiebanner_border_radius: 4px 4px 4px 4px;
    --cookiebanner_border_style: 1px solid #565e64;
    --cookiebanner_categories-height: 163px;
    --cookiebanner_slider_active_color: #1e73be;
    --cookiebanner_slider_inactive_color: #F56E28;
    --cookiebanner_slider_bullet_color: #ffffff;
    --cookiebanner_always_active_color: #057800;
}

.text-justify {
    text-align: justify;
}

.text-sz-blue {
    color: var(--app-main-color);
}

.text-sz-blue-lightened {
    background-color: var(--app-main-color-lighten);
}

.bg-sz-blue {
    background-color: var(--app-main-color);
}

.bg-sz-blue-lightened {
    background-color: var(--app-main-color-lighten);
}

.nav-link.text-white:hover,
.navbar-brand.text-white:hover {
    color: var(--app-navi-color) !important;
}

img {
    display: block;
    max-width: 100%;
}

.screen-reader-text {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Cookie consent */
.cookiebanner-manage-consent {
    position: fixed;
    display: block;
    z-index: 9998;
    background-color: var(--cookiebanner_background_color);
    border-radius: var(--cookiebanner_border_radius);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border: var(--cookiebanner_border_style);
    max-width: 100%;
    bottom: -4px;
    right: 40px;
    padding: 6px 15px;
}

.cookiebanner {
    position: fixed;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: 526px;
    right: 40px;
    bottom: 40px;
    z-index: 9998;
    word-wrap: break-word;
    background-color: var(--cookiebanner_background_color);
    border-radius: var(--cookiebanner_border_radius);
    border: var(--cookiebanner_border_style);
    font-size: 14px;
}

.cookiebanner .cookiebanner-wrapper {
    padding: 15px;
}

.cookiebanner #cookiebanner-title {
    text-align: center;
}

.cookiebanner .cookiebanner-message {
    text-align: justify;
}

.cookiebanner .cookiebanner-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 10px;
}

.cookiebanner .cookiebanner-buttons .btn {
    margin-left: 12px;
}

.cookiebanner .cookiebanner-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.cookiebanner .cookiebanner-links .cookiebanner-link {
    margin-left: 10px;
}

.cookiebanner .cookiebanner-category {
    display: block;
    margin-bottom: 10px;
    background-color: rgba(239, 239, 239, 0.5);
}

.cookiebanner .cookiebanner-category summary {
    display: flex;
    flex-direction: row;
    padding: 10px;
}

.cookiebanner .cookiebanner-category .cookiebanner-category-title {
    display: block;
    flex-grow: 1;
    font-weight: bold;
}

.cookiebanner .cookiebanner-category .cookiebanner-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.cookiebanner .cookiebanner-category .cookiebanner-checkbox input[type=checkbox] {
    position: absolute;
    z-index: 1;
    opacity: 0;
    margin: -10px 0 0 0;
    cursor: pointer;
    top: 12px;
    left: -5px;
    width: 40px;
    height: 20px;
}

.cookiebanner .cookiebanner-category .cookiebanner-checkbox label {
    position: relative;
    padding: 0 0 0 30px;
    margin: 0 10px 0 0;
    cursor: pointer;
}

.cookiebanner .cookiebanner-category .cookiebanner-checkbox label::before {
    position: absolute;
    display: block;
    content: "";
    color: #ffffff;
    box-sizing: border-box;
    padding-left: 23px;
    font-size: 12px;
    line-height: 20px;
    background-color: var(--cookiebanner_slider_inactive_color);
    transition: background-color 0.2s ease;
    left: 0;
    top: -7px;
    height: 15px;
    width: 28px;
    border-radius: 10px;
 }

.cookiebanner .cookiebanner-category .cookiebanner-checkbox label::after {
    position: absolute;
    display: block;
    content: "";
    border-radius: 10px;
    letter-spacing: 20px;
    background-color: var(--cookiebanner_slider_bullet_color);
    transition: left 0.2s ease;
    left: 4px;
    top: -5px;
    height: 11px;
    width: 11px;
}

.cookiebanner .cookiebanner-category .cookiebanner-checkbox.always-active span {
    margin-right: 12px;
    color: var(--cookiebanner_always_active_color);
}

.cookiebanner .cookiebanner-category .cookiebanner-checkbox.always-active label::before {
    display: none;
}

.cookiebanner .cookiebanner-category .cookiebanner-checkbox.always-active label::after {
    display: none;
}

.cookiebanner .cookiebanner-category .cookiebanner-checkbox.activated label::before {
    background-color: var(--cookiebanner_slider_active_color);
}

.cookiebanner .cookiebanner-category .cookiebanner-checkbox.activated label::after {
    left: 14px;
}

.cookiebanner .cookiebanner-category .cookiebanner-icon {
    cursor: pointer;
    transform: rotate(0deg);
    background-size: cover;
    transition: all 0.5s ease;
    font-size: 20px;
    margin-right: 6px;
    height: 18px;
    width: 18px;
}

.cookiebanner .cookiebanner-category[open] .cookiebanner-icon {
    transform: rotate(180deg);
    margin-top: 4px;
}

.cookiebanner .cookiebanner-category .cookiebanner-category-body {
    padding: 0 10px 10px 10px;
}

.cookiebanner .cookiebanner-category .cookiebanner-category-body p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 606px) {
    .cookiebanner {
        max-height: 75%;
        border: none;
        border-radius: 0;
        right: 0;
        bottom: 0;
    }

    .cookiebanner .cookiebanner-wrapper {
        overflow: scroll;
    }

    .cookiebanner .cookiebanner-buttons {
        flex-direction: column;
        justify-content: flex-start;
    }

    .cookiebanner .cookiebanner-buttons .btn {
        margin-bottom: 10px;
        margin-left: 0;
        width: 100%;
    }

    .cookiebanner .cookiebanner-links {
        flex-direction: column;
        justify-content: center;
    }

    .cookiebanner .cookiebanner-links .cookiebanner-link {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

/* forms */
form.public-form label {
    font-weight: bold;
    margin-bottom: 4px;
    margin-top: 4px;
}

form.public-form label.required:after {
    content: ' *';
    color: #dc3545;
}

form.public-form textarea {
    min-height: 140px !important;
}

/* dropdowns for survey avatars */
.survey-item .avatar-no-image {
    cursor: default;
}

.survey-item .dropdown-toggle {
    cursor: pointer !important;
}

.survey-item .dropdown-toggle::after {
    display: none !important;
}
