/* Crée par Diego Fernandez 15 janvier 2025 */
@import url('https://fonts.googleapis.com/css2?family=ADLaM+Display&display=swap');

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  font-family: "ADLaM Display", serif;
}

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

.background {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  transform: translateX(calc((100% - 100vw) / 2));
  filter: blur(4px);
  z-index: -1;
}

header nav {
  display: flex;
  background-color: #002154;
  flex-direction: row;
  height: 6em;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 3em;
  width: 3em;
}

.titre a {
  display: flex;
  align-items: center;
  color: #0074da;
  font-weight: bold;
  font-size: 2em;
}

.page_link {
  padding-block: 27px;
  text-align: center;
  font-size: 2em;
  color: #0074da;
  transition: 0.3s;
  flex-grow: 1;
}

.page_link:hover {
  font-weight: bold;
  color: white;
}

.download_button {
  transition: 0.3s;
  color: white;
  border-color: #002154;
  border-width: 0px;
  border-style: solid;
  border-radius: 12px 12px 12px 12px;
}

.download_button:hover {
  background-color: #0074da;
  color: #002154;
  font-weight: bold;
}

.menu_button {
  color: white;
  border-color: #002154;
  border-width: 0px;
  border-style: solid;
  border-radius: 12px 12px 12px 12px;
}

.menu_button:hover {
  color: #002154;
  background-color: #0074da;
}

.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  bottom: 0;
  left: 0;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.7);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overlay a {
  padding: 8px;
  font-size: 36px;
  color: #002154;
  background-color: #0074da;
  display: flex;
  flex-direction: row;
  justify-content: center;
  transition: 0.3s;
}

.overlay a:hover,
.overlay a:focus {
  color: white;
}

.overlay .closebtn {
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 60px;
}

.title {
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
  justify-content: center;
  font-size: 2em;
  text-align: center;
  color: #002154;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.download {
  display: flex;
  justify-content: center;
  width: 100%;
  font-size: 2em;
  margin-bottom: 4em;
}

.download a {
  background-color: #002154;
  color: white;
  text-align: center;
  padding: 0.5em;
  border-radius: 1em;
  transition: 0.3s;
}

.download a:hover {
  background-color: #0074da;
  color: #002154;
  font-size: 1.05em;
}

.article {
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  text-align: center;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.article div {
  width: 45%;
}

.megadungeon {
  position: relative;
  background-color: rgba(0, 0, 0, 0);
  border-width: 0px;
  border-style: solid;
  border-radius: 3em 0 0 0;
  padding: 1em;
  color: white;
  overflow: hidden;
}

.megadungeon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../ressources/megadungeon.png");
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  z-index: -1;
  border-radius: 3em 0 0 0;
}

.tools {
  position: relative;
  background-color: rgba(0, 0, 0, 0);
  border-width: 0px;
  border-style: solid;
  border-radius: 0 3em 0 0;
  padding: 1em;
  color: white;
  overflow: hidden;
}

.tools::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../ressources/tools-armor.png");
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  z-index: -1;
  border-radius: 0 3em 0 0;
}

.launcher {
  position: relative;
  background-color: rgba(0, 0, 0, 0);
  border-width: 0px;
  border-style: solid;
  border-radius: 0 0 0 3em;
  padding: 1em;
  color: white;
  overflow: hidden;
}

.launcher::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%;
  background-image: url("../ressources/launcher.png");
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  z-index: -1;
  border-radius: 0 0 0 3em;
}

.socials {
  position: relative;
  background-color: rgba(0, 0, 0, 0);
  border-width: 0px;
  border-style: solid;
  border-radius: 0 0 3em 0;
  padding: 1em;
  color: white;
  overflow: hidden;
}

.socials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  background-image: url("../ressources/socials.png");
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  z-index: -1;
  border-radius: 0 0 3em 0;
}

.section_title {
  font-size: 3em;
  color: #00C8F8;
  margin-bottom: 0.5em;
}

.section_p {
  font-size: 1.7em;
  color: white;
  max-width: 100%;
}

footer {
  color: white;
  text-align: center;
  margin-top: auto;
}

@media only screen and (max-width: 950px) {
  .page_link {
    display: none;
  }

  .download_button {
    display: none;
  }

  .menu_button {
    display: block;
    text-align: center;
    font-size: 4em;
    padding-block: 5px;
  }

  .menu_text {
    font-size: 0;
  }

  .article div {
    width: 80%;
  }

  .megadungeon {
    border-radius: 3em 3em 0 0;
  }

  .megadungeon::before {
    border-radius: 3em 3em 0 0;
  }

  .tools {
    border-radius: 0 0 0 0;
  }

  .tools::before {
    border-radius: 0 0 0 0;
  }

  .launcher {
    border-radius: 0 0 0 0;
  }

  .tools::before {
    border-radius: 0 0 0 0;
  }

  .socials {
    border-radius: 0 0 3em 3em;
  }

  .socials::before {
    border-radius: 0 0 3em 3em;
  }

}

@media only screen and (max-width: 500px) {
  .titre a {
    font-size: 1.2em;
  }

  .title {
    font-size: 1.2em;
  }

  .section_title {
    font-size: 1.5em;
  }

  .section_p {
    font-size: 1.5em;
  }
}