html, body {
    margin:0;
    padding:0;
    font-family: Arial, Helvetica, sans-serif;
}

 /* unvisited link */
a:link {
  color: #008dd4;
}

/* visited link */
a:visited {
  color: #9e65d3;
}

/* mouse over link */
a:hover {
  color: #008dd4; ;
}

/* selected link */
a:active {
  color: #008dd4;;
}


header {
//    position: fixed;
    width: 100%;
    background-color: #efefef;
    text-align:center; 
}

header h1 {
   text-align:center; 
   margin-top: 0;
}

header img {
    max-width: 600px;
    height: auto;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #999;
    text-align: center;
}

nav ul li {
    display: inline-block;
    background-color: #eee;
    margin: 8px;
    padding: 8px;
}

/* overlay at start */
.mfp-fade.mfp-bg {
  opacity: 0;

  -webkit-transition: all 0.15s ease-out;
  -moz-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
}
/* overlay animate in */
.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.8;
}
/* overlay animate out */
.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

/* content at start */
.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;

  -webkit-transition: all 0.15s ease-out;
  -moz-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
}
/* content animate it */
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
}
/* content animate out */
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
}

.content-wrapper {
    max-width: 1200px;
    margin: auto;
}


    .main-wrapper {
        display: flex;
        flex-wrap: wrap;
    }

.display-box {
}


.filter {

    padding: 8px;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);

}

@media (min-width: 900px) {

    .filter {
        max-width: 300px;
        min-width: 300px;
    }
    .display-box {
        min-width: 300px;
    }
}


.fi {
    display: flex;
    flex-wrap: wrap;
}

.filter-criteria {
    max-width: 200px;
    min-width: 200px;
    margin-top: 12px;
    margin-right: 12px;

}

.filter-criteria label {
    display: block;
    width: 100%;

}

.filter-criteria select {
    width: 100%;
}

.filter-criteria .age-slider {
    display: flex;
}

/* Chrome, Safari, Edge, Opera  hide arrows*/
.filter-criteria .age-slider .input::-webkit-outer-spin-button,
.filter-criteria .age-slider .input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox hide arrows */
.filter-criteria .age-slider .input {
  -moz-appearance: textfield;

    margin-right: 5px;

}
.filter-criteria .age-slider .slider {
    flex-grow: 1;
 }

.filter .reset {
    margin-top:12px;
    padding: 5px;
}

.filter .reset:hover {
}


.display-box {
    padding-top: 20px;
    flex-grow:1;
}

.subject-offer,
.organization-offer {
    display: none;
    background-color: #efefef;
    padding: 1em;
    padding-left: 2em;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.subject-offer:first-of-type,
.organization-offer:first-of-type {
    display: block;
}

.organization-list {
    padding: 0;
    margin:0;
}
.organization-list .org {
    display: none;
    padding-left: 2em;*/
    width: 100%;
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #fff;
    border-right: 1px solid #fafafa;
    background-color: #fdfdfd;
    margin-left: 2px;
    
}


.organization-list .org:nth-child(even) {
    background-color: #fdfdfd;
    border-top: 1px solid #efefef;
}

.organization-list .org:hover {
    border-bottom: 1px solid #008dd4;
    border-top: 1px solid #008dd4;
    border-right: 1px solid #008dd4;
    transition: 1s ease-out;
}

.organization-list .org.show {
    display: flex;
}

.organization-list .org.show a {
    display: flex;
    align-items: center;
    justify-content: flex-start
}
.organization-list .org .logo-title {
    flex-grow: 1;
}

.organization-list .org .logo-title .title {
    flex-grow: 1;
}

.organization-list .org .logo {
   display: none; 
    height: 30px;
    margin-left: 10px;

}

@media (min-width: 600px) {
    .organization-list .org .logo {
        display: block;
    }
}
.organization-list .org .logo img {
    max-height: 100%;
    margin-right: 10px;
}

.organization-list .org .title{
    line-height: 40px;
}

.organization-list .org .offer-title {
    line-height: 40px;
    border-left: 1px solid #ddd;
    margin-left: 12px;
    padding-left: 12px;
    color: #008dd4;
}

.organization-list .org .offers{
    padding-right: 12px;
}


.offer-popup,
.organization-popup {
  position: relative;
  background: #FFF;
  padding: 20px;
  width: auto;
  max-width: 500px;
  margin: 20px auto;
  border-radius: 5px;
}

.offer-popup .logo {
    max-height: 50px;
}

.offer-popup .details {
    display: grid;
    grid-template-columns: 40% auto;
}

.offer-popup .details div {
    margin-bottom: 10px;
}

.offer-popup .offer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offer-popup .lable {
    font-weight: 700;
}

.offer-popup .offer-list .offer {
    display: inline-block;
    padding: 0;
    margin: 0;
}

.organization-popup .logo{
    max-height: 50px;
}

.organization-popup .description{
    white-space: pre-wrap;

}
.organization-popup .foto{
    max-width: 100%;
}

.nothing-found {
    display: none;
    padding: 1em;
    font-weight: 700;
}
.nothing-found.show {
    display: block;
}

/* netowrk */
.network-wrapper {
    text-align: center;
}

.network-wrapper table{
    margin: auto;
}

.network-wrapper table,
.network-wrapper tr,
.network-wrapper td {
    //border-collapse: collapse;
    border: none;
 }
 


.organization-title {
    width: 21px;
    min-width:21px;
    max-width: 21px;
    padding: 0;
    text-align: left;
    vertical-align: bottom;
}
.organization-title div {
 writing-mode: tb-rl;
         transform: rotate(-180deg);
}

.subject-title {
   height: 21px;
   min-height: 21px;
   max-height: 21px;
   padding: 0;
   text-align: right;
}

.subject-title,
.organization-title {
    font-size: 10px;
    border: none;
}


.network-wrapper .offer {
    background-image: url('/static/images/tile-dot.png')
}
.no-offer {
    background-image: url('/static/images/tile.png')
}

.offer,
.no-offer {
   background-position: center center;
}
.offer-details {
    display: none;
}

#details {
    display: none;
    padding: 8px;
    background: rgba(255,255,255,1);
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 4px;
}

/* start-selection */
.start-selection {
    display: flex;
    justify-content: center;
}

.start-label{
    text-align: center;
}
.start-selection div,
.start-selection a
{
    padding: 2em;
    margin: 6px;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

}

.start-selection a:link {
  color: #008dd4;
}

/* visited link */
.start-selection a:visited {
  color: #008dd4;
}

.start-selection a:hover {
  color: #9e65d3;
  }


.start-selection a{
    border: 1px solid #888;
    border-radius: 3px;
    transition: background-color 1s ease-out, transform 1s ease-out;
    vertical-align: center;
    cursor: pointer;
    
}

.start-selection a:hover{
    background-color: #ddd;
}
.start-selection .label{
    width:100px;
}


/* table */


.table thead td { font-weight: 700; }
.table thead tr { background-color: #aaa; }
.table tr { border-bottom: 1px solid black; }
.table .even { background-color: #eee; }
.table .odd { background-color: #fff; }


/* records */
.record            td { border-bottom: 1px solid #eee; padding: 0 8px; vertical-align: top; }
.record            .name { background-color: #eee;  }
.record            .value {font-weight: 700; } 


/* admin-page */
.admin-page {
    text-align: center;
}

.admin-page table{
    margin: auto;
}
.admin-page table td{
    padding: 2px 8px;
    text-align: left;
}

.hide {
    display:none;
}

/* Spinner */
.loading {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,.5);
}
.loading-wheel {
    width: 20px;
    height: 20px;
    margin-top: -40px;
    margin-left: -40px;
    
    position: absolute;
    top: 50%;
    left: 50%;
    
    border-width: 30px;
    border-radius: 50%;
    -webkit-animation: spin 1s linear infinite;
}
.style-2 .loading-wheel {
    border-style: double;
    border-color: #ccc transparent;
}
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0);
    }
    100% {
        -webkit-transform: rotate(-360deg);
    }
}

.loading-text {
    width: 100px;
    height: 20px;
    margin-top: -80px;
    margin-left: -50px;

    text-align:center;

    color: white;
    
    position: absolute;
    top: 50%;
    left: 50%;
    
}
