*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body{
    width: 100%;
    height: 100%;
    background: rgb(37, 37, 37);
}

.container .search{
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 80px;
    height: 80px;
    background-color: rgb(20, 220, 70);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
    transition: all .8s;
}
.container .search:hover{
    cursor: pointer;
}
.container .search::before{
    content: " ";
    position: absolute;
    margin: auto;
    top: 20px;
    left: 20px;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 2px;
    transform: rotate(45deg);
    background-color: #fff;
    transition: all .5s;
}
.container .search::after{
    content: " ";
    position: absolute;
    margin: auto;
    top: -5px;
    left: -5px;
    bottom: 0;
    right: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
border: 2px solid #fff;
    background-color: #fff;
    transition: all .5s;
}

.container input{
    position: absolute;
    margin: auto;
    top: 0px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 70px;
    outline: none;
    border: none;
    background-color: rgb(20, 220, 70);
    color: #fff;
    text-shadow: 0 0 10px rgb(20, 220, 70);
    padding: 0 80px 0 20px;
    border-radius: 30px;
    box-shadow: 0 0 25px 0 rgb(20, 220, 70), 0 20px 25px 0 rgba(0, 0, 0, 0.2);
    opacity: 0;
    z-index: 2;
    letter-spacing: 0.1em;
    transition: all 1s;
    cursor: pointer;
}
.container input:focus{
    width: 300px;
    opacity: 1;
    cursor: text;
}
.container input:focus ~ .search{
    right: -250px;
    background-color: #151515;
    z-index: 3;
}
.container input:focus ~ .search::before{
    top: 0;
    left: 0;
    width: 25px;
}

.container input:focus ~ .search::after{
    top: 0;
    left: 0;
    width: 25px;
    height: 2px;
    border: none;
    background-color: #fff;
    border-radius: 0;
transform: rotate(-45deg);
}

.container input::placeholder{
    color: #fff;
}

.border{
    margin: 10px;
    transform: rotate(180deg);
    border-radius: 10px 0 20px 50px;
}


 /* *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body{
    width: 100%;
    height: 100%;
    background: rgb(37, 37, 37);
}

.box-1{
width: 200px;
height: 200px;
background-color: green;
position: absolute;
left: 100px;
z-index: 1000;
}
.box-2{
width: 200px;
height: 200px;
background-color: yellow;
position: absolute;
left: 50px;
z-index: 1001;
}
.box-3{
   width: 200px; 
   height: 200px;
   background-color: red;
   position: absolute;
   z-index: -1;
} */