
/***
*   SEARCH
***/
#search-background, #search-wrapper, #search-close-button{
  position: fixed;
  opacity:0;
  visibility:hidden;
  z-index:-1;
}
#search-background {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(251,251,251,.9);
    transition:opacity .25s;
    -webkit-transition:opacity .25s;
    -moz-transition:opacity .25s;
    -o-transition:opacity .25s;
}

#search-wrapper {
    top: 50%;
    left: 50%;
    width: 85%;
    height: 90%;
    z-index:1002;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);

}
#search-results-wrapper h3{
        margin: 1% 0 1% 1%;
}
#on-page-search-results-wrapper h3 {
        margin: 3% 0 1% 1%;
}
#search-close-button {
    font-family:'Raleway', sans-serif;
    top: 2%;
    right: 2%;
    z-index:1002;
    text-transform:capitalize;
    text-align: center;
    transition:color .25s;
    -webkit-transition:color .25s;
    -moz-transition:color .25s;
    -o-transition:color .25s;

}
#search-close-button:hover{
  color:#1a79af;
  cursor:pointer;
}
#search-close-button i{
  font-size:2em;
}

#search-background.visible, #search-wrapper.visible, #search-close-button.visible{
  visibility: visible;
  z-index: 1001;

}
#search-background.visible.opaque, #search-wrapper.visible.opaque, #search-close-button.visible.opaque{
  opacity:1;
}

#search-form, #on-page-search-form{
  padding: 2% 1%;
  position: relative;
  width: 98%;
  background-color: #fff;
  text-align: center;
  border: 1px solid rgba(40,40,40,.15);
  box-shadow: 1px 1px 10px rgba(51,51,51,.1);
}
#subjects-wrapper-open #on-page-search-form{
  box-shadow:none;
}
#search-form input, #on-page-search-form input {
    width: 80%;
}

#search-form button, #on-page-search-form button{
    border: 1px solid;
    font-family: 'Raleway', sans-serif;
    font-weight:300;
    font-size: 1.2em;
    padding: .5% 3%;
    background-color: #fff;
    border-color:rgba(40,40,40,.15);
    color: #333;
    transition: all .25s;
    -webkit-transition: all .25s;
    -moz-transition: all .25s;
    -o-transition: all .25s;
}
#search-form button:hover, #on-page-search-form button:hover{
  background-color:#1a79af;
  color:#fff;
  border-color:#1a79af;
  cursor:pointer;
}
#search-results-wrapper{
    position: absolute;
    left: 0;
    top: 15%;
    width: 98%;
    height: 83%;
    padding: 1%;
    background-color: #fff;
    border: 1px solid rgba(40,40,40,.15);
    box-shadow: 1px 1px 10px rgba(51,51,51,.1);
}
#on-page-search-results-wrapper{
  background-color:#fff;
  border:1px solid rgba(40,40,40,.15);
  margin-top:3%;
}
#st-results-container {
  position:relative;
  width: 90%;
  margin-left: 3%;
  margin-top:3%;
  padding: 2%;
  border: 1px solid rgba(40,40,40,.15);
  overflow: scroll;
  height: 75%;
  text-align:center;
}


/***SEARCH RESULTS RENDERING***/

.st-page {
    position: fixed;
    top: 100%;
    left: 50%;
    width:80%;
    font-size: 1.5em;
    color: #333;
    transform: translate(-50%, -150%);
    -webkit-transform: translate(-50%, -150%);
    -moz-transform: translate(-50%, -150%);
    -o-transform: translate(-50%, -150%);
}
.st-page a{
  color:#333;
}
.st-page a:hover{
  color:#1a79af;
  cursor:pointer;
}
a.st-prev {
    margin-right: 5%;
}
.search-result {
  display: inline-block;
  text-align:left;
  width: 28%;
  border: 1px solid rgba(40,40,40,.15);
  margin-bottom: 1%;
  margin-right: 1%;
  vertical-align: top;
  background-color:#fff;
  transition:background-color .25s;
  -webkit-transition:background-color .25s;
  -moz-transition:background-color .25s;
  -o-transition:background-color .25s;
}
.search-result:hover{
  background-color:#1a79af;
}
.search-result .wrapper{
  position: relative;
  width: 100%;
  height: 100%;

}
.search-result .wrapper>div {
    width: 100%;
    display: inline-block;
    max-height: 300px;
    overflow: hidden;
    position:relative;
    text-align:center;
}

.search-result .wrapper img {
  position: relative;
max-width: 100%;
top: 0;


}

.search-result .wrapper .info {
    display: inline-block;
    vertical-align: top;
    padding: 5%;
    width:90%;
}
.search-result .wrapper .info>p {
    margin: 0;
    padding: 0;
    font-size: 1.1em;
    color: #666;
    text-transform: uppercase;
    font-family: 'Raleway', sans-serif;
    transition:color .25s;
    -webkit-transition:color .25s;
    -moz-transition:color .25s;
    -o-transition:color .25s;
}
.search-result .wrapper .info h6 {
    margin: 5% 0;
    font-size: 1em;
        line-height: 1.2em;
    font-family: 'Raleway', sans-serif;
    text-transform:capitalize;
    font-weight: 300;
    color: #333;
    transition:color .25s;
    -webkit-transition:color .25s;
    -moz-transition:color .25s;
    -o-transition:color .25s;
}
.search-result .info .body {
    line-height: 1.3em;
    font-size: .9em;
    max-height:150px;
    overflow: hidden;
    color: #999;
    padding: 3%;
    transition:color .25s;
    -webkit-transition:color .25s;
    -moz-transition:color .25s;
    -o-transition:color .25s;
}
.search-result .info .body.profile {
    overflow: scroll;
}
.search-result .wrapper .info .learn-more-button>p {
    margin: 5% 0 0 0;
    color: #333;
    transition:color .25s;
    -webkit-transition:color .25s;
    -moz-transition:color .25s;
    -o-transition:color .25s;
}
.search-result:hover .wrapper .info .learn-more-button>p, .search-result:hover .info .body, .search-result:hover .wrapper .info h6, .search-result:hover .wrapper .info>p{
  color:#fff;
  transition:color .25s;
  -webkit-transition:color .25s;
  -moz-transition:color .25s;
  -o-transition:color .25s;
}
@media screen and (max-width:800px), only screen
and (max-device-width: 1024px)
and (min-device-width: 768px){
  .search-result .wrapper .info>p{
    font-size:.9em;
  }
  .search-result .wrapper .info h6 {
    font-size: 1.2em;
    line-height: 1.2em;
    margin: 2% 0;
  }
}
@media only screen
and (max-device-width: 1024px)
and (min-device-width: 768px)
and (orientation : portrait){
  .search-result {
    width:48%;
  }
  #search-wrapper {
    width: 80%;
  }
  #search-results-wrapper {
    top: 10%;
    height: 88%;
  }
  #st-results-container {
    height: 80%;
  }
  .st-page {
    top: 98%;
  }
}
@media only screen
and (min-device-width : 375px)
and (max-device-width : 667px)
and (orientation : portrait), only screen
and (min-device-width : 414px)
and (max-device-width : 736px)
and (orientation : portrait), only screen
and (min-device-width : 320px)
and (max-device-width : 568px)
and (orientation : portrait), only screen
and (min-device-width : 320px)
and (max-device-width : 480px)
and (orientation : portrait){
  #search-close-button {
    font-size: .8em;
  }
  #search-wrapper {
    top: 55%;
    height: 88%;
        width: 90%;
  }
  #search-form input, #on-page-search-form input {
    width: 70%;
  }
  #search-form button, #on-page-search-form button {
    font-size: 1em;
  }
  #search-results-wrapper {
    top: 10%;
    height: 87%;
  }
  #search-results-wrapper h3 {
    font-size: 1.5em;
  }
  .search-result {
    width: 90%;
    margin-bottom: 5%;
  }
  #st-results-container {
    height: 80%;
  }
  .st-page {
    top: 98%;
    font-size: 1.2em;
  }
}
@media only screen
and (min-device-width : 375px)
and (max-device-width : 667px)
and (orientation : landscape), only screen
and (min-device-width : 414px)
and (max-device-width : 736px)
and (orientation : landscape), only screen
and (min-device-width : 320px)
and (max-device-width : 568px)
and (orientation : landscape), only screen
and (min-device-width : 320px)
and (max-device-width : 480px)
and (orientation : landscape){
  #search-form {
    width: 90%;
  }
  #search-form input, #on-page-search-form input {
    width: 75%;
  }
  #search-results-wrapper {
    top: 18%;
  }
  #search-results-wrapper h3 {
    font-size: 1.5em;
  }
  #st-results-container {
    margin-top: 1%;
    height: 70%;
  }
  .st-page {
    font-size: 1.2em;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
  }
  .search-result {
    width: 48%;
    margin-bottom: 3%;
  }
}
