body {
    position: relative;
    font-family: sans-serif;
    height: 100%;
    margin-top: 50px;
    font-family: proxima-nova, sans-serif;
    font-weight: 700;
    font-style: normal;
}
p {
    font-weight: 400;
    width: 90%;
}
#search-tool h1 {
    padding: 0;
    margin: 0;
    font-weight: 300;
    font-size: 1.65em;
}

.wrapper {
    max-width: 1200px;
    height: 100%;
    margin: auto;
    position: relative;
}

#search-tool {
    margin: auto;    
    padding: 50px;
    background: #2A3990;
    border-radius: 3px;
    color: white;
    min-width: calc(300px - 100px);
    max-width: calc(800px - 100px);
}

#search-form label {
    font-weight: bold;
    text-transform: uppercase;
    display: none;
}

#search-form { 
    margin: 20px 0;
    position: relative;
}
#search-form #reset-search {
    background: #EC1C24;
    color: #fff;
    padding: 8px;
    line-height: 8px;
    font-size: .75em;
    border-radius: 16px;
    text-decoration: none;
    position: absolute;
    left: -12px;
    top: -10px;
    transition: .75s ease background;
    display: none;
}
#search-form #reset-search:hover {
    background: rgb(148, 19, 23);
}
#search-form #reset-search.active {
    display: block;
}
#search-form .search-input-holder {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

#search-form input[type="text"] {

    width: 80%;
    outline: none;
    border:none;
    border-radius: 5px 0 0 5px;
    margin: 0;
    color: #2A3990;
    box-sizing: border-box;
}
#search-form input {
    padding: 0;
    margin: 0;
    outline: none;
    padding: 15px 25px;

}
#search-form input[type="text"]::placeholder {
    color: rgba(42, 57, 144, 0.5);
}

#search-form input[type="submit"] {
    text-transform: uppercase;
    color: #fff;
    width: 20%;
    box-sizing: border-box;
    font-weight: bold;
    border: 0;
    border-radius: 0;
    outline: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: .75s ease-out all;
    display: inline-block;
    background: #EC1C24;
}
#search-form input[type="submit"]:hover {
    background: tomato;
}

#result-display {
    list-style: none;
    position: relative;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border-radius: 3px;
    background: #fff;
    border: 2px solid white;
    color:  #2A3990;
    height: auto;
    min-height: 291px;
    max-height: 291px;
    overflow-y: scroll;
}
#result-display .loader{
    text-align: center;
    position: absolute;
    margin: 0; padding: 0;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
#result-display .result-heading {
    cursor: pointer;
}
#result-display .result-heading h2:hover {
    background: #EC1C24;
}

#result-display .no-match {
    text-align: center;
    position: absolute;
    margin: 0; padding: 0;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);

}
#result-display::-webkit-scrollbar{
    width: 15px;
    
}
#result-display::-webkit-scrollbar-track{
}
/* Handle */
#result-display::-webkit-scrollbar-thumb {
  background: #EC1C24;
  border-radius: 3px;
}/* Handle on hover */
#result-display::-webkit-scrollbar-thumb:hover {
    background-image: -webkit-linear-gradient(top, #EC1C24 0%, #2b388f 100%);
    background-image: -o-linear-gradient(top, #EC1C24 0%, #2b388f 100%);
    background-image: linear-gradient(to bottom, #EC1C24 0%, #2b388f 100%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2b388f ', endColorstr='#EC1C24', GradientType=1);
}

#result-display  li {
    border-bottom: 1px solid #fff;
}
#result-display li:last-of-type{
    border-bottom: 0;
}
#result-display li h2 {
    margin: 0;
    padding: 0;
    font-size: 19px;
    background-image: -webkit-linear-gradient(left, #EC1C24 0%, #fff 95%);
    background-image: -o-linear-gradient(left, #EC1C24 0%, #fff 95%);
    background-image: linear-gradient(to right, #EC1C24 0%, #fff 95%);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffz', endColorstr='#EC1C24', GradientType=1);
    color: white;
    padding: 5px;
    padding-left: 10px;
}
.readership #result-display li h2 {
    padding: 17.8px;
}


#result-display li ul {
    list-style: none;
    padding: 0; margin: 0;
    padding-left: 15px;
    margin-bottom: 5px;
}
#result-display li ul li p {
    padding: 0;
    margin: 0;
    font-size: .95em;
    line-height: 1.5;
    width: 98%;
}
#result-display li ul li {
    padding: 10px;
    border-bottom: 1px solid #2b388f;
    margin-right: 10px;
    transition: 1s ease all;
}
#result-display li ul {
    height: auto;
    overflow: auto;

}
#result-display li ul.close {
    margin: 0;
    height: 0;
    overflow: hidden;
}

#result-display li ul li:last-child {
    border-bottom: 0;
}
@media screen and (max-width: 850px) {
    #search-tool {
        padding: 25px;
        width: 300px;
    }
    #search-tool h1 {
        font-size: 1.25em;
        margin-bottom: 15px;
    }
    #result-display li h2 {
        background: #EC1C24;
        margin-right: 10px;
    }
#search-form .search-input-holder {
	flex-wrap: wrap;
}
	#search-form input[type="text"], #search-form input[type="submit"] {
		border-radius: 5px;
width: 100%;
	}
#search-form input[type="submit"] {
	margin-top: 10px;
}
}
