﻿* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    /*overflow-y: hidden;*/
}

.main > footer {
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    text-align: center;
    color: var(--app-light-primary-color);
}

    .main > footer a {
        color: var(--app-light-primary-color);
    }

body {
    background: var(--app-background-color);
    margin-bottom: 20px;
    margin-left: 10px;
    margin-right: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-one {
    background-color: var(--app-secondary-color);
    padding: 30px;
    margin-top: 10px;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 950px) {
    .section-one {
        padding: 10px;
    }
}

#app {

}

    #app header {
        display: flex;
    }

@media (max-width: 950px) {
    #app .body header {
        display: block;
    }
}

    #app header .top-heading {
        width: 100px;
    }

    #app header #navbar {
        width: 100%;
    }

        #app header #navbar li {
            padding-left: 15px;
            padding-right: 15px;
            display: block;
        }

    #app .topHeader {
        width: 100%;
        min-height: 80px;
        max-width: 1200px;
        margin: auto;
        position: relative;
        background: var(--app-topheader-background-color);
    }

    #app .body {
        width: 100%;
        max-width: 1200px;
        margin: auto;
        background: var(--app-body-background-color);
    }

    #app .bottom {
        width: 100%;
        max-width: 1200px;
        margin: auto;
        background: var(--app-bottom-background-color);
    }

    input[type="text"] {
        width: 300px;
        height: 50px;
        padding: 10px;
        font-size: 16px;
        background-color: var(--app-input-type-color);
        border: 2px solid var(--app-input-border-color);
        color: var(--app-input-text-color);
        border-radius: 5px;
        outline: none;
        transition: border-color 0.3s ease;
    }

        input[type="text"]:focus {
            border-color: var(--app-light-primary-color);
        }

    .kalender-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: "20px";
    }

    h1:focus {
        outline: none;
    }

    a, .btn-link {
        color: #0071c1;
    }

    .btn-primary {
        color: #fff;
        background-color: var(--app-primary-color);
        border-color: #1861ac;
    }

    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

    .content {
        padding-top: 1.1rem;
    }

    .valid.modified:not([type=checkbox]) {
        outline: 1px solid #26b050;
    }

    .invalid {
        outline: 1px solid red;
    }

    .validation-message {
        color: red;
    }

.tab-menu .innerWrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

    .tab-menu .innerWrapper .section-one-list-container a {
        text-decoration: none;
    }


.tab-menu {
    list-style-type: none;
    display: flex;
    justify-content: flex-start;
    background: var(--app-icon-background-color);
}

.tab-menu li a {
    display: block;
    height: 50px;
    background: var(--app-tabmenu-backgroundColor);
    color: var(--app-tabmenu-textColor);
    line-height: 50px;
    padding: 0 10px 0 10px;
}

    .tab-menu li.active a {
        border-bottom: 1px solid var(--app-tabmenu-textColor);
    }

@media (max-width: 950px) {

    .tab-menu header.innerWrapper {
        display: block;
    }

    .tab-menu .date-header {
        display: block;
    }

        .tab-menu .date-header .datebar {
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }
}

    #blazor-error-ui {
        background: lightyellow;
        bottom: 0;
        box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
        display: none;
        left: 0;
        padding: 0.6rem 1.25rem 0.7rem 1.25rem;
        position: fixed;
        width: 100%;
        z-index: 1000;
    }

        #blazor-error-ui .dismiss {
            cursor: pointer;
            position: absolute;
            right: 0.75rem;
            top: 0.5rem;
        }

    .blazor-error-boundary {
        background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZ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ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
        padding: 1rem 1rem 1rem 3.7rem;
        color: white;
    }

        .blazor-error-boundary::after {
            content: "An error has occurred."
        }

    .loading-progress {
        position: relative;
        display: block;
        width: 8rem;
        height: 8rem;
        margin: 20vh auto 1rem auto;
    }

        .loading-progress circle {
            fill: none;
            stroke: #e0e0e0;
            stroke-width: 0.6rem;
            transform-origin: 50% 50%;
            transform: rotate(-90deg);
        }

            .loading-progress circle:last-child {
                stroke: var(--app-primary-color);
                stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
                transition: stroke-dasharray 0.05s ease-in-out;
            }

    .loading-progress-text {
        position: absolute;
        text-align: center;
        font-weight: bold;
        inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    }

        .loading-progress-text:after {
            content: var(--blazor-load-percentage-text, "Loading");
        }

    code {
        color: var(--app-primary-color);
    }

    li {
        cursor: pointer;
    }

    .topHeader {
    }

.logo a {
    position: relative;
    z-index: 1;
}

.logo img {
    width: auto;
    max-width: calc(100% - 10px);
    max-height: 60px;
    height: auto;
    margin: 10px 0 -50px 0;
}

    /* Variables Declared Below Will Control The Colors / Themes For The Whole Application */
:root {
    --app-calendar-card-margintop: 10px;
    --app-calendar-card-background: #1f4a5a;
    --app-calendar-card-text-color: #fff;
    --app-background-color: #ffffff;
    --app-primary-color: #962020;
    --app-secondary-color: #e5dbc0;
    --app-actor-content-background: #e5dbc0;
    --app-light-primary-color: #94b1c3;
    --app-light-primary-background-color: #1f4a5a;
    --app-dull-primary-color: #962020;
    --app-org-border-color: transparent;
    --app-calendar-card-color-text: #ffffff;
    --app-calendar-card-background-color: #98201f;
    --app-input-type-color: #fff;
    --app-input-border-color: #c5bfa9;
    --app-input-text-color: #757678;
    --app-scrollbar-color: #c3c3c3;
    --app-icon-background-color: #1f4a5a;
    --app-about-background-color: #e5dbc0;
    --app-about-navtab-background-color: #c2ddf0;
    --app-about-primary-color: #962020;
    --app-about-border-color: transparent;
    --app-info-scrollbar-thumb-color: #5daba8;
    --app-info-scrollbar-track-color: #4a4848;
    --app-nav-background-color-hover: #1f4a5a;
    --app-nav-text-color-hover: #fff;
    --app-nav-background-color: #c2ddf0;
    --app-nav-text-color: #1c4c5a;
    --app-nav-border-color: transparent;
    --app-chat-responder-color: #f1f1f1;
    --app-chat-customer-color: #d1e7dd;
    --app-category-background-color: #1f4a5a;
    --app-date-background-color: transparent;
    --app-date-text-color: #333;
    --app-category-text-color: #fff;
    --app-button-background-color: #de1029;
    --app-button-text-color: #fff;
    --app-button-border-radius: 5px;
    --app-button-padding: 15px;
    --app-topheader-background-color: transparent;
    --app-bottom-background-color: transparent;
    --app-body-background-color: transparent;
    --app-search-buttons: transparent;
    --app-icons-color: #757678;
    --app-chat-input-type-color: transparent;
    --app-chat-input-border-color: transparent;
    --app-chat-input-text-color: #333;
    --app-chat-modal-border: transparent;
    --app-chat-modal-background: #fff;
    --app-chat-modal-shadow: rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    --app-category-checkbox-border-color: #000;
    --app-category-checkbox-background-color: transparent;
    --app-filter-text-color: #333;
    --app-tabmenu-backgroundColor: #1f4a5a;
    --app-tabmenu-textColor: #fff;
}

.section-two-container {
    color: var(--app-filter-text-color);
}

.chat-container {
    position: relative;
}

    .filter-dropdown {
        border-left: 1px solid var(--app-category-checkbox-border-color);
        border-right: 1px solid var(--app-category-checkbox-border-color);
        border-bottom: 1px solid var(--app-category-checkbox-border-color);
        position: absolute;
        top: 50px;
        width: 100%;
        max-width: 100%;
        z-index: 10;
        min-height: 350px;
        color: var(--app-filter-text-color);
        background: var(--app-about-background-color);
        right: 0;
        max-height: 100%;
        margin-bottom: 10px;
    }

        .filter-dropdown .filter-footer {
            margin-top: 15px;
            overflow: hidden;
        }

            .filter-dropdown .filter-footer .button-reset {
                background: transparent;
                border: 0;
                text-align: center;
                display: block;
                width: 40%;
                float: left;
                height: 25px;
                margin-left: 20px;
                cursor: pointer;
            }

            .filter-dropdown .filter-footer .button-save {
                margin-right: 20px;
                cursor: pointer;
                width: 40%;
                height: 25px;
                display: block;
                float: right;
                text-align: center;
                color: var(--app-button-text-color);
                border: 0;
                background: var(--app-button-background-color);
            }

    @media (max-width: 950px) {
        .filter-dropdown {
            max-width: 70%;
            width: 100%;
        }
    }

    @media (max-width: 750px) {
        .filter-dropdown {
            max-width: 100%;
            width: 100%;
        }
    }

    .filter-body {
        overflow-y: scroll;
        overflow-x: hidden;
        height: 250px;
        max-height: 100%;
    }

        .filter-body .open {
            transform: rotate(180deg);
        }

        .filter-body .hide {
            display: none;
        }

        .filter-body .show {
            display: block;
        }


    .filter-header {
        margin: 0 0 15px 0;
        padding: 10px 10px 0 10px;
    }

        .filter-header svg {
            position: relative;
            top: 2px;
        }

    .filter-body li a {
        color: var(--app-filter-text-color);
        display: block;
        padding: 10px 10px 10px 10px;
        width: 100%;
    }

    .filter-body > ul > li:first-child {
        border-top: 1px solid #000;
    }

    .filter-body > ul > li {
        border-bottom: 1px solid #000;
    }


    .filter-body li {
    }

    .filter-body .filter-row-header {
        display: flex; /* activates Flexbox */
        flex-direction: row; /* optional – row is the default */
    }

    .filter-body .filter-checkbox-wrapper {
        position: relative;
        align-items: center;
        display: flex;
    }

    .filter-body .any::after {
        content: '';
        position: absolute;
        top: 6px;
        left: 5px; /* stick to the right edge */
        height: 1px;
        margin: auto;
        width: 6px;
        background: var(--app-category-checkbox-border-color); /* divider colour */
    }

    .filter-body .filter-row-header a {
        display: flex; /* activates Flexbox */
        flex-direction: row; /* optional – row is the default */
        align-items: center;
        text-decoration: none;
    }

    .filter-body .filter-row-header span {
        width: 50%;
    }

        .filter-row-header svg {
            fill: var(--app-filter-text-color);
            display: inline;
            position: absolute;
            right: 15px;
        }

    .filter-body .filter-row-header input[type=checkbox] {
        width: 16px;
        position: relative;
        border: 1px solid var(--app-category-checkbox-border-color);
        background: var(--app-category-checkbox-background-color);
    }

    .filter-body > ul li ul {
        padding-left: 15px;
    }

    .filter-dropdown li {
        list-style-type: none;
    }

    .input-filter .button-ai {
        position: absolute;
        top: 15px;
        right: 35px;
        color: var(--app-icons-color);
        cursor: pointer;
        z-index: 5;
    }

        .input-filter .button-ai.alone {
            right: 10px;
        }

        .input-filter .button-filter {
            position: absolute;
            top: 13px;
            right: 10px;
            color: var(--app-icons-color);
            cursor: pointer;
            z-index: 5;
        }

    .input-filter .button-ai svg {
        fill: var(--app-icons-color);
    }

    .input-filter .button-filter svg {
        fill: var(--app-icons-color);
    }

.organizationinfo {
    color: #fff;
    padding: 15px;
    width: 30%;
    background-color: var(--app-icon-background-color);
}

@media (max-width: 950px) {
    .organizationinfo {
        width: 100%;
    }
}

        .organizationinfo .description {
            clear: both;
            padding: 10px 0 0 0;
        }

    .organizationinfo .description label {
        display: block;
        font-weight: bold;
    }


        .organizationinfo .address {
            float: left;
            width: 70%;
        }

        .organizationinfo p {
            margin: 0 0 5px 0;
        }

        .organizationinfo p:first-child {
            margin: 0 0 0 0;
        }

        .organizationinfo .name {
            font-weight: bold;
        }

        .organizationinfo .imageWrapper {
            float: left;
            width: calc(30% - 15px);
            margin: 0 15px 15px 0;
        }

        .organizationinfo .imageWrapper img {
            max-width: 100%;
            height: auto;
            width: auto;
            max-height: 100px;
        }


    .organizationinfo a {
        color: #fff;
    }

        .organizationinfo a:hover {
            text-decoration: none;
        }

.section-one > header {
    display: flex;
    justify-content: space-between;
    height: fit-content;
}

.select-date {
    cursor: pointer;
    padding: 2px 5px 2px 5px;
    display: block;
    border: 1px solid var(--app-button-background-color);
}

.button-goback {
    text-decoration: none;
    background: var(--app-button-background-color);
    color: var(--app-button-text-color) !important;
    padding: 10px;
    height: 100%;
    display: block;
    border-radius: var(--app-button-border-radius);
}

.menu .close {
    display: none;
}

.input-filter-selected {
    margin-top: 5px;
}

@media (max-width: 767px) {
    .date-header {
        margin-top: 10px !important;
        padding-left: 0 !important;
    }

    .chat-container {
        margin-top: 10px !important;
    }

    .section-one {
        padding-right: 10px !important;
        padding-left: 10px !important;
        padding-top: 0 !important;
        margin-top: 5px !important;
    }

    .topHeader {
        padding-left: 10px;
        padding-right: 20px;
    }

    .hamburger {
        right: 10px !important;
    }

    .menu .close {
        display: block;
    }

    body {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
    }

    .button-goback {
        display: none;
    }
}

.input-filter-selected label {
    font-weight:bold;
    margin-right: 5px;
}

.input-filter-selected span {
    margin-right: 5px;
}

.calendar-table .active {
    background: var(--app-button-background-color) !important;
    color: var(--app-button-text-color) !important;
}

/**Events */

.date-header {
    background-color: var( --app-date-background-color);
    color: var(--app-date-text-color);
    display: flex;
    justify-content: space-between;
    padding-right: 10px;
    align-items: center;
}


@media (max-width: 950px) {
    .date-header {
        justify-content: start;
    }
}

.datebar {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

    .datebar p {
        display: inline;
        color: var(--app-date-text-color);
        font-size: 18px;
    }

    .datebar a {
        display: inline;
        color: var(--app-date-text-color);
        font-size: 18px;
        cursor: pointer;
    }

    .datebar svg {
        fill: var(--app-date-text-color);
        font-size: 24px;
        position: relative;
        top: 3px;
        width: 18px;
        height: 18px;
    }

    .datebar img[role=button] {
        cursor: pointer;
    }


.events .event img {
    width: 100%;
    height: auto;
    height: 150px;
    object-fit: cover;
}

.events {
    display: flex;
    gap: 15px;
    flex-flow: row wrap;
}

.card-image a {
    position: relative;
    z-index: 1;
}

.event {
    width: calc(25% - 12px);
    padding: 10px;
    color: var(--app-calendar-card-text-color);
    background: var(--app-calendar-card-background);
}

@media (max-width: 950px) {
    .event {
        width: calc(50% - 8px);
    }
}

@media (max-width: 750px) {
    .event {
        width: 100%;
    }
}


.card-one {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    width: 100%;
    flex-direction: column;
    height: 100% !important;
    position: relative;
    overflow-x: hidden;
}

    .card-one::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0); /* Transparent by default */
        transition: background-color 0.3s ease;
        opacity: 0.3;
    }

.card-text {
    z-index: 1;
    margin-top: 10px;
}

.event .card-text .title {
    font-weight: bold;
    font-size: 20px;
}

.event .card-text .readmore {
    text-decoration: underline;
    margin-top: 10px;
    display: block;
    color: var(--app-calendar-card-text-color);
}

.card-advert {
    background-image: url('../MinForening.Calendar.UI.Components/img/advert-card.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    width: 100%;
    flex-direction: column;
    height: 100% !important;
    position: relative;
    overflow-x: hidden;
}

.event .date {
    width: auto !important;
    height: 60px !important;
    color: var(--app-calendar-card-color-text);
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 10px 0 10px;
    display: flex;
    font-size: 12px;
    flex-direction: row;
    align-items: center;
    background: var(--app-calendar-card-background-color);
    z-index: 1;
}

    .event .date .startDate {
        text-wrap: nowrap;
    }

    .event .date .endDate {
        text-wrap: nowrap;
        margin-left: 10px;
    }

        .event .date .endDate .date-day::before {
            content: '-';
            color: #fff;
            position: relative;
            left: -7px;
        }

    .event .date > div {
        width: 50%;
        text-align: center;
        font-size: 12px;
    }

        .event .date > div p {
            font-size: 12px !important;
        }

.turquoise-text {
    color: var(--app-calendar-card-color-text);
    font-size: 14px;
    font-weight: 500;
}
