﻿#components-reconnect-modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
}

    #components-reconnect-modal.components-reconnect-show,
    #components-reconnect-modal.components-reconnect-failed,
    #components-reconnect-modal.components-reconnect-rejected {
        display: flex;
    }

    #components-reconnect-modal .components-messages {
        color: #3b3b3b;
        margin: auto;
        text-align: center;
    }

    #components-reconnect-modal button {
        display: inline-block;
        outline: none;
        cursor: pointer;
        font-size: 16px;
        line-height: 20px;
        font-weight: 600;
        border-radius: 8px;
        padding: 14px 24px;
        border: none;
        background-color: var(--mud-palette-primary);
        color: white;
    }

        #components-reconnect-modal button:active {
            background-color: var(--mud-palette-primary);
        }

    #components-reconnect-modal .components-messages h2 {
        color: #3b3b3b;
    }

    #components-reconnect-modal .components-messages a {
        color: #3b3b3b;
        text-decoration: none;
        border-bottom: 1px dotted white;
    }

    #components-reconnect-modal .components-reconnecting,
    #components-reconnect-modal .components-failed,
    #components-reconnect-modal .components-rejected {
        display: none;
    }

    #components-reconnect-modal.components-reconnect-show .components-reconnecting,
    #components-reconnect-modal.components-reconnect-failed .components-failed,
    #components-reconnect-modal.components-reconnect-rejected .components-rejected {
        display: block;
    }

/*----------------GENERIC CLASSES-----------------*/

:root {
    --nav-active: #D8E996;
    --text-light-color: #E3E4DC;
    --text-light-secondary-color: #BCC1A9;
    --bg-primary-light-color: #E7EDD0;
}

.bg-nav-active {
    background: var(--nav-active) !important;
}

/* TEXT CLASSES */

.text-light {
    color: var(--text-light-color) !important;
}

.bg-light-secondary {
    background: var(--bg-primary-light-color) !important;
}

.text-light-secondary {
    color: var(--text-light-secondary-color) !important;
}

.text-end * {
    text-align: end;
}

.text-center * {
    text-align: center;
}

.text-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* SCROLL CLASSES */

::-webkit-scrollbar {
    display: none; /* for Chrome, Safari, and Opera */
}

.hidden-scroll {
    -ms-overflow-style: none; /* for Internet Explorer and Edge */
    scrollbar-width: none;
}

.hover-scroll {
    overflow-y: hidden;
}

    .hover-scroll:hover {
        overflow-y: auto;
    }

/* ANIMATIONS */

/*-fade in-*/

@keyframes fadeIn {
    from {
        transform: translateX(-5%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn .3s ease-in-out;
    opacity: 1;
}

/*-puff in-*/

@-webkit-keyframes puff-in-center {
    0% {
        -webkit-transform: scale(2);
        transform: scale(2);
        -webkit-filter: blur(4px);
        filter: blur(4px);
        opacity: 0;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-filter: blur(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

@keyframes puff-in-center {
    0% {
        -webkit-transform: scale(2);
        transform: scale(2);
        -webkit-filter: blur(4px);
        filter: blur(4px);
        opacity: 0;
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        -webkit-filter: blur(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

.puff-in-center {
    -webkit-animation: puff-in-center 0.3s cubic-bezier(0.470, 0.000, 0.745, 0.715) both;
    animation: puff-in-center 0.3s cubic-bezier(0.470, 0.000, 0.745, 0.715) both;
}

/*----------------MUD BLAZOR CUSTOM-----------------*/

.mud-button {
    text-transform: none;
}