body,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  /* font-family: "Open Sans", sans-serif; */
  font-family: "Nunito Sans", sans-serif;
}
#content p {
  font-size: 20px;
  font-weight: 300;
  line-height: 30px;
  letter-spacing: 1px;
  padding-bottom: 20px;
}
.sometype {
  font-family: "Sometype Mono", monospace;
}
.open-sans {
  font-family: "Open Sans", sans-serif;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: "Sometype Mono", monospace;
  text-align: left;
}
h1,
h2 {
  margin-bottom: 35px;
  margin-top: 35px;
}
img {
  max-width: 100%;
}

nav ul {
  list-style-type: none;
}
a {
  color: black;
  transition: all 0.3s ease; /* Smooth transition */
}
a:hover {
  color: black;
  font-weight: 700;
  transition: all 0.3s ease; /* Smooth transition */
}
/* ----------------HEADER-------------- */
header {
  position: relative;
}

header img {
  width: 100%;
  display: block;
  position: relative;
  height: 100%;
  object-fit: cover;
  height: 250px;
}

.text-container {
  position: absolute;
  bottom: -55px;
  text-align: right;
  width: 100%;
  right: 0;
  margin-right: 10px;
}
.main-text {
  font-size: 60px;
  color: white;
  margin-bottom: -35px;
}
.mirror-text {
  font-size: 60px;
  color: black;
  transform: scaleY(-1);
}
.grid2 {
  display: grid;
  grid-template-columns: 2fr 2fr;
}
.gridHead {
  display: grid;
  grid-template-columns: 30% 70%;
}
#introText {
  text-align: justify;
  max-width: 500px;
  margin-left: auto;
  padding-right: 20px;
  margin-top: 200px;
}

/* ----------------------CONTENT------------------ */
#content {
  padding: 20px;
  max-width: 1200px;
  margin: 100px auto;
  text-align: justify;
  hyphens: auto;
}
.btnLink {
  text-decoration: none;
  color: black;
  display: contents;
}
.button {
  border: 1px solid black;
  width: fit-content;
  padding: 10px 20px;
  margin: auto;
  margin-top: 50px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.button:hover {
  background: black;
  color: white;
  transform: scale(1.05);
}
.titre {
  text-align: center;
  margin: 60px 0;
  font-size: 50px;
  font-weight: 300;
  text-transform: uppercase;
}
.contentImg {
  margin: 100px 0;
}
/* ---------------NAV------------------ */
nav.sometype a.active,
.responsiveNav a.active {
  font-weight: bold;
}

nav {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 1000;
}
nav a {
  text-decoration: none;
  color: black;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
  font-size: 22px;
  border-bottom: 1px solid black;
}
nav a:hover {
  font-weight: 600;
}
/* ----------------RESPONSIVE NAV------ */
.responsiveNav a {
  text-decoration: none;
}
.responsiveNav {
  display: none;
  flex-direction: row;
  margin: auto;
  background-color: #fff;
  padding: 10px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
  bottom: 0;
  position: fixed;
  width: calc(100% - 20px);
}

.responsiveNav-item {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding: 5px 15px;
  cursor: pointer;
  transition: all 0.2s ease-out;
  color: #878787;
}

.responsiveNav-text {
  font-size: 16px;
  margin: auto;
  text-align: center;
  font-weight: 500;
  display: none;
  transition: all 0.3s ease;
}

.material-icons {
  display: inline;
  font-size: 30px;
  transition: color 0.3s;
}

.responsiveNav-item.active {
  /* flex-grow: 3; */
  /* flex-grow: 2;
  border-radius: 30px;
  background: #eee;
  justify-content: flex-start; */
  flex-grow: 2;
  border-radius: 30px;
  background: #eee;
  display: inline-block;
  text-align: center;
}

.responsiveNav-item.active > .responsiveNav-text {
  display: inline-block;
  vertical-align: super;
  letter-spacing: 1px;
}

.responsiveNav-item.active > .material-icons {
  color: #878787;
}

.material-icons ~ .responsiveNav-text {
  color: #878787;
}
/* --------------------FOOTER-------------- */

.gridFooter {
  display: grid;
  grid-template-columns: 3fr 3fr 3fr;
  gap: 30px;
  align-items: center;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  padding: 20px 0;
}

#credits {
  font-size: 14px;
  text-align: justify;
  color: #595959;
}
footer img {
  max-width: 200px;
  display: block;
  margin: auto;
}

#copyrights {
  text-align: center;
  margin: 30px 20px;
}
footer a {
  text-decoration: none;
  color: #18272f;
  font-weight: 700;
  position: relative;
}

footer a::before {
  content: "";
  background-color: hsl(0deg 0% 65.5% / 40%);
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 8px;
  z-index: -1;
  transition: all 0.3s ease-in-out;
}

footer a:hover::before {
  bottom: 0;
  height: 100%;
}
/* ----------------------------MODAL-------------------- */
.modal,
.modal2 {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content,
.modal-content2 {
  position: relative;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 1000px;
  max-height: 80vh;
  width: 90%;
  text-align: left;
  animation: fadeIn 0.3s ease-in-out;
  overflow-y: auto;
  box-sizing: border-box;
  color: black;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close,
.close2 {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
#modal ul {
  padding-left: 20px;
  list-style-type: disc;
  margin-left: 20px;
  text-align: left;
}
/* ----------------------RESPONSIVE--------------- */
@media screen and (max-width: 1400px) {
  .main-text {
    font-size: 40px;
    margin-bottom: -22px;
  }
  .mirror-text {
    font-size: 40px;
  }

  .text-container {
    position: absolute;
    bottom: -35px;
    text-align: right;
    width: 100%;
    right: 0;
    margin-right: 10px;
  }
}
@media screen and (max-width: 1000px) {
  .grid2 {
    grid-template-columns: 1fr;
  }

  nav a {
    color: white;
    border-bottom: 1px solid white;
  }
  .text-container {
    width: 100%;
  }
  #content {
    margin: auto;
  }

  .gridHead {
    grid-template-columns: 100%;
  }

  #introText {
    margin-top: 0;
    order: 1;
  }

  header img {
    width: 100%;
    display: block;
    position: relative;
    height: 100%;
    object-fit: cover;
    height: 250px;
    opacity: 0.6;
  }

  header {
    position: relative;
    background: black;
  }
  .gridFooter {
    grid-template-columns: 1fr;
    padding: 35px;
  }
  #credits {
    order: 3;
  }
}
@media screen and (max-width: 800px) {
  nav {
    display: none;
  }
  .responsiveNav {
    display: flex;
    z-index: 10000;
  }
  .text-container {
    bottom: -40px;
    text-align: center;
    margin-right: 0;
  }
  .main-text {
    font-size: 40px;
    margin-bottom: -20px;
  }
  .mirror-text {
    font-size: 40px;
  }
  footer {
    padding-bottom: 70px;
  }
  footer img {
    height: 35px;
  }
}
@media screen and (max-width: 470px) {
  .text-container {
    bottom: -29px;
  }
  .main-text {
    font-size: 30px;
    margin-bottom: -15px;
  }
  .mirror-text {
    font-size: 30px;
  }
}
