body {
  font-family: arial;
}

h1 {
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  margin-top: 3ex;
}

.nav-item {
  align-items: center;
  background: #dd3333;
  border-radius: 0.8ex;
  color: white;
  display: flex;
  margin: 1ex;
  padding: 1ex;
  text-align: center;
}

.nav-item:hover {
  background: #000;
  cursor: pointer;
}

.nav-item.active {
  background: #000;
}

.nav-item span {
  pointer-events: none;
}

#news {
  background: rgba(255, 255, 0, 0.3);
  border: 1px solid darkorange;
  margin: 2ex auto;
  padding: 1ex;
  width: 50vw;
}

.boundary {
  width: 30px;
}

#settings {
  align-items: center;
  background-color: #eee;
  display: flex;
  margin: 2ex auto;
  padding: 3px;
  justify-content: space-evenly;
}

@media only screen and (max-width: 800px) {
  #settings {
    flex-wrap: wrap;
  }
}

#slidecontainer, #switchcontainer {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 1.5ex;
}

input[type=text] {
  font-size: large;
  padding: 1ex;
}

#alum-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5ex;
}

.alum {
  color: #444;
  display: inline-block;
  position: relative;
  text-align: center;
}

.alum img {
  width: 100%;
}

.alum .name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.alum .studies, .alum .experience {
  background-color: #eee;
  border-radius: 1ex;
  font-size: small;
  margin: 1ex;
  overflow: hidden;
  padding: 1ex;
  text-overflow: ellipsis;
}

.alum.rip:hover:after {
  bottom: 10px;
  content: '❤️';
  cursor: pointer;
  position: absolute;
  right: 10px;
}

#quizcontainer {
  margin: 2ex auto;
  width: 500px;
}

#quizcontainer .alum {
  cursor: pointer;
  max-width: 90vw;
  width: 100%;
}

#quizcontainer .alum .name {
  display: block;
  font-size: xx-large;
}

/* Contact page */

#cool {
  color: green;
}

#nan {
  color: red;
}

#cool, #nan {
  font-size: xx-large;
}

#contact-page {
  font-size: large;
  margin: 1ex auto;
  max-width: 90vw;
}

/* Modal */

#modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

#modal div {
  background: white;
  border-radius: 2ex;
  padding: 4ex;
  text-align: center;
}

#modal #password {
  font-size: large;
  margin-top: 1ex;
  padding: 2ex;
}

/* Photos de classe */

.pdc_year {
  display: flex;
  flex-wrap: wrap;
}

#photos_de_classe img {
  border: 3px solid transparent;
  margin: 1ex;
}

#photos_de_classe img:hover {
  border: 3px solid rgba(0, 0, 0, 0.3);
}
