/** TODO: RESET STYLES **/

#syync-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    width: 100vw;
    height: 100vh;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    background-color: rgba(0, 0, 0, .8);
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1000;
    animation: syync-show .2s both;
}

/* Inner container */
#syync-container>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 400px;
    overflow: hidden;
    box-sizing: border-box;
}

#syync-description {
    font-size: 1rem;
    font-weight: 400;
    color: white;
    padding: 10px 0;
    max-width: calc(100vw - 20px);
    word-break: keep-all;
    animation: syync-fade .5s .2s both;
}

.syync-token-container {
    position: relative;
    width: 100%;
}

.syync-token {
    padding: 1rem 0;
    width: 100%;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    border-top: none;
    border-left: none;
    border-right: none;
    border-image: linear-gradient(to right, rgba(0, 0, 0, 0) 5%, rgba(0, 0, 0, .2) 6%, rgba(0, 0, 0, .2) 94%, rgba(0, 0, 0, 0) 95%) 1;
}

.syync-token-container:last-of-type .syync-token {
    border-bottom: none;
}

.syync-autocomplete {
    position: fixed;
    width: 400px;
    max-width: calc(100% - 20px);
    max-height: 30vh;
    display: flex;
    flex-direction: column;
    color: white;
    overflow: scroll;
    z-index: 1;
    background-color: rgba(0, 0, 0, .9);
    animation: syync-fade .2s, syync-vertical-slide .2s cubic-bezier(0, 0.85, 0, 1);
}

.syync-autocomplete:empty {
    display: none;
}

.syync-autocomplete>button {
    width: 100%;
    padding: .5rem 0;
    font-size: 2rem;
    color: white;
}

.syync-autocomplete>button:nth-of-type(2n) {
    background-color: rgba(255, 255, 255, .1);
}

.syync-autocomplete>button:hover {
    background-color: rgba(255, 255, 255, .2);
}

#syync-action {
    width: 100%;
    margin-top: 10px;
    padding: 1rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    box-sizing: border-box;
    border-radius: 10px;
    animation: syync-vertical-slide 1.5s .2s cubic-bezier(0, 0.85, 0, 1) both;
}

#syync-action[data-type="access"] {
    background-color: #57bf54;
}

#syync-action[data-type="share"] {
    background-color: red;
}

#syync-action::after {
    content: attr(data-text);
    animation: syync-fade .2s .5s both;
}

@keyframes syync-fade {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes syync-show {
    0% {
        transform: translateY(-50%) scale(0, 0);
    }

    5% {
        transform: translateY(-50%) scale(.1, .2);
    }

    50% {
        transform: translateY(-50%) scale(.1, 1);
    }

    100% {
        transform: translateY(-50%) scale(1, 1);
    }

}

@keyframes syync-vertical-slide {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(0%);
    }
}