/* Import Google Font- Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif ;
}
body{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #4d59fb;
}
.wrapper{
    position: relative;
    width: 420px;
    background: #fff;
    border-radius: 7px;
    padding: 28px 28px 45px;
    margin: 20px;
}
.fa-arrow-left{
    position: absolute;
    left: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    opacity: 0;
    pointer-events: none;
}
.fa-arrow-left.show{
    opacity: 1;
    pointer-events: all;
}
.wrapper header{
    font-size: 28px;
    font-weight: 500;
    text-align: center;
}
.wrapper .search{
    position: relative;
    margin: 35px 0 18px;
}
.search input{
    height: 53px;
    width: 100%;
    outline: none;
    font-size: 16px;
    padding: 0 42px;
    border-radius: 5px;
    border:1px solid #999;
}
.search input:focus{
    padding:0px 41px;
    border:2px solid #4d59fb;
}
.search input:focus ~i{
    color: #4d59fb;
}
.search input::placeholder{
    color:#b8b8b8;
}
.search :where(i,span){
    position: absolute;
    top: 50%;
    color: #999;
    transform: translateY(-50%);
}
.search i{
    left:18px;
    font-size: 16px;
    pointer-events: none;
}
.search span{
    right:15px;
    font-size: 18px ;
    cursor: pointer;
    display: none; 
}
.search input:valid~span{
    display: block; 
}
.wrapper .info-text{
    font-size: 13px;
    color: #9a9a9a;
    margin:-3px 0 -10px;
}
.wrapper .info-text span{
    font-weight: 500;
}
.wrapper ul{
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}
.wrapper.active ul{
    display: block;
    height: 303px;
    opacity: 1;
}
.wrapper.active .info-text {
    display: none;
}
.wrapper ul li{
    display: flex;
    align-items:center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 17px;
    border-bottom: 1px solid #ccc;
}
ul li:last-child{
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: 0px solid #ccc;
}
ul .word p{
    font-size:22px;
    font-weight: 500;
}
ul .word span{
    font-size:12px;
    color:#989898;
}
ul .word i{
    cursor: pointer;
    font-size: 15px;
    color:#999;
}
ul .content{
    max-height: 215px;
    overflow-y: auto;
}
ul .content::-webkit-scrollbar{
    width: 5px;
    border-radius: 5px;
}
ul .content::-webkit-scrollbar-thumb{
    background: #ccccccab;
    width: 10px;
    border-radius: 50px;
}

.content li .details{
    padding-left: 10px;
    border-radius: 4px 0 0 4px;
     border-left: 3px solid #4d59fb;
}
.content li .details p{
    font-size: 17px;
    font-weight: 500;
}
.content li .details span{
    font-size: 15px;
    color:#7e7e7e;
}
.synonyms .details .list{
    display: flex;
    flex-wrap: wrap; 
}

.synonyms .details .list span{
    cursor: pointer;
    margin-right: 5px;
    text-decoration: underline;
}



/* Media Queries */
@media screen and (max-width:400px){
    .wrapper header{
        font-size: 24.1px;
        font-weight: 600;
    }
    .fa-arrow-left{
        left:10px;
        top: 35px;
    }
}