﻿:root {
    --background-color: white;
    --selected-color: #de771c;
    --ministry-background-color: #de771c;
    --background-image-blur-amount: 0px;
    --bar-height: 4.5rem;
    --tag-shaddow-color: rgba(0, 0, 0, 0.1);

}

#navigation {
    display: flex;
    flex-direction: row;
}

.opportunity-card-background {
    /* Add the blur effect */
    filter: blur(var(--background-image-blur-amount));
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: var(--bar-height);
    position:absolute;
    top: calc(50% - 0.5rem);
    left: 0;
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
}

.opportunity-card-background-blur {
    /* Add the blur effect */
    filter: blur(4px);
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: var(--bar-height);
    position: absolute;
    top: calc(50% - 0.5rem);
    left: 0;
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
}

.opportunity-card {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0.5rem;
    width: 17rem;
    height: 17rem;
    background: var(--background-color);
    padding: 1rem;
    float: left;
    box-shadow: 0 0 30px #CCC;
    text-align: center;
    box-shadow: 0rem 0.3rem 0.8rem #d9d9d9;
    border-radius: 0.8rem;
    transition: opacity 0.3s ease-out;
} 
    .opportunity-card:hover {
        cursor: pointer;
        opacity: .5;
    }



.opportunity-card-upper-text-block {
    width: 100%;
    font-weight: bold;
    font-size: 1.2rem;
    color: #000;
    text-align: left;
    max-height: 3.5rem;
    
    border-bottom-width: 1px;
    border-bottom-color: #CCC;
    border-bottom-style: solid;
    
    overflow:hidden;
    margin: 0;
}


.opportunity-card-description-wrapper {
   
    border-bottom-width: 1px;
    border-bottom-color: #CCC;
    border-bottom-style: solid;
    
    height: 6.9rem;
}
.opportunity-card-description {
    font-family: 'neue-haas-grotesk-text', sans-serif;
    position: absolute;
    top: 4.3rem;
    padding-top: .8rem;
    font-weight: normal;
    font-size: 0.85rem;
    overflow: hidden;
    max-height: 5.4rem;
    height: 5.4rem;
    /* use this value to count block height */
    line-height: 0.9rem;
    /* fix problem when last visible word doesn't adjoin right side  */
    text-align: left;
    /* place for '...' */
    margin-right: 0.3rem;
    padding-right: 1.7rem;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}
    /* hide ... if we have text, which is greater than or equal to max lines */
    /*.opportunity-card-description:after {
        content: "";
        text-align: right;
        position: absolute;
        bottom: 0;
        right: 0;
        width: 70%;
        height: 1.2em;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 50%);
    }*/

.icon-row{
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    text-transform: uppercase;
}

.opportunity-card-date-time {
    color: gray;
    font-size: 0.73rem;
    font-family: 'neue-haas-grotesk-text', sans-serif;
    font-weight: normal;
    text-align: left;
    padding-top: 0.8rem;
}


.opportunity-layout {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    width: 100%;
    justify-content:center;
}

.opportunity-tag-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    /*width: 100%;*/
    padding-left: 2rem;
    padding-right: 2rem;
    margin-top: 0.8rem;
    justify-content: center;
}



.opportunity-ministry-text {
    font-weight: 600;
    display: inline-flex;
    width: 80%
}


.opportunity-tag-list-item {
    font-size: 12pt;
    font-weight: 700;
    font-family: 'neue-haas-grotesk-text', sans-serif;
    background: var(--background-color);
    padding: 0.5rem;
    width: 8rem;
    height: 2rem;
    margin: 0.3rem;
    float: left;
    box-shadow: 0rem 0.3rem 0.8rem #d9d9d9;
    cursor: pointer;
    user-select: none;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 0.8rem;
}

.opportunity-tag-list-item-selected {
    font-size: 12pt;
    font-weight: 700;
    background: var(--background-color);
    color: var(--selected-color);
    padding: 0.5rem;
    width: 8rem;
    height: 2rem;
    margin: 0.3rem;
    float: left;
    box-shadow: 0rem 0.3rem 0.8rem #d9d9d9;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 0.8rem;
}

.opportunity-tag-list-item-small {
    font-size: 10.5pt;
    font-weight: bold;
    background: var(--background-color);
    padding: 0.6rem 1rem;
    width: 6rem;
    height: 1.3rem;
    margin: 0.3rem;
    float: left;
    box-shadow: 0rem 0.3rem 0.8rem #d9d9d9;
    cursor: pointer;
    user-select: none;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 0.8rem;
}

.opportunity-tag-list-item-small-selected {
    font-size: 10.5pt;
    font-weight: bold;
    background: var(--background-color);
    color: var(--selected-color);
    padding: 0.6rem 1rem;
    width: 6rem;
    height: 1.3rem;
    margin: 0.3rem;
    float: left;
    box-shadow: 0rem 0.3rem 0.8rem #d9d9d9;
    border-radius: 0.8rem;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.opportunity-tag-block {
    display: flex;
    flex-direction: column;
    overflow:hidden;
    transition: max-height 0.4s;
}

.opportunity-text-field {
    display: flex;
    align-items: center;
    margin-right: 1rem;
    padding-top: 0;
    color: black;
    flex-grow: 1;
    font-family: 'neue-haas-grotesk-text', sans-serif;
    font-weight: 500;
}

.opportunity-text-field input{
    color:black;
    border-color: black;
    border-width: 1px;
    background-color: rgba(0,0,0,0);
    border-radius: 0.8rem;
    padding-left: 0.8rem;
    
    
}

    .opportunity-text-field input::placeholder {
        color: black;
        font-weight: 500;

    }

.opportunity-filter-text{
    font-size: 0.7rem;
    margin-top: -1.2rem;
    font-weight: 700;
    font-family: 'neue-haas-grotesk-text', sans-serif;
    
}

.opportunity-tag-block-item {
    margin-top: 0rem;
    margin-bottom: 1rem;
}

.opportunity-filter-expand-button {
    max-width: 19rem;
    width: 100%;
    font-size: 1rem;
    font-weight: normal;
    background: var(--background-color);
    padding: 0.3rem;
    margin: 0.3rem;
    float: left;
    box-shadow: 0 0 30px var(--tag-shaddow-color);
    cursor: pointer;
    user-select: none;
    text-align: center;
    color: black;
    margin: auto;
}

.opportunity-filter-expand-button-selected {
    max-width: 19rem;
    width: 100%;
    font-size: 1rem;
    font-weight: normal;
    text-align: center;
    background: var(--background-color);
    padding: 0.3rem;
    margin: 0.3rem;
    float: left;
    box-shadow: 0 0 30px var(--tag-shaddow-color);
    cursor: pointer;
    user-select: none;
    color: var(--selected-color);
    margin: auto;
}

.opportunity-filter-expand-icon {
    display: block;
    height: calc(55px - 0.5rem);
    width: 55px;
    line-height: 60px;
    border-radius: 50%; /* or 50% */
    background: var(--background-color);
    float: left;
    box-shadow: 0 0 30px var(--tag-shaddow-color);
    cursor: pointer;
    user-select: none;
    text-align: center;
    color: black;
    border-width: 1px;
    border-color: black;
    border-style: solid;
    padding-top: 0.5rem;
    margin-top: auto;
    margin-bottom: auto;
}

.opportunity-filter-expand-icon-selected {
    display: block;
    height: calc(55px - 0.5rem);
    width: 55px;
    line-height: 60px;
    border-radius: 50%; /* or 50% */
    background: var(--background-color);
    box-shadow: 0 0 30px var(--tag-shaddow-color);
    cursor: pointer;
    user-select: none;
    text-align: center;
    color: var(--selected-color);
    border-width: 1px;
    border-color: var(--selected-color);
    border-style: solid;
    padding-top: 0.5rem;
    margin-top: auto;
    margin-bottom: auto;
}

.opportunity-card-minor-bar {
    position: absolute;
    padding-top: 0.2rem;
    width: 100%;
    height: 0.8rem;
    left: 0;
    top: 0;
    background-color: #e68200;
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    font-family: 'neue-haas-grotesk-text', sans-serif;
    text-align: center;
    border-radius: 0.8rem 0.8rem 0 0;
}

.opportunity-card-selected-bar {
    position: absolute;
    padding-top: 0.2rem;
    width: 100%;
    height: 0.8rem;
    left: 0;
    top: 0;
    background-color: darkgreen;
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    font-family: 'neue-haas-grotesk-text', sans-serif;
    text-align: center;
    border-radius: 0.8rem 0.8rem 0 0;
}

.opportunity-card-minor-bar-text{
    padding:0.2rem;
}



.opportunity-filter-status {
    color: #AAA;
    font-size: 0.75rem;
    font-weight: normal;
    padding-top:0.5rem;
    text-align: center;
}

.line-break{
    border-top:solid 1px #CCC;


}

.opportunity-tag-list-sort {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    /*width: 100%;*/
    padding-left: 2rem;
    padding-right: 2rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.float-bottom {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem 0;
    background-color: rgba(0,0,0,0.9);
    
    
}

.sort-order-arrow{
    cursor: pointer;
    width: 1rem;
}


.of-only-small {
    display: none !important
}

.of-not-small{
    
}

@media screen and (max-width:980px) {
    .of-only-small {
        display: flex !important
    }

    .of-not-small {
        display: none !important
    }
}

@media all and (max-width: 588px) {
    #navigation {
        flex-direction: column;
        align-items: center;
    }

    #navigation .opportunity-text-field {
        margin-bottom: 1.3rem;
        margin-right: 0;
    }
}