body {
    font-family: "Poppins";
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    background-color: var(--bright);
    color: var(--white);
    width: 100vw;
    overflow-x: hidden;
}

.navbar {
    display: flex;
    background-color: var(--semidark);
    height: 3.7rem;
    align-items: center;
    box-sizing: border-box;
    padding: 0 0.5rem;
    justify-content: space-between;
    position: relative;
}
.titlebar {
    margin-left: 1.5rem;
}

#searchbuttons {
    display: flex;
    align-items: center;
}

#searchbuttons a {
    color: inherit;
    text-decoration: none;
    margin-right: 1.5rem;
    font-size: 1.3rem;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 250ms;
}
#searchbuttons a:hover {
    background-color:hsl(200, 26%, 35%);
}
#searchbuttons a:active {
    background-color:hsl(200, 26%, 40%);
}

.searchdiv {
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
}

.searchtitle {
    color: inherit;
    font-size: 2rem;
}

#searchbar {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 1.7rem;
    background-color: var(--white);
    width: 60%;
    margin-top: 1rem;
    transition: background, box-shadow 250ms;
}

#searchbar:focus-within {
    background-color: hsl(240, 29%, 94%);
    box-shadow: 0 0 0.2rem hsl(202, 17%, 42%);
}

.submitbutton {
    display: flex;
    border: none;
    background-color: inherit;
    border-radius: 100%;
    width: 1.7rem;
    height: 1.7rem;
    font-size: 1rem;
    padding: 1rem;
    justify-content: center;
    align-items: center;
}

.submitbutton i {
    color: var(--dark);
}

.submitbutton:hover {
    background-color: hsl(240, 29%, 90%);
    transition: background-color 100ms;
}

.search-input {
    font-size: 1.5rem;
    font-family: "Poppins";
    color: var(--dark);
    border: none;
    margin-left: 0.3rem;
    outline: none;
    background: transparent;
    flex: 1;
}

#searchresults {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: left;
    align-items: center;
    max-width: 100%;
}

.result-item {
    color: var(--dark);
    background-color: var(--white);
    padding: 0;
    margin: 0;
    text-align: center;
    border-radius: 1rem;
    width: calc(90%/3);
    font-size: 1.5rem;
    overflow: hidden;
    padding: 0.5rem;
    border: 0.1rem solid var(--semidark);
}

.result-item a {
    text-decoration: none;
}

#footer {
    padding: 1rem;
    display: flex;
    justify-content: center;
    background: var(--semidark);
}

#footer a {
    text-decoration: none;
    font-weight: 650;
    color: var(--light);
}

@media (max-width:635px) {
    .result-item {
        width: 100%;
    }
    .navbar {
        height: 6rem;
    }
    .searchtitle {
        font-size: 2rem;
    }
    #searchbar {
        width: 90%;
    }
    .titlebar {
        margin-left: 0.5rem;
    }
    :root {
        font-size: 10px;
    }
}

@media (max-width:400px) {
    .searchtitle {
        font-size: 1.5rem;
    }
}