@import url('https://fonts.googleapis.com/css2?family=Courgette&family=Piazzolla:wght@500;600;700&display=swap');

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

html {
    height: 100%;
}

body {
    height: 100%;
    width: 100%;
}

ul::-webkit-scrollbar-track
{
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #F5F5F5;
    border-radius: 10px;
}

ul::-webkit-scrollbar
{
    width: 10px;
    background-color: #F5F5F5;
}

ul::-webkit-scrollbar-thumb
{
    border-radius: 10px;
    background-image: -webkit-gradient(linear, left bottom, left top,
                        color-stop(0.32, #f0380a),
                        color-stop(0.50, #f2720a),
                        color-stop(0.75, #f0530a));
}

.search {
    position: relative;
    max-width: 35%;
    margin: auto;
    top: 30vh;
    display: flex;
    flex-direction: column;
}

input {
    width: 100%;
    margin: auto;
    text-align: center;
    font-size: 3vw;
    z-index: 2;
    border: 0;
    border-bottom-width: 2px;
    outline: 0;
    font-family: 'Piazzolla', serif;
    font-weight: 600;
}

.line {
    position: relative;
    width: 60%;
    left: 50%;
    transform: translateX(-50%);
    border: 0;
    border-bottom: 0.3vw solid red;
    transition: width 0.3s ease-in;
}

.span-focus {
    width: 100%;
}

ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    height: 400px;
    overflow: auto;
    font-family: 'Courgette', cursive;
}

ul li {
    padding: 20px 0 5px 7px;
    border-bottom: 0.5px solid red;
}

ul li:hover {
    cursor: pointer;
    background-color: #e0e0de;
}

.highlight {
    background-color: yellow;
}

.hide {
    display: none;
}

@media (max-width: 768px) {
    .search {
        max-width: 60%;
    }

    input {
        font-size: 5vw;
    }

    .line {
        width: 50%;
        border-bottom: 0.5vw solid red;
    }

    .span-focus {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .search {
        max-width: 80%;
    }

    input {
        font-size: 8.5vw;
    }

    .line {
        width: 70%;
        border-bottom: 0.8vw solid red;
    }

    .span-focus {
        width: 100%;
    }
}