* {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

@media screen and (max-width: 799px) {
    main, .header-content {
        width: 90%;
    }

    #bar select {
        width: 70px;
    }

    #bar {
        text-align: center;
    }
}

@media screen and (min-width: 800px) {
    main {
        width: 50%;
    }

    .header-content {
        width: 38%;
    }

    #bar {
        position: absolute;
        width: 80px;
        left: -110px;
    }

    #bar select {
        width: 100%;
    }
}

body {
    margin: 0;
}

main, .header-content {
    margin-left: auto;
    margin-right: auto;
}

main {
    position: relative;
}

#search {
    display: flex;
    border-radius: 12px;
    transition: 0.15s;
}

#search input {
    padding: 15px 10px;
    border: 0;
    outline: none;
}

#search.focused {
    box-shadow: #3174b6 0px 0px 9px 0;
}

#search-box {
    border-radius: 12px 0 0 12px;
    background-color: #ccc;
    transition: 0.15s;
}

#search-box:focus {
    background-color: #efefef;
}

#search input[type=submit] {
    border-radius: 0 12px 12px 0;
    background-image: url(../media/search.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-color: #b2c546;
    width: 40px;
    cursor: pointer;
}

#search.loading input[type=submit] {
    background-image: url(../media/load.svg);
    background-size: 60%;
}

#search-box {
    flex-grow: 1;
    width: 1px;
}

.link-list a {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    margin-bottom: 10px;
    display: flex;
    cursor: pointer;
    transition: 0.2s;
}

a.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.link-list a:hover {
    background-color: #e6e2e2;
}

.link-list a .name {
    flex-grow: 1;
}

.link-list a:hover .name {
    text-decoration: underline;
}

.link-list a:active {
    background-color: #c9c4c4;
}

.link-list {
    list-style-type: none;
    padding: 0;
    font-size: 20px;
    text-align: left;
}

nav {
    text-align: center;
    margin: 20px 0;
}

#bar select {
    padding: 5px;
    border-radius: 5px;
}

header {
    background-color: #1b365d;
    width: 100%;
    padding: 3vw 0;
    background-image: url(../media/grass.png?v=3);
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
}

header img {
    width: 70%;
    display: block;
    margin: 0 auto 3vw auto;
}

header a {
    color: #ccc;
}

#results {
    padding-top: 3vw;
    text-align: center;
}

footer {
    margin: 50px auto;
    text-align: center;
}

footer a {
    color: #1b365d;
    text-decoration: underline;
}
