#selection {
  border-collapse: collapse;
  width: 100%;
}

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

#selection tr:nth-child(even){background-color: #f2f2f2;}


#selection th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
  background-color: #04AA6D;
  color: white;
}
#selection .border-top {
  border-top: 2px solid;
}

#selection .grade {
  background-color: #fefefe ;
}

#grade-table {
  border-collapse: collapse;
  text-align: center;
  margin: auto;
}
#grade-table td, #grade-table th {
  border: none;
  padding: 2px 10px 2px 10px;
}

#grade-table tr:nth-child(even){background-color: #fefefe;}

form{
  max-width: 35em;
  margin: auto;
}

h1, h2, h3, h4{
  text-align: center;
  padding-bottom: 1em;
}


/*List*/


#grade {
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

#grade td, #grade th {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

#grade tr:nth-child(even){background-color: #f2f2f2;}

#grade th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
  background-color: #06001C;
  color: white;
}

.collapsible {
  background-color: #777;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
}

.collapsible.active, .collapsible:hover {
  background-color: #555;
}

.content {
  padding: 0 18px;
  display: none;
  overflow: hidden;
  background-color: #f1f1f1;
}
.a-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 0 3em;
}
.a-container a {
  margin: 1em 0;
}

.content a {
  display: block;
  text-align: center;
  width: fit-content;
  margin: 1em 0;
  font-weight: bold;
  flex-basis: 52px;
}

.content a:nth-child(2){
  flex-grow: 1;
max-width: 125px;
}

a.tooltip{
  position: relative;
  display: inline-block;

  height: 52px;
  width: 52px;
  background-image: url("/css/edit.png");
  background-position: center;
  background-size: cover;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  right: 55px;
  top: 15px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.addStudent {
  padding: 1em;
  display: block;
  width: fit-content;
  background: #393939;
  margin: 1em auto;
  border-radius: 5px;
  color: #fff;
}
.addStudent:hover {
  color: #40d2ff;
  text-decoration: none;
  background-color: #222;
}

/*header*/

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5em;
}
.nav {
  display: flex;
  flex-direction: row;
  padding: 0;
  justify-content: center;
  /*! max-width: 50em; */
  height: 50px;
  width: 100%;
  align-items: center;
  gap: 10em;
  background: #ccc;
  border-bottom: 1px solid #000;
}
.nav-item {
  display: block;
}
.nav-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1.5em;
}
.nav-link {
  color: #040733;
  font-weight: bold;
}
.nav-item:hover {
  background: #393939;
}
.nav-item:hover .nav-link {
  color: #fff;
}

.bi.bi-trash:hover {
  color: darkred;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 35vh; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  max-width: 600px;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

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

.infos {
  display: flex;
  width: 100%;
  height: 25px;
  background: #e3e3e3;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
}
.info-element {
  margin: 0;
}

.footer_options {
  display: flex;
  justify-content: space-between;
  margin: 2em;
  align-items: center;
}
.footer_options div {
  flex-basis: 105px;
}
.footer_options > a {
  margin: 1em 0;
  font-weight: bold;
}

.save {
  margin: 0;
  width: min-content;
}
.save button {
  padding: 1em;
  background-color: #209300;
  border-radius: 7px;
  color: #fff;
  font-size: 16px;
}
.save button:hover {
  background-color: #114d00;
}

/*Table*/

.progress{
  display:flex;
  flex-direction:row;
  justify-content: center;
  color: #666;
}
.progress p{
  color: #666;
}
.progress p.active{
  color: #000;
  font-weight: bolder;
}
