body {
    display: block;
}

h1 {
    text-align: center;
}

#signup-message {
    text-align: center;
    color: var(--primary-1-faded);
    font-size: 1.2em;
}

.customization-prompt {
    background-color: var(--primary-1);
    text-align: center;
    margin-top: 2vh;
    padding: 3vh 0;
}

.customization-prompt p:first-child {
    color: var(--primary-2);
    font-size: 1.5em;
    margin-bottom: 1.5vh;
}

.customization-prompt p:nth-child(2) {
    color: white;
    font-size: 1.2em;
    width: 70%;
    margin: 0 auto;
}

.customization-prompt a {
    background-color: var(--accent);
    color: white;
    margin-top: 2vh;
    padding: 0.5em 1em;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

#second-customization-prompt {
    margin-top: 0;
}

#jobs-container {
    margin-bottom: 0;
    width: 80%;
    grid-column: 2 / 3;
}

#search-container {
    width: 60%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 6vh;
}

#search-container input {
    height: 100%;
    width: 20%;
    border-radius: 5px;
}

#search-container input[type="text"] {
    height: 98%;
    width: 40%;
    border-radius: 5px;
    border: 1px solid var(--primary-1-faded);
    box-shadow: 0 25px 33px -14px grey;
    padding-left: 5px;
}

#search-container #search-button {
    color: white;
    background-color: var(--accent);
    border: none;
}

#search-container #filter-button {
    background-color: white;
    background-image: url("/frontend/images/filter.svg");
    background-repeat: no-repeat;
    background-position: 14% center;
    background-size: 24px;
}

#search-container input[type="button"]:active {
    outline: 2px solid var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transition: all 0.3s ease-in-out;
}

#pagination-container {
    width: 70vw;
    margin: 0 auto;
    margin-bottom: 4vh;
    padding: 5vh 4vw;
    box-shadow: var(--shadow);

    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

footer {
    margin-bottom: 0;
    padding-bottom: 10vh;
}

#filter-container {
    cursor: pointer;
}

#filter-container form {
    background-color: white;
    border-radius: 20px;
    padding: 8vh 2vw;
    height: auto;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

form select {
    height: 6vh;
    padding-left: 0.5vw;
    border-radius: 10px;
    box-shadow: 0px 3px 3px 0 lightgrey;
    background-color: white;
    margin-bottom: 1vh;
    border: 1px solid lightgrey;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23131313%22%20stroke-width%3D%228%22%20d%3D%22M18%2070L146%20220L274%2070%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.8em;
    padding-right: 2.5rem;
    margin-right: 0.5rem;
}

form input {
    height: 6vh;
    padding-left: 0.5vw;
    border-radius: 10px;
    border: 1px solid lightgrey;
    box-shadow: 0px 3px 3px 0 lightgrey;
}

form button {
    margin-top: 2vh;
    background-color: var(--accent);
    border: none;
    border-radius: 10px;
    padding: 1vh 2vw;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    width: 30%;
    align-self: flex-end;
}

form #cta {
    background-color: white;
    color: var(--primary-1);
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    height: auto;
    padding: 2vh;
}

form a {
    text-decoration: none;
    color: white;
    background-color: var(--accent);
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    height: auto;
    padding: 2vh;
    width: 30%;
    border-radius: 10px;
    align-self: center;
}

input[type="image"] {
    height: 3vh;
    width: 3vh;
    align-self: flex-end;
    padding: 1vh;
    box-shadow: none;
}

.suggestions input {
    background-color: white;
}

.selected-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.selected-suggestion {
    background-color: var(--primary-4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 5px;
    margin-right: 0.5rem;
}

.selected-suggestion img {
    height: 16px;
}

#technology-input-container {
    display: grid;
    grid-template-columns: 5fr 1fr 0.5fr;
    gap: 10px;
    position: relative;
}

#technology-input-container label:first-of-type {
    grid-column: 1 / 2;
}

#technology-input-container label:last-of-type {
    grid-column: 2 / 3;
}

#technology-input-container input:first-of-type {
    grid-column: 1 / 2;
}

#technology-input-container input:nth-of-type(2) {
    grid-column: 2 / 3;
    width: 3vw;
    box-shadow: none;
}

#technology-input-container input[type="image"] {
    grid-column: 3 / 4;
    width: 3vw;
    box-shadow: none;
    border: none;
    align-self: flex-start;
}

#technology-input-info {
    position: absolute;
    top: 70%;
    right: -20%;
    width: 20vh;
    height: 20vh;
    background-color: var(--primary-4);
    padding: 0.5rem;
    border-radius: 5px;
}

#technology-input-info p {
    padding: 0;
    margin: 0;
    margin-top: 5px;
    border-radius: 0;
    background-color: inherit;
}

#search-image-button {
    background-color: var(--accent);
}

#search-image-button,
#filter-image-button {
    display: none;
}

#job-count {
    width: 60vw;
    margin-left: auto;
    margin-right: auto;
}

#mid-section {
    display: grid;
    grid-template-columns: 1fr 4fr;
    width: 99vw;
}

#links-section {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    padding-left: 3vw;
}

.links {
    width: auto;
    display: flex;
    flex-direction: column;
}

.links-subsection a {
    display: inline-block;
    margin-top: 2vh;
    text-decoration: none;
    color: var(--link);
}

.links-subsection a:hover {
    color: var(--accent);
}

#technology-links .link-header {
    margin-top: 2vh;
}

.link-header {
    display: flex;
    align-items: center;
    border: none;
    width: 80%;
    margin-left: -5px;
}

#technology-links .links {
    max-height: 60vh;
    overflow: scroll;
}

@media (orientation: portrait) {
    #jobs-container {
        width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }

    #search-container {
        height: 7vh;
        width: 90vw;

        align-items: center;
        justify-content: flex-start;
        gap: 5px;
        margin-top: 3vh;
    }

    #search-image-button,
    #filter-image-button {
        display: block;
    }

    #search-button,
    #filter-button {
        display: none;
    }

    #search-container #search-image-button {
        height: 5vh;
        width: 10%;
    }

    #search-container #filter-image-button {
        height: 5vh;
        width: 15%;
        border: 1px solid black;
    }

    #search-container input[type="text"] {
        width: 60%;
    }

    #pagination-container {
        width: 90vw;
    }

    footer {
        height: auto;
        margin-left: 0;
        margin-right: 0;
    }

    #logo-container {
        width: auto;
    }

    #filter-container form {
        width: 80%;
        height: 80vh;
        padding: 2vh;
        overflow-y: auto;
    }

    form button {
        width: 90%;
        align-self: center;
    }

    form #cta {
        font-size: 1em;
    }

    form select,
    form input[type="text"] {
        min-height: 8vh;
        margin-right: 0;
        padding-left: 3vw;
        padding-right: 3vw;
    }

    #mid-section {
        display: flex;
        flex-direction: column;
    }

    .link-header {
        width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }

    .links {
        height: 80vh;
        flex-wrap: wrap;
        gap: 5px;
        max-width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }

    #count-filter-row {
        margin-top: 3vh;
    }

    #job-count {
        width: 90vw;
    }
}
