@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
:root {
    --britain-flag-blue: #012169;
    --britain-flag-red: #C8102E;
    --font-family: 'Poppins', sans-serif;
    --font-weight: 500;
}
* {
    box-sizing: border-box;
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    font-weight: var(--font-weight);
}
::selection {
    background: var(--britain-flag-red);
    color: #FFF;
}
html {
    height: 100%;
}
body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url(assets/photo_2022-04-14_00-50-41.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.container {
    width: 550px;
    border-radius: 12px;
    background: var(--britain-flag-blue);
    box-shadow:  7px 7px 14px var(--britain-flag-blue), -7px -7px 14px var(--britain-flag-blue);
    padding: 28px 28px 45px;
}
.container h2 {
    font-size: 30px;
    font-weight: 500;
    text-align: center;
    color: #FFF;
}
.container .search {
    position: relative;
    margin: 35px 0 18px;
}
.search input {
    width: 100%;
    height: 55px;
    font-size: 16px;
    padding: 0 45px;
    outline: none;
    border: 2px solid #3204ff;
    border-radius: 7px;
}
.search input::placeholder{
    color: #B8B8B8;
}
.search :where(i, span) {
    position: absolute;
    top: 50%;
    color: #999;
    transform: translateY(-50%);
}
.search i {
    left: 18px;
    pointer-events: none;
    font-size: 18px;
}
.search input:focus ~ i{
    color: var(--britain-flag-blue);
}
.search span {
    right: 20px;
    cursor: pointer;
    display: none;
}
.search input:valid ~ span{
    display: block;
}
.start__text {
    color: #cccccc;
    font-weight: var(--font-weight);
}
.container.active .start__text {
    display: none;
}
.start__text span {
    font-weight: 700;
}
.container ul {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.container.active ul {
    height: 300px;
    opacity: 1;
}
.container ul li {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 17px;
    justify-content: space-between;
    border-bottom: 1px solid #FFF;
}
ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
ul .word p {
    font-size: 25px;
    font-weight: var(--font-weight);
    color: #FFF;
}
ul .word span {
    font-size: 14px;
    color: #e7e0e0;
}
ul .word i {
    cursor: pointer;
    font-size: 16px;
    color: #e7e0e0;
}
ul .word i:hover {
    color: #FFF;
}
ul .content {
    max-height: 200px;
    overflow-y: auto;
}
ul .content::-webkit-scrollbar {
    width: 0;
}
.content li .details {
    padding-left: 10px;
    border-radius: 4px 0 0 4px;
    border-left: 3px solid var(--britain-flag-red);
}
.content li .details span {
    font-size: 15px;
    color: #e7e0e0;
}
.synonyms .details .list {
    display: flex;
    flex-wrap: wrap;
}
.content .details p {
    font-size: 20px;
    color: #FFF;
}
.synonyms .details .list span {
    margin-right: 5px;
    text-decoration: underline;
    cursor: pointer;
}
@media (min-width: 320px) and (max-width: 480px) {
    body {
        top: 40%;
        background-position: center;
    }
    .container {
        width: 95vw;
        padding: 20px 20px 45px;
    }
}
@media (min-width: 481px) and (max-width: 768px) {
    body {
        top: 50%;
        background-position: center;
    }
    .container {
        width: 95vw;
    }
    .container h2 {
        font-size: 5.1vw;
    }
    .start__text {
        font-size: 2.6vw;
        padding-top: 15px;
    }
    .search input {
        font-size: 2.8vw;
    }
    .search input::placeholder {
        font-size: 2.4vw;
    }
    .search i {
        font-size: 2.7vw;
    }
    ul .word p {
        font-size: 4.7vw;
    }
    ul .word span {
        font-size: 2.4vw;
    }
    ul .word i {
        font-size: 3.4vw;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 70vw;
    }
}
@media (min-width: 1025px) and (max-width: 1200px) {
    
}