/* Adapted from https://codepen.io/myackley35/pen/JoPdqE */

.tag-checkbox {
    position: relative;
    display: inline-block;
    margin: 0.25rem 0.5rem;
}

.checkbox {
    display: none;
}

.label {
    font-family: Helvetica, Arial;
    margin: 0;
    padding: .25em 0 0 0;
    display: block;
    color: #114968;
    text-transform: uppercase;
    font-size: .8em;
    text-align: center;
    line-height: 2.2;
    box-sizing: box-border;
    text-indent: .5em;
}

.label::after {
    content: "";
    display: block;
    width: 100%;
    height: 2em;
    border: 3px solid #114968;
    border-radius: .4em;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: box-border;
    -webkit-transition: all 400ms ease;
    -moz-transition: all 400ms ease;
    -o-transition: all 400ms ease;
    transition: all 400ms ease;
}

.search-items {
    text-align: center;
}

/*state change*/
.checkbox:checked+.label {
    color: #114968;
}

.checkbox:checked+.label::after {
    background: rgb(17, 73, 104, .2);
    border: 3px solid rgba(100, 185, 100, .8);
}

.search-box-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

/* Style the search field */
.search-box-container input[type=text] {
    padding: 10px;
    font-size: 17px;
    border: 1px solid grey;
    width: 14rem;
    background: #f1f1f1;
}

/* Style the submit button */
.search-box-container button {
    padding: 10px;
    background: #2196F3;
    color: white;
    font-size: 17px;
    border: 1px solid grey;
    border-left: none;
    /* Prevent double borders */
    cursor: pointer;
}

.search-box-container button:hover {
    background: #0b7dda;
}

/* Clear floats */
.search-box-container::after {
    content: "";
    clear: both;
    display: table;
}

.clear-search a {
    color: #114968;
    vertical-align: middle;
    display: inline;
    float: right;
    padding-top: 0.5rem;
}

.search-buttons {
    padding-top: 1.25rem;
}

.search-box {
    margin: 1rem auto;
}

.label:hover {
    cursor: pointer;
}