/*
  auteur     : Clara Brodard
  Date       : 22.12.2021
  Description: styles projet "le rock"
*/

*{
  font-family: helvetica, sans-serif;
}

body{
  background-image: url(../images/Bannière-Site-guitare.jpg);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 250px;
  background-attachment: fixed;
}

h1{
  margin-left: 220px;
  font-size: 4em;
  text-shadow: 3px 3px brown;
}

nav{
  border: solid 2px black;
  width: 190px;
  height: 12em;
  min-width: 190px;
  margin-top: 2em;
}

#position{
  background-color: darkred;
  color: white;
}

nav>p{
  padding: 5px;
  margin: 0;
  font-size: 1.2em;
}

nav>p.menu:hover{
  background-image: linear-gradient(to right, rosybrown, white);
}

nav>p#position:hover{
  background-color: brown;
}

.aligner{
  display: flex;
}

h2{
  font-size: 2em;
}

div.article{
  flex-direction: column;
  margin-left: 2em;
  flex-grow: 2;
  margin-right: 255px;
  justify-content: space-evenly;
}

#createur{
  border:solid black 1px;
  width: 11em;
  padding: 0.5em;
  display: flex;
  position: fixed;
  bottom: 1%;
  left: 1%;
}

.gauche{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.para{
  padding: 1em;
  border-style: dotted;
  border-width: 6px;
  border-color: firebrick;
  border-radius: 25px;
  line-height: 1.4;
  height: 100%;
  width: 70%;
}

.align{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3em;
}

video{
  margin-right: 1.5em;
  margin-left: 1.5em;
}

img{
  margin-left:1.5em;
  margin-right: 1.5em;
}

a{
  text-decoration: none;
  color: black;
}

#position>a{
  color: white;
}

/**/
aside{
  text-align: center;
  padding: 0.5em;
  color: brown;
  width: 300px;
}

.media{
  display: flex;
  flex-direction: column;
  align-items: center;
}

audio{
  padding-left: 1.5em;
  padding-right: 1.5em;
}

/*partie du menu de la page actuelle*/
.actuel{
  padding: 1em;
  border-style: dotted;
  border-width: 6px;
  border-color: firebrick;
  border-radius: 25px;
  line-height: 1.4;
}

/*liens sources non visité*/
.lien:link{
  text-decoration: underline black 1px;
}

/*liens sources déjà visité*/
.lien:visited{
  text-decoration: underline darkred 1px;
  color: brown;
}

/*heure et date en bas à droite*/
#heure{
  background-color: brown;
  height: fit-content;
  color: white;
  padding: 5px;
  border-radius: 25px;
  width: 120px;
  position: fixed;
  right: 1%;
  bottom: 1%;
  text-align: center;
}

.alignmedia{
  display: flex;
  align-items: flex-start;
}

.alignmedia>p{
  margin-top: 0;
}

@media screen and (max-width: 1280px){
  
  /*enlève l'image de fond à droite*/
  body{
    background: none;
  }

  .align{
    flex-direction: column;
    align-items: center;
  }

  div.article{
    margin-right: 1em;
  }
   
  img{
    margin: 0;
  }

  audio{
    padding-top: 1em;
    padding-bottom: 1em;
  }

  .para{
    width: 100%;
  }

  /*vidéos*/
  video{
    width: 480px;
    height: 250px;
    margin: 0;
  }

  nav{
    display: flex;
    width: 90%;
    height: fit-content;
    align-self: center;
  }

  .aligner{
   flex-direction: column;
  }

  /*fait disparaitre l'onglet créateur*/
  #createur{
    display: none;
  }

  nav>p{
    padding: 5px;
    font-size: 1.2em;
    width: 50%;
    box-sizing: border-box;
  }

  /*titre Le rock*/
  h1{
    margin-left: 0em;
    align-content: center;
    text-align: center;
  }

  /*faire disparaitre l'heure et la date*/
  #heure{
    display: none;
  }

  .para{
    margin-right: 1em;
  }

  .alignmedia{
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 700px){
  nav{
    display: flex;
    width: 90%;
    height: fit-content;
    align-self: center;
    flex-direction: column;
  }

  nav>p{
    width: 100%;
    text-align: center;
    
  }

  nav>p.menu:hover{
    background-image: linear-gradient(to right, white, rosybrown, white) ;
  }

}