*{
    margin : 0;
    padding : 0;
}

html{
    background-color: #080D16;
}
header{
    margin : 0;
    padding : 0;
    background-color: #121019;
    width: 100%;
    height: 64px;
}


#log{
    background-color: #E7B783;
    color: #000000;
    font-size: 16px;
    font-family: Lexend;
    font-weight: bold;
    width: 135px;
    height: 35px;
    border-radius: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}


#menu{
    border-bottom: thin solid #777160;
    height: 64px;
}

ul{
    display : flex;
    flex-direction : row;
    align-items: center;
    justify-content: space-around;
    height: 64px;
}

li{
    list-style-type:none;
}

button{
    background-color: #121019;
    border-style: none;
}

a{
    font-family: Lexend;
    text-decoration:none;
    color: #ffffff;
    font-size: 16px;
    transition: color 300ms;
}

ul a:hover{
    color: #E7B783;
}




.grid {
  display: grid;
  grid-template-columns: repeat(13, 60px); /* 12 colonnes de frettes + 1 colonne pour les noms */
  grid-template-rows: repeat(6, 40px);     /* 6 cordes */
  gap: 2px;
  padding-top: 3%;
  justify-content: center;
}

.gridd {
  display: grid;
  grid-template-columns: repeat(12, 60px); /* 12 colonnes de frettes + 1 colonne pour les noms */
  grid-template-rows: repeat(6, 40px);     /* 6 cordes */
  gap: 2px;
  padding-top: 3%;
  justify-content: center;
}

.griddd {
  display: grid;
  grid-template-columns: repeat(14, 60px); /* 12 colonnes de frettes + 1 colonne pour les noms */
  grid-template-rows: repeat(6, 40px);     /* 6 cordes */
  gap: 2px;
  padding-top: 3%;
  justify-content: center;
}

.cell, .Ncell {
  border: 1px solid #404040;
  background-color: #121019;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}



.cell:hover {
  background-color: #E7B783;
}


.label, .Nlabel{
    font-family: Lexend;
    font-size: 16px;
    background-color: #080D16;
    font-weight: 200;
    color: #ffffff;
    border: none;
}

.label:hover{
    background-color: #080D16;
}

.Nlabel:hover{
    background-color: #9A5E1D;
}

h1{
    text-transform: uppercase;
    font-family: Lexend;
    font-weight: bold;
    display: flex;
    color: #ffffff;
    justify-content: center;
    padding-top: 3%;
    font-size: 40px;
}

.bb{
    width: 140px;
    height: 80px;
    background-color: #121019;
    border: thin solid #404040;
    color: #ffffff;
    font-family: Lexend;
    font-size: 16px;
    border-radius: 10px;
    transition: background-color 0.5s;
}

.bb:hover{
    background-color: #E7B783;
}

p{
    font-family: Lexend;
    font-size: 20px;
    color: #ffffff;
    font-weight: 200;
}

#prebottom{
    margin: 2% 30% 0% 30%;
}

.false{
      background-color: #FB4B4E;
}

#Bottom{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.clicked {
  background-color: #E7B783;
}

.clickedd {
  background-color: #9A5E1D;
}

.fa{
    background-color: #121019;
}

.correct{
    background-color: #B08286;
}

.correct:hover{
    background-color: #B08286;
}

.alert-error {
  position: fixed;
  top: 30px;
  right: 30px;
  background-color: #1e1b2e;
  color: #E7B783;
  border-left: 5px solid #ff4e4e;
  padding: 20px;
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  font-family: 'Lexend', sans-serif;
  z-index: 999;
  display: none;
  animation: fadeInSlide 0.5s ease;
}

.alert-xp {
  position: fixed;
  top: 30px;
  right: 30px;
  background-color: #1e1b2e;
  color: #E7B783;
  border-left: 5px solid #05e810;
  padding: 20px;
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  font-family: 'Lexend', sans-serif;
  z-index: 999;
  display: none;
  animation: fadeInSlide 0.5s ease;
}

.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}

.alert-body {
  margin-top: 10px;
  font-size: 14px;
}

.close-btn {
  background: none;
  border: none;
  color: #E7B783;
  font-size: 22px;
  cursor: pointer;
}

#progressBar {
    width: 100%;
    padding-top: 8%;
    color: #E7B783;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


@media screen and (max-width: 1500px) {
    p{
        font-size : 20px;
    }
    h2{
        font-size : 30px;
    }

        #prebottom{
        margin: 2% 20% 0% 20%;
        display:flex;
        flex-direction: column;
    }
}

@media screen and (max-width: 1250px) {
    p{
        font-size : 18px;
    }

    h2{
        font-size : 26px;
    }
}

@media screen and (max-width: 1000px) {
    p{
        font-size : 18px;
    }
    h2{
        font-size : 18px;
    }

}

@media screen and (max-width: 700px) {
    h1{
        margin-top: 30px;
    }
    h2{
        font-size : 18px;
    }
        p{
        font-size : 14px;
    }
    .all-info{
        margin-top: 30px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .info{
        margin-bottom: 30px;
        width: 60%;
    }

}

.cell {
  position: relative; /* nécessaire pour placer un ::after */
}


.cell.repere::after {
  content: "";
  width: 6px;
  height: 6px;
  background-color: #888;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.Ncell {
  position: relative; /* nécessaire pour placer un ::after */
}


.Ncell.repere::after {
  content: "";
  width: 6px;
  height: 6px;
  background-color: #888;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}