/*
    /!\ Ce fichier est utilisé pour du CSS général, c'est à dire du CSS qui sera appliqué sur toutes les pages du site.
*/

/*Text Font*/
@font-face {
  font-family: "OpenSans";
  src: url(../fonts/OpenSans/OpenSans-Light.ttf);
}

/*Menu font*/
@font-face {
  font-family: "OpenSansMenu";
  src: url(../fonts/OpenSans/OpenSans-Bold.ttf);
}

/*"ici" text on footer, styling*/
#goBackTop {
  color: #fff;
  text-decoration: none;
}

/*"ici" text on footer, styling on hover*/
#goBackTop:hover {
  text-decoration: underline;
}

/*smooth scrolling on jump links*/
html {
  scroll-behavior: smooth
}

/*style of footer*/
footer {
  background-color: rgb(62, 63, 62);
  margin-top: 74px;
  padding-top: 100px;
  padding-bottom: 50px;
}

/*remove margin of footer paragraphs*/
.pFooter {
  margin: 0;
}

/*set body image and font propreties*/
body {
  background-image: url("../images/Rocket-League.png");
  color: white;
  font-size: 20px;
  font-family: "OpenSans";
  margin: 0;
}

/*create a new class that centers element when applied*/
.center {
  text-align: center;
}

/*add opacity on background, after page is loaded*/
body:after {
  content: "";
  background: black;
  opacity: 0.5;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: fixed;
  z-index: -1;
}

/*container of menu styling*/
#containerMenu {
  opacity: 1;
  transition: opacity 0.5s ease-in;
  display: flex;
  background-color: rgb(71, 71, 71);
  border-radius: 0.5em;
  overflow: hidden;
  height: 50px;
}

/*used to hide the menu when clicking on the wheel*/
#containerMenu.hide {
  opacity: 0;
}

/*menuwheel styling*/
#menuWheel {
  width: 5%;
  height: 5%;
  margin-right: 20px;
  transition: all 0.8s ease-in-out;
  background-color: rgb(71, 71, 71);
  border-radius: 2em;
}

/*spaces, position and width of nav tag*/
nav {
  margin-left: auto;
  margin-right: auto;
  width: 60%;
  display: flex;
  padding-top: 15px;
  margin-bottom: 30px;
}

/*animation on hover of menuwheel*/
#menuWheel:hover {
  cursor: pointer;
  transform: rotate(360deg);
  transition: all 1.5s ease-in-out;
}

/*style items of the nav bar*/
.menu {
  width: 200px;
  line-height: 50px;
  text-align: center;
  transition: 200ms;
  margin: 0;
}

/*styling of the hover of the menu items*/
.menu:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transition: 200ms;
  width: 220px;
}

/*styling of the anchors*/
a {
  text-decoration: none;
  color: black;
  font-family: "OpenSansMenu";
  font-size: 17.5px;
  list-style: none;
}

/*styling of the current menu item (current page opened)*/
.active {
  list-style: none;
  width: 200px;
  margin: 0;
  line-height: 50px;
  text-align: center;
  background-color: rgba(20, 20, 20, 0.3);
  cursor: default;
}

/*menu screen*/
@media screen and (max-width: 1750px) and (min-width: 1500px) {
  .menu {
    width: 160px;
    font-size: 15px;
  }

  .menu:hover {
    width: 180px;
  }

  a {
    font-size: 15px;
  }

  #menuWheel {
    width: 5%;
    height: 5%;
  }
}

/*menu screen*/
@media screen and (max-width: 1500px) {
  #containerMenu {
    display: block;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .active {
    width: 220px;
    font-size: 17.5px;
  }

  a {
    font-size: 17.5px;
  }

  .menu:hover {
    width: 220px;
  }

  #menuWheel {
    display: none;
  }

  .menu {
    width: 220px;
    font-size: 17.5px;
  }
}

h3 {
  margin-bottom: 30px;
}