﻿/*
    Slideshow
*/
.CompanySlideshowContainer {
    width: 100%;
    min-height: 250px;
    position: relative;
    margin: auto;
    display: flex;
}

    .CompanySlideshowContainer .prev, .next {
        cursor: pointer;
        position: absolute;
        top: 50%;
        width: auto;
        margin-top: -22px;
        padding: 16px;
        color: black;
        font-weight: bold;
        font-size: 18px;
        transition: 0.6s ease;
        border-radius: 3px;
    }

    .CompanySlideshowContainer .next {
        right: 0;
    }
    /* On hover, add a black background color with a little bit see-through */
    .CompanySlideshowContainer .prev:hover, .next:hover {
        background-color: rgba(0,0,0,0.8);
    }

.CompanySlides {
    display: none;
    margin: auto;
}
/* Slideshow indicators */
.SlideshowDotsContainer {
    text-align: center;
}

    .SlideshowDotsContainer .SlideshowDot {
        cursor: pointer;
        height: 13px;
        width: 13px;
        margin: 0 2px;
        background-color: #bbb;
        border-radius: 50%;
        display: inline-block;
        transition: background-color 0.6s ease;
    }

        .SlideshowDotsContainer .SlideshowDot.active, .SlideshowDotsContainer .SlideshowDot:hover {
            background-color: #717171;
        }

.SlideshowImg {
    border-radius: 5px;
    transition: 0.1s;
    margin: auto;
    max-width: 100%;
    max-height: 420px;
}
/*
    Modal
*/
@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.CompanyModal {
    opacity: .99;
    display: none;
    position: fixed;
    overflow: auto;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation-name: zoom;
    animation-duration: 0.2s;
}

.CompanyModalImg {
    display: block;
    margin: auto; /* center image */
    max-width: 100%; /* avoid horizontal scroll */
}
/* The Close Button */
.CompanyModalClose {
    position: absolute;
    top: 4em;
    right: 4em;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

/*
    Content
*/
.content {
    color: black;
    font-size: initial;
    font-style: normal;
    text-decoration: none;
    text-transform: none;
    width: 100%;
    height: auto;
    background: none;
    border: none;
    line-height: normal;
    margin: initial;
    padding: initial;
}

    .content ul {
        color: black;
        font-size: initial;
        font-style: normal;
        text-decoration: none;
        text-transform: none;
        width: 100%;
        height: auto;
        background: none;
        border: none;
        line-height: normal;
        margin: initial;
        padding: initial;
    }

        .content ul li {
            margin-left: 1.5em;
        }

/*
    Filters
*/
/* The animation code */
.CollapseCantonsFilter {
    -moz-transition: height .5s;
    -webkit-transition: height .5s;
    transition: height .5s;
    height: 0;
    overflow: hidden;
}

.FilterCard .ZonesList {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin: 0;
    padding: 0;
    margin-left: 1em;
}

    .FilterCard .ZonesList li {
        min-width: 100px;
    }



.ZonesList li[selected="true"] {
    text-decoration: underline;
    text-decoration: underline;
    font-weight: bold;
}

.CompanyFiltersTitle {
    text-transform: uppercase;
    padding: 5px;
    border: #cbc6da solid 1px;
    border-radius: 5px;
    background-color: rgba(82,65,132,0.02);
    text-align: center;
    min-width: 220px;
}

    .CompanyFiltersTitle:hover {
        background-color: rgba(82,65,132,0.1);
        border-radius: 3px;
    }

.CompanyFilters {
    position: relative;
    left: 0;
}

@media screen and (min-width: 1430px) {
    .CompanyFilters {
        position: absolute;
        left: -210px;
    }

        .CompanyFilters .Cantons {
        }
}

.CompanyFilters .FilterCard {
    padding: 8px;
}

.CompanyFilters h1 {
    text-transform: uppercase;
    text-align: center;
    min-width: 100%;
}

.CompanyFilters ul {
    margin: 0;
}

.CompanyFilters .Cantons {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex-grow: 1;
    justify-content: center;
    align-content: center;
    align-self: flex-start;
}

.CompanyFilters .Left {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    flex-grow: 2;
    justify-content: flex-start;
    align-content: flex-start;
    align-self: flex-start;
}

/* Canton button */
.CantonButton {
    cursor: pointer;
    display: flex;
    align-items: center;
}

    .CantonButton img {
        width: 20px;
        margin: 0.25em;
    }

    .CantonButton .img {
        text-align: right;
        padding-right: 0.5em;
    }

    .CantonButton .text {
        color: #7c479c;
    }

    .CantonButton[selected="true"] {
        background-color: rgba(82,65,132,0.1);
        border-radius: 3px;
        font-weight: bold;
    }

        .CantonButton[selected="true"] .text {
            font-weight: bold;
        }

/*
    Company list
*/
h1.CompanyListPageHeader {
    text-decoration: underline;
}

.CompanyListOuterTitle {
    color: #858585;
    position: relative;
    margin: 0;
    font-size: x-large;
}

.CompanyListOuterSubTitle {
    color: #858585;
    font-size: 1em;
    position: relative;
    margin: 0;
    font-weight: normal;
    font-style: italic;
}

/*
    Company list pagination
*/
.CompanyListPagination {
    display: flex;
    text-transform: uppercase;
}

    .CompanyListPagination .PreviousButton {
        flex-grow: 1;
        text-align: left;
        width: 33%;
    }

        .CompanyListPagination .PreviousButton[disabled] {
            color: lightblue;
        }

    .CompanyListPagination .NextButton {
        flex-grow: 1;
        text-align: right;
        width: 33%;
    }

        .CompanyListPagination .NextButton[disabled] {
            color: lightgray;
        }

    .CompanyListPagination .PageStatus {
        flex-grow: 1;
        text-align: center;
        width: 33%;
    }
/*
    Categories list
*/
.CategoryListCategoryOdd {
    height: 2em;
    line-height: 2em;
    width: 100%;
    background-color: #f1f1ed;
    color: gray;
}

    .CategoryListCategoryOdd a:link, .CategoryListCategoryOdd a:visited, .CategoryListCategoryOdd a:hover, .CategoryListCategoryOdd a:active {
        color: #796593;
    }

    .CategoryListCategoryOdd .nolink {
        color: #afa8c5;
    }

.CategoryListCategory {
    height: 2em;
    line-height: 2em;
    width: 100%;
    background-color: white;
}

    .CategoryListCategory a:link, .CategoryListCategory a:visited, .CategoryListCategory a:hover, .CategoryListCategory a:active {
        color: #796593;
    }

    .CategoryListCategory .nolink {
        color: #afa8c5;
    }

.CategoriesUCRightBox {
    background: #fefde7;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    border: #cac5d9 solid 1px;
}

h1.CategoriesUCRightBox {
    color: #7c479c;
    font-weight: normal;
}

.CategoriesUCRightBox .nolink {
    color: #bcaac0;
}

h1.CategoriesUCOuterTitle {
    color: #858585;
    text-transform: uppercase;
    font-size: 1em;
    position: relative;
    margin: 0 0 -20px;
    top: -20px;
}
/*
    A card (panel) on the site
*/
.Card {
    background: #fff;
    border-radius: 5px;
    padding: 20px 30px 20px;
    margin: 0 0;
    border: #cbc6da solid 1px;
    margin-bottom: 1em;
}

    .Card h1 {
        flex-grow: 1;
        min-width: 170px;
    }

    .Card h2 {
        font-size: 1.3em;
    }

.CardHeader {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

/*
    Company Admin
*/
.CompanyLogoutBtn {
    padding: 6px;
    border: 1px solid #000;
    width: 200px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 16px;
    text-transform: uppercase;
    background-color: #524184;
    color: white;
}

    .CompanyLogoutBtn:hover {
        font-weight: bold;
        background-color: #524184;
        cursor: pointer;
    }

.OuterLogin {
    display: flex;
    justify-content: center
}

.CompanyLogin {
    max-width: 500px;
}

    .CompanyLogin .FormInput label {
        padding-right: 1em;
        min-width: 120px;
    }

    .CompanyLogin .FormInput input {
        flex-grow: 1;
        border-radius: 0;
        box-shadow: 0 0 1px #000;
    }

    .CompanyLogin .FormInput {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .CompanyLogin .FormSubmit {
        text-align: right;
    }

        .CompanyLogin .FormSubmit input {
            width: 100px;
            text-align: center;
            height: 2em;
            text-transform: uppercase;
        }

            .CompanyLogin .FormSubmit input:hover {
                background-color: #524184;
                color: white;
                font-weight: bold;
            }

    .CompanyLogin .error {
        color: white;
        background-color: red;
        border-radius: 2px;
        padding: 6px;
        text-align: center;
    }


/*
    A simple company description card
*/

.CompanyDescCard {
    min-height: 400px;
    position: relative;
}

@media screen and (min-width: 450px) {
    .CompanyDescCard {
        min-height: 300px;
    }
}

.CompanyDescCard .logo {
    position: relative;
}

.CompanyDescCard .descLabel {
    width: 100px;
    display: inline-block;
}

.CompanyDescCard .value {
    display: inline;
}

.CompanyDescCard .logo img {
    top: -40px;
    right: 0;
    min-width: 64px;
    max-width: 140px;
}

.CompanyDescCard .readMore {
    width: 180px;
    height: 2em;
    line-height: 2em;
    background-color: #524184;
    text-transform: uppercase;
    position: absolute;
    bottom: 0;
    right: 0;
    color: white;
    text-align: center;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 5px;
    font-size: 1.25em;
}

.CompanyDescCardreadMore a:link, .CompanyDescCardreadMore a:visited, .CompanyDescCardreadMore a:hover, .CompanyDescCardreadMore a:active {
    color: white;
}

/*
    A company detailed page
*/


.CategoryListHome {
    background: #fefde7 !important;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    border: #cac5d9 solid 1px;
}

    .CategoryListHome .CategoryListCategory {
        background: #fefde7;
        margin-left: 1em;
    }

        .CategoryListHome .CategoryListCategory a:link, .CategoryListCategory a:visited, .CategoryListCategory a:hover, .CategoryListCategory a:active {
            color: #524184;
        }

        .CategoryListHome .CategoryListCategory .nolink {
            color: #bcaac0;
        }

        .CategoryListHome .CategoryListCategory:before {
            content: "";
            position: absolute;
            height: 0.33em;
            width: 0.33em;
            margin-top: 0.8em;
            margin-left: -0.9em;
            background-color: #524184;
            background-repeat: no-repeat;
            border-radius: 50%;
        }

    .CategoryListHome .CategoryListCategoryOdd {
        background: #fefde7;
        margin-left: 1em;
    }

        .CategoryListHome .CategoryListCategoryOdd a:link, .CategoryListCategoryOdd a:visited, .CategoryListCategoryOdd a:hover, .CategoryListCategoryOdd a:active {
            color: #524184;
        }

        .CategoryListHome .CategoryListCategoryOdd .nolink {
            color: #bcaac0;
        }

        .CategoryListHome .CategoryListCategoryOdd:before {
            content: "";
            position: absolute;
            height: 0.33em;
            width: 0.33em;
            margin-top: 0.8em;
            margin-left: -0.9em;
            background-color: #524184;
            background-repeat: no-repeat;
            border-radius: 50%;
        }
