@media screen and (min-width:801px) {
    .searchBox{
        height: 64px;
        position: relative;
        align-content: center;
        display: flex;
        background-color: hsla(0, 0%, 100%, 0.516);
    }

    .searchIcon{
        width: 32px;
        height: 32px;
    
        z-index: 1;    
    
        background-color: aliceblue;
        border-radius: 50%;
        display: inline-block;
        border-color: black;
        border-width: 1px;
        position: absolute;
        left: calc(50% - 16px);
    
        transition: transform 1s ease;
    }
    
    .searchIcon img{
        width: 100%;
        height: 100%;
        transition: transform 1s ease;
    }
    
    .searchBox:hover .searchIcon{
        transform: translate(180px);
    }
    
    .searchBox:hover .searchIcon img{
        transform: rotate(360deg);
        transform-origin: center;
    }
    
    .searchBox:hover .searchBoxInput{
        width: calc(32px + 360px);
        transform: translate(-180px);
    }
    
    .searchBoxInput{
        width: 32px;
        height: 32px;
        background-color: aliceblue;
        border-radius: 16px;
    
        position: absolute;
        left: calc(50% - 16px);
    
        transition: all 1s ease;
    }
    
    .searchBoxInput input{
        width: 0px;
        height: 0px;
        border: none;
        outline: none;
        background-color:  aliceblue;
        border-radius: 0px;
        font-size: 16px;
        position: absolute;
        left:16px;
        transition: all 1s ease;
    }
    
    .searchBox:hover .searchBoxInput input{
        width: calc(360px - 24px);
        height: calc(30px);
    }
}

@media screen and (max-width:800px) {
    .searchBox{
        width: 100%;
        height: 32px;
        position: relative;
        align-items: center;
        display: flex;
        background-color: hsla(0, 0%, 100%, 0.516);
    }

    .searchIcon{
        width: 32px;
        height: 32px;

        z-index: 1;    

        background-color: aliceblue;
        border-radius: 50%;
        display: inline-block;
        border-color: black;
        border-width: 1px;
        position: absolute;
        left: calc(50% - 16px + 150px);
    }

    .searchIcon img{
        width: 100%;
        height: 100%;
    }

    .searchBoxInput{
        width: 332px;
        height: 32px;
        background-color: aliceblue;
        border-radius: 16px;

        position: absolute;
        left:calc(50% - 166px)

    }
    
    .searchBoxInput input{
        width: calc(300px - 24px);
        height: 30px;

        border: none;
        outline: none;
        background-color: aliceblue;
        
        border-radius: 0px;
        font-size: 16px;

        position: absolute;
        left : 16px;
    }
}