@font-face {
  font-family: 'trendablack';
  src: url('../fonts/latinotype__trenda_black-webfont.woff2') format('woff2'),
  url('../fonts/latinotype__trenda_black-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*background-color: black;*/
    background: url('../img/background.jpg') no-repeat center center fixed #000000;
    background-size: cover;
    color: white;
    font-family: "trendablack", sans-serif;
    min-width: 360px;
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer */
}

a {
  color: white;
}

a:focus,
a:hover {
  color: #C60087;
}

footer {
    font-size: 11px;
}

header {
    font-size: 14px;
}

header .navbar {
  padding: 0;
}


header .bonus {
    font-size: 20px;
}

header .small-logo {
  display: none;
}


.piepie {
    font-family: "piepie", sans-serif;
    font-weight: normal;
    text-transform: uppercase;
}

.container {
    width: 360px;
}

.btn {
    display: inline-block;
    font-size: 26px;
    text-transform: uppercase;
    font-family: "piepie", sans-serif;
    font-weight: normal;
    padding: .6rem 2rem .8rem 2rem;
    border-radius: 2rem;
    min-width: 250px;
    border: 0;
    line-height: 1;
}

.btn-primary {
    background-color: #C60087;
    color: #fff;
    box-shadow: 5px 10px 20px -5px rgba(198, 0, 135, 0.5);
}

.btn-primary:focus,
.btn-primary:hover {
  background-color: #C60087;
  box-shadow: 5px 10px 50px 0px rgba(198, 0, 135, 0.5);
}

.btn-secondary {
  background: url('../img/bg-btn.png') no-repeat center center;
  background-size: 100% auto;
  box-shadow: 5px 10px 20px -5px rgba(198, 0, 135, 0.5);
  font-size: 22px;
}

.encart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 6px -11px 30px -6px rgb(198 0 135);
}

.encart strong {
  color: #C60087;
}

/*.encart:before {*/
/*  content: '';*/
/*  */
/*}*/

.encart-lp {
    background: url("../img/encart-lp.png") no-repeat center center;
    background-size: 100% auto;
    height: 330px;
    text-align: center;
    font-size: 19px;
    padding-top: 10px;
}

.encart-loose,
.encart-win {
    background: url("../img/encart-result-win.png") no-repeat center top;
    background-size: 100% auto;
    height: 525px;
    text-align: center;
    font-size: 20px;
    line-height: 1.2;
    padding: 80px 24px 16px 30px;
    box-shadow: none;
    /*box-shadow: 6px 11px 30px -6px rgb(198 0 135);*/
}

.encart-loose {
  height: 315px;
  background-image: url("../img/encart-result-loose.png");
  box-shadow: none;
}

.encart-loose h2,
.encart-win h2 {
  font-size: 20px;
}

.encart-win h2 {
  font-family: "piepie", sans-serif;
  font-weight: normal;
  text-transform: uppercase;
}

.encart-win label {
  font-size: 13px;
  color: #C60087;
}

.encart-win input[type="text"] {
  width: 100%;
  padding: 5px 10px;
  margin: 10px 0;
  border: 2px solid #fff;
  border-radius: 0;
  background: black;
  color: white;
  text-align: center;
}

.encart-loose .btn,
.encart-win .btn {
  font-size: 22px;
}

.encart .bonus {
  align-items: start;
  text-align: left;
  font-size: 14px;
}

.encart .bonus h2 {
  text-transform: uppercase;
  font-family: "piepie", sans-serif;
  font-weight: normal;
  font-size: 22px;
}

.encart .bonus p {
  line-height: 1.3;
}

.encart-score {
    flex-direction: row;
    align-items: normal;
    background: black;
    border: 2px solid rgba(255, 255, 255, 1);
    height: 68px;
    font-size: 11px;
    line-height: 1.2;
    padding: 5px 0;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 6px 11px 30px -6px rgb(198 0 135);
}

.encart-score > span {
    flex: auto 1 1;
}

.encart-score > span strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-family: "piepie", sans-serif;
  font-weight: normal;
  color: #fff;
}

.encart-score .score {
  border: 4px solid #C60087;
  background: black;
  height: 100px;
  position: relative;
  top: -20px;
  font-size: 14px;
  box-shadow: 0px 0px 30px -6px rgb(198 0 135);
}
.encart-score .score strong {
  font-size: 50px;
  color: #C60087;
}

@keyframes scoreIncrease {
  0% {
      transform: scale(1);
      text-shadow: none;
      color: #C60087;
  }
  50% {
      transform: scale(1.5);
      color: white;
      text-shadow: 0 0 10px #C60087, 0 0 20px #C60087, 0 0 30px #C60087;
  }
  100% {
      transform: scale(1);
      text-shadow: none;
      color: #C60087;
  }
}

.score-increase {
  animation: scoreIncrease 0.5s ease-in-out;
}

.winScreen .encart-score {
  position: absolute;
  z-index: 10;
  top: 50%;
  width: 286px;
  left: 50%;
  transform: translateX(-50%) translateY(-298px);
  box-shadow: 6px -11px 30px -6px rgb(198 0 135);
  margin-top: 0 !important;
}

.winScreen .encart-win {
  padding-top: 110px;
}

.controlsSoundBreak {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: -50px;
}

.controlsSoundBreak .btn {
  min-width: 0;
  color: #fff;
  border: 2px solid #C60087;
  background: #000;
  border-radius: 50%;
  text-align: center;
  padding: 0;
  width: 40px;
  height: 40px;
  line-height: 30px;
}

.controlsSoundBreak .btn img {
  height: 20px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

#breakButton img {
  height: 16px;
}

.controls {
  display: flex;
  justify-content: center; /* centre l’item horizontalement */
  align-items: center;     /* si tu veux aussi centrer verticalement */
}

.controls svg{
  width: 200px;
}
#musicSelector {
  width: 150px;
  margin: auto;
  background: none;
  color: white;
}

#startGame {
  cursor: pointer;
}

.popin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.popin ~ .overlay {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.4);
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
}

.popin-start {
  transform: none;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

.popin-start .container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin-left: -8px;
}

/* Masquer la case à cocher native */
.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Style pour le label (remplaçant visuel) */
.custom-checkbox label {
  display: inline-block;
  position: relative;
  padding-left: 30px;
  color: white;
}

.custom-checkbox label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 50%;
  left: 0;
  border: 2px solid #fff;
  cursor: pointer;
  transition: all 0.1s ease;
  transform: translateY(-50%);
}


.custom-checkbox input[type="checkbox"]:checked + label::before {
  border-color: #C60087;
}

/* Ajouter un symbole (tick) pour l'état "coché" */
.custom-checkbox input[type="checkbox"]:checked + label::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 7px;
  width: 6px;
  height: 12px;
  border: solid #C60087;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


@media screen and (min-height: 670px) {

  header .small-logo {
    display: inline-block;
    width: 20vh;
    padding-top: 0;
  }

}

@media screen and (max-height: 669px) {

  .popin-win {
    top: 8px;
    transform: translateX(-50%);
  }

  .winScreen .encart-score {
    transform: translateX(-50%);
    top: 20px;
  }

}

.logo-home {
  display: inline-block;
  width: 25vh;
  padding-top: 6vh;
}

@media screen and (min-width: 769px) {

  .bg-landing {
    background: url('../img/background-desktop.jpg') no-repeat center center fixed #000000;
    background-size: cover;
  }

  .controls {
    display: none;
  }
}



/* media queries for small devices reduce margin and logos */
@media screen and (max-width: 420px) {


  header .logo-tanoshi {
    width: 80px;
  }

  header .logo-snake {
    width: 200px;
  }

}
