


.search-form input {
    font: 1em Hind, sans-serif;
    line-height: 1.5em;
}

.search-form input {
    color: black
}

.search-bar {
    display: flex;
}

.search-bar input,
.searsh-button,
.searsh-button:before,
.searsh-button:after {
    transition: all 0.25s ease-out;
}

.search-bar input,
.searsh-button {
    width: 2em;
    height: 2em;
}
/*
.search-bar input:invalid:not(:focus),
.searsh-button {
    cursor: pointer;
}

.search-bar,
.search-bar input:focus,
.search-bar input:valid {
    width: 100%;
}

.search-bar input:focus,
.search-bar input:not(:focus)+.searsh-button:focus {
    outline: transparent;
}*/

.search-bar {
    margin: auto;
    justify-content: center;
    max-width: 30em;
}

.search-bar input {
    background: transparent;
    border-radius: 1.5em;
    box-shadow: 0 0 0 0.3em #f1f1f1 inset;
    padding: 0.75em;
    transform: translate(0.5em, 0.5em) scale(0.5);
    transform-origin: 100% 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/*.search-bar input:focus,
.search-bar input:valid {
    background: #2C2B2B;
    border-radius: 0.375em 0 0 0.375em;
    box-shadow: 0 0 0 0.1em #b82828 inset;
    transform: scale(1);
    border: none;
}*/

.searsh-button {
    background: #f1f1f1;
    border-radius: 0 0.75em 0.75em 0 / 0 1.5em 1.5em 0;
    padding: 0.75em;
    position: relative;
    transform: translate(0.25em, 0.25em) rotate(45deg) scale(0.25, 0.125);
    transform-origin: 0 50%;
}

.searsh-button:before,
.searsh-button:after {
    content: "";
    display: block;
    opacity: 0;
    position: absolute;
}

.searsh-button:before {
    border-radius: 50%;
    box-shadow: 0 0 0 0.1em #f1f1f1 inset;
    top: 0.45em;
    left: 0.35em;
    width: 0.8em;
    height: 0.8em;
}

.searsh-button:after {
    background: #f1f1f1;
    border-radius: 0 0.25em 0.25em 0;
    top: 45%;
    left: 40%;
    width: 0.55em;
    height: 0.25em;
    transform: translate(0.2em, 0) rotate(45deg);
    transform-origin: 0 50%;
}

.searsh-button span {
    display: inline-block;
    overflow: hidden;
    width: 1px;
    height: 1px;
}

.search-form  input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 10px;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 43%, #CBBDDB 45%, #CBBDDB 55%, rgba(0, 0, 0, 0) 57%, rgba(0, 0, 0, 0) 100%), linear-gradient(135deg, transparent 0%, transparent 43%, #CBBDDB 45%, #CBBDDB 55%, transparent 57%, transparent 100%);
}
/* Active state */

/*.search-bar input:focus+.searsh-button,
.search-bar input:valid+.searsh-button {
    background: #b82828;
    border-radius: 0 0.375em 0.375em 0;
    transform: scale(1);
    border: none;
}*/
/*
.search-bar input:focus+.searsh-button:before,
.search-bar input:focus+.searsh-button:after,
.search-bar input:valid+.searsh-button:before,
.search-bar input:valid+.searsh-button:after {
    opacity: 1;
}

.search-bar input:focus+.searsh-button:active,
.search-bar input:valid+.searsh-button:active {
    transform: translateY(1px);
}*/