/* -------------------------------------------------------------------------------- */
/* ! Desktop */
/* -------------------------------------------------------------------------------- */

/* General styles */

body {
  margin: 0;
  padding: 0;
  font-family: "Raleway", sans-serif;
  background-image: url("../images/sfondo.png");
}

a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-overflow: ellipsis;
  max-width: 100%;
  text-decoration: none;
  cursor: pointer;
  color: #2359bf;
}

.link {
  color: #2359bf;
}

.link:hover {
  color: #44549c;
  text-decoration: underline;
}

a:hover {
  color: #44549c;
  text-decoration: underline;
}

h1,
h2 {
  font-family: "khand", sans-serif;
  color: #44549c;
}

.h1,
h1 {
  font-size: 2.5rem;
}

.h2,
h2 {
  font-size: 2rem;
}

h3 {
  margin: 20px 0px 20px 0px;
  font-size: 18px;
  padding: 10px;
}

h4 {
  margin: 20px 0px 20px 0px;
  font-size: 16px;
  padding: 10px;
}

button {
  background-color: #44549c;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin-right: 5px;
  margin-left: 5px;
  cursor: pointer;
  box-sizing: border-box;
}

.button {
  background-color: #44549c;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  display: inline-block;
  margin-right: 10px;
}

.button:hover {
  background-color: #000000;
}

form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.action-button {
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 25px;
  font-size: 18px;
  cursor: pointer;
  border: none;
  margin-left: 5px;
  color: #ccc;
}

.remove-item-button:hover {
  color: #ff8080;
}

.add-item-button:hover {
  color: #80ff80;
}

button {
  background-color: #44549c;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin-right: 5px;
  margin-left: 5px;
  cursor: pointer;
}

button:active {
  background-color: #44549c;
}

button:hover {
  background-color: #44549c;
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 0;
  border: 1px solid #cccccc;
  box-sizing: border-box;
  font-size: 14px;
  margin-bottom: 10px;
}

textarea {
  height: 100px;
}

input[type="submit"] {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #007bff;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

input[type="submit"]:hover {
  background-color: #44549c;
}

.button-container {
  display: flex;
  justify-content: center;
}

.centered-wide-button {
  width: 100%;
}

.radio-buttons input[type="radio"] {
  display: inline-block;
  margin-right: 5px;
  transform: scale(1.5);
  position:relative;
  top:1px;
}

.radio-buttons label {
  display: inline-block;
  margin-right: 15px;
}

.checkboxes label {
  display: block;
  margin-bottom: 2px;
}

.btn {
  display: inline-block;
  font-weight: 400;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
  border: 1px solid #007bff;
  padding: 10px 20px;
  margin-right: 10px;
  border-radius: 5px;
}

a.btn.btn-primary:focus {
  background-color: #44549c !important;
  border-color: transparent !important;
}

.btn-primary:hover {
  background-color: #44549c;
}

.btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  padding: 10px 20px;
  margin-right: 10px;
  border-radius: 0;
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group label {
  font-weight: normal;
}

.form-group input[type="checkbox"] {
  margin-right: 5px;
  transform: scale(1.5);
  position:relative;
  top:1px;
}

.error-message {
  color: red;
  margin-top: 5px;
}

.success-message {
  color: green;
  margin-top: 5px;
}

select {
  padding: 10px;
}

/* Header styles */

header {
  background-color: #44549c;
  color: #ffffff;
  padding: 0px;
  text-align: center;
  margin: 0;
}

header img {
  padding-top: 25px;
}

/* Menu styles */

#menu {
  background-color: #212121;
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

nav.menu-buttons {
  width: 40%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  margin: auto;
  padding: 10px;
}

nav.menu-buttons button {
  color: #ffffff;
  background-color: #212121;
  border: none;
  padding: 10px 15px;
  margin: 0 5px;
  font-size: 18px;
}

/* Avoid "snoozing" of the menu links by text-shadow instead of bold */
nav.menu-buttons button:hover {
  text-shadow: 0.25px 0 #fff, -0.25px 0 #fff, 0 0.25px #fff, 0 -0.25px #fff;
}

#homeButton,
#aboutButton,
#contactButton,
#loggedinButton,
#logoutButton,
#loginButton {
  text-transform: uppercase;
}

.menu-buttons .active {
  border-bottom: 3px solid white;
  padding-top: 13px;
}

.lang-form {
  display: block;
  margin: 0;
  background-color: transparent;
  padding: 0;
}

/* MainContainer styles */

.mainContainer {
  max-width: 1100px;
  margin: 40px auto;
  padding: 50px;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.teacherContainer {
  margin: 40px auto;
  padding: 50px;
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.container a {
  color: #fff;
  background-color: #212121;
}

.container a:hover {
  background-color: #44549c;
}

.step0-btn a {
  color: #fff;
  background-color: #212121;
}

.step0-btn a:hover {
  background-color: #44549c;
}

.controls {
  padding: 0;
  background: none;
  font-size: 1rem;
}

.session-info {
  background-color: #354174;
  color: #fff;
  padding: 10px;
  margin-left: 10px;
}

.note {
  font-size: 80%;
}

.schools-section {
  margin-bottom: 30px;
}

.item-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.item-text {
  flex: 1;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Hide "-" icon for the first item */
.item-container:first-child .remove-item-button {
  display: none;
}

/* Unique link section */
.unique-link {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.unique-link input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.unique-link button {
  background-color: #44549c;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-left: 10px;
}

.unique-link button:hover {
  background-color: #0069d9;
}

.alert-message {
  background-color: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 5px;
  margin-top: 20px;
  text-align: center;
}

.container h1 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.container p {
  margin: 0;
  padding: 10px;
}

.unique-link {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.unique-link input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.unique-link button {
  background-color: #44549c;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-left: 10px;
}

/* Style for the dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Style for the dropdown button */
.dropbtn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: white;
}

.dropdown-content {
  display: none;
  position: absolute;
  width: 100%;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Style for dropdown links */
.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content.loggedout a {
  display: block;
  width: 100%;
}

.dropdown-content.loggedout a:hover {
  background-color: #44549c;
  color: #fff;

  z-index: 2;
}

/* Target the 'Logout' link when the 'Logged in as' button is hovered */
.dropbtn.loggedin:hover + .dropdown-content.loggedout a {
  background-color: white;
  color: #333;
}

/* Style for dropdown links on hover */
.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Show the dropdown content when the dropdown button is clicked */
.dropdown:hover .dropdown-content {
  display: block;
}

.link-container {
  width: 80%;
  padding: 5px;
}

#ml-insights p{
  padding-left: 20px;
}

.class-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 500px;
  margin: auto;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 0px;
}

.class-item {
  border-bottom: 1px solid #ccc;
  text-align: left;
  padding: 10px;
}

.class-item.active {
  background-color: #ffffff;
  /* White background for active (expanded) item */
  border-color: #ccc;
  /* Border color for active (expanded) item */
}

.class-item:not(.active):hover {
  border-color: #ccc;
  /* Border color on hover for non-active (collapsed) items */
}

.class-details p {
  font-size: 14px;
}

.class-name {
  color: #0069d9;
  cursor: pointer;
  text-decoration: underline;
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  text-align: center;
}

.class-details {
  display: none;
}

.link-container {
  display: flex;
  flex-direction: column;
  text-align: center;
  width: 100%;
}

.link-text {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  margin-bottom: 5px;
}

.copy-button {
  background-color: #44549c;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  width: 100%;
}

.copy-button:hover {
  background-color: #44549c;
}

.sidebar {
  border-radius: 0 0 5px 0;
  background-color: #ffffff;
  width: 350px;
  padding: 20px;
  min-height: 135px;
  position: fixed;
  top: 135px;
  max-height: calc(100vh - 135px);
  left: 0;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

/* Style for the content area */
.content {
  margin-left: 350px;
  padding: 20px;
  min-height: calc(100vh - 60px);
  /* Subtract footer height and header height */
}

/* Additional styles for the sidebar */
.sidebar h2 {
  margin-bottom: 10px;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
}

/* Style for the create class button */
.create-class-button {
  margin-top: 20px;
  width: 100%;
  color: #fff;
  background-color: #000;
}

/* Mobile banner styles */
.mobile-banner {
  display: none;
  background-color: #ffcccb;
  color: #333;
  text-align: center;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
}

/* Style for the parent container */
.parent-container {
  display: flex;
}

table {
  width: 100%; /* Utilisez 100% de la largeur disponible */
  border-collapse: collapse; /* Pour un aspect plus compact et net */
}

#student-table thead {
  /*border-bottom: 1px solid #212529;*/
  background-color: #fff;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
}

/* Using a pseudo-element for the border */
/*#student-table thead ::after {
  /*content: '';
  /*display: block;
  /*height: 1px;*/ /* Height of the border */
  /*background: black;*/ /* Color of the border */
  /*width: 100%;*/ /* Full width */
  /*position: absolute;*/
  /*bottom: -2px;*/ /* Position it right at the bottom */
/*}*/

/* Table cell styles */
.student-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

/* Alternating row background color */
.student-table tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Hover effect for rows */
.student-table tbody tr:hover {
  background-color: #ddd;
}

.button-add-student {
  position: relative;
  top: 120px;
  margin-top: 20px;
}

#student-table-body tr:nth-child(odd) {
  background-color: #fff;
}

#student-table-body tr:nth-child(even) {
  background-color: #f2f2f2;
}

#qualifications {
  width: 90%;
}

#education-level {
  max-width: 100%;
}

.admin-table {
  overflow-x: auto;
}

.admin-list {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

/* Table header styles */
.admin-list th {
  background-color: #f2f2f2;
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

/* Table cell styles */
.admin-list td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

/* Alternating row background color */
.admin-list tbody tr {
  cursor: pointer;
}

.admin-list tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Hover effect for rows */
.admin-list tbody tr:hover {
  background-color: #ddd;
}

.top-half {
  height: 50%;
}


.bottom-half {
  height: 50%;
  /* overflow-y: auto; */ /*TO REMOVE (?)*/
}

#students-dataframe-section {
  overflow-y: auto;
}

.admin-container {
  margin-top: 50px;
}

.admin-container label {
  margin: 0;
  padding: 10px;
}

.admin-container select {
  margin: 0;
  padding: 10px;
}

.table-cell {
  padding: 15px;
}

#student-table th {
  padding: 15px;
}

.refresh-button {
  background-color: #000;
  color: white;
  border: 1px solid #007bff;
  padding: 10px 15px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 15px 0px 2px 2px;
  cursor: pointer;
  position: inherit;
  border-radius: 5px;
}

.refresh-button:hover {
  background-color: #44549c;
}

#student-table {
  width: 100%;
}

.show-link {
  color: #0069d9;
  text-decoration: underline;
  cursor: pointer;
}

.show-link:hover {
  text-decoration: none;
}

.project-container {
  display: flex;
  max-width: 800px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.project-description p {
  margin-top: 5px;
}

.project-description strong {
  color: #333;
  font-weight: bold;
}

.project-description a {
  color: #44549c;
  text-decoration: none;
  font-weight: bold;
}

.project-description a:hover {
  text-decoration: underline;
}

.capitalize {
  text-transform: capitalize;
}

.hint-text {
  color: #777;
  font-size: 14px;
  padding: 0px;
}

.more {
  margin-top: 0;
  margin-left: 0;
}

/* Footer styles */

footer {
  font-size: 14px;
  background-color: #efeef2;
  padding: 20px 0 10px 0;
  text-align: center;
  width: 100%;
}

footer div {
  width: 95%;
  justify-content: center;
  margin: auto;
}

footer strong {
  color: #44549c;
  font-weight: bold;
}

footer p {
  color: #44549c;
  font-size: 12px;
  font-weight: bold;
}

.banner-text {
  font-size: 12px;
  font-weight: 400;
  text-align: center;
}

.logo-eu {
  max-height: 50px;
  margin-right: 10px;
  margin-left: 20px;
}

/* -------------------------------- */
/* ! Design of the flashes messages */
/* -------------------------------- */

.flashes {
  padding-inline-start: 0;
}

.flashes > .success {
  /*background-color: #80ff80;*/
  display: flex;
  justify-content: center;
  padding: 5px;
  border: 2px solid #00A13A;
  font-weight: bolder;
}

.flashes > .danger {
  /*background-color:  #ff8080;*/
  display: flex;
  justify-content: center;
  padding: 5px;
  border: 2px solid #C00000;
  font-weight: bolder;
}

.flashes > .error {
  display: flex;
  justify-content: center;
  padding: 5px;
  border: 2px solid #E99800;
  font-weight: bolder;
}

.flashes li {
  list-style-type: none;
  text-align: center;
}

/* Style of the exclamation icon (danger) */
.bi-exclamation-circle-fill::before {
  color: #C00000;
  margin-right: 5px;
  font-size: 1.5rem;
}

/* Style of the check icon (success) */
.bi-check-circle-fill::before {
  color: #00A13A;
  margin-right: 5px;
  font-size: 1.5rem;
}

/* Style of the x-circle icon (error) */
.bi-x-circle-fill::before {
  color: #E99800;
  margin-right: 5px;
  font-size: 1.5rem;
}

/* Container for quiz results with Flexbox */
.quiz-results-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0 auto; /* Center the container */
  max-width: 1200px; /* Maximum width of the container */
}

/* Individual quiz result sections */
.quiz-result {
  flex: 1; /* Allows the box to grow and shrink */
  min-width: 300px; /* Minimum width of the box */
  margin: 10px; /* Spacing around each box */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: adds a subtle shadow for depth */
}

/* End of design of the flashes messages */

/*Design + buttons on add_teacher form */
.bi-plus-square-fill::before, .bi-dash-square-fill::before {
  color: #000;
  margin-right: 5px;
  font-size: 1.5rem;
  border: 1px solid #007bff;
  border-radius: 5px;
  position: relative;
  bottom: 7px;
}
/**/

.requiredFields {
  font-weight: bold;
  font-size: 0.9rem;
}

.form-group>label {
  font-weight: bold;
}

/*#top-scrollbar-container {
  margin-top: 15px;
  overflow-x: hidden;
  overflow-y: hidden;
  height: 20px;
}*/

#student-table-container {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 515px;
}

.back-to-top {
  display: none;
}

#globalSkillsSelect {
  flex-direction: column;
}

/* -------------------------------------------------------------------------------- */
/* ! Special breakpoint for screens < 1335px for menu displaying */
/* -------------------------------------------------------------------------------- */

@media (max-width: 1334px) {
  nav.menu-buttons {
    width: 75%;
  }
}

/* -------------------------------------------------------------------------------- */
/* ! Tablet */
/* -------------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .mainContainer {
    margin: 20px;
  }
}

/* -------------------------------------------------------------------------------- */
/* ! Smartphone < 769px */
/* -------------------------------------------------------------------------------- */

@media only screen and (max-width: 768px) {
  button {
    margin-top: 5px;
  }

  nav.menu-buttons {
    width: 100%;
  }

  nav.menu-buttons button {
    font-family: "Raleway", sans-serif;
    font-size: 12px;
    color: #ffffff;
    background-color: #212121;
    border: none;
    padding: 10px 15px;
    margin: 0 5px;
    cursor: pointer;
  }

  nav.menu-buttons button:hover {
    text-shadow: 0.25px 0 #fff, -0.25px 0 #fff, 0 0.25px #fff, 0 -0.25px #fff;
  }

  .menu-buttons .active {
    border-bottom: 1px solid white;
    padding-top: 11px;
  }

  /* Target the 'Logout' link when the 'Logged in as' button is hovered */
  .dropbtn.loggedin:hover + .dropdown-content.loggedout a {
    font-size: 12px;
  }

  .dropdown-content.loggedout a:hover {
    font-size: 12px;
  }

  .lang-form {
    font-size: 12px;
  }

  .sidebar {
    top: 0;
    border-radius: 5px;
  }

  .refresh-button {
    margin: 15px 0px 15px 2px;
  }

  /*February 1st 2024 code*/
  /*#container {
    position: relative;
    overflow: hidden;
  }
  
  #topScrollbar {
    overflow-x: auto;
    overflow-y: hidden;
    height: 20px;
    position: sticky;
    top: 0;
    z-index: 1;
  }
  
  #topScrollbarContent {
    width: 10000px;
  }
  
  #tableContainer {
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
    z-index: 0;
  }*/

  /*January 31th 2024 addition*/
  /*#tableContainer {
    overflow-x: auto;
    
    overflow-y: scroll;

    white-space: nowrap;
    position: relative;
}

#topScrollbar {
    overflow-x: auto;
    overflow-y: hidden;
    position: absolute;
    top: 0;
    width: 100%;
}*/

  #student-table thead {
    border-bottom: none;
  }

  .class-list {
    border: 0;
    margin-bottom: 20px;
  }

  .class-item {
    border-bottom: 0;
    border: 1px solid #ccc;
  }

  .admin-list table,
  .admin-list thead,
  .admin-list tbody,
  .admin-list th,
  .admin-list td,
  .admin-list tr {
    display: block;
  }

  .admin-list thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .admin-list tr {
    border: 1px solid #ddd;
    margin-bottom: 5px;
    padding: 8px;
    border-bottom: 1px solid #ccc;
  }

  .container-teachers tr {
    width: 85%;
  }

  .container-students tr {
    width: 95%;
  }

  .admin-list td {
    border: none;
    position: relative;
    padding-left: 40%;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    align-items: center;
    border-bottom: 1px solid #ccc;
  }

  .admin-list td:last-child {
    border-bottom: none;
  }

  .admin-list td:before {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    left: 6px;
    transform: translateY(-50%);
    width: 35%;
    padding-right: 10px;
    white-space: wrap;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    margin-right: 10px;
    padding: 3px 5px;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 0.9rem;
  }

  .admin-list td:nth-of-type(1):before {
    content: "ID";
  }

  .admin-list td:nth-of-type(2):before {
    content: "Name";
  }

  .admin-list td:nth-of-type(3):before {
    content: "Email";
  }

  .admin-list td:nth-of-type(4):before {
    content: "Age";
  }

  .admin-list td:nth-of-type(5):before {
    content: "Gender";
  }

  .admin-list td:nth-of-type(6):before {
    content: "Country";
  }

  .admin-list td:nth-of-type(7):before {
    content: "More";
  }

  /*Redefinition od the titles of the modal-classes*/
  #modal-classes .admin-list td:nth-of-type(1):before {
    content: "Name";
  }

  #modal-classes .admin-list td:nth-of-type(2):before {
    content: "Description";
  }

  #modal-classes .admin-list td:nth-of-type(3):before {
    content: "School training center";
  }

  #modal-classes .admin-list td:nth-of-type(4):before {
    content: "Frequency";
  }

  .sidebar {
    position: relative;
    margin: 0 auto 15px;
    min-height: 400px;
    max-height: none;
  }

  .content {
    margin-left: 0;
    margin: 0 auto;
    text-align: center;
  }

  #student-table table,
  #student-table thead,
  #student-table tbody,
  #student-table th,
  #student-table td,
  #student-table tr {
    display: block;
  }

  #student-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  #student-table tr {
    border: 1px solid #ddd;
    margin-bottom: 5px;
    padding: 8px;
    border-bottom: 1px solid #ccc;
  }

  #student-table td {
    border: none;
    position: relative;
    padding-left: 50%;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    display: flex;
    align-items: center;
  }

  #student-table td:before {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    left: 6px;
    transform: translateY(-50%);
    width: 50%;
    padding-right: 10px;
    white-space: wrap;
    font-weight: bold;
    margin-right: 10px;
    padding: 3px 5px;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    line-height: 1.2rem;
  }

  /* Example for specific td types */
  #student-table td:nth-of-type(1):before {
    content: "Name";
  }

  #student-table td:nth-of-type(2):before {
    content: "Email";
  }

  #student-table td:nth-of-type(3):before {
    content: "Age";
  }

  #student-table td:nth-of-type(4):before {
    content: "Gender";
  }

  #student-table td:nth-of-type(5):before {
    content: "Q1 Status";
  }

  #student-table td:nth-of-type(6):before {
    content: "Q1 Total";
  }

  #student-table td:nth-of-type(7):before {
    content: "Q2 Status";
  }

  #student-table td:nth-of-type(8):before {
    content: "Q2 Total";
  }

  #student-table td:nth-of-type(9):before {
    content: "Avg Total Score";
  }

  #student-table td:nth-of-type(10):before {
    content: "Avg Info & Data";
  }

  #student-table td:nth-of-type(11):before {
    content: "Avg Communication";
  }

  #student-table td:nth-of-type(12):before {
    content: "Avg Content Creation";
  }

  #student-table td:nth-of-type(13):before {
    content: "Avg Safety";
  }

  #student-table td:nth-of-type(14):before {
    content: "Avg Problem Solving";
  }

  .table-cell a {
    display: flex;
    flex-wrap: wrap;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
  }

  .eu-banner {
    display: block;
  }

  .back-to-top {
    display: block;
    font-family: "khand", sans-serif;
  }

  .back-to-top a {
    color: #44549c;
  }


  /* Style of the Back to top arrow */
  .bi-arrow-up::before {
    color: #44549c;
    margin-right: 5px;
    font-size: 1.5rem;
  }
}

.section-links {
  margin: 30px 0px 30px 0px;
}

.section-link {
  display: block;
  margin-bottom: 0px;
  text-decoration: none;
  color: #44549c;
  font-weight: bold;
}

.dashboard-section {
  /* display: none; */
  margin-top: 30px;
}

@media only screen and (max-width: 596px) {
  /*Margin for the button of Quizz 2*/
  #quiz2Button {
    margin-top: 25px;
  }
}

/* -------------------------------------------------------------------------------- */
/* ! Special breakpoint for screens < 481px */
/* -------------------------------------------------------------------------------- */

@media only screen and (max-width: 480px) {
  .mainContainer {
    padding: 20px;
  }

  .cnt-registered {
    padding: 0;
  }

  h1,
  body h1 {
    top: 150px;
  }

  .project-description {
    top: 100px;
  }

  .form-position {
    top: 115px;
  }

  hr {
    border: 2px;
    height: 2px;
    background-color: white;
  }

  #student-registration-form {
    top: 120px;
  }

  .logo-eu {
    margin-bottom: 15px;
  }

  /*.x-axis-title {
    display: none !important;
  }*/

  .charts-labels-size {
    font-size: 0.8rem;
  }

  .apexcharts-menu-icon {
    display: none;
  }
}

/* -------------------------------------------------------------------------------- */
/* ! Special breakpoint for screens < 430px */
/* -------------------------------------------------------------------------------- */
@media only screen and (max-width: 429px) {
  .lang-form {
    margin-top: 10px;
  }
}

/* -------------------------------------------------------------------------------- */
/* ! Special breakpoint for screens < 412px */
/* -------------------------------------------------------------------------------- */
@media only screen and (max-width: 411px) {
  .teacher-registration {
    margin-top: 15px;
  }
}

#admin-stats {
  text-align: center;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  display: inline;
  color: #44549c;
}

.link-button:hover {
  background: none;
}

/** Css for ApexChart Canvas ***/
.canvas_chart {
  width: 100%;
  /*min-width: 600px;
  max-width: 900px;
  min-height: 400px;
  max-height: 800px;*/
}

/** teacher dashboard **/
.trclickable {
  cursor: pointer;
}

/* Define CSS classes for styling */
.group1-color {
  background-color: #FFC0CB; /* Light red */
}

.group2-color {
  background-color: #FFA500; /* Orange */
}

.popup {
  display: none; /* Hide the pop-up by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.popup-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.dropdown-check-list {
  display: inline-block;
}

.dropdown-check-list .anchor {
  position: relative;
  cursor: pointer;
  display: inline-block;
  padding: 5px 50px 5px 10px;
  border: 1px solid #ccc;
}

.dropdown-check-list ul.items {
  padding: 2px;
  display: block;
  margin: 0;
  border: 1px solid #ccc;
  border-top: none;
}

.dropdown-check-list ul.items li {
  list-style: none;
}

.dropdown-check-list.visible .anchor {
  color: #0094ff;
}

.dropdown-check-list.visible .items {
  display: block;
}

/* Style for checkbox list */
.items {
  list-style: none;
  padding: 0;
}

.items li {
  margin-bottom: 5px;
}

.items li input[type="checkbox"] {
  margin-right: 5px; /* Adjust the space between checkbox and text */
}
#registration-data-list > ul {
  padding: 8px;
}

.dropdown-check-list > span {
  padding: 10px 50px 10px 10px;
  border: 1px solid #000;
}

/* Apply CSS styling to the table */
#correlation_table {
  overflow-x: scroll;
}

#correlation_table table {
  border-collapse: collapse;
  width: 100%;
}

#correlation_table th, #correlation_table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  font-size: 11px;
}

#correlation_table th {
  background-color: #f2f2f2;
}

.confusion-matrix {
  border-collapse: collapse;
  margin: 20px;
}

.confusion-matrix th, .confusion-matrix td {
  border: 1px solid black;
  padding: 8px;
  font-size: smaller;
}

#ml-insights > table.confusion-matrix {
  width: 60%;
}

#ml-insights > table.table > thead > tr > th:nth-child(5) {
  width: 30%;
}

.tableContainer {
  max-height: 400px; /* Adjust the height as needed */
  overflow-y: auto;
  margin-bottom: 35px; /* Add space after each table */
}

.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.table th,
.table td {
  padding: 8px;
  border: 1px solid #ddd;
}

.table th {
  background-color: #f2f2f2;
}

.table tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

.table tbody tr:hover {
  background-color: #ddd;
}

#ml-insights > table.table > thead > tr > th:nth-child(4){
  width: 10%;
}

#ml-insights > table.table > thead > tr > th:nth-child(6){
  width: 50%;
}

#sub-questions > .items li input[type="checkbox"]{
  transform: scale(1.5)
}

#question-items-list {
  border: none
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}