@import url("./admin.css");

/* FONTS */
@font-face {
    font-family: 'OpenDyslexic';
    src: url('../fonts/OpenDyslexic-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('../fonts/OpenDyslexic-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('../fonts/OpenDyslexic-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'OpenDyslexic';
    src: url('../fonts/OpenDyslexic-Bold-Italic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'OpenDyslexicMono';
    src: url('../fonts/OpenDyslexicMono-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Luciole';
    src: url('../fonts/Luciole-Regular.woff2') format('woff2'), url('../fonts/Luciole-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Luciole';
    src: url('../fonts/Luciole-Bold.woff2') format('woff2'), url('../fonts/Luciole-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Luciole';
    src: url('../fonts/Luciole-BoldItalic.woff2') format('woff2'), url('../fonts/Luciole-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Luciole';
    src: url('../fonts/Luciole-Italic.woff2') format('woff2'), url('../fonts/Luciole-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}


@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100;
    src: local(''),
        url('../fonts/montserrat-v18-latin-100.woff2') format('woff2'),
        url('../fonts/montserrat-v18-latin-100.woff') format('woff');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 200;
    src: local(''),
        url('../fonts/montserrat-v18-latin-200.woff2') format('woff2'),
        url('../fonts/montserrat-v18-latin-200.woff') format('woff');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    src: local(''),
        url('../fonts/montserrat-v18-latin-300.woff2') format('woff2'),
        url('../fonts/montserrat-v18-latin-300.woff') format('woff');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: local(''),
        url('../fonts/montserrat-v18-latin-regular.woff2') format('woff2'),
        url('../fonts/montserrat-v18-latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    src: local(''),
        url('../fonts/montserrat-v18-latin-500.woff2') format('woff2'),
        url('../fonts/montserrat-v18-latin-500.woff') format('woff');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: local(''),
        url('../fonts/montserrat-v18-latin-600.woff2') format('woff2'),
        url('../fonts/montserrat-v18-latin-600.woff') format('woff');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: local(''),
        url('../fonts/montserrat-v18-latin-700.woff2') format('woff2'),
        url('../fonts/montserrat-v18-latin-700.woff') format('woff');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 800;
    src: local(''),
        url('../fonts/montserrat-v18-latin-800.woff2') format('woff2'),
        url('../fonts/montserrat-v18-latin-800.woff') format('woff');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 900;
    src: local(''),
        url('../fonts/montserrat-v18-latin-900.woff2') format('woff2'),
        url('../fonts/montserrat-v18-latin-900.woff') format('woff');
}


@font-face {
    font-family: 'Ubuntu Mono';
    font-style: normal;
    font-weight: 400;
    src: local(''),
        url('../fonts/ubuntu-mono-v10-latin-regular.woff2') format('woff2'),
        url('../fonts/ubuntu-mono-v10-latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Ubuntu Mono';
    font-style: normal;
    font-weight: 700;
    src: local(''),
        url('../fonts/ubuntu-mono-v10-latin-700.woff2') format('woff2'),
        url('../fonts/ubuntu-mono-v10-latin-700.woff') format('woff');
}

@font-face {
    font-family: 'Varela Round';
    font-style: normal;
    font-weight: 400;
    src: local(''),
        url('../fonts/varela-round-v13-latin-regular.woff2') format('woff2'),
        url('../fonts/varela-round-v13-latin-regular.woff') format('woff');
}

@font-face {
    font-family: 'Quicksand-Bold';
    font-style: normal;
    font-weight: 300;
    src: url('/app-lms/assets/fonts/quicksand/Quicksand-Light.ttf');
  }
  
  @font-face {
    font-family: 'Quicksand-Bold';
    font-style: normal;
    font-weight: 400;
    src: url('/app-lms/assets/fonts/quicksand/Quicksand-Regular.ttf');
  }
  
  @font-face {
    font-family: 'Quicksand-Bold';
    font-style: normal;
    font-weight: 500;
    src: url('/app-lms/assets/fonts/quicksand/Quicksand-Medium.ttf');
  }
  
  @font-face {
    font-family: 'Quicksand-Bold';
    font-style: normal;
    font-weight: 600;
    src: url('/app-lms/assets/fonts/quicksand/Quicksand-SemiBold.ttf');
  }
  
  @font-face {
    font-family: 'Quicksand-Bold';
    font-style: normal;
    font-weight: 700;
    src: url('/app-lms/assets/fonts/quicksand/Quicksand-Bold.ttf');
  }


/* FONT MANAGEMENT */

:root {
    --main-font: "Quicksand-Bold";
    --monospace-font: "Ubuntu Mono", monospace;
}

.font-dys {
    --main-font: "OpenDyslexic", sans-serif;
    --monospace-font: "OpenDyslexicMono", monospace;
    line-height: 1.6;
}

.font-luciole {
    --main-font: "Luciole", sans-serif;
    --monospace-font: "Consolas", "Courier", monospace;
}

.font-arial {
    --main-font: "Arial", sans-serif;
    --monospace-font: "Consolas", "Courier", monospace;
}

.font-verdana {
    --main-font: "Verdana", sans-serif;
    --monospace-font: "Consolas", "Courier", monospace;
}



/* CUSTOM MODAL */

.vitta-modal {
    background: var(--classroom-background) !important;
    box-shadow: 0px 0px 0px 1000px rgba(0, 0, 0, 0.1), inset 0px 0px 0px 1px #8E8E8EBF !important;
}

.vitta-modal-title {
    color: var(--classroom-primary) !important;
}

.vitta-modal-exit-btn {
    background-color: var(--classroom-primary) !important;
    color: var(--classroom-white) !important;
}

.vitta-modal-exit-btn:hover {
    background-color: var(--classroom-primary-dark) !important;
}

.vitta-modal .modal-content-div h4 {
    text-align: center;
    color: var(--classroom-text-0);
    margin-top: 0.7em;
    margin-bottom: 0.7em;
    font-size: 1.2em;
}

.modal-pwd {
    border: 2px solid var(--classroom-secondary);
    border-radius: 0.5em;

    width: 70px;
    display: inline-block;
    text-align: center;
    font-size: 1.3em;
}

.pwd-display-stud-modal i {
    color: var(--classroom-secondary);
}

.pwd-display-stud-modal i:hover {
    color: var(--classroom-secondary-dark);
}

/* PAGE CONTENTS */
.show-error {
    display: none;
}

.student-list-button {
    color: var(--classroom-text-2);
    background-color: var(--classroom-background);
}

#teacherSwitchButton {
    display: none;
}

.theme-student,
.theme-teacher,
.theme-group-admin,
.theme-super-admin {
    overflow: hidden;
}

@media (max-width: 768px) {
    .leader-line {
        display: none;
    }
}

/* THEMED ELEMENTS */

body {
    color: var(--classroom-text-0);
    background-color: var(--classroom-background);
    font-family: var(--main-font);
    scroll-behavior: smooth;
}


.info-class {
    font-weight: bold;
}

.classroom-login-container>label {
    position: relative;
    top: 8px;
    font-size: 1.2rem;
}

button {
    background: var(--classroom-text-0);
    color: var(--classroom-background);
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 10em;
    font-weight: 700;
    vertical-align: middle;
}

.icon-label {
    width: 2em;
    margin-right: 0.5em;
}

#classroom-login-gar img {
    width: 128px;
}

#classroom-dashboard-background {
    padding: 1em;
    padding-top: 0.15em;
    background: var(--classroom-dashboard);
    height: 100%;
    height: -webkit-fill-available;
    height: -moz-fill-available;
    height: fill-available;
    height: 100vh;
    height: 100dvh;
    scroll-behavior: unset;
    transition: background-color 0.5s ease;
}

.sidebar-classroom {
    grid-area: sidebar;
    height: 98%;
    max-height: 98vh;
    display: flex;
    font-size: .9em;
    text-align: center;
    align-items: center;
    flex: 0;
    flex-shrink: 0;
    flex-basis: var(--sidebar-size);
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
}

.sidebar-classroom #classroom-sidebar-logo {
    background: var(--classroom-logo);

    max-height: var(--sidebar-size);
    height: 100%;
    width: 100%;

    background-size: contain;
    background-repeat: no-repeat;

    background-position-x: center;
    background-position-y: center;
}

.sidebar-classroom div:not(:first-child) {
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    background: var(--classroom-dashboard-dark);

    width: 100%;
    height: 100%;
    max-height: var(--sidebar-size);
    max-width: var(--sidebar-size);
    width: 100%;
    height: -webkit-fill-available;


    display: flex;
    flex-direction: column;
    align-items: center;

    justify-content: center;
    justify-self: end;

    border-radius: 1em 0 0 1em;
    padding: 0 0.5em;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
}

.sidebar-classroom .active:not(:first-child) {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--classroom-dashboard);
    background: var(--classroom-background);
    border-radius: 1em 0em 0em 1em;
    position: relative;
}



.sidebar-classroom div img {
    width: 25%;
    height: auto;
    background-color: white;

    justify-self: center;
    align-self: center;

    border-radius: 50%;
    border: 3px solid transparent;

}

.sidebar-classroom div span {
    margin-top: 0.5em;
}

.sidebar-classroom .active::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 0;
    left: 0;
    height: 10px;
    background: radial-gradient(farthest-side at top left, transparent 98%, var(--classroom-background) 100%) 0/10px no-repeat;
    background-position: right;

}

.sidebar-classroom .active::after {
    content: "";
    position: absolute;
    bottom: -10px;
    right: 0;
    left: 0;
    height: 10px;
    background: radial-gradient(farthest-side at bottom left, transparent 98%, var(--classroom-background) 100%) 0/10px no-repeat;
    background-position: right;

}

.sidebar-classroom .active img {
    border-color: #1e8956;
    /* /!\ Do not change ! The color will be changed by a CSS filter */
}

#dashboard-profil img,
#dashboard-profil-teacher img,
#dashboard-profil-groupadmin img,
#dashboard-profil-manager img {
    border: 0px solid transparent;
}

#classroom-dashboard-container {
    --mobile-top-bar-height: 3.5em;
    --mobile-bottom-bar-height: 10%;

    --sidebar-size: 150px;
    --topbar-size: 3rem;

    display: grid;
    grid-template-columns: var(--sidebar-size) 1fr;
    grid-template-rows: var(--topbar-size) 1fr;
    grid-template-areas: "sidebar navbar"
                         "sidebar content";
    height: 100%;
}

#classroom-dashboard-top-bar {
    display: flex;
    padding: 0.5em 0em;
    align-items: center;
    justify-content: flex-start;

    grid-area: navbar;
    background: var(--classroom-dashboard);
    transition: background-color 0.5s ease;

    width: 100%;
    width: -webkit-fill-available;
    width: calc(calc(100vw - var(--sidebar-size) - 2em));
    /* screen - sidebar - 1em padding on both sides */

    z-index: 900;
}

#classroom-dashboard-content {
    background: var(--classroom-background);
    grid-area: content;
    border-radius: 15px;

    height: 100%;
    width: 100%;

    position: relative;
    overflow-y: scroll;

    scrollbar-width: thin;
    scrollbar-color: var(--classroom-cell) transparent;
}

#classroom-dashboard-content::-webkit-scrollbar,
#classroom-panel-table-container::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

#classroom-dashboard-content::-webkit-scrollbar-track,
#classroom-panel-table-container::-webkit-scrollbar-track {
    background: transparent;
}

#classroom-dashboard-content::-webkit-scrollbar-thumb,
#classroom-panel-table-container::-webkit-scrollbar-thumb {
    background-color: var(--classroom-cell);
    border-radius: 6px;
    border: 3px solid transparent;
}

#classroom-panel-table-container::-webkit-scrollbar-corner {
    background-color: transparent;
}


.classroom-clickable {
    cursor: pointer;
}

/* A11Y BUTTON/DROPDOWN */

#a11y-dropdown {
    max-height: 100%;
}

#dropdownMenuButton {
    --bs-btn-color: var(--classroom-white);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;

    --bs-btn-hover-color: var(--classroom-white);
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.1);
    --bs-btn-hover-border-color: transparent;

    --bs-btn-active-color: var(--classroom-white);
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: var(--classroom-white);

    --bs-btn-padding-x: 1em;
    --bs-btn-padding-y: 0.2em;
    height: 100%;
}

.a11y-dropdown {
    width: 18em;
    background: var(--classroom-background);
    color: var(--classroom-text-0);
    padding: 1em;

    --bs-dropdown-border-color: var(--classroom-cell);
}

/* DEFAULT DASHBOARD PAGE ELT. */

.dashboard-block {
    min-height: 100%;
    padding: 0 0.5em;
    padding-top: 1em;
}

.dashboard-block.full-block {
    padding: 0;
}

@media (max-width: 1199.98px) {

    #classroom-dashboard-container {
        --sidebar-size: 100px;
    }

    .sidebar-classroom div img {
        width: 80%;
    }

    .sidebar-classroom div:not(:first-child) span {
        /*display: none;*/
    }

}




@media (max-width: 767.98px) {

    #classroom-dashboard-background {
        padding: 0px;
        width: 100vw;
    }

    #classroom-dashboard-container {
        grid-template-columns: 100%;
        grid-template-rows: 3rem 1fr var(--mobile-bottom-bar-height);
        grid-template-areas: "navbar" "content" "sidebar";
    }

    #classroom-dashboard-sidebar,
    #classroom-dashboard-sidebar-teacher,
    #manager-dashboard-sidebar,
    #groupadmin-dashboard-sidebar {
        z-index: 1500;
        position: fixed;
        bottom: 0;
        grid-row-start: 2;
        width: 100%;
        background: var(--classroom-dashboard);
        height: var(--mobile-bottom-bar-height);

        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }

    .sidebar-classroom {
        height: 100%;
        grid-auto-flow: column;
        align-items: flex-start;
        justify-content: space-evenly;
    }

    .sidebar-classroom #classroom-sidebar-logo {
        display: none;
    }

    .sidebar-classroom div:not(:first-child) {
        width: 100px;
        height: 100px;
        background: transparent;
        grid-template-rows: 1fr 0;
    }

    .sidebar-classroom div span {
        display: none;
    }

    .sidebar-classroom div img {
        width: 60px;
        height: 60px;
    }

    .sidebar-classroom .active:not(:first-child) {
        border-radius: 0em 0em 15px 15px;
    }

    .sidebar-classroom .active::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: -10px;
        width: 10px;
        background: radial-gradient(farthest-side at bottom left, transparent 98%, var(--classroom-background) 100%) 0/10px no-repeat;
        background-position: right;

    }

    .sidebar-classroom .active::after {
        content: "";
        position: absolute;
        bottom: calc(100% - 10px);
        right: 0;
        left: 100%;
        width: 10px;
        background: radial-gradient(farthest-side at bottom right, transparent 98%, var(--classroom-background) 100%) 0/10px no-repeat;
        background-position: right;
    }

    #classroom-dashboard-top-bar {
        width: 100%;
        padding: 0.25em 0.5em;
        display: none;
    }

    #classroom-dashboard-content {
        position: relative;
        border-radius: 0px;
        height: auto;
        height: fill-available;
                
        grid-row-end: 2;
        
        padding-bottom: 50px;
    }

}

/* BREADCRUMBS */

#breadcrumb {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;

    margin-inline-end: auto;
    overflow: hidden;
}

#breadcrumb button {
    text-transform: uppercase;
    padding: 0.1rem 0.8rem;
    font-weight: 600;
    font-size: 0.8rem;
    background-color: transparent;
    border-color: var(--classroom-white);
    color: var(--classroom-white);

    max-height: inherit;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

}

#breadcrumb button:last-child {
    background-color: var(--classroom-white);
    border-color: var(--classroom-primary);
    color: var(--classroom-primary);

}

.chevron-breadcrumb {
    margin: 0 0.5em;
    color: var(--classroom-white);
    font-size: 14px;
    align-self: center;
}


/* NO CONTENT DIV */

.no-content-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    text-align: center;
}

.no-content-div img {
    width: 200px;
    height: 200px;
    margin-top: 5em;
    margin-bottom: 3em;
    border: 3px solid;
    border-color: #1e8956;
    border-radius: 50%;
}

.no-content-div #no-content-div__bottom-text {
    margin: 0 1em;
}

/* DASHBOARD ELEMENTS */

/* NOTIFICATIONS */

#notif-div {
    /*     display: flex;
    flex-direction: row-reverse; */
    /* Update Rémi, need review */
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
}

#notif-div div {
    opacity: 1;
}

.vitta-notif {
    border-radius: 3em;
    background-color: var(--classroom-black);
    color: var(--classroom-white);
    padding: 0em 1em;
    filter: drop-shadow(0 0 0.25em #00000033);

    display: grid;
    grid-template-columns: 3.5fr auto;
    grid-template-rows: 1fr;
    gap: 0px 0px;
    grid-template-areas: ". .";
    padding: 0.5em;
    margin: 0em 0.5em;
}

.vitta-notif-exit-btn {
    text-align: right;
    margin-left: 0.5em;
}

/* Notifications */
.vitta-notif-exit-btn::hover {
    color: gray;
}

.status-success {
    background-color: var(--classroom-green);
    margin: 5px;
}

.status-error {
    background-color: var(--classroom-red);
    margin: 5px;
}

/* START PROFILE PANEL */

.profile-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    
    height: 100%;
    height: fill-available;
    height: --webkit-fill-available;
    min-height: 700px;

    justify-content: space-evenly;
    align-content: center;
    align-items: center;
    color: var(--classroom-text-0);
}

.profile-panel span {
    font-size: larger;
    font-weight: 700;
}

.profile-panel .text-span-initial {
    font-size: initial;
}

.profile-panel #user-name,
.profile-panel #classroom-name {
    font-size: x-large;
    text-transform: uppercase;
}

.profile-panel .user-picture {
    width: 10em;
    height: 10em;
    border-radius: 50%;
    background: white;
    margin: 0 auto;
    /*border: 3px solid #208956;*/
}

.propic {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.pic-width {
    width: 8%;
}

@media (max-width: 768px) {
    .profile-panel .user-picture {
        width: 7.5em;
        height: 7.5em;
    }
}



#body-table-teach .propic {
    width: 36px;
    height: 36px;
    background: var(--classroom-white);
    clip-path: circle();
}

#body-table-teach .propic[anonymized=true]::before {
    content: '?';
    font-size: 1.5em;
    font-weight: 900;

    display: flex;
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;


    border: 1px solid var(--classroom-primary);
    color: var(--classroom-primary);
    background: var(--classroom-white);

    clip-path: circle();
    align-items: center;
    justify-content: center;

}

#classroom-dashboard-profile-stats,
#classroom-dashboard-profile-stats-teacher {
    display: grid;
}

#classroom-dashboard-profile-stats div,
#classroom-dashboard-profile-stats-teacher div {
    width: 10em;
    text-align: center;
    margin: 0.5em;

    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -o-user-select: none;
}

#classroom-dashboard-profile-stats,
#classroom-dashboard-profile-stats-teacher {
    font-weight: 200;
    text-transform: uppercase;
    font-style: oblique;
}

.stats-secondary,
.stats-primary,
.form-activity {
    display: grid;
    place-items: center;
    margin: 0.2em auto;
    width: 3em;
    height: 3em;
    text-align: center;
    line-height: 55px;
    border: 3px solid var(--classroom-text-0);
    color: var(--classroom-text-0);
    border-radius: 50%;
    font-style: normal;
    cursor: pointer;
    font-size: larger;
    font-weight: 700;
}

.form-activity-primary,
.stats-primary {
    border-color: var(--classroom-primary);
    color: var(--classroom-primary);
}

.form-activity-secondary,
.stats-secondary {
    border-color: var(--classroom-secondary);
    color: var(--classroom-secondary);
}

.form-activity-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 75%;
    user-select: none;
}

.form-activity {
    width: 2em;
    height: 2em;
    line-height: unset;
    cursor: unset;
}

.form-activity-activate {
    border-color: var(--classroom-secondary);
    color: var(--classroom-white);
    background-color: var(--classroom-secondary);
}

.form-activity-desactivate {
    border-color: var(--classroom-text-2);
    color: var(--classroom-text-2);
    background-color: var(--classroom-background);
}

.stats-description {
    font-weight: 200 !important;
}

#recap {
    border: 1px solid grey;
}

#bilan table {
    margin-left: auto;
    margin-right: auto;
}

.green-button:disabled {
    filter: grayscale(0.5);
}


.legend {
    margin-left: auto;
    margin-right: auto;
    padding-inline-start: 0px !important;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    font-style: italic;
}

#classroom-dashboard-profile-stats .stats-warn::after,
#classroom-dashboard-profile-stats-teacher .stats-warn::after {
    display: block;
    margin: 0.2em auto;
    width: 3em;
    height: 3em;
    position: relative;
    text-align: center;
    line-height: 55px;
    border: 3px solid var(--classroom-text-0);
    background: var(--classroom-text-0);
    color: var(--classroom-background);
    border-radius: 50%;
    content: "!";
    top: -3.2em;
    left: -3px;
    -webkit-animation: blink 1s linear infinite;
    -moz-animation: blink 1s linear infinite;
    animation: blink 1s linear infinite;
}

#classroom-dashboard-profile-stats .stats-primary.stats-warn::after,
#classroom-dashboard-profile-stats-teacher .stats-primary.stats-warn::after {
    border-color: var(--classroom-primary);
    background-color: var(--classroom-primary);
}

#classroom-dashboard-profile-stats .stats-secondary.stats-warn::after,
#classroom-dashboard-profile-stats-teacher .stats-secondary.stats-warn::after {
    border-color: var(--classroom-secondary);
    background-color: var(--classroom-secondary);
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-webkit-keyframes blink {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.blink {
    -webkit-animation: blink 2s linear infinite;
    -moz-animation: blink 2s linear infinite;
    animation: blink 2s linear infinite;
}

#switch-lang-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin: 0.5em auto;
    gap: 0.5em; 
}

#switch-lang-list-student {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin: 0.5em auto;
    gap: 0.5em; 
}

/* END PROFILE PANEL */

/* INTERACTIONS LIST */

.buttons-interactions {
    display: flex;
    flex-direction: row;
    flex-direction: row;
    gap: 0.35em 1em;
    margin-top: 1em;
}

.buttons-interactions button {
    padding: 0.25em 0.5em;
}

/* START SANDBOX CREATION */

#classroom-dashboard-sandbox-creation {
    height: 100%;
}



/* Wysibb -> text editor in tutorial and classroom */
span.btn-span-peertube,
span.btn-span-cabri {
    text-align: center;
}

img.btn-peertube {
    width: 20px;
    height: 20px;
    margin: 3px 0px 0px 0px;
    filter: grayscale(1);
}

img.btn-cabri {
    width: 26px;
    height: 26px;
}

.wysibb-math-field {
    top: 0.5em;
    padding: 0em 0.1em;
}

/* SANDBOX */

#classroom-dashboard-sandbox-creation h3 {
    text-align: center;
    color: var(--classroom-text-0);
    text-transform: uppercase;
}

#classroom-dashboard-sandbox-creation-container {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    padding: 0px 20px 40px 20px;
    margin: 40px 0px 0px 0px;
}

@media screen and (max-width: 1200px) {
    #classroom-dashboard-sandbox-creation-container {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media screen and (max-width: 1001px) {
    #classroom-dashboard-sandbox-creation-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media screen and (max-width: 775px) {
    #classroom-dashboard-sandbox-creation-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 604px) {
    #classroom-dashboard-sandbox-creation-container {
        grid-template-columns: 1fr;
    }
}

#classroom-dashboard-sandbox-creation-container .card {
    border: 0;
    box-shadow: 1px 1px 5px #00000029;
    border-radius: 21px;
    background-color: var(--classroom-background);
    padding: 20px 0px 0px 0px;
}

#classroom-dashboard-sandbox-creation-container .instructions-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
}

#classroom-dashboard-sandbox-creation-container .btn-know-more {
    margin: 10px auto 0px auto;
    white-space: initial;
    font-size: 0.8rem;
    display: block;
}

#classroom-dashboard-sandbox-creation-container .card .card-img-top {
    width: 80%;
    height: 8em;
    margin: 0 auto 10px auto;
    object-fit: scale-down;
}

#classroom-dashboard-sandbox-creation-container .card .card-body {
    padding: 0rem 1.25rem 1.25rem 1.25rem;
}

#classroom-dashboard-sandbox-creation-container .card.open-ide .card-title {
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
}

#classroom-dashboard-sandbox-creation-container .card.open-ide .interface-description {
    text-align: center;
}

#classroom-dashboard-sandbox-creation .sandbox-square {
    border: 2px solid transparent;
    border-radius: 1em;
    width: 15em;
    height: 15em;
    margin: 1em;
    text-align: center;
    transition: .2s;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    color: var(--classroom-text-0);
    text-transform: uppercase;

}

#classroom-dashboard-sandbox-creation .sandbox-square:hover {
    border-color: var(--classroom-background);
}

#classroom-dashboard-sandbox-creation .sandbox-square-img {
    height: 4em;
    width: auto;
}

/* END SANDBOX CREATION */

/* ACTIVITY START */

#activity-introduction {
    border: 2px solid var(--classroom-primary);
    padding: 1.25em;
    border-radius: 1em;
    margin: 1em;
}

#activity-introduction h3 {
    color: var(--classroom-primary);

}

.info-tutorials {
    text-align: right;
    height: auto;
    position: static;
}

#activity-instruction {
    color: var(--classroom-primary);
    position: fixed;
    bottom: 40px;
    right: 20px;
}

#side-div {
    position: fixed;
    top: 50px;
    right: 20px;
    border-left: solid 5px var(--classroom-primary);
}

.activity-search {
    flex-wrap: wrap;
    width: 75%;
}

.title-margin {
    margin-top: 3rem;
}

#sandbox-container-list,
#list-activities-teacher,
#list-competencies-teacher,
#mine-sandbox,
#shared-sandbox,
#new-activities-list,
#saved-activities-list,
#current-activities-list,
#done-activities,
#done-activities-list,
#facultative-options,
.list-classes {
    display: flex;
    flex-direction: row;
    align-content: space-around;

    justify-content: space-evenly;
    flex-wrap: wrap;
    width: 100%;
}

#list-activities-teacher {
    padding: 1.2em;
}

/* DRAG AND DROP IN ACTIVITY LIST */

#list-activities-teacher > div {
    outline: 3px solid transparent;
    transition: outline .2s;
    outline-offset: 1.5px;
}

#list-activities-teacher .draggable-source--is-dragging {
    opacity: 0.5;
}

#list-activities-teacher .draggable--over {
    outline-color: var(--classroom-primary);
}


#classroom-dashboard-sandbox-panel h3.section-title,
#classroom-dashboard-activities-panel h3.section-title,
#classroom-dashboard-activities-panel-teacher h3.section-title {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.2em;
    margin-top: 1em;
    overflow: hidden;
    user-select: none;
    padding-left: 1.5em;

    display: flex;
    align-items: baseline;
    width: 100%;
}

#classroom-dashboard-sandbox-panel h3.section-title::after,
#classroom-dashboard-activities-panel-teacher h3.section-title::after {

    content: '';
    flex: 1;
    margin: auto 0.5em;
    height: 0;

    border-top: 3px #000 dotted;
    border-color: inherit;

}

/* STUDENT ACTIVITY LIST */

#classroom-dashboard-activities-panel .section-container {
    background: var(--classroom-background-1);
    box-shadow: 0px 0px 7px 0px var(--classroom-shadow-1);

    border-radius: 1em;
    padding: 0.1em 0;
    margin: 1em;
}

#classroom-dashboard-activities-panel .section-header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0.5em;
    user-select: none;
    cursor: pointer;

}

#classroom-dashboard-activities-panel .section-header h3.section-title {
    padding: 0px;
    margin: 0px;
}

#classroom-dashboard-activities-panel .section-header i {
    margin-right: 0.5em;
    font-size: 1.5em;
}

#classroom-dashboard-activities-panel .section-header h3.section-title {
    padding: 0px;
    margin: 0px;
    width: auto;
}

#classroom-dashboard-activities-panel .section-header span.resource-number {
    margin-left: 0.75em;
    border-radius: 256em;

    height: 1.5em;
    min-width: 1.5em;

    font-weight: 600;
    text-align: center;

    background-color: var(--classroom-white);
    color: var(--classroom-black);
    box-shadow: 0px 1px 3px var(--classroom-shadow-1) inset;
}


.section-new,
h3.section-new {
    color: var(--classroom-secondary);
    border-color: var(--classroom-secondary);
}

.section-current,
h3.section-current {
    color: var(--classroom-text-1);
    border-color: var(--classroom-text-1);

}

.section-done,
h3.section-done {
    color: var(--classroom-primary);
    border-color: var(--classroom-primary);
}

.sandbox-item > div,
.activity-item > div,
.course-item > div {
    cursor: pointer;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 170px auto;
    width: 300px;
    padding: 0.25em;
    justify-items: stretch;
}

.sandbox-item-title,
.activity-item-title,
.course-item-title {
    color: var(--classroom-text-1);
    font-size: 1em;
    font-weight: 700;
    margin-top: 0.5em;
    text-align: center;

    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sandbox-card,
.activity-card {
    height: 100%;
    width: 100%;
    background-color: var(--classroom-primary);
    background: url("../media/cards/card-default.jpg");
    border-radius: 1.2em;
    background-clip: content-box;
    background-size: cover;
    color: white;

    display: grid;
    grid-auto-flow: row;
    grid-template-rows: auto 1fr auto;
    position: relative;
}

/*
    Folders
*/

.folder-card {
    height: 100%;
    width: 100%;
    background-color: none;
    border-radius: 1.2em;
    background-color: #F1F1F1;
    background-clip: content-box;
    background-size: cover;
    color: var(--classroom-white);
    display: grid;
    grid-auto-flow: row;
    grid-template-rows: auto 1fr auto;
    position: relative; 
}

.folder-card svg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 80%;
    transform: translateY(-50%);
    opacity: 0;
}

.list-folder-img-manager {
    color: #008447;
    transform: scale(0.6);
}

.folder-card:not(.folder-open) svg.folder-close-icon {
    opacity: 1;
}

.folder-card.folder-open svg.folder-open-icon {
    opacity: 1;
}

.folder-open {
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out;
}


.folder-card-top {
    display: inline-flex;
    justify-content: flex-end;
}

.folder-card .folder-card-mid {
    flex-grow: 1;
}

.folder-card .folder-card-top,
.folder-card .folder-card-bot {
    padding: 0.5em;
    color: #B5B4B4;
    text-align: right;
}

.folder-card .folder-card-bot span {
    font-style: italic;
    font-weight: 500;
    font-size: 0.9em;
    text-shadow: 1px 1px 0px var(--classroom-shadow-1);

}

.folder-item > div {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 170px auto;
    width: 300px;
    padding: 0.25em;
    justify-items: stretch;
    cursor: pointer;
}

.dropdown i,
.folder-card .folder-card-top .dropdown i,
.class-card .class-card-top .dropdown i,
#body-table-teach .dropdown i {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.tree-folders {
    margin: 0em 5%;
    padding: 1em;
    display: inline-flex;
}


#folders-seek-tree-content-modal ul,
#folders-seek-tree-content-modal li,
#folders-tree-content-modal ul,
#folders-tree-content-modal li {
    list-style-type: none;
}

.folder-breadcrumb {
   color: var(--classroom-gold);
}

.folder-icons {
    height: 28px;
    margin-bottom: 2px;
}

/* COURSES */

.course-card {
    height: 100%;
    width: 100%;

    background-color: var(--classroom-background-1);
    outline: 1px solid rgba(var(--classroom-text-0-rgb), 0.5);

    border-radius: 1.2em;
    background-clip: content-box;
    background-size: cover;

    color: white;
    position: relative;
}

.course-card .course-card-img {
    height: 100%;
    width: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.course-card .course-card-info {
    display: grid;
    grid-auto-flow: row;
    grid-template-rows: auto 1fr auto;
    background-color: rgba(0, 0, 0, 0.5);
    width: 30%;
    height: 101%;
    position: absolute;
    top: -1px;
    right: -1px;
    border-radius: 0 13% 13% 0;
    min-width: 90px;
}

.course-card .course-card-info .course-card-mid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;

    padding: 0.5em;
}

/* on small screens we want to reduce the font size of the course card info */
@media (max-width: 768px) {
    .course-card .course-card-info .course-card-mid {
        font-size: 0.5em;
    }
}

.course-card .course-card-info .course-card-mid .course-card-activities-count {
    position: relative;
    display: block;

    font-size: 1.5em;
    padding: 0.25em 0.5em;
    border-radius: 0.5em;

    outline: 3px solid currentColor;
    outline-offset: -2px;

    box-shadow: 4px -4px 0px 0px;
}

.course-card .course-card-info .course-card-bot {
    font-size: 0.6em;
}

/* ACTIVITY ASSIGN OPTIONS */

.section-facultative-options,
.section-preview-activity,
.section-course-options {
    background: var(--classroom-background-1);
    box-shadow: 0px 0px 7px 0px var(--classroom-shadow-1);
    border-radius: 1em;
    padding: 0.1em 0;
    margin: 1em;
}

.section-header-facultative-options,
.section-header-preview-activity,
.section-header-course-options {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0.5em;
    user-select: none;
    cursor: pointer;
}
.section-title-facultative-options,
.section-title-preview-activity,
.section-title-course-options {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.2em;
    overflow: hidden;
    user-select: none;
    display: flex;
    align-items: baseline;
    padding: 0px;
    margin: 0px;
    width: auto;
    margin-left: 0.5em;
}


/*
    Activities & folders list mode
*/
.folder-item-list,
.course-item-list,
.activity-item-list {
    width: 100%;
    height: auto;
    border-bottom: var(--classroom-cell) 1px solid;
    margin: 0;
    margin-top: 0.5rem;
}

.activity-list,
.course-list,
.folder-list {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: inherit;

    cursor: pointer;
}

.container-draggable {
    display: flex;
    width: 100%;
}

.app_image_preview {
    border-radius: 4px;
    padding: 5px;
    width: 55px;
}

.list-item-img {
    width: 55px;
    height: 55px;
    border-radius: 4px;

    object-fit: contain;
    display: flex;
}

.list-item-no-icon {
    width: 40px !important;
    height: 40px !important;
    margin-right: 10px;

    padding: 1em;
    border-radius: 50%;

    border: 1px solid var(--classroom-white);
    background-color: var(--classroom-primary);
    color: var(--classroom-white);
    box-shadow: 1px 1px 5px #0005;

    display: flex;
    align-items: center;
    justify-content: center;

    place-self: center center;

    margin: 0 auto;
    left: -1px;
    position: relative;
}

.activity-list .activity-list-center,
.course-list .course-list-center {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    margin-inline: 0.5rem;

    overflow: hidden;
}

/* On medium screens we update the list item to have two rows for better content display */
@media (max-width: 768px) {
    .activity-list .activity-list-center,
    .course-list .course-list-center {
        flex-direction: column;
    }
}

.activity-list-title,
.course-list-title,
.folder-list-title {
    font-weight: bold;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-list-title {
    margin-inline: 0.5rem;
}

.activity-list-auto svg,
.course-list-auto svg {
    height: 1rem;
}

.activity-list-options,
.course-list-options,
.folder-list-options {
    color: var(--classroom-text-2);
}


@media (max-width: 768px) {

    .sandbox-item > div,
    .activity-item > div,
    .folder-item > div,
    .course-item > div {
        grid-template-rows: 90px auto;
        width: 160px;
        padding: 0.1em;

    }

    .sandbox-card,
    .activity-card,
    .folder-card,
    .course-card {
        border-radius: 0.6em;
        aspect-ratio: 16/9;
    }


}

.sandbox-card.sandbox-card-fillIn,
.activity-card.activity-card-fillIn {
    background-image: url("../media/cards/card-fillIn.jpg");
}

.sandbox-card.sandbox-card-free,
.activity-card.activity-card-free {
    background-image: url("../media/cards/card-free.jpg");
}

.sandbox-card.sandbox-card-dragAndDrop,
.activity-card.activity-card-dragAndDrop {
    background-image: url("../media/cards/card-dragAndDrop.jpg");
}

.sandbox-card.sandbox-card-quiz,
.activity-card.activity-card-quiz {
    background-image: url("../media/cards/card-quiz.jpg");
}

.sandbox-card.sandbox-card-reading,
.activity-card.activity-card-reading {
    background-image: url("../media/cards/card-reading.jpg");
}


.sandbox-card.sandbox-card-arduino,
.activity-card.activity-card-arduino {
    background-image: url("../media/cards/card-arduino.jpg");
}

.sandbox-card.sandbox-card-microbit,
.activity-card.activity-card-microbit {
    background-image: url("../media/cards/card-microbit.jpg");
}

.sandbox-card.sandbox-card-python,
.activity-card.activity-card-python {
    background-image: url("../media/cards/card-python.jpg");
}

.sandbox-card.sandbox-card-esp32,
.activity-card.activity-card-esp32 {
    background-image: url("../media/cards/card-esp32.jpg");
}

.sandbox-card.sandbox-card-quickpi,
.activity-card.activity-card-quickpi {
    background-image: url("../media/cards/card-quickpi.jpg");
}

.sandbox-card .sandbox-card-top,
.sandbox-card .sandbox-card-bot,
.activity-card .activity-card-top,
.course-card .course-card-top,
.course-card .course-card-bot,
.activity-card .activity-card-bot {
    padding: 0.5em;
    text-align: right;
}

.activity-card .activity-card-top,
.course-card .course-card-top {
    display: inline-flex;
    justify-content: flex-end;
}

.activity-card .activity-card-top img,
.course-card .course-card-top img {
    height: 25px;
    margin: 0 5px;
}

.sandbox-card .sandbox-card-top .dropdown i,
.course-card .course-card-top .dropdown i,
.activity-card .activity-card-top .dropdown i,
.class-card .class-card-top .dropdown i,
#body-table-teach .dropdown i {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#classroom-panel-table-container table.dropdowns-opened thead tr.non-dropdown th,
#classroom-panel-table-container table.dropdowns-opened tbody tr.non-dropdown th {
    z-index: 0;
}


.activity-card .activity-card-bot span {
    font-style: italic;
    font-weight: 500;
    font-size: 0.9em;
    text-shadow: 1px 1px 0px var(--classroom-shadow-1);

}


.sandbox-card .sandbox-card-mid,
.activity-card .activity-card-mid {
    flex-grow: 1;
}

.activity-card .ribbon {
    grid-row-end: 3;
    height: 60%;
    width: 15%;
    position: absolute;
    top: -5px;
    right: 20px;
    filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.2));
}

.activity-card .ribbon .ribbon__content {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--classroom-cell);
    clip-path: polygon(-5% -5%, 105% -5%, 105% 105%, 50% 77%, -5% 105%);
    cursor: help;
    border-radius: 0.3em;
}

.activity-card .ribbon::after {
    content: "";
    top: calc(-100% - 3px);
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 9px);
    display: block;
    background-color: white;
    position: relative;
    z-index: -1;
    border-radius: 0.3em;
    clip-path: polygon(-5% -5%, 105% -5%, 105% 105%, 50% 77%, -5% 105%);
}

.ribbon.ribbon_no_grade .ribbon__content {
    background: var(--classroom-text-2);
}

.ribbon.ribbon_accept .ribbon__content {
    background: var(--correction-3);
}

.ribbon.ribbon_vgood .ribbon__content {
    background: var(--correction-2);
}

.ribbon.ribbon_good .ribbon__content {
    background: var(--correction-1);
}

.ribbon.ribbon_refuse .ribbon__content {
    background: var(--correction-0);
}


@media (max-width: 768px) {

    .activity-card .activity-card-bot span {
        display: block;
        font-size: 0.7em;
        line-height: 1.2em;
    }
    
    .activity-search {
        width: 90%;
    }
    
    .activity-search #filter-activity-select {
        width: 100%;
    }
    
    .folder-card .folder-card-bot span {
        display: block;
        font-size: 0.7em;
        line-height: 1.2em;
    }
}



/* ACTIVITY RESOURCES BANK */

#classroom-dashboard-activities-panel-library-teacher {
    display: flex;
    justify-content: center;
}

#resource-center-classroom #tutorial-item-content {
    max-height: 65vh;
}

/* ACTIVITY CREATE SECTION  */

#activity-creation-grid {
    margin: 20px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 20px 10px;

}

#activity-creation-grid .app-head {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin: 1em 0.5em;
}


#activity-creation-grid .app-card {
    --border-color: var(--classroom-text-2);
    border-radius: 2em;
    text-align: center;

    display: grid;
    grid-template-rows: 128px auto 1fr;
    justify-items: center;

    box-shadow: 0px 0px 10px 0px var(--classroom-shadow-1);
    overflow: overlay;

    padding: 1em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;

}

#activity-creation-grid .app-card:hover {
    border-color: var(--border-color);
}

#activity-creation-grid .app-card .app-card-title {
    font-weight: 600;
    font-size: 1.1em;
    overflow-wrap: anywhere;
}

#activity-creation-grid .app-card .app-card-img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

#activity-custom {
    width: 100%;
    height: 60vh;
}

#lti-loader-container {
    width: 100%;
    height: 100%;
}

/* ACTIVITY CREATE FORM */

.activity-creation-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.dashboard-block>nav>div:nth-child(2) {
    border-bottom: 1px solid var(--classroom-text-1);
    height: 1px;
    align-self: center;
}


.activity-creation-form>div {
    max-width: 60%;
}

/* updated @Rémi */
#dragAndDrop-add-inputs,
#fill-in-add-inputs {
    margin: 0 auto;
    margin-top: 0px;
    display: block;
    border-radius: 0px 0px 1em 1em;
    margin-top: -2px;
    width: auto;
}

#fill-in-tolerance,
#free-tolerance {
    width: 4ch; 
    -moz-appearance: textfield;
    text-align: center;

}

#fill-in-tolerance,
#free-tolerance,
.tolerance-btn {
    border: 1px solid var(--classroom-text-0);
    border-color: var(--classroom-text-0) !important;
    background-color: var(--classroom-background);
    color: var(--classroom-text-0);
}

#fill-in-tolerance::-webkit-outer-spin-button,
#fill-in-tolerance::-webkit-inner-spin-button,
#free-tolerance::-webkit-outer-spin-button,
#free-tolerance::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tolerance-btn {
    padding: 0.1em;
    aspect-ratio: 1 / 1;
    width: 2em;
    height: 2em;
    display: inline-grid;
    justify-items: center;
    align-items: center;
}

.activities-fill-in-square {
    border: solid;
    margin: 3px;
    padding: 10px;
    border-radius: 10px;
}

.drag-and-drop-answer-teacher,
.draggable-items {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--classroom-text-0);
    border-radius: 1em;
    padding: 6px 1.5ch;
    cursor: grab;
    margin-bottom: 0;
    margin-top: 0;
    font-weight: 700;
    align-self: center;
}

.drag-and-drop-answer-teacher {
    background: var(--classroom-background);
    color: var(--classroom-text-0);
    cursor: pointer;
    text-align: center;
    user-select: none;
    margin-bottom: 0.5em;
}

.fill-in-answer-teacher {
    background: var(--classroom-background);
    color: var(--classroom-text-0);
    cursor: pointer;
    text-align: center;
    user-select: none;
    margin-bottom: 0.5em;
}

.droppable-items {
    display: inline-flex;
    border-radius: 1em;
    margin: 0.30em 0;
    min-width: none;
}

.droppable-items:empty {
    border: 1px solid var(--classroom-text-0);
    transform: translateY(50%);
    min-width: 5em;
    min-height: 1.8em;

}

.drag-and-drop-fields {
    border: 1px solid var(--classroom-text-0);
    border-radius: 1em;
    padding: 1em;
}

.drag-and-drop-fields {
    margin-block: 1em;
    min-height: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 10px;
}


.lms-answer,
.answer-student {
    border: var(--classroom-text-0) solid 1px;
    background-color: var(--classroom-background);
    color: var(--classroom-text-0);

    border-radius: 1em;
    padding: 4px 8px;
    width: fit-content;
    display: inline-block;
    margin-bottom: 0.5em;
}

.answer-correct {
    border-color: var(--correction-3);
}

@media (max-width: 768px) {
    .dashboard-block>nav {
        width: 100%;
        justify-content: center;
    }

    .dashboard-block>nav>div:nth-child(1) {
        display: grid;
        grid-auto-flow: column;
        align-items: center;
        width: 100%;
        justify-content: center;
        gap: 1em;
    }


    .dashboard-block>nav>div span:not(.form-activity) {
        display: none;
    }

    .activity-creation-form>div {
        max-width: 85%;
    }

}

/* QCM Styling */

#quiz-content-edit {
    border-radius: 1em;
    border: 1px solid var(--classroom-grey);
    padding: 0.5em 1em;
}

.quiz-form-check {
    --_color: 128,128,128;
    --_bg-opacity: 0;
    
    position: relative; 
    overflow: hidden;
    
    margin: 0.5em;
    padding: 0;
    /* width: 100%; */
    
    border: 1px solid rgb(var(--_color));
    border-radius: 1.25em;
    box-shadow: 0px 0px 6px var(--classroom-shadow-1);
    background-color: rgba(var(--_color), var(--_bg-opacity)); 
    
 
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.quiz-form-check > input.form-check-input {
    position: absolute;
    top: 50%;
    margin-top: 0;
    transform: translateY(-50%);
    left: 3rem;
}

.quiz-form-check > input.form-check-input:checked {
    background-color:rgb(var(--_color));
    border-color: rgb(var(--_color));
}

.quiz-form-check > input.form-check-input:focus {
    border-color:rgb(var(--_color));
    box-shadow: 0 0 0 0.25rem rgba(var(--_color),0.25);
}

.quiz-form-check > label.form-check-label {
    padding: 1em 1.5em;
    padding-left: 3rem;
    user-select: none;
    flex: 1;
}

.quiz-form-check > label.form-check-label > img {
    max-width: 100%;
    height: auto;
}

.quiz-form-check.quiz-answer-correct {
    --_color: var(--correction-3-rgb);
    --_bg-opacity: 0.1;
}

.quiz-form-check.quiz-answer-incorrect {
    --_color: var(--correction-0-rgb);
    --_bg-opacity: 0.1;
}

.answer-correct {
    border-color: var(--correction-3);
    background-color: rgba(var(--correction-3-rgb), 0.1);
}

.answer-incorrect {
    border-color: var(--correction-0);
    background-color: rgba(var(--correction-0-rgb), 0.1);
}

.answer-incorrect,
.answer-correct {
    text-align: center;
    padding: 0 0.3em;
}

/* ACTIVITY ASSIGN FORM */

#introduction-activity-form {
    width: 100%;
    max-width: 80%;
}

#hint-exist-disclaimer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    border: 2px solid var(--classroom-tertiary);

    width: min(50ch, 90%);
    margin: 0 auto 1em;
    padding: 0.5em;
    border-radius: 2em;
}

#hint-exist-disclaimer i {
    background-color: var(--classroom-tertiary);
    color: var(--classroom-white);

    width: 3.2em;
    height: 2em;

    display: grid;
    align-items: center;
    
    border-radius: 50%;
}

.assign-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.assign-row .c-checkbox {
    height: fit-content
}

.assign-row .c-checkbox label {
    margin-bottom: 0em;
}

.assign-info-icon {
    color: var(--classroom-text-2);
    border: 2px solid var(--classroom-text-2);

    width: 2em;
    height: 2em;
    flex-shrink: 0;

    display: grid;
    align-items: center;
    
    border-radius: 50%;
    margin: 0.5em;
}

/* ACTIVITY VIEWING/CORRECTION FORM */

.activity-title {
    font-weight: 700;
    text-align: center;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    text-wrap: balance;
    
    gap: 0.5em;
    margin-bottom: 0px;
}

#activity-auto-disclaimer {
    background-color: var(--classroom-secondary);
    border-radius: 256px;
    border: 2px solid var(--classroom-secondary);
    height: 1em;
    margin: 5px 10px;
}

.activity-details {
    text-align: center;
    font-style: italic;
}

.chrono-icon {
    height: 1rem;
    filter: brightness(0%);
    margin: -0.2rem 0.5rem 0 0;
}

.theme-dark .chrono-icon {
    filter: brightness(0%) invert(1);
}

#activity-content math-field {
    display: inline-block;
}

#activity-correction {
    padding: 0.5em;
    border-radius: 1em;
    box-shadow: 0px 0px 10px var(--classroom-shadow-1);
    margin: .5em;
    overflow: auto;
    position: sticky;
    top: 3.5em;
}

#activity-correction .results-string {
    border-radius: 1em;
    padding: 0.25em 0.5em;
    margin: 0.5em auto;
    background: var(--classroom-cell);
    font-weight: 600;
    color: var(--classroom-white);
    width: fit-content;
}

.giveNote-container {
    padding: 0.5em;
    border-radius: 1em;
    box-shadow: 1px 1px 6px #00000029;
    margin: 0em 0.5em 1em;
    display: flex;
    flex-direction: column;
}

.giveNote-container label:not(:last-child) {
    margin-bottom: 0.5em;
}

.giveNote-container label:last-child {
    margin-bottom: 0em !important;
}

.giveNote-container #givenote-0 {
    accent-color: var(--correction-0);
}
.giveNote-container #givenote-1 {
    accent-color: var(--correction-1);
}
.giveNote-container #givenote-2 {
    accent-color: var(--correction-2);
}
.giveNote-container #givenote-3 {
    accent-color: var(--correction-3);
}
.giveNote-container #givenote-4 {
    accent-color: var(--classroom-text-2);
}

/* ACTIVITY RESULTS */

.results-panel {

    display: flex;
    align-content: center;
    flex-direction: column;
}

.results-panel img {
    height: 30em;
    object-fit: scale-down;
    margin: 2em;
}

.results-panel p {
    font-size: 1.5em;
    color: var(--classroom-text-1);
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
}

.result-text {
    font-size: 1em !important;
    color: var(--classroom-text-1);
    text-align: center;
    text-transform: none !important;
    font-weight: 600;
}

.results-panel p i {
    margin: 0.5em;
}

.results-fail p i {
    color: var(--correction-fail);
}

.results-success p i {
    color: var(--correction-success);
}

.results-correcting p i {
    color: var(--classroom-secondary);
}


/* ACTIVITY END */

/* ACTIVITY ATTRIBUTION START */

#list-student-attribute-modal>div {
    border-bottom: solid 1px var(--classroom-cell);
    font-weight: bolder;
    margin: 0.5em;
}

#list-student-attribute-modal .student-list-row {
    display: grid;
    grid-template-columns: 1fr auto;

}

#list-student-attribute-modal .student-list-row>.c-checkbox {
    flex-grow: 2;

}

#list-student-attribute-modal .student-list-button {
    float: right;
    width: 2em;
    height: 2em;

}

#list-student-attribute-modal .student-list {
    display: flex;
    flex-direction: column;
    border-top: solid 1px var(--classroom-cell);
    width: 100%;
}

#list-student-attribute-modal .student-list>.student-attribute-form-row {
    padding: 0.5em 0;
    display: flex;
    align-items: center;
}

#list-student-attribute-modal .student-list>.student-attribute-form-row:not(:last-child) {
    border-bottom: solid 1px var(--classroom-cell);
}

#list-student-attribute-modal .student-list>.student-attribute-form-row img {
    height: 2.5em;
    width: auto;
    margin-right: 0.5em;
    border-radius: 50%;
    background-color: var(--classroom-white);
}

/* ACTIVITY/COURSE VIEW */

.course-state {
    display: flex;
    height: 1.5em;
    width: 100%;
    margin-block-end: 1em;
}

.course-state .course-state-item {
    flex-grow: 1;
    border-radius: 100vh;
    margin: 0.25em;
    display: flex;
    background-color: var(--classroom-background-1);
}

.course-state .course-state-item.course-state-done {
    height: 100%;
    border-radius: 100vh;
    background-color: var(--classroom-primary);
}

.course-state .course-state-item.course-state-todo {
    height: 100%;
    border-radius: 100vh;
    background-color: var(--classroom-cell);
}


.activity-content img {
    max-width: 100%;
}

/* CLASSROOM START */

.class-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 302px;
    height: 170px;
    cursor: pointer;
    margin: 0.4em 0;
}

.class-card {
    height: 100%;
    width: 100%;
    border-radius: 1.2em;
    border: 3px solid var(--classroom-primary);
    color: var(--classroom-primary);

    justify-content: space-between;
    display: flex;
    flex-direction: column;
}

.class-item .class-card-action {
    height: 200px;
    width: 80%;
    background-color: var(--classroom-white);
    border-radius: 1.2em;
    color: var(--classroom-text-2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.class-item .class-card-action h4 {
    text-transform: uppercase;
    font-weight: 700;
}


.class-card .class-card-mid {
    flex-grow: 1;
    font-size: larger;
}

.class-card .class-card-top,
.class-card .class-card-bot {
    padding: 0.5em;
}


.class-card .class-card-top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.class-card .class-card-bot {
    text-align: center;
}


/* CLASSROOM CREATE FORM */

.class-creation-form,
.class-creation-form-step2 {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.class-creation-form h3 {
    text-transform: uppercase;
    color: var(--classroom-secondary);
}

.table-students {
    border: solid 2px var(--classroom-primary);
    border-radius: 0.5em;
    padding: 1em;
    max-height: 38vh;
    overflow-y: scroll;

}

.table-students ul {
    list-style-type: none;
    margin: 0 2em;
    padding: 0;

}

.class-creation-form-step2 {

    justify-content: space-around;
    height: 80%;
    width: 100%;
}

.class-creation-form-step2 .buttons {

    display: flex;
    width: 45%;
    justify-content: inherit;
}

.class-creation-form-step2 .buttons button {
    padding: 0.5em;
}

/* CLASS STATS PANEL */

.class-stats-panel {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 90%;
    width: 100%;
    max-height: 100%;
}

.class-stats-panel #classroom-panel-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    overflow-x: auto;
    max-width: 100%;
}


.class-stats-panel .global-class-stats {
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    padding: 0.5em;
    margin: 0.5em;
    width: 640px;
    box-shadow: 0px 0px 10px var(--classroom-shadow-1);
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -o-user-select: none;
}

.class-stats-panel .global-class-stats .stat-element {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0 20px;
}

.class-stats-panel .global-class-stats .stat-element span.todo-ring,
.class-stats-panel .global-class-stats .stat-element span.done-ring,
.class-stats-panel .global-class-stats .stat-element .average-ring {
    flex-shrink: 0;

}

.class-stats-panel .global-class-stats .stat-element span.todo-ring,
.class-stats-panel .global-class-stats .stat-element span.done-ring {
    display: flex;
    justify-content: center;
    align-items: center;

    border: 2px solid var(--classroom-text-1);
    color: var(--classroom-text-1);
    border-radius: 50%;

    width: 50px;
    height: 50px;
    margin: 1px 10px;

    font-weight: 700;
    font-size: 1.2em;
}

.class-stats-panel .global-class-stats .stat-element span.todo-ring-label,
.class-stats-panel .global-class-stats .stat-element span.done-ring-label,
.class-stats-panel .global-class-stats .stat-element span.average-ring-label {
    font-weight: 200;
    font-size: initial;
    font-style: oblique;
    text-transform: uppercase;
    word-wrap: break-word;
    max-width: 96px;
}

.class-stats-panel .global-class-stats .stat-element span.todo-ring {
    border: 2px solid var(--correction-0);
    color: var(--correction-0);
}

.class-stats-panel .global-class-stats .stat-element span.done-ring {
    border: 2px solid var(--correction-3);
    color: var(--correction-3);
}

.class-stats-panel .global-class-stats .stat-element .average-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.class-stats-panel #classroom-panel-table-container {
    overflow: auto;
    margin: 10px;
    max-width: 80%;
    width: 100%;
    flex-grow: 1;
}

.class-stats-panel #classroom-panel-table-container table {
    border-spacing: 5px;
    border-collapse: separate;
    table-layout: fixed;
}

.class-stats-panel table thead th {
    position: sticky;
    top: 5px;
    left: 5px;
    z-index: 10;
    background-color: var(--classroom-background);
    box-shadow: 0 -5px 0 var(--classroom-background);
}

.class-stats-panel table tr th:first-child {
    position: sticky;
    left: 5px;
    z-index: 20;
}

.class-stats-panel #classroom-panel-table-container .table-title {
    font-size: 2em;
    font-weight: 800;
    text-align: center;
    z-index: 25;
}

.class-stats-panel #classroom-panel-table-container #header-table-teach th:not(.user-cell-container) {
    /*width: 7em;*/
    text-transform: uppercase;
    font-size: 0.9em;
    color: var(--classroom-text-0);
    text-align: center;

}

.border-header-class {
    border: solid #c0c0c0 1px;
    border-radius: 3px;
}

.class-stats-panel .user-cell-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    padding: 0.7em;
    margin: 0;
    width: 243px;

    border: 1px solid var(--classroom-cell);
    border-radius: 10px;
    color: var(--classroom-text-0);
    background: var(--classroom-background);
    box-shadow: -5px 0px 0px 7px var(--classroom-background);
    font-weight: 400;

}

.class-stats-panel .user-cell-container .user-cell-username {
    margin-left: 0.5em;
}

.class-stats-panel .user-cell-container i {
    font-size: 1.5em;
}

.class-stats-panel .user-cell-container .dropdown {
    color: var(--classroom-text-2);
}

#is-anonymised {
    left: 0px !important;
}

.bilan-legend {
    width: 15px;
    height: 30px;
    border-radius: 5px;
    vertical-align: bottom;
    margin: 0 3px;
    margin-top: 2px;
    display: inline-block;
    line-height: 32px;
}

.bilan-legend.fas::before {
    color: var(--classroom-text-2);

    vertical-align: bottom;

}

.span-act,
.i-act {
    color: var(--classroom-text-1);
    text-align: center;
}



.bilan-cell {
    min-height: 30px;
    min-width: 30px;
    border: solid 1px transparent;
    border-radius: 10px;
    text-align: center;
    transition: all 0.1s ease-in-out;
}

/* Classroom result with only an icon */

.bilan-cell.fas {
    display: table-cell;
    border: solid 1px var(--classroom-cell);
    color: var(--classroom-text-2);
}

.bilan-cell.stopwatch {
    color: white;
    background: #cccccc center no-repeat url("../media/icon_on_hold.svg");
}

.bilan-cell.startwatch {
    color: white;
    background: #cccccc center no-repeat url("../media/icon_time_spent.svg");
}

.bilan-4,
.status-4 {
    border-color: transparent;
    background-color: var(--classroom-text-2);
}

.bilan-3,
.status-3 {
    border-color: transparent;
    background-color: var(--correction-3);
}

.bilan-2,
.status-2 {
    border-color: transparent;
    background-color: var(--correction-2);
}

.bilan-1,
.status-1 {
    border-color: transparent;
    background-color: var(--correction-1);
}

.bilan-0,
.status-0 {
    border-color: transparent;
    background-color: var(--correction-0);
}

/* Monochrome classroom results */

#body-table-teach.is-monochrome tr {
    height: 100%;
}

.is-monochrome .bilan-4,
.is-monochrome .status-4 {
    border-radius: 5px;
}

.is-monochrome .bilan-3,
.is-monochrome .status-3,
.is-monochrome .bilan-2,
.is-monochrome .status-2,
.is-monochrome .bilan-1,
.is-monochrome .status-1,
.is-monochrome .bilan-0,
.is-monochrome .status-0 {
    border-color: var(--classroom-primary);
    background-color: var(--classroom-white);
    border-width: 2px;
    height: 100%;
    position: relative;
    border-radius: 5px;

}

#legend-container.is-monochrome .bilan-4,
#legend-container.is-monochrome .status-4 {
    border-radius: 2px;
}

#legend-container.is-monochrome .bilan-3,
#legend-container.is-monochrome .status-3,
#legend-container.is-monochrome .bilan-2,
#legend-container.is-monochrome .status-2,
#legend-container.is-monochrome .bilan-1,
#legend-container.is-monochrome .status-1,
#legend-container.is-monochrome .bilan-0,
#legend-container.is-monochrome .status-0 {
    background-color: var(--classroom-white);
    outline: solid 1px var(--classroom-primary);
    height: 30px;
    border-radius: 2px;
}

.is-monochrome .bilan-4 .monochrome-grade-div,
.is-monochrome .status-4 .monochrome-grade-div,
.is-monochrome .bilan-3 .monochrome-grade-div,
.is-monochrome .status-3 .monochrome-grade-div,
.is-monochrome .bilan-2 .monochrome-grade-div,
.is-monochrome .status-2 .monochrome-grade-div,
.is-monochrome .bilan-1 .monochrome-grade-div,
.is-monochrome .status-1 .monochrome-grade-div,
.is-monochrome .bilan-0 .monochrome-grade-div,
.is-monochrome .status-0 .monochrome-grade-div {
    background: var(--classroom-primary);
    height: 13%;
    margin: 20% auto;
    width: 85%;
    min-height: 7px;
}

#legend-container.is-monochrome .monochrome-grade-div {
    min-height: unset;
}

.is-monochrome .bilan-0,
.is-monochrome .status-0 {
    border-color: var(--classroom-primary);
    background-color: var(--classroom-white);
    border-width: 2px;
}

.is-monochrome .bilan-4 .monochrome-grade-div,
.is-monochrome .status-4 .monochrome-grade-div {
    background-color: transparent;
}

.is-monochrome .bilan-2 .monochrome-grade-div:nth-child(1),
.is-monochrome .status-2 .monochrome-grade-div:nth-child(1) {
    background-color: transparent;
}

.is-monochrome .bilan-1 .monochrome-grade-div:nth-child(1),
.is-monochrome .status-1 .monochrome-grade-div:nth-child(1),
.is-monochrome .bilan-1 .monochrome-grade-div:nth-child(2),
.is-monochrome .status-1 .monochrome-grade-div:nth-child(2) {
    background-color: transparent;
}

.is-monochrome .bilan-0 .monochrome-grade-div:nth-child(1),
.is-monochrome .status-0 .monochrome-grade-div:nth-child(1),
.is-monochrome .bilan-0 .monochrome-grade-div:nth-child(2),
.is-monochrome .status-0 .monochrome-grade-div:nth-child(2),
.is-monochrome .bilan-0 .monochrome-grade-div:nth-child(3),
.is-monochrome .status-0 .monochrome-grade-div:nth-child(3) {
    background-color: transparent;
}

.open-ide:hover {
    filter: grayscale(0.70);
}

.open-ide {
    cursor: pointer;
}

.no-activity {
    border: solid 1px var(--classroom-cell);
    background-color: transparent;
}


.classroom-link {
    font-weight: 800;
}

#classroom-panel-legend {
    display: grid;
    overflow-x: auto;
    overflow-y: hidden;
    min-height: 5em;
    padding-bottom: 3em;
    max-width: 100%;
    grid-template-columns: auto max-content;
}

#classroom-panel-legend #add-student-container,
#classroom-panel-legend #export-class-container {
    text-align: center;
}

#classroom-panel-legend #export-class-container {
    grid-column-start: 1;
    grid-row-start: 2;
}

#classroom-panel-legend #legend-container {
    grid-column-start: 2;
    grid-row-start: 1;
    grid-row-end: 3;
}


#classroom-panel-legend ul {
    margin-bottom: 5px;
}


#classroom-info {
    border-radius: 10px;
    padding: 0.5em;
    margin: 0.5em;
    width: 70%;
    box-shadow: 0px 0px 10px var(--classroom-shadow-1);

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    text-align: center;

}

#classroom-info>button:first-child,
#classroom-info>button:last-child {
    width: 40px;
    height: 40px;
    text-align: center;
}

#classroom-info .blocking-class i {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: large;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background: orange;
    color: var(--classroom-white);
}

#classroom-info>div {

    margin: 0px 0.5em;
}

#classroom-info .classroom-link {
    padding: 5px;
    border-radius: 0.7em;
    border: 2px solid var(--classroom-secondary);
    text-transform: uppercase;
    margin-left: 0.5em;
}


#body-table-bilan {
    height: 30px;
}

@media (max-width: 768px) {
    .class-stats-panel {
        height: calc(100vh - 110px - 2.5em);
        max-height: unset;
        width: unset;
    }

    .class-stats-panel #classroom-panel-table-container {
        width: 100%;
        max-width: 100%;
    }

    #classroom-info {
        width: 100%;
    }
}

@media (max-width: 900px) {
    #classroom-info {
        flex-wrap: wrap;
        width: 95%;
    }

    #classroom-info>* {

        order: 1;
    }

    #classroom-info>div {
        width: 100%;
        order: 0;
    }

}

/* CLASSROOM SHARE PANEL */

#classroom-code-share-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 2px solid var(--classroom-cell);
    border-radius: 1em;
    position: relative;
    max-width: 80%;
}

#classroom-code-share-container #code-share-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -50%);
    background-color: var(--classroom-cell);
}

#classroom-code-share-container > div{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1em;
}

#classroom-code-share-container > div > span {
    width: 70%;
    font-size: 1.3em;
    text-align: center;
}

#classroom-code-share-container > div:nth-child(2) {
    border-right: 2px solid var(--classroom-cell);
}

#classroom-table-panel-teacher-code .classroom-link {
    color: var(--classroom-secondary);
    text-transform: uppercase;
    font-size: 4em;
    font-weight: 600;
}

#classroom-table-panel-teacher-code #classroom-code-share-qr-code {
    padding: 0.5em;
    border-radius: 0.7em;
    background-color: var(--classroom-white);
    width: 20ch;
    height: 20ch;
}

#classroom-table-panel-teacher-code #classroom-code-share-qr-code canvas {  
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 900px) {
    #classroom-code-share-container {
        grid-template-columns: 1fr;;
    }

    #classroom-code-share-container > div:nth-child(2) {
        border-right: 0;
        border-bottom: 2px solid var(--classroom-cell);
    }

    #classroom-code-share-container > div > span {
        width: 90%;
    }

    #classroom-table-panel-teacher-code .classroom-link {
        font-size: 3em;
    }
}


/* CLASSROOM END */

/* STUDENT ACTIVITY VIEW */

#warning-icon-container {
    width: 20px;
    height: 20px;

    font-size: 13px;

    display: inline-block;

    text-align: center;
    position: relative;

    bottom: 13px;
    right: 20px;

    border-radius: 50%;
   
    cursor: pointer;
    margin: 14px 0px 0px 8px;

    background-color: var(--classroom-background);
    border: 1px solid var(--classroom-cell);
}

#warning-icon-container i {
    width: 100%;
    height: 100%;
}

#warning-icon-container #warning-icon-evaluation {
    color: var(--classroom-red);
}

#warning-icon-container #warning-icon-no-evaluation {
    color: var(--classroom-green);
}

/* STUDENT HELP START */

.help-panel,
.help-panel-student {
    display: flex;
    flex-direction: row;
    margin-top: 0px;
    height: 100%;
    overflow: hidden;
    align-items: center;
}

.contact-panel {
    padding: 0px 20px;
    flex: 1;
    overflow-y: auto;
    max-height: 100%;
}

.faq-panel {
    background: var(--classroom-cell);
    border: 2px solid var(--classroom-secondary);
    flex: 1;
    overflow: auto;
    height: 90%;
    border-radius: 2em 0 0 2em;
}

.faq-panel::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

.faq-panel::-webkit-scrollbar-track {
    background: var(--classroom-cell);
}

.faq-panel::-webkit-scrollbar-thumb {
    background-color: var(--classroom-background);
    border-radius: 6px;
    border: 3px solid transparent;
}

.faq-panel .kit-faq-box {
    background: var(--classroom-background);
    border: 1px solid #cccccc;
    color: solid(--classroom-text-1);
    padding: 15px 1em;
}

.faq-panel .faq-box-dropdown {

    background: transparent;
    color: #cccccc;
    border: 1px solid #cccccc;

}

.faq-img-center {
    display: block;
    margin: 0 auto;
}

#teacher-faq-container,
#student-faq-container {
    padding: 0px 20px;
}

#classroom-dashboard-content #footer-content {
    margin-top: 2em;
    text-align: center;
}

#classroom-dashboard-content .footer-link,
#classroom-dashboard-content #footer-content div {
    color: var(--classroom-text-1);
    opacity: 0.7;
    font-weight: 600;
}

#classroom-dashboard-content .footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 1000px) {

    .help-panel,
    .help-panel-student {
        display: flex;
        flex-direction: column;
        margin-top: 2.5em;
        height: auto;
        overflow: auto;
    }

    .faq-panel {
        border: none;
        background: none;
        position: relative;

    }

    .faq-panel:before {
        content: '';
        position: absolute;
        top: 0px;
        left: 25%;
        width: 50%;
        border-bottom: 3px solid var(--classroom-secondary);
        border-radius: 255em;
    }


}

/* OTHERS */

/* NOT USED -> MAYBE CAN WE DELETE THIS ? */
.table-students {
    border: solid 2px var(--classroom-primary);
}


#home-container #vitta-footer {
    position: static;

}

.greyscale {
    filter: grayscale(1) !important;
}

.close-login-classroom {
    position: absolute;
    right: 0px;
    top: -10px;

    height: 50px;
    width: 50px;

    border-radius: 50%;
    background: transparent;
    color: var(--bg-5);
    font-size: 40px;
    border: var(--bg-5);

    background: var(--classroom-background);
}

.help-sign {
    font-size: 1.5em;
    color: var(--txt-2);
    border-radius: 50%;
}

.dropdown-act {
    cursor: pointer;
}

.breakline {
    display: none;
}

@media (max-width: 800px) {
    #interactive-elements-container {
        display: none;
    }

    #heading-container {
        margin-top: 30vh;
    }

    #home-jumbotron {
        height: auto;
    }

    .breakline {
        display: inline;
    }

    #home-jumbotron h1 {
        margin-top: 1em;
        font-size: 50px;
        width: 80%;
    }
}

.disabled {
    background-color: #008447;
}


.wysibb {
    color: #333;
}


.dropdown-act.ml-5 {
    cursor: auto;
}

.switch-pwd {
    color: var(--classroom-text-1);
    font-size: 1.5em;
}

.switch-pwd:hover {
    color: var(--bg-3);
}

.pwd-display-stud {
    padding: .25rem 1.5rem;
    clear: both;
    font-weight: 400;
}

/* Teacher account panel */
.form-input-error {
    border-color: var(--classroom-red) !important;
    color: var(--classroom-red) !important;
}

#new-activity-attribute {
    z-index: 11;
    position: relative;
}

.preview-container {
    border: 1px solid var(--classroom-primary);
    border-radius: 1em;
    padding: 1em;
}

.preview-container h3 {
    display: none;
} 


.space-evenly {
    justify-content: space-evenly;
}

.app-media-galery {
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    min-height: 25%;
}

.seach-app-galery{
    width: 100%;
}

/* Courses */

.activity-item-courses, .preview-activity-in-courses {
    border: 1px solid var(--classroom-primary);
    border-radius: 1em;
    padding: 1em;
    height: auto;
    margin-bottom: 1em;
}

.course-activities-content  {
    border: 1px solid black;
    border-radius: 1em;
    padding: 1em;
    min-height: 5em;
    height: auto;
    margin: auto;
    margin-bottom: 1em;
}

.course-content {
    margin: auto;
}

.btn-delete-course {
    float: right !important;
    margin-top: 0.8em;
}

.course-activity-search {
    margin: 1em auto;
}

.course-activities-result {
    border: 1px solid #259D68;
    border-radius: 10px;
    opacity: 1;
}

.course-activities-result-activity {
    padding: 1em;
    height: auto;
    margin-bottom: 1em;
    display: flex;
}

.preview-result-course-activity-title {
    border: 1px solid #00000030;
    border-radius: 10px;
    cursor: grab;
}


.course-activities-result p {
    padding: 0.5em;
    font-size: 1em;
    margin-bottom: 0;
    text-align: center;
    font-weight: bold;
}

.bilan-cell-course {
    min-height: 30px;
    min-width: 30px;
    margin: 0 0.4em;
    height: 100%;
    border: solid 1px transparent;
    border-radius: 10px;
    text-align: center;
    transition: all 0.1s ease-in-out;
}

.course-texte-result {
    font-weight: bold;
}

.course-text-success {
    text-align: center;
    font-weight: bold;
    color: var(--classroom-primary);
}

#Calque_2 {
    height: 30px;
}

.image-vh {
    height: 40vh !important;
}

.activity-custom-content {
    display: flex;
    justify-content: center;
}


.math-field-aligned {
    top: 0.5em;
}

.switcher {
    display: flex;
    flex-direction: row;
    height: 40px;
    margin-top: 3px;
    padding: 4px;
    background: var(--bg-1);
    border-radius: 2px;
    min-width: 200px;
    border-radius: 30px;
    border: solid 1px #ddd;
    position: relative;
}

.switcher__input {
    display: none;
}

.switcher__label {
    min-width: 95px;
    font-size: 12px;
    line-height: 30px;
    color: var(--text-1);
    text-align: center;
    cursor: pointer;
    position: inherit;
    z-index: 10;
    transition: color 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform;
}

.switcher__toggle {
    position: absolute;
    float: left;
    height: 30px;
    width: 95px;
    font-size: 12px;
    line-height: 30px;
    cursor: pointer;
    background-color: var(--classroom-primary);
    border-radius: 30px;
    left: 5px;
    top: 4px;
    transition: left 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform;
}

.switcher__input:checked+.switcher__label {
    color: #fff;
}

.switcher__input:checked+.switcher__label {
    color: #fff;
}

.switcher__input--right:checked~.switcher__toggle {
    left: calc(100% - 99px);
}

.switcher__input--middle1:checked~.switcher__toggle {
    left: 99px;
}

.switcher__input--middle2:checked~.switcher__toggle {
    left: calc((95px * 2) + 4px);
}

.switcher__input--middle3:checked~.switcher__toggle {
    left: calc((95px * 3) + 4px);
}

.switcher__input--middle4:checked~.switcher__toggle {
    left: calc((95px * 4) + 4px);
}

.mnh-2-5 {
    min-height: 2.5em;
}

.w-fit-content {
    width: fit-content;
}


.fw7-primary {
    font-weight: 700;
    color: var(--classroom-primary);
}

.fw7-secondary {
    font-weight: 700;
    color: var(--classroom-secondary);
}

.fw7-uncolored {
    font-weight: 700;
}

.hint-one-page-course {
    text-align: center;
    border: 1px solid var(--classroom-secondary);
    border-radius: 50px;
    padding: 0.5em;
}

.one-page-course-activity-block {
    padding: 2em 3em;
    margin: 2em 0;
}

.simple-background {
    background: var(--classroom-background);
}

.tooltip {
    z-index: 30000;
}

.dropdown-menu.show {
    transform: translate(0px, 50px) !important;
}

.half-opacity {
    opacity: 0.5;
}

.full-opacity {
    opacity: 1;
}

