body {
  background-image: url(/assets/img/background.png);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.container {
  height: 100vh;
}

.content, .content-mobile {
  margin-top: 50vh; /* poussé de la moitié de hauteur de viewport */
  transform: translateY(-50%); /* tiré de la moitié de sa propre hauteur */
}

audio {
  display: none;
}

.piano-javascript {
  border: 3px solid blue;
  display: block;
}

.piano-mobile {
  display: none;
}

.piano-container {
  background: black;
  padding: 15px 30px;
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
  border-radius: 5px;
}


.piano-container {
  text-align: center;
}

.piano-keys{
  word-spacing: 0;
  letter-spacing: 0;
  font-size: 0;
}

.piano-pedal {
  margin: 10px;
  color: rgba(0, 0, 0, 0.1);
}

.piano-sustain {
  color: black;
}

.piano-white, .piano-black {
  display: inline-block;
  position: relative;
  vertical-align: top;
  direction: ltr;
  margin: 0;
  padding: 0;
}

.piano-white, .piano-black-raised {
  border-radius: 2px;
  border-color: #222;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  cursor: pointer;
}

.piano-white {
  width: 50px;
  height: 200px;
  background-color: white;
  z-index: 1;
}


.piano-black {
  width: 0;
  height: 100px;
  z-index: 2;
}

.piano-black-raised {
  width: 20px;
  height: 100px;
  position: relative;
  left: -10px;
  background-color: black;
}

.notes-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.notes-name1, .notes-name2 {
  position: absolute;
  text-align: center;
  font-size: 15px;
  bottom: 0;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.notes-name1 {
  color: blue;

}

.notes-name2 {
  color: red;
}

.popup {
  position: fixed;

  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  display:none;
  padding:5px;
  z-index: 5;
  max-width: 70%;
}

.post-overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: #000000ad;
  top: 0;
  left: 0;
  z-index: 3;
}

.popup-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color : white;
  padding: 30px;
  border-radius: 5px;
}

.gif img {
  width: 40vw;
}

.message {
  padding: 20px 20px 0 20px;
  font-size: 20px;
  color: black;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
  text-align: center;
}

@media (max-width: 1100px) {

  .piano-mobile {
    display: block;
  }

  .piano {
    display: none;
  }

  .content {
    display: none !important;
  }

  body {
    background-size: contain;
  }

}

@media (min-width: 768px) {

  .container {
    max-width: none !important;
  }
}
