@font-face {
    font-family: 'SpecialElite-Regular';
    src: url('Special_Elite/SpecialElite-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato-Regular';
    src: url('Lato-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato-Bold';
    src: url('Lato-Bold.ttf') format('truetype');
}

html {
    background: linear-gradient(127deg, rgba(0, 0, 0, 1), rgba(18, 3, 73, .8) 90%);
    height: 100%;
    font-family: lores-9-wide, sans-serif;
    background-color: black;
}

.logo {
    height: 100px;
    width: 162px;
}

body {
    color: white;
    font-family: lores-9-wide, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    max-height: 800px;
    max-width: 1000px;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto;
    padding: 0 10px;
}

h1 {
    font-size: 0px;
    color: transparent;
    width: 100%
}

#main-image,
.wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

button {
    display: block;
    background-color: transparent;
    border: none;
    /* font-family: 'SpecialElite-Regular', serif;*/
    font-family: lores-9-wide, sans-serif;
    font-size: 1em;
    padding: 20px 10px;
    margin: 0 auto;
    margin-bottom: 40%;
}

.flex-item5 button {
    margin-bottom: 0;
}

.green {
    color: green;
}

.red {
    color: red;
}

.caps {
    text-transform: uppercase;
    line-height: 1.2em;
}

.os {
    color: tomato
}

.results {
    display: block;
    text-align: center;
    overflow: visible;
    width: 41%;
    margin: 10px auto;
    color: black;
    border: solid 1px transparent;
    min-height: 300px;
}

.results2 {
    color: black;
}

.center {
    display: flex;
    align-items: center;
}

.invisible {
    display: none;
}

.visible {
    display: block;
}

.hide {
    visibility: hidden;
}

.show {
    visibility: visible;
}

.flex-container {
    height: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-row {
    width: auto;
    margin: 5% -3% 12% -122px;
    width: 40%;
}

.flex-item {
    padding: 5px;
    margin: 10px;
    margin: 0 auto;
    text-align: center;
}

.flex-container5 {
    height: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-row5 {
    width: auto;
    margin: 5% -3% 12% -122px;
    width: 40%;
}

.flex-item5 {
    padding: 5px;
    margin: 10px;
    margin: 0 auto;
    text-align: center;
}


/* header*/

.site-wrapper {
    /* font-family: 'SpecialElite-Regular', serif; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

ul {
    list-style-type: none;
}

ul li {
    display: inline-block;
    margin: 5px;
}

#connections {
    margin-right: 20px;
}

#connections li {
    margin: 3px;
}

#navigation a {
    color: white;
    text-decoration: none;
    font-size: 1.3em;
}

#navigation a:hover {
    color: white;
    text-decoration: underline;
}


/* main */

main {
    color: white;
}

input {
    font-size: 1.5em;
    width: 45%;
    min-width: 100px;
    border: none;
    border-bottom: 3px solid black;
    caret-color: black;
    color: black;
    background-color: transparent;
    font-family: lores-9-wide, sans-serif;
    display: block;
    margin: 0 auto;
    text-align: center;
    text-transform: capitalize;
    margin-top: 10%;
}

name-search {
    height: 100vh;
    text-align: center;
}

.search-input {
    height: 100%;
    width: 100%;
    margin: 10% -3% 30% -3%;
    display: block;
}

.scroll {
    background-image: url("../img/WideScroll-desktop.png");
    background-repeat: no-repeat;
    display: inline-block;
    background-size: contain;
    width: 100%;
    background-position: center top;
}

.scroll2 {
    background-image: url("../img/WideScroll-desktop.png");
    background-repeat: no-repeat;
    background-size: contain;
    width: 100%;
    background-position: center top;
}

.scroll5 {
    background-image: url("../img/WideScroll-mobile.png");
    background-repeat: no-repeat;
    background-size: contain;
    width: 100%;
    background-position: center top;
}


/** image fade **/

#main-image {
    position: relative;
    height: 184px;
    width: 600px;
    margin: 0 auto;
}

#main-image img {
    position: absolute;
    left: 0;
    width: 600px;
    height: auto;
    -webkit-transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out;
    -o-transition: opacity 1s ease-in-out;
    transition: opacity 1s ease-in-out;
}


/*
#main-image img.top:hover {
    opacity: 0;
}*/

@keyframes main-imageFadeInOut {
    0% {
        opacity: 1;
    }
    45% {
        opacity: 1;
    }
    55% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

#main-image img.top {
    animation-name: main-imageFadeInOut;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 5s;
    animation-direction: alternate;
}

@media only screen and (max-width: 972px) {
    #main-image,
    #main-image img {
        width: 500px;
    }
    nav {
        font-size: .8em;
    }
    #connections {
        padding: 0;
    }
    .logo {
        height: 100px;
        width: auto;
    }
}

@media only screen and (max-width: 831px) {
    #connections {
        order: 2;
    }
    .logo {
        order: 1;
    }
    nav {
        order: 3;
        margin: 0 auto;
    }
    #main-image,
    #main-image img {
        width: 400px;
    }
}

@media only screen and (max-width: 488px) {
    #connections {
        order: 2;
    }
    .logo {
        height: 50px;
        width: auto;
        order: 1;
    }
    nav {
        font-size: .6em;
        order: 3;
    }
    #main-image,
    #main-image img {
        width: 300px;
    }
    #navigation {
        padding-inline-start: 5px;
    }
    .results {
        font-size: .7em;
        padding: 0;
    }
    .scroll {
        width: 100%
    }
    input {
        font-size: .7em;
    }
    button {
        font-size: .7em;
        padding: 10px;
    }
}

@media only screen and (max-width: 366px) {
    nav {
        font-size: .5em;
    }
    #main-image,
    #main-image img {
        width: 250px;
    }
    #main-image {
        height: 100px;
    }
}