﻿.search {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(38, 43, 95, 0.9);
}

.search {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

    .search::before,
    .search::after {
        content: '';
        position: absolute;
        width: calc(100% + 15px);
        height: calc(100% + 15px);
        pointer-events: none;
    }

    .search::before {
        top: 0;
        left: 0;
        border-right-width: 0;
        border-bottom-width: 0;
    }

    .search::after {
        right: 0;
        bottom: 0;
        border-top-width: 0;
        border-left-width: 0;
    }

    .search .btn--search-close {
        position: fixed;
        top: 1.25em;
        right: 1.25em;
        display: none;
        -webkit-transition: all .3s ease-in-out;
        -moz-transition: all .3s ease-in-out;
        -o-transition: all .3s ease-in-out;
        transition: all .3s ease-in-out;
    }

    .search .btn--search-close {
        display: block;
        -webkit-transition: all .3s ease-in-out;
        -moz-transition: all .3s ease-in-out;
        -o-transition: all .3s ease-in-out;
        transition: all .3s ease-in-out;
    }

    .search .search__form {
        margin: 5em 0;
    }

    .search .search__input {
        font-family: inherit;
        font-size: 10vw;
        line-height: 1;
        display: inline-block;
        box-sizing: border-box;
        width: 75%;
        padding: 0.05em 0;
        color: #fff;
        border: none;
        border-radius: 0;
        background: transparent;
        border-bottom: 2px solid #90badb;
        outline: 0;
    }

    .search__input::-webkit-input-placeholder {
        /* WebKit, Blink, Edge */
        opacity: 0.3;
        color: #fff;
    }

    .search__input::-moz-placeholder {
        opacity: 0.3;
        /* Mozilla Firefox 19+ */
        color: #fff;
    }

    .search__input:-ms-input-placeholder {
        /* Internet Explorer 10-11 */
        opacity: 0.3;
        color: #fff;
    }

    .search__input::-webkit-search-cancel-button,
    .search__input::-webkit-search-decoration {
        -webkit-appearance: none;
    }

    .search__input::-ms-clear {
        display: none;
    }

.search__info {
    font-size: 90%;
    font-weight: bold;
    display: block;
    width: 75%;
    margin: 0 auto;
    padding: 0.85em 0;
    text-align: right;
    color: #90badb;
}

.search__related {
    display: flex;
    width: 75%;
    color: #fff;
}


.search a {
    color: #fff;
}

@media only screen and (min-device-width: 320px) and (max-device-width: 767px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {
    display: none;
}

}

.search__suggestion {
    text-align: left;
}

    .search__suggestion:nth-child(2) {
        margin: 0 3em;
    }

    .search__suggestion h3 {
        font-size: 1.35em;
        margin: 0;
    }

    .search__suggestion p {
        font-size: 1.15em;
        line-height: 1.4;
        margin: 0.75em 0 0 0;
    }

/************************/
/* Transitions 			*/
/************************/

.search {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.search--open {
    pointer-events: auto;
    opacity: 1;
    -webkit-transition: width 3s; /* Safari */
    transition: width 3s;
}

/* Border */
.search::before,
.search::after {
    transition: transform 0.5s;
}

.search::before {
    transform: translate3d(-15px, -15px, 0);
}

.search::after {
    transform: translate3d(15px, 15px, 0);
}

.search--open::before,
.search--open::after {
    transform: translate3d(0, 0, 0);
}

/* Close button */
.btn--search-close {
    opacity: 0;
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}

    .btn--search-close:hover {
        background: #fff;
        color: #036;
        -webkit-transition: all .3s ease-in-out;
        -moz-transition: all .3s ease-in-out;
        -o-transition: all .3s ease-in-out;
        transition: all .3s ease-in-out;
    }

    .btn-white {
        border-color: #fff;
        color: #fff;
        background: 0 0;
    }

.btn--search-close .icon-sprite {
    width: 20px;
    height: 20px;
    margin-top: 3px;
}

.btn .icon-sprite {
    fill: #fff;
}

button#btn-search-close {
    text-transform: uppercase;
}

.icon-sprite {
    width: 20px;
    height: 20px;
    margin-top: 3px;
}

.search--open .btn--search-close {
    opacity: 1;
    transform: scale3d(1, 1, 1);
}

/* Search form with input and description */
.search__form {
    opacity: 0;
    transform: scale3d(0.8, 0.8, 1);
    transition: opacity 0.5s, transform 0.5s;
}

.search--open .search__form {
    opacity: 1;
    transform: scale3d(1, 1, 1);

}

.search__suggestion {
    opacity: 0;
    transform: translate3d(0, -30px, 0);
    transition: opacity 0.5s, transform 0.5s;
}

.search--open .search__suggestion {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media screen and (max-width:40em) {
    .search__form {
        margin: 5em 0 1em;
    }

    .btn--search-close {
        top: 1.5em;
        right: 1.5em;
    }

    .search__info {
        text-align: left;
    }

    .search__suggestion {
        font-size: 80%;
        width: 100%;
    }
}
/*.navbar .navbar-nav .nav-item.sticky-search {
    padding: 0 !important;
    position: relative !important;
}*/
