@import url('https://fonts.googleapis.com/css?family=Exo');

html, body {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background-color: #ededed;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  width: 100%;
  min-height: 8vh;
  display: flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  background-color: #147771;
}

header h1 {
  color: #ffffff;
}

h1 {
  text-shadow: 2px 2px 10px #000;
}

.label-select {
  font-family: 'Exo', 'Courier New', Courier, monospace;
  position: absolute;
  right: 1rem;
  min-width: 120px;
  cursor: pointer;
  gap: 10px;
  display: flex;
}

img {
  width: 40px;
  height: 30px;
}

[lang] {
  display: none;
}

[lang=en] {
  display: unset;
}

.title {
  text-decoration: none;
}

.container {
  width: 100%;
  height: auto;
}

.infos {
  display: block;
  margin: 3rem 10rem;
  text-align: center;
}

.exams {
  display: flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  flex-direction: row;
  gap: 5px;
  margin: 1rem;
}

.exam-title {
  display: flex;
  justify-content: center;
  align-items: center;
  vertical-align: middle;
  font-family: 'Exo', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.exams a {
  color: #ffffff;
  text-decoration: none;
  margin: 1rem 0;
}

span.exam {
  font-family: 'Exo', 'Courier New', Courier, monospace;
  background-color: #272727;
  padding: 1rem;
  border-radius: 15px;
}

.hidden {
  display: none !important;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px);
  z-index: 1;
}

.modal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  width: 450px;
  height: 20%;
  padding: 1rem;
  min-height: 200px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 15px;
  z-index: 2;
}

.modal .close {
  text-align: right;
}

.modal .title {
  text-align: center;
  margin-bottom: 1rem;
}

.modal input {
  padding: 0.7rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.9em;
}

.modal p {
  font-size: 0.9rem;
  color: #777;
  margin: 0.4rem 0 0.2rem;
}

.modal button {
  cursor: pointer;
  border: none;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  vertical-align: middle;
}

.modal-actions a {
  color: #ffffff;
  text-decoration: none;
  margin: 1rem 0;
}

.modal-btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  background-color: black;
  color: white;
  border-radius: 5px;
  text-align: center;
  font-size: 1em;
}

.btn-close {
  transform: translate(10px, -20px);
  padding: 0.5rem 0.7rem;
  margin-right: 1rem;
  background: #eee;
  border-radius: 50%;
}

footer {
  font-family: 'Exo', 'Courier New', Courier, monospace;
  margin-top: auto;
  text-align: center;
  padding: 5px;
  background-color: #abbaba;
  color: #000;
}

/* Tablet / iPad */

@media only screen and (max-width: 1080px) {
  .infos {
    margin: 3rem 1rem;
  }

  .modal {
    width: 50%;
  }

  footer {
    font-size: 14px;
  }
}

/* MOBILE */

@media only screen and (max-width: 600px) {
  .label-select {
    right: unset;
    top: 10%;
  }

  .infos {
    margin: 3rem 1rem;
  }

  .exams {
    flex-direction: column;
    gap: 0;
  }

  .modal {
    width: 90%;
  }

  footer {
    font-size: 14px;
  }

  footer small {
    margin: auto 4px;
  }
}
