.topbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 100;
}

.sidebar {
    z-index: 150;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow: scroll;
}

#wrapper #content-wrapper {
    padding-left: 6.5rem;
}

.sidebar-toggled #wrapper #content-wrapper {
    padding-left: 14rem;
}

@media screen and (max-width:720px) {
    .sidebar {
        width: 100%;
        transition: ease-in-out 0.2s;
    }

    .sidebar .nav-item .collapse {
        position: relative;
        left: 0;
        margin: auto;
        width: fit-content;
    }

    .sidebar .nav-item .nav-link {
        width: auto;
    }

    .sidebar .nav-item .nav-link span {
        font-size: 1rem;
    }

    .collapse-item {
        text-align: center;
        font-size: 18px;
    }

    .topbar {
        z-index: 155;
    }

    #wrapper #content-wrapper {
        padding-left: 0;
    }

    .sidebar-toggled #wrapper #content-wrapper {
        padding-left: 0;
    }
}


.login_logo {
    max-width: 70%;
}

.welcome_box {
    width: 100%;
    background: #fff;
    padding: 20px 20px 10px 20px;
    margin-top: 60px;
    border-bottom: 4px solid #E1B049;
}

.today_box {
    width: 100%;
    background: #fff;
    padding: 20px 20px 10px 20px;
    border-top: 4px solid #E1B049;
}

.home_message_box {
    width: 100%;
    background: #fff;
    padding: 20px 20px 10px 20px;
    border-top: 4px solid #e00;
}

.user_booking_stats {
    width: 100%;
    background: #fff;
    padding: 20px 20px 10px 20px;
    border-top: 4px solid #E1B049;
}

/*CORSI*/

.lista_corsi_user {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: stretch;
}

.card_corso {
    border-radius: 14px;
    box-shadow: 2px 2px 13px rgba(0, 0, 0, 0.15);
    width: 32%;
    margin-bottom: 30px;
    background-size: cover;
    background-position: center;
}

.card_corso_new {
    border-radius: 14px;
    box-shadow: 2px 2px 13px rgba(0, 0, 0, 0.15);
    width: 32%;
    margin-bottom: 30px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.card_corso_new .course_info {
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 14px;
    min-height: 200px;
    height: 100%;
    display: flex;
    margin-bottom: 40px;
}

.card_corso_new .course_info .subscribe_button {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.card_corso_new .course_info .subscribe_button button {
    background: rgb(15, 155, 15);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    border-radius: 0;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.card_corso .course_info {
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 14px;
    min-height: 300px;
    display: flex;
}

.course_details {
    width: 75%;
    padding: 20px 30px;
}

.course_action {
    width: 25%;
    height: 100%;
}

.course_action .btn {
    height: 100px;
    width: 100%;
    border-radius: 0;
}

.course_action a:first-child .btn {
    border-bottom: 2px solid #000;
}

.course_action a:last-child .btn {
    border-top: 2px solid #000;
}

.card_corso .immagine_corso {
    width: 100%;
}

.card_corso .immagine_corso img {
    width: 100%;
    border-radius: 14px;
}

@media screen and (max-width:1024px) {
    .card_corso {
        width: 49%;
        margin-bottom: 30px;
    }

    .card_corso_new {
        width: 49%;
        margin-bottom: 30px;
    }
}

@media screen and (max-width:720px) {
    .card_corso {
        width: 100%;
        margin-bottom: 30px;
    }

    .card_corso_new {
        width: 100%;
        margin-bottom: 30px;
    }

    .course_details {
        padding: 20px 20px;
        width: 70%;
    }

    .course_action {
        width: 30%;
    }
}

/*LESSONS*/

.card_lezione, .card_lezione_booked {
    box-shadow: 2px 2px 13px rgba(0, 0, 0, 0.15);
    padding: 10px 15px 0;
    border-radius: 14px;
    margin-bottom: 10px;
    transition: 0.2s;
}

.card_lezione_booked.booking--1 {
    border-left: 8px solid #e00;
}

.card_lezione_booked.booking-0 {
    border-left: 8px solid #E1B049;
}

.card_lezione_booked.booking-1 {
    border-left: 8px solid rgb(26, 160, 13);
}

.card_lezione_booked:hover {
    cursor: pointer;
}

.card_lezione.selected {
    border: 3px solid rgb(40, 143, 40);
}

.card_lezione:hover {
    transform: scale(1.02);
    border: 2px solid #c4a768;
    cursor: pointer;
}

.card_lezione.selected:hover {
    border: 3px solid rgb(40, 143, 40);
    transform: scale(1.02);
}

#book_button {
    width: 100%;
    display: none;
}

#book_button button {
    position: fixed;
    top: 75px;
    right: 75px;
    width: 350px;
    min-height: 100px;
    border-radius: 0;
    z-index: 100000000000;
    box-shadow: 2px 2px 13px rgba(0, 0, 0, 0.15);
}

.remove_lesson:hover {
    transition: 0.2s;
}

.remove_lesson:hover {
    color: indianred !important;
}

@media screen and (max-width:720px) {
    #book_button button {
        position: fixed;
        bottom: 0;
        width: 100%;
        min-height: 100px;
        top: inherit;
        right: inherit;
        left: 0;
        border-radius: 0;
        z-index: 100000000000;
    }
}

.card_lezione_today {
    position: relative;
    box-shadow: 2px 2px 13px rgba(0, 0, 0, 0.15);
    padding: 10px 15px;
    border-radius: 14px;
    margin-bottom: 10px;
    transition: 0.2s;
}

.booking_status {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 15px;
    border-top-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.booking_status.status-ok {
    background-color: olivedrab;
}

.booking_status.status-waiting {
    background-color: #E1B049;
}

.booking_status.status-error {
    background-color: #e00;
}

/*Abbonamento*/

.abbonamento_box {
    width: 100%;
    box-shadow: 2px 2px 13px rgba(0, 0, 0, 0.15);
    padding: 10px 15px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 10px auto;
}

.abbonamento_box .group label {
    margin-right: 8px;
}

.abbonamento_box .group span {
    color: #E1B049;
    font-size: 18px;
    font-weight: 500;
}

@media screen and (max-width:720px) {
    .abbonamento_box {
        width: 100%;
        display: block;
    }

    .abbonamento_box .group span {
        font-size: 16px;
    }
}

/*Alert*/

.user_message {
    width: 100%;
    box-shadow: 2px 2px 13px rgba(0, 0, 0, 0.15);
    padding: 10px 15px;
    border-radius: 14px;
    position: relative;
    margin-bottom: 20px;
}

.child_card {
    box-shadow: 2px 2px 13px rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    margin: 10px auto;
    font-size: 24px;
    font-weight: 800;
    padding: 18px 10px;
    color: #E1B049;
    transition: 0.2s;
}

.child_card:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.childAccount {
    background-color: #000 !important;
    color: #fff !important;
    border-bottom: 5px dashed #E1B049
}

.card_evento {
    box-shadow: 2px 2px 13px rgba(0, 0, 0, 0.15);
    padding: 15px;
    border-radius: 14px;
    margin-bottom: 10px;
    transition: 0.2s;
    background: #fff;
}

.card_evento.evento-prenotato {
    border: 3px solid rgb(40, 143, 40);
}

/* Absolute Center Spinner */

.loader {
    display: none;
    position: fixed;
    z-index: 2999;
    height: 2em;
    width: 2em;
    overflow: show;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

/* Transparent Overlay */

.loader:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgba(20, 20, 20, .8), rgba(0, 0, 0, .8));
    background: -webkit-radial-gradient(rgba(20, 20, 20, .8), rgba(0, 0, 0, .8));
}

.spinner-border {
    width: 6rem;
    height: 6rem;
}

.inputGroup {
    background-color: #fff;
    display: block;
    margin: 10px 0;
    position: relative;
}

.inputGroup label {
    padding: 12px 30px;
    width: 100%;
    display: block;
    text-align: left;
    font-weight: 800;
    font-size: 18px;
    border: 1px solid #000;
    color: #3C454C;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 200ms ease-in;
    overflow: hidden;
}

.inputGroup label:before {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    content: "";
    background-color: #E1B049;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale3d(1, 1, 1);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    z-index: -1;
}

.inputGroup label:after {
    width: 32px;
    height: 32px;
    content: "";
    border: 2px solid #D1D7DC;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.414 11L4 12.414l5.414 5.414L20.828 6.414 19.414 5l-10 10z' fill='%23fff' fill-rule='nonzero'/%3E%3C/svg%3E ");
    background-repeat: no-repeat;
    background-position: 2px 3px;
    border-radius: 50%;
    z-index: 2;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: all 200ms ease-in;
}

.inputGroup input:checked~label {
    color: #fff;
}

.inputGroup input:checked~label:before {
    transform: translate(-50%, -50%) scale3d(80, 80, 1);
    opacity: 1;
}

.inputGroup input:checked~label:after {
    background-color: olivedrab;
    border-color: olivedrab;
}

.inputGroup input {
    width: 32px;
    height: 32px;
    order: 1;
    z-index: 2;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    visibility: hidden;
}

.conto_page_menu {
    list-style: none;
    padding-left: 0;
}

.conto_page_menu li {
    font-size: 20px;
    font-weight: 600;
    color: #E1B049;
    background: #fff;
    text-align: center;
    padding: 8px 16px;
    box-shadow: 2px 2px 13px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
}

.message_preview {
    display: block;
    width: 100%;
    line-height: 20px;
    max-height: 80px;
    overflow: hidden;
    white-space: pre-wrap;
    text-overflow: ellipsis;
}

@keyframes shake {
    0% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.2);
    }

    20% {
        transform: scale(1.3);
    }

    30% {
        transform: scale(1.4);
    }

    40% {
        transform: scale(1.5);
    }

    50% {
        transform: scale(1.55);
    }

    60% {
        transform: scale(1.5);
    }

    70% {
        transform: scale(1.4);
    }

    80% {
        transform: scale(1.3);
    }

    90% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1.1);
    }
}

.alert_message {
    /* Start the shake animation and make the animation last for 0.5 seconds */
    animation: shake 0.8s;

    /* When the animation is finished, start again */
    animation-iteration-count: 10;
}

.full_message {
    border: 1px solid #c4a768;
    padding: 10px;
    border-bottom: 3px solid #3C454C;
    margin-bottom: 16px;
}

.lesson_check {
    width: 100%;
    max-width: 20px;
    height: 20px;
    border-radius: 30px;
    position: relative;
    box-shadow: 2px 2px 13px rgb(0 0 0 / 15%);
    margin-right: 8px;
}

.card_lezione.selected .lesson_check::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 15px;
    height: 15px;
    background: green;
    border-radius: 50%;
}

.home_header {
    overflow: scroll;
}

.home_header .col-md-3 {
   padding: 0 0.3rem;
}

.home_header .card-body {
    padding: 0.3em;
    text-align: center;
}

.home_header .card-body .m-title {
    font-size: 16px;
    text-align: center;
    width: 100%;
}

@media screen and (max-width:720px) {
    .home_header .card-body .m-title {
        font-size: 10px;
    }
}

.nav {

    flex-wrap: nowrap;
    padding-bottom: 12px;
    overflow-x: scroll;
}

.nav-tabs {
    border-bottom: 4px solid #E1B049;
}

.nav-tabs .nav-link {
    border-radius: 24px;
    border: 1px solid #e1b049;
    margin-right: 8px;
    font-weight: 500;
}

.nav-tabs .nav-link.active, .nav-tabs .nav-item.show .nav-link {
    color: #fff;
    background-color: #e1b049;
    border-color: #dddfeb #dddfeb #fff;
}

.missing-field{
    border: 1px solid #e00;
    background: rgba(205, 131, 131, 0.436);
}