@font-face {
    font-family: 'Roboto';
    src: url("robotoRegular.woff2") format('woff2');
}

:root {
    --primary-color: #6e14ef;
    --on-primary-color: #fff;
    --secondary-color: #d3da3c;
    --warn-color: #b00020;
    --font-family: 'Roboto', sans-serif;
}

body {
    font-family: var(--font-family), serif !important;
    font-size: 16px;
    color: #333;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
}

button {
    position: relative;
    overflow: hidden;
}

button:hover {
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.stroked-button, .raised-button {
    cursor: pointer;
    min-height: 36px;
    padding: 0 16px;
    margin: 16px 0;
    min-width: 88px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;


    .iconButtonContent {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    span.ripple {
        position: absolute;
        border-radius: 50%;
        transform: scale(0);
        animation: ripple 600ms linear;
    }
}

.stroked-button {
    border: 1px solid rgba(0, 0, 0, .12);
    background-color: unset;

    .icon {
        fill: var(--primary-color);
    }

    span.ripple {
        background-color: var(--primary-color);
        opacity: 0.3;
    }
}

.raised-button {
    color: var(--on-primary-color);
    background-color: var(--primary-color);
    border: none;
    outline: none;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);

    .icon {
        fill: var(--on-primary-color);
    }

    span.ripple {
        background-color: var(--on-primary-color);
        opacity: 0.3;
    }
}

.tokenActionArea {
    text-align: end;
}


.right {
    right: 0;
    place-self: end;
    place-content: end;
    margin-left: auto;
}

.header {
    color: #000;
    margin-top: 25px;
    margin-bottom: 10px;
    text-align: center;
    display: block;
    margin-block-start: 1.33em;
    margin-block-end: 1.33em;
    margin-inline-start: 0;
    margin-inline-end: 0;
    unicode-bidi: isolate;
    font-size: 2.125rem;
    font-weight: 400;
    text-decoration: inherit;
    letter-spacing: 0.0073529412em;
    text-transform: inherit;
    line-height: 2.5rem;
}

.Input {
    all: unset;
    padding: 0 16px;
}

.Input, .Textarea {
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid #818181;
    border-top-left-radius: 3px !important;
    border-top-right-radius: 3px !important;
    display: inline-flex;
    border-top: none;
    border-right: none;
    border-left: none;
    align-items: baseline;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    will-change: opacity, transform, color;
    height: 56px;
    background-color: whitesmoke;
    width: 100%;
}

.Textarea {
    font: unset;
    font-weight: unset;
    font-size: unset;
    padding: 16px;
    line-height: 1.4;
    cursor: unset;
    resize: both;

    &:focus {
        outline: none;
    }
}

.Textarea_LicenseToken {
    overflow: hidden;
    display: block;
    resize: none;
    height: fit-content;
}

.Input_helper {
    color: rgba(0, 0, 0, 0.6);
    transition: none;
    opacity: 1;
    will-change: initial;
    margin-top: 0.5em;
    font-size: 0.75em;
}

.Input:hover {
    background-color: #ececec;
    border-color: #1f1f1f;
}

.Input:focus {
    border-color: var(--primary-color);
}

.fullW {
    width: 100%;
    overflow: hidden;
}

.errorArea {
    margin: 16px 0 0;
    display: flex;
    align-items: center;
}

.activateActionArea {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.errorMessage {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--warn-color);
}

.none {
    display: none;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    height: 24px;
    width: 24px;
    border: none;
    background-color: transparent;
}

#snackbar {
    visibility: hidden;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    border-radius: 5px;
}

#snackbar.show {
    visibility: visible;
    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
    However, delay the fade out process for 2.5 seconds */
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }
    to {
        bottom: 0;
        opacity: 0;
    }
}


.tooltip .tooltipText {
    overflow: hidden;
    padding: 5px;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    position: absolute;
    visibility: hidden;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltipText {
    visibility: visible;
    opacity: 1;
}

.toggle-switch {
    margin: 16px 0;
    cursor: pointer;
    height: 32px;
    width: 62px;
    display: inline-block;
    position: relative;

    input {
        display: none;

        &:checked + .slider {
            background-color: var(--primary-color);
        }

        &:checked + .slider::after {
            -webkit-transform: translateX(30px);
            -ms-transform: translateX(30px);
            transform: translateX(30px);
        }
    }

    .slider {
        border-radius: 32px;
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: grey;
        transition: 0.25s;

        &::after {
            position: absolute;
            content: '';
            height: 24px;
            width: 24px;
            background-color: white;
            left: 4px;
            bottom: 4px;
            transition: 0.25s;
            border-radius: 100%;
        }
    }
}

.toggle-switch-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
