header.top {
    background: #fff;
    height: 55px;
    line-height: 51px;
    z-index: 1001;
    position: fixed;
    width: 100%;
    top: 0;
    border-bottom: 1px solid #b7b7b7;
}
header.top div{display:inline-block;vertical-align: top;height: 100%;}
.menubtn span {
    height: 26px;
    width: 30px;
    text-align: center;
    line-height: 25px;
    background: var(--colorprimary);
    border-radius: 4px;
    color: #fff;
    margin-left: 15px;
    display: block;
    cursor: pointer;
    margin-top: 12px;
    border: 1px solid var(--colorprimary);
}

.menubtn {
    width: 15%;
}

.searchbox {
    width: 55%;
    text-align: left;
    padding-right: 15px;
    position: relative;
    max-width: 350px;
    float: right;
}
.logo a {
    color: #000;
    text-decoration: none;
}
input#namesearch {
    height: 25px;
    width: calc(100% - 52px);
    outline: 0;
    text-indent: 4px;
    border-radius: 4px 0 0 4px;
    border: 1px solid  #3f51b5;
    background: #eef8ff;
}

button#namesearchbtn {
    height: 25px;
    box-sizing: content-box;
    margin-left: -5px;
    width: 40px;
    background: var(--colorprimary);
    padding: 1px 0;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    color: #fff;
    border: 1px solid #0027ff;
    outline: 0;
}

header.top .menubtn i.fas.fa-bars {
    transform: rotate(-180deg);
    transition: ease 0.3s transform;
    font-size: 15px;
}
input#menutoggle:checked ~ header.top .fa-bars:before {
   content:"\f00d";
}

input#menutoggle:checked ~ header.top i.fas.fa-bars {
    transform: rotate(180deg);
}
div#serp {
    width: 300px;
    position: absolute;
    right: 0;
    background: #fcfcfc;
    height: auto;
    border-radius: 5px;
    border: 1px solid #3f51b5;
    z-index: 999;
    box-shadow: -1px 2px 6px -3px #000;
    margin-right: 5px;
    display: none;
    top: 53px;
}
div#serp > span {
    display: block;
    width: 8px;
    height: 8px;
    background: #fcfcfc;
    transform: rotate(45deg);
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 3px 0 0 0;
    border: 1px solid #3f51b5;
    border-width: 1.3px 0 0 1.3px;
}
div#serp b {
    font-size: 13px;
    border-bottom: 1px dashed;
    margin-right: 5px;
}
div#serp a > span {
    font-size: 12px;
    width: 100%;
    color: #4a4a4a;
}
div#serp a:not(:first-of-type) {border-top: 1px dashed #cecece;}

button#namesearchbtn i {
    display: none;
}

button#namesearchbtn.loading span {
    display: none;
}

button#namesearchbtn.loading i {
    display: inline-block;
    animation: rotate 1.7s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
    animation-delay: 0.2s;
}
input#namesearch.error {
    border-color: #ff0000;
}
span.searchvalid {display: none;position: absolute;background: #f10;color: #fff;padding: 2px 5px;height: 20px;line-height: 20px;border-radius: 6px;font-size: 12px;z-index: 1008;left: 0;right: 34px;margin: auto;width: fit-content;bottom: -22px;}
span.searchvalid span {
    display: block;
    background: red;
    width: 7px;
    height: 7px;
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    margin: auto;
    transform: rotate(45deg);
}
.searchbox.error span.searchvalid {
    display:block
}
#serp .links a {
    min-height: 35px;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    display: block;
    overflow-x: hidden;
    line-height: 20px;
    padding: 2px 5px;
    max-height: 100px;
    overflow: hidden;
}

#serp .links {
    width: 100%;
    display: block;
}

span.searchvalid.newname_error {
    margin-top: -12px;
}
