* {
  margin: 0px;
  padding: 0px;
}

@font-face {
  font-family: "F1Font";
  src: url("../font/Formula1-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  min-width: 800px;
  overflow: auto;
}

.title {
  align-items: flex-start;
  vertical-align: middle;
  background-color: #8b0d00;
}

.imgTitle {
  height: 8em;
}

/*Ici on retrouve toute la partie sur le menu burger
----------------------------------------------------------------------------------------------------------------------------------------
*/

#menubuttons {
  float: right;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  height: 8.25em;
  width: 100%;
}

#buttonCloseNav {
  width: 50%;
}

#menuButton {
  cursor: pointer;
  height: 2em;
  font-size: 3em;
  color: white;
  float: right;
  margin-right: 1%;
  margin-top: 0.4em;
}

#menuButtonClose {
  z-index: 2;
  position: relative;
  cursor: pointer;
  height: 2em;
  font-size: 3em;
  color: white;
  margin-right: 0;
  transition: 0.3s;
  transition-delay: 0.01s;
}

#imgProfil {
  padding: 0px;
  align-content: center;
  width: 50%;
  z-index: 2;
  opacity: 0;
  transition-delay: 2s;
  transition: 5s;
}

.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 100%;
  background-color: #404040;
  overflow-x: hidden;
  transition: 0.3s;
  transform: translate(-100%);
}

.overlay-content {
  position: relative;
  top: 5%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay a {
  font-size: 3em;
  padding: 8px;
  text-decoration: none;
  color: #818181;
  display: block;
  transition: 0.3s;
}

#imgProfilP {
  align-self: center;
  width: 1em;
  position: relative;
  padding: 8px;
  text-decoration: none;
  color: #818181;
  display: block;
  margin-left: auto;
  margin-right: 0.5em;
  margin-top: 0.3em;
  transition: 0.3s;
}

.overlay a:hover,
.overlay a:focus {
  color: #f1f1f1;
}

.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

@media screen and (max-height: 450px) {
  .overlay a {
    font-size: 20px;
  }
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

/*
----------------------------------------------------------------------------------------------------------------------------------------
Ici on retrouver la partie sur la page index
----------------------------------------------------------------------------------------------------------------------------------------
*/

#pIndex{

  font-family: "F1Font";
  font-size: 1.2em;
  text-align: center;
  margin-left: 10%;
  margin-right: 10%;
  padding-top: 3%;
  padding-bottom: 5%;

}

#imgF1{

  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5%;

}

/*
----------------------------------------------------------------------------------------------------------------------------------------
Ici on retrouver la partie sur la bannière avec le logo
----------------------------------------------------------------------------------------------------------------------------------------
*/

#bannerLogo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1em;
}

#imgLogo {
  height: 3em;
  text-align: center;
}

#textLogo {
  font-size: 2.5em;
}
/*
----------------------------------------------------------------------------------------------------------------------------------------
Partie sur la page de login et register (puisque la même chose)
----------------------------------------------------------------------------------------------------------------------------------------
*/

.loginSquare {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4em;
  margin-left: 35%;
  margin-right: 35%;
  border: 1px solid black;
}

.loginSquare p {
  text-align: center;
  font-size: 2em;
  width: 50%;
  margin-top: 1em;
  margin-left: 20%;
  margin-right: 20%;
  margin-bottom: 1em;
  display: inline-block;
  border-radius: 4px;
  box-sizing: border-box;
}

.loginSquare input,
select {
  text-align: center;
  font-size: 1em;
  width: 50%;
  padding: 12px 20px;
  margin-top: 1em;
  margin-left: 20%;
  margin-right: 20%;
  margin-bottom: 1em;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.loginSquare button {
  margin-top: 1.5em;
  margin-left: 20%;
  margin-right: 20%;
  margin-bottom: 1em;
  background-color: white;
  color: black;
  border: 2px solid #555555;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  transition-duration: 0.4s;
  cursor: pointer;
}

.loginSquare button:hover {
  background-color: #555555;
  color: white;
}

#pRegister{

  text-decoration: underline;
  cursor: pointer;
  text-align: center;
  color: black;
  font-size: 1.25em;
  width: 50%;
  margin-left: 20%;
  margin-right: 20%;
  margin-bottom: 1em;
  display: inline-block;

}

/*
----------------------------------------------------------------------------------------------------------------------------------------
Partie sur la page de profil
----------------------------------------------------------------------------------------------------------------------------------------
*/
.profileButtonsBorder {
  display: flex;
  text-align: center;
  margin-left: 20%;
  margin-right: 20%;
}

.profileButtonsBorder button {
  width: 100%;
  font-size: 1.5em;
  padding-left: 20%;
  padding-right: 20%;
  border: 1px solid #5555551c;
}

.profileButtonsBorder button:hover {
  width: 100%;
  font-size: 1.5em;
  padding-left: 20%;
  padding-right: 20%;
  border: 1px solid #5555551c;
  background-color: rgba(0, 0, 0, 0.062);
}

.selectedButton {
  width: 100%;
  font-size: 1.5em;
  padding-left: 20%;
  padding-right: 20%;
  border: 1px solid #5555551c;
  background-color: rgba(0, 0, 0, 0.062);
}

.profileButton {
  width: 100%;
  font-size: 1.5em;
  padding-left: 20%;
  padding-right: 20%;
  border: 1px solid #5555551c;
  background-color: rgba(0, 0, 0, 0);
}

.profileInfos {
  margin-left: 30%;
  margin-right: 30%;
}

#profileInfo {
  text-align: center;
  display: inline-block;
}

/*
----------------------------------------------------------------------------------------------------------------------------------------
Seconde partie
----------------------------------------------------------------------------------------------------------------------------------------
*/
#profileDiv {
  border: 1px solid rgb(85, 85, 85);
  margin-left: 20%;
  margin-right: 20%;
  margin-bottom: 10%;
}

.UsernameManagement {
  display: flex;
  align-content: center;
  text-align: center;
  margin-left: 5%;
  margin-right: 5%;
}

.profileManagement {
  display: flexbox;
}

#labelUsername {
  font-size: 1.5em;
  margin-top: 2.5em;
  margin-bottom: 2em;
  width: 30%;
}

#editIcon {
  width: 10%;
  cursor: pointer;
}

#imgEdit {
  width: 15%;
  margin-top: 4em;
  margin-right: 0.5em;
}

#inputModifUsername {
  text-align: center;
  font-size: 1em;
  width: 50%;
  padding: 12px 20px;
  margin-top: 3em;
  margin-bottom: 3em;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

#reinitePassword {
  width: 30%;
  font-size: 1.5em;
  text-decoration: underline;
  margin-left: 38%;
  margin-right: 38%;
  cursor: pointer;
}

#saveProfile {
  background-color: rgba(0, 0, 0, 0.151);
  border: 1px solid rgba(0, 0, 0, 0.247);
  width: 20%;
  font-size: 1.5em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  margin-left: 40%;
  margin-right: 40%;
  cursor: pointer;
}

#imgDeconnexion {
  width: 5%;
  margin-left: 47.5%;
  margin-right: 47.5%;
  margin-top: 2em;
  margin-bottom: 2em;
}

#lienimgDeconnexion {
  text-align: center;
}

/*
----------------------------------------------------------------------------------------------------------------------------------------
Partie sur la page du profil ou seront listés les favoris
----------------------------------------------------------------------------------------------------------------------------------------
*/

#lstFavDrivers{

  display: flex;
  flex-wrap: wrap;
  justify-content: center;

}

#titrePilotesFav{

  text-align: center;
  font-family: "F1Font";
  font-size: 2em;
  margin-top: 2%;
  margin-bottom: 3%;

}

#lstFavCircuits{

  display: flex;
  flex-wrap: wrap;
  justify-content: center;

}

#titreCircuitsFav{

  text-align: center;
  font-family: "F1Font";
  font-size: 2em;
  margin-top: 2%;
  margin-bottom: 3%;

}


/*
----------------------------------------------------------------------------------------------------------------------------------------
Partie sur la page où sont listées les différents circuits
----------------------------------------------------------------------------------------------------------------------------------------
*/
#lstCircuits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 3em;
}

.circuit {
  align-content: center;
  width: 230px;
  margin-left: 30px;
  margin-right: 30px;
  margin-bottom: 30px;
  background-color: black;
  transition-duration: 0.5s;
}

.linkImgCircuit {
  margin-left: 4%;
  margin-right: 4%;
  transition-duration: 0.5s;
}

.CircuitName {
  margin-top: 8%;
  text-align: center;
  color: white;
  font-size: 2em;
  transition-duration: 0.5s;
}

.imgArrow {
  width: 15%;
  margin-left: 42.5%;
  margin-right: 42.5%;
  padding-top: 5%;
  opacity: 40%;
  transition-duration: 0.5s;
}

/*
----------------------------------------------------------------------------------------------------------------------------------------
Partie sur la page spécifique d'un circuit
----------------------------------------------------------------------------------------------------------------------------------------
*/

#circuit {
  margin-top: 3%;
  margin-left: 20%;
  margin-right: 20%;
  margin-bottom: 3%;
}

#nomCircuit {
  text-align: center;
  font-family: "F1Font";
  font-size: 3em;
}

#infoCircuit {
  background-color: black;
  color: white;
  margin-top: 4%;
  text-align: center;
}

#descCircuit {
  font-family: "F1Font";
  font-size: 1.2em;
  text-align: justify;
  margin-left: 10%;
  margin-right: 10%;
  padding-top: 10%;
  padding-bottom: 5%;
}

#imgCircuit {
  display: block;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 1%;
}
/*
----------------------------------------------------------------------------------------------------------------------------------------
Partie sur la page où sont listées les différents pilotes
----------------------------------------------------------------------------------------------------------------------------------------
*/

#lstDrivers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2em;
}

.driver {
  align-content: center;
  width: 230px;
  margin-left: 30px;
  margin-right: 30px;
  margin-bottom: 30px;
  background-color: black;
  transition-duration: 0.5s;
}

.linkImgDriver {
  margin-left: 4%;
  margin-right: 4%;
  transition-duration: 0.5s;
}

.DriverName {
  margin-top: 8%;
  text-align: center;
  color: white;
  font-size: 2em;
  transition-duration: 0.5s;
}

.imgArrow {
  width: 15%;
  margin-left: 42.5%;
  margin-right: 42.5%;
  opacity: 40%;
  transition-duration: 0.5s;
}

/*
----------------------------------------------------------------------------------------------------------------------------------------
Partie sur la page du pilote spécifique
----------------------------------------------------------------------------------------------------------------------------------------
*/

#driver {
  margin-top: 3%;
  margin-left: 20%;
  margin-right: 20%;
  margin-bottom: 3%;
}

#nomPilote {
  text-align: center;
  font-family: "F1Font";
  font-size: 3em;
}

#infoDriver {
  background-color: black;
  color: white;
  margin-top: 4%;
  text-align: center;
}

#descDriver {
  font-family: "F1Font";
  font-size: 1.2em;
  text-align: justify;
  margin-left: 10%;
  margin-right: 10%;
  padding-top: 10%;
  padding-bottom: 5%;
}

#imgDriver {
  margin-bottom: 1%;
}

#numDriver {
  padding-bottom: 2%;
  font-family: "F1Font";
  font-size: 3em;
}

#linkImgFav{
  margin-right: 90%;
}

#imgFav {
  width: 3%;
  padding-bottom: 2%;
}

/*
----------------------------------------------------------------------------------------------------------------------------------------
Partie sur la page d'erreur 403'
----------------------------------------------------------------------------------------------------------------------------------------
*/
#error403{
  padding-top: 2em;
  text-align: center;
}

#error403p{
  font-family: "F1Font";
  font-size: 6em;
  padding-bottom: 0.25em;
}

#pError403{
  font-family: "F1Font";
  font-size: 1em;
}

@media screen and (max-width: 900px) {
  /*
----------------------------------------------------------------------------------------------------------------------------------------
Partie sur la page de profil
----------------------------------------------------------------------------------------------------------------------------------------
*/
  .profileButtonsBorder {
    display: block;
    text-align: center;
    margin-left: 20%;
    margin-right: 20%;
  }

  .profileButtonsBorder button {
    width: 100%;
    font-size: 1.5em;
    padding-left: 20%;
    padding-right: 20%;
    border: 1px solid #5555551c;
  }

  .profileButtonsBorder button:hover {
    width: 100%;
    font-size: 1.5em;
    padding-left: 20%;
    padding-right: 20%;
    border: 1px solid #5555551c;
    background-color: rgba(0, 0, 0, 0.062);
  }

  .selectedButton {
    width: 100%;
    font-size: 1.5em;
    padding-left: 20%;
    padding-right: 20%;
    border: 1px solid #5555551c;
    background-color: rgba(0, 0, 0, 0.062);
  }

  .profileButton {
    width: 100%;
    font-size: 1.5em;
    padding-left: 20%;
    padding-right: 20%;
    border: 1px solid #5555551c;
    background-color: rgba(0, 0, 0, 0);
  }

  .profileInfos {
    margin-left: 30%;
    margin-right: 30%;
  }

  #profileInfo {
    text-align: center;
    display: inline-block;
  }

  /*
----------------------------------------------------------------------------------------------------------------------------------------
Seconde partie
----------------------------------------------------------------------------------------------------------------------------------------
*/

  .UsernameManagement {
    display: block;
    align-content: center;
    text-align: center;
    margin-left: 20%;
    margin-right: 20%;
  }

  #labelUsername {
    font-size: 1.5em;
    margin-top: 2.5em;
    margin-bottom: 0.5em;
    width: 100%;
  }

  #editIcon {
    width: 5%;
  }

  #imgEdit {
    width: 30px;
    margin-right: 0.5em;
    margin-top: -2em;
  }

  #inputModifUsername {
    text-align: center;
    font-size: 1em;
    width: 50%;
    padding: 12px 20px;
    margin-bottom: 3em;
    margin-top: 1em;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }

  #reinitePassword {
    width: 52%;
    font-size: 1.5em;
    text-decoration: underline;
    margin-left: 21%;
    margin-right: 21%;
    cursor: pointer;
  }

  #saveProfile {
    background-color: rgba(0, 0, 0, 0.151);
    border: 1px solid rgba(0, 0, 0, 0.247);
    width: 40%;
    font-size: 1.5em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    margin-left: 30%;
    margin-right: 30%;
    margin-top: 2em;
    cursor: pointer;
  }

  #imgDeconnexion {
    width: 5%;
    margin-left: 47.5%;
    margin-right: 47.5%;
    margin-top: 2em;
    margin-bottom: 2em;
  }

  #lienimgDeconnexion {
    text-align: center;
  }
}
