body {
    background-color: var(--gray-200);
    height: 100%;
    font-family: 'Open Sans', 'Helvetica Neue', sans-serif;
    display: flex;
    flex-flow: column nowrap;
    min-height: 100vh;
}

main {
    flex-grow: 1;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
}

footer {
    min-height: 10rem;
    display: flex;
    align-items: center;
    flex-flow: column wrap;
    background-color: #e0e0e0;
}

footer img {
    min-height: auto;
    max-width: 100%;
}

/* ELEMENTS */

.block {
    margin-bottom: 2.5rem;
    border-radius: 0.4rem;
    padding: 3.75rem;
    background-color: var(--gray-100);
}

.spinner {
    position: relative;
    top: 50%;
    left: 50%;
    z-index: 100;
}

.backdrop {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: #c7c7c755;
    z-index: 10000;
}


/* TEXT */

.muted-dark {
    color: var(--gray-700)
}

.accent-light {
    color: #c1aed3;
}

.accent {
    color: var(--primary-400);
}

.accent-dark {
    color: var(--primary-600);
}

.subtitle {
    color: var(--primary-200);
}

.text-green {
    color: var(--green);
}

.text-salmon {
    color: #e96d5f;
}

.u-transparent {
    color: transparent !important;
}

.z-index-1 {
    z-index: 1;
}

/* BACKGROUND */

.bg-accent-light {
    background-color: #c1aed3;
}

.bg-accent {
    background-color: var(--primary-400);
}

.bg-accent-dark {
    background-color: var(--primary-600);
}

.bg-gray-200 {
    background-color: var(--gray-200);
}

.bg-gray-100 {
    background-color: var(--gray-100);
}

/* OVERRIDES */
.password-with-eye {
    max-width: 90%;
}

input ~ i.fa-eye-slash {
    position: relative;
    width: 21px;
    cursor: pointer;
}

i.fa-eye-eye ~ div.invalid-feedback,
i.fa-eye-slash ~ div.invalid-feedback {
    flex-basis: 100%;
}

input ~ i.fa-eye {
    width: 21px;
    cursor: pointer;
}

input[type='checkbox'] {
    width: 17px;
    height: 17px;
}

input[type='checkbox']:checked {
    accent-color: var(--primary-300);
}

.modal-content {
    border: none !important;
}

.modal-header {
    background-color: var(--primary);
    border-bottom: none !important;
    color: white;
}

.modal-header span {
    color: white;
}

/* Snackbar */

#snackbar {
    /* visibility: hidden; Hidden by default. Visible on click */
    min-width: 40%;
    /* Set a default minimum width */
    margin-left: -20%;
    /* Divide value of min-width by 2 */
    background-color: var(--gray-800);
    text-align: center;
    /* Centered text */
    border-radius: 5px;
    /* Rounded borders */
    padding: 16px;
    /* Padding */
    position: fixed;
    /* Sit on top of the screen */
    z-index: 10;
    /* Add a z-index if needed */
    left: 50%;
    /* Center the snackbar */
    bottom: 5%;
    /* 30px from the bottom */
    display: flex;
    flex-flow: row nowrap;
}

#snackbar button {
    background-color: transparent;
    border: none;
    padding: 8px;
    color: var(--primary-100);
}

#snackbar button:hover {
    background-color: var(--gray-700);
    border-radius: 2px;
}

#snackbar p {
    flex-grow: 1;
    align-self: center;
    inline-size: 150px;
    overflow-wrap: break-word;
    color: white;
    text-align: start;
    margin: 0px 0px 0px 10px;
}

/* Toggle Button */

.switch {
    position: relative;
    display: inline-block;
    width: 35px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .2s;
    transition: .2s;
}

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

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary-200);
}

input:checked+.slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

.slider.round {
    border-radius: 20px;
}

.slider.round:before {
    border-radius: 50%;
}

/*Plots*/

.js-plotly-plot .plotly .modebar-container {
    position: static !important;
    width: 100vh !important;
}

.js-plotly-plot .plotly .modebar {
    position: absolute !important;
    width: 100%;
    display: flex;
    justify-content: center;
}

.js-plotly-plot .plotly .modebar-btn svg {
    fill: rgb(0, 0, 0);
    height: 1.8em;
    width: 1.8em;
}

.modebar-group {
    background-color: rgba(122, 122, 122, 0) !important;
}

.modebar-btn .icon path {
    fill: rgba(0, 0, 0, 0.74) !important;
}

.plot-res-cont {
    height: 60vh;
}

.plot-res-cont-sm {
    height: 50vh;
}

.ai-plot {
    width: 60%;
}

.notif-count {
    color: white;
    background-color: var(--primary-300);
    font-size: 0.7rem;
    padding: 0.1em 0.4em;
    min-width: 1.3rem;
    height: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    transform: none;
    border: 1px solid #fff;
    border-radius: 50%;
    
    top: -0.8em;
    right: -0.2em;
    z-index: 1;

    margin-right: 10px;
}

.bell-container {
  position: relative;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.bell-container i {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 1.3em;
  color: #333;
}

.bell-container .bell-solid {
  opacity: 0;
  transform: scale(0.8);
}

.notificationIcon:hover .bell-container .bell-regular {
  opacity: 0;
  transform: scale(0.8);
}

.notificationIcon:hover .bell-container .bell-solid {
  opacity: 1;
  transform: scale(1);
}

.navbar {
    min-height: auto;
}

/*Aladin*/

#aladinContainer {
    width: 100% !important;
    height: 50vh !important;
}

/*Media Queries*/

@media (min-height: 1080px) {

    .plot-res-cont {
        height: 40vh;
    }

    .plot-res-cont-sm {
        height: 30vh;
    }

    #aladinContainer {
        height: 50vh !important;
    }
}

@media (min-height: 1300px) {

    .block {
        padding: 3rem 4rem;
    }

    .plot-res-cont {
        height: 30vh;
    }

    .plot-res-cont-sm {
        height: 20vh;
    }

    #aladinContainer {
        height: 50vh !important;
    }
}

@media (max-width: 1000px) {

    .block {
        padding: 2.5rem 3rem;
    }

    .password-with-eye {
        max-width: 85%;
    }
}

@media (max-width: 750px) {

    .password-with-eye {
        max-width: 90%;
    }
}

@media (max-width: 500px) {

    .password-with-eye {
        max-width: 80%;
    }
}

@media (max-width: 420px) {

    .block {
        padding: 2rem 3rem;
    }

    h1>img {
        width: 90%;
        height: auto;
    }
}