#search-form {
    opacity: 0;
    position: relative;
}

#search-form-wrapper {
    height: 100vh;
    overflow: hidden;
    position: absolute;
    left: 0;
    z-index: -1;
    top: 2rem;
    width: calc(100% - 4rem);
    padding: 0 2rem;
}

#blur-wrapper {
    position: relative;
    height: 100vh;
}

#blur-wrapper.blur > * {
    transition: transform .5s ease;
    transform: scale(1.2);
    filter: blur(20px);
}

.black-body {
    background: var(--default-dark);
}

#search-form .search-container {
    display: flex;
    transform: translateY(40px);
    opacity: 0;
    transition: transform .5s ease, opacity .5s ease;
}

#search-form.active .search-container {
    opacity: 1;
    transform: translate(0);
}

#summoner-name {
    width: 100%;
    padding: 1rem 0;
    padding-left: 20px;
    border: none;
    background: linear-gradient(rgba(244, 244, 244, 0.1), rgba(244, 244, 244, 0.1));
    color: var(--white);
    outline: none;
    font-size: 4vw;
    font-weight: 500;
}

#summoner-name::-webkit-search-decoration,
#summoner-name::-webkit-search-cancel-button,
#summoner-name::-webkit-search-results-button,
#summoner-name::-webkit-search-results-decoration {
  -webkit-appearance:none;
}

#summoner-name::placeholder {
    color: var(--white);
}

#search-form button[type="submit"] {
    text-indent: -999px;
    position: relative;
    width: 40px;
    margin: 0;
    border-radius: 10px 0 0 10px;
    border: 1px solid transparent;
    background: linear-gradient(rgba(244, 244, 244, 0.1), rgba(244, 244, 244, 0.1));
    cursor: pointer;
}

#search-form button[type="submit"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 80%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: transparent url("/img/search.svg") no-repeat center;
    background-size: 60%;
}

.search-form--dialog {
    position: absolute;
    margin-top: 2rem;
    opacity: 0;
    font-size: 5vw;
    transform: translateX(40px);
    transition: transform .5s ease, opacity .5s ease;
    font-weight: bold;
    color: var(--white);
}

.search-form--dialog.active {
    transform: translateX(0px);
    opacity: 1;
}

.search-form--dialog.active span {
    display: inline-block;
    animation: dot-bounce 1.5s infinite cubic-bezier(.90, .06, .15, .90);
}

.search-results-container {
    margin-top: 4rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.search-results-container.active {
    opacity: 1;
}

.search-result {
    position: relative;
    height: 100px;
    width: 100px;
    background: linear-gradient(rgba(244, 244, 244, 0.1), rgba(244, 244, 244, 0.1));
    overflow: hidden;
    border-radius: 15px;
    opacity: 0;
}

.search-result.active {
    opacity: 1;
}

.search-result::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: white;
    filter: blur(10px);
}

.search-result.active::before {
    animation: card-loading 1s infinite ease;
}

.desktop-result {
    display: none;
}

.hidden-result {
    display: none;
}

.result-card--summoner-name, .result-card--region {
    display: inline-block;
    font-size: 3.5vw;
    color: var(--white);
    font-weight: 500;
}

.result-card--region {
    margin-left: .3rem;
    padding: .3rem .2rem;
    border-radius: 5px;
    font-size: .8rem;
    background: linear-gradient(rgba(244, 244, 244, .1), rgba(244, 244, 244, .1));
}

.real-result {
    opacity: 1;
}

.result-card--infos {
    max-width: 50%;
    display: flex;
    align-items: center;
}

.close-nav {
    max-width: 1rem;
    padding: 1rem;
    background: linear-gradient(rgba(244, 244, 244, .1), rgba(244, 244, 244, .1));
    border-radius: 0 10px 10px 0;
    cursor: pointer;
}

@media only screen and (min-width: 1024px) {
    #summoner-name {
        font-size: 1.5vw
    }

    #search-form-wrapper {
        height: 100vh;
        overflow: hidden;
        padding: 0 4rem;
        width: calc(100% - 8rem);
    }

    .search-form--dialog {
        font-size: 3vw;
    }

    #search-form .search-container {
    }

    .search-results-container {
        margin-top: 6rem;
    }

    .search-result {
        width: 22vmin;
        height: 22vmin;
    }

    .search-result.active {
        opacity: 1;
    }

    .desktop-result {
        display: block;
    }

    .hidden-result {
        display: none;
    }

    .result-card--infos {
        max-width: 50%;
        display: flex;
        align-items: center;
    }

    .result-card--summoner-name, .result-card--region {
        display: inline-block;
        margin-top: .5rem;
        font-size: 1.2vw;
        color: var(--white);
        font-weight: 500;
    }

    .result-card--region {
        display: inline-block;
        margin-left: .5rem;
        padding: .3rem .2rem;
        border-radius: 5px;
        font-size: .8rem;
        background: linear-gradient(rgba(244, 244, 244, .1), rgba(244, 244, 244, .1));
    }

    .search-result.active::before {
        animation: card-loading 1s infinite ease;
    }

    .real-result {
        opacity: 1;
    }

}

@keyframes dot-bounce {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

@keyframes card-loading {
    0%, 100% {
        left: 0;
    }
    99% {
        left: 120%;
    }
}