@font-face {
  font-family: "Mulish";
  src: url("../fonts/Mulish/static/Mulish-Medium.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Mulish";
  src: url("../fonts/Mulish/static/Mulish-Light.ttf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Mulish";
  src: url("../fonts/Mulish/static/Mulish-Bold.ttf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Domine";
  src: url("../fonts/Domine/static/Domine-Medium.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "B612";
  src: url("../fonts/B612Mono-Regular.ttf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

.b612-font {
  font-family: "B612", monospace;
}

.domine-font {
  font-family: "Domine", serif;
}

.mulish-font {
  font-family: "Mulish", sans-serif;
}

body {
  font-family: "Mulish", sans-serif;
  /* overflow: hidden; */
}

form {
  width: 100%;
}
.form-control {
  border-radius: 100px;
  /* height: 4.5rem; */
  /* width: 52rem; */
  border: 3px solid white;
  background-color: #db2622;
  color: white;
  /* padding-left: 2rem; */
}

.form-control:focus {
  border-radius: 100px;
  /* height: 4.5rem; */
  /* font-size: 1.5rem; */
  border: 5px solid white;
  background-color: #db2622;
  box-shadow: none;
  color: white;
  outline: none;
}

form input {
  /* padding-left: 2rem; */
}

.form-control::placeholder {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}
.form-check-input:checked {
  background-color: black;
  border: 1px solid white;
}
.form-check-input {
  /* width: 2rem;
  height: 2rem;
  margin-right: 1rem; */
  border: 1px solid #000;
}

.form-check-label {
  font-size: 0.75rem !important;
  /* margin-top: 0.5rem; */
}

form button {
  /* width: 33.75rem; */
}
/* .parte-rossa {
  min-height: 25vh;
} */

.start-page {
  /* min-height: 100dvh; */
}
/*start page  */
.parte-rossa {
  background-color: #db2622;
  min-height: 100dvh;
}
.parte-rossa .header {
  /* margin-bottom: 2rem; */
}
.banner-carte {
  position: absolute;
  height: 13.5rem;
  bottom: -3rem;
  left: 50%;
  transform: translateX(-50%);
  object-fit: contain;
}

header img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.parte-rossa h1 {
  color: #fff;
  /* font-size: 4rem; */
  text-align: center;
  /* letter-spacing: 0.56rem; */
  /* margin-bottom: 2rem; */
}

.parte-rossa p,
.parte-rossa button {
  /* font-size: 3rem; */
}
.start-page button.gioca-ora {
  /* color: #fff; */
  /* font-size: 3rem; */
  font-weight: bold;
  border-radius: 0.75rem;
  /* padding: 2rem 2.5rem; */
  box-shadow: 0 -0.5rem 0 #0000003b inset;
  letter-spacing: 0.15rem;
  margin-top: 2.5rem;
  background-color: transparent;
}

.input-container > input {
  /* width: 50%; */
  text-align: center;
  border-radius: 100px;
  margin: 0 auto;
}

.header {
  /* margin: 2rem */
}

.game-container .header {
  /* height: 3rem; */
  /* padding: 2rem;
  margin: 4rem */
}

.logo {
  height: 1.5rem;
  margin: 0 auto;
}
/* .header svg {
  fill: #007bff;
  stroke: #000;
  stroke-width: 1px;
} */

.game-container {
  height: 100dvh;
  padding: 1.5rem 0;
  /* overflow: hidden; */
}

.status {
  border: 1px solid #000;
  border-radius: 5px;
  /* height: 7.5rem; */
  /* padding: 10px;
  margin: 10px 0; */
}
.pulsanti-container {
  /* gap: 0.75rem */
}

.tempo {
  margin-top: 4px;
}

.parole-giocate-container {
  position: relative;
  overflow-y: auto;
  max-height: 20vh;
  scrollbar-width: none; /* Firefox */
}
.parole-giocate {
  scrollbar-width: none;
}
.parole-giocate::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.parole-giocate-container::before,
.parole-giocate-container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.parole-giocate-container::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
}

.parole-giocate-container::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.parole-giocate-container.scrollable-up::before {
  opacity: 1;
}
.parole-giocate-container.scrollable-down::after {
  opacity: 1;
}

.parole-giocate {
  overflow: hidden auto;
  max-height: 20vh;
}

#tavolo {
  position: relative;
  min-height: 40vh;
  flex-grow: 1;
  border-radius: 5px;
  /* background-color: #f0f0f0; */
  border: 1px solid #000;
  /* overflow: hidden; */
  transition: all 1s ease-out;
}

.social-container .btn:hover {
  background-color: #db2622;
}

.istruzioni-container {
  /* height: 6rem */
}

.dashboard {
  min-height: 7rem;
  border-radius: 5px;
}

.parola-sfondo {
  font-size: 38px;
  pointer-events: none;
  display: inline-block;
  width: 100px;
}

.carta {
  position: relative;
  width: 130px;
  height: 200px;
  /* width: 100px;
  height: 150px; */
  background-color: #fff;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transform-style: preserve-3d;
}

.carta .face {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  /* padding: 1rem; */
}

.carta .front {
  background-color: #fff;
  /* overflow-y: scroll; */
  overflow: hidden;
  padding: 1vh;
  text-align: center;
}

.carta .back {
  background-image: url("../asset/Treccani-carta.png");
  background-size: cover;
  background-position: center;
}
.domanda {
  text-align: start;
}
.mazzo {
  transition: all 0.3s ease-out;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 200px;
  /* width: 100px;
  height: 150px; */
  position: absolute;
  top: 50%;
  left: 50%;
}

.utente {
  transition: all 0.3s ease-out;
}

.valore-carta-container {
  width: 2rem;
  height: 2rem;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #db2622;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 0.75rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1;
  transform: translate(-50%, -50%);
}

.tempo-basso {
  color: #db2622;
  font-weight: bold;
  /* animation: blink 1s infinite, pulse 0.5s infinite alternate; */
  animation: blink 1s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}

#mazzo-utente {
  width: 100px;
  height: 150px;
}

.mazzo-utente .carta {
  overflow-y: none;
}

.mazzo .carta,
.mazzo-utente .carta {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 10px;
  /* overflow: hidden; */
}

.carta h5 {
  font-size: 2rem;
  margin-bottom: 0.7rem;
  margin-top: 1rem;
  font-weight: bold;
  letter-spacing: 0.1rem;
  /* max-height: 30%; */
}
.carta p {
  font-size: large;
  margin: 0;
}

#categorie {
  /* padding: 1rem; */
}

.categoria {
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  /* border: 1px solid black; */
}

.categoria-scelta {
  font-size: 1.5rem;
  font-weight: bold;
  background-color: lavender;
  border-radius: 5px;
}

#categorie .logo-centenario {
  top: -3px;
}
.container-timeline {
  min-height: 80px;
  font-family: "Domine", serif;
}

.heart-fill {
  color: #db2622;
}
#leggenda-parole {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  margin: 0;
}
#anno-scelto {
  /* font-size: 1rem; */
  font-weight: bold;
  border-radius: 0.75rem;
  padding: .75rem 1rem;
  letter-spacing: 0.2rem;
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.btn-abilita {
  width: 3rem;
  height: 3rem;
  background-color: #db2622;
  color: white;
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translate(-50%, -50%);
}
.btn-abilita:hover {
  filter: brightness(1.1) !important;
  background-color: #db2622 !important;
  color: white !important;
}

.btn-abilita svg {
  fill: #fff !important;
}

.btn-abilita:disabled {
  background-color: #db2622;
  color: white;
  cursor: not-allowed;
  opacity: 0.5 !important;
}

#cambio-carta {
  bottom: calc(3rem + 1.5rem);
  right: 0;
}

/* Stile per lo slider */
#timeline-range {
  -webkit-appearance: none;
  width: 100%;
  margin: 10px 0;
  background: transparent;
  /* display: none; */
}

#timeline-range:focus {
  outline: none;
}

#timeline-range::-webkit-slider-runnable-track {
  height: 4px;
  background: #ccc;
  border-radius: 2px;
}

#timeline-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #db2622;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -6px; /* Per centrare il thumb sul track */
}

#timeline-range::-moz-range-track {
  height: 4px;
  background: #ccc;
  border-radius: 2px;
}

#timeline-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #007bff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
}

.ticks {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  /* font-family: Arial, sans-serif; */
}

.tick {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.tick .tick-mark {
  width: 2px;
  height: 8px;
  background: #000;
  transition: all 0.2s ease;
  display: none;
}

.tick.has-label .tick-mark {
  height: 10px;
}

/* Etichetta del tick */
.tick .tick-label {
  font-size: 16px;
  color: #000;
  font-weight: bold;
  margin-top: 2px;
  text-align: center;
}

/* Effetto hover per evidenziare il tick */
.tick:hover .tick-mark {
  background: #db2622;
  /* transform: scaleY(1.2); */
}

.dispari .tick-mark {
  display: block;
}

/* ///////////////////////////////////////////////////////// WHEEL */
.container-tick {
  /* max-width: 400px; */
  margin: 0 auto;
  /* padding: 20px; */
  background: #fff;
  border-radius: 10px;
  /* box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1); */
  position: relative;
  margin: 0.5rem auto;
}

.empty-space {
  flex: 0 0 auto;
}

.label {
  /* display: none; */
}

#selectedYear {
  display: none;
  font-size: 24px;
  font-weight: bold;
  background-color: lavender;
  padding: 10px;
  border-radius: 5px;
  pointer-events: none;
  text-align: center;
  position: absolute;
}

.wheel {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding: 10px 0;
  position: relative;
  z-index: 1000;
}
.wheel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
.tick-item {
  flex: 0 0 auto;
  /* width: 20px; */
  width: 2rem;
  margin: 0 0.5rem;
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
  flex-direction: column-reverse;
  align-items: center;
}

.tick-line {
  width: 2px;
  height: 1rem;
  background-color: black;
  margin: 0 auto;
  transform-origin: center top;
}
.tick-label-wheel {
  font-size: 1.25rem;
}

.fake-selector-year {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 3rem;
  background-color: #db2622;
  color: white;
  font-weight: bold;
  text-align: center;
  /* line-height: 2rem; */
  border-radius: 20px;
  border: none;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  z-index: 1;
  box-shadow: 0 0px 0 rgba(0, 0, 0, 0.05) inset,
    0 -6px 0 rgba(0, 0, 0, 0.2) inset;
}
.tick-item.active {
  margin: 0 2rem;
}

.tick-item.active span {
  font-weight: bold;
  color: white;
  z-index: 10;
  position: relative;
  /* background-color: lavender; */
  /* padding: 5px 10px; */
  /* border-radius: 5px; */
}

#rispondi {
  background-color: #363636;
  color: white;
  position: relative;
  box-shadow: 0 0px 0 rgba(0, 0, 0, 0.05) inset,
    0 -6px 0 rgba(0, 0, 0, 0.2) inset;
}

.btn-danger {
  color: white;
  background-color: #db2622;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 -0.7rem 0 rgba(0, 0, 0, 0.2) inset;
}
.btn-danger:hover {
  filter: brightness(1.1);
}

.border-black-2 {
  border: 2px solid black;
}
.border-black-3 {
  border: 3px solid black;
}
.border-top-black-3 {
  border-top: 3px solid black;
}

.border-white-2 {
  border: 2px solid white !important;
}
.border-white-3 {
  border: 3px solid white !important;
}
.height-7rem {
  height: 7rem;
}

.splide__pagination__page {
  height: 1rem;
  width: 1rem;
  background-color: white;
  border: 2px solid black;
}

.negative-margin-top-10 {
  margin-top: -10px !important;
}

.splide__pagination__page.is-active {
  background: black !important;
  transform: scale(1);
  opacity: 1;
}
.custom-arrow {
  width: 3rem;
  height: 3rem;
}

#inizia-gioco {
  border-radius: 0.75rem;
  letter-spacing: 0.1rem;
  box-shadow: 0 -0.5rem 0 rgba(0, 0, 0, 0.2) inset;
  font-size: 1rem;
}

.splide__arrows button[disabled] {
  opacity: 0;
}

.letter-spacing-04 {
  letter-spacing: 0.15rem;
}

#indizio {
  position: absolute;
  bottom: 2%;
  right: 2%;
  /* transform: translate(-25%, -50%); */
  width: 4rem;
  height: 4rem;
}

#indizio img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
}

.range-disponibile {
  position: absolute;
  left: 50%;
  top: 3%;
  z-index: 1;
  font-size: 1rem;
  pointer-events: none;
  transform: translateX(-50%);
}

.vite-counter {
  font-weight: bold;
}

.feedback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #db2622; /* Light red with some transparency */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0; /* Start with opacity 0 for fade-in effect */
}

.feedback-corretto {
  background-color: rgb(69, 201, 51); /* Light green with some transparency */
  opacity: 1;
}

.message-feedback {
  color: black; /* Text color is black */
  font-size: 4rem;
  font-weight: bold;
  text-align: center;
}

.message-feedback-corretto {
  color: white;
}

.vittoria {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white; /* Light red background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.animazione-timeline-vittoria {
  font-size: 1.5rem;
  font-weight: bold;
  color: #db2622;
  padding: 20px;
  border-radius: 10px;
  opacity: 0;
}
.message-vittoria {
  color: black;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.2rem;
  margin-bottom: 1rem;
  opacity: 1;
}

.text-danger {
  color: #db2622 !important;
}

.message-game-over {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.2rem;
}

.record-feedback {
  color: white;
  font-size: 1rem;
  text-align: center;
  margin: 1rem 0;
}

button.gioca-ancora {
  font-size: 1rem;
  font-weight: bold;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 -0.5rem 0 #0000003b inset;
  margin: 2.5rem 0 1rem 0;
  letter-spacing: 0.2rem;
  /* background-color: transparent; */
  background-color: #db2622;
  color: white;
}
button.gioca-ancora:hover {
  filter: brightness(1.1);
  color: white !important;
  background-color: #db2622;
}
.feedback-game-over .gioca-ancora:hover {
  filter: brightness(1.1);
  color: black !important;
}
.torna-home {
  font-size: 1rem;
  border-radius: 0.75rem;
  font-weight: bold;
  padding: 1rem 1.5rem;
  letter-spacing: 0.2rem;
}

.feedback-game-over {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1); /* Dark background with transparency */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.risposta-corretta {
  color: white;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: bold;
}

.domanda-sbagliata {
  color: white;
  font-size: 3rem;
  text-align: center;
  margin: 2rem 0;
}

.testo-email {
  font-size: 0.75rem;
  color: white;
  text-align: center;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .mazzo {
    width: 200px;
    height: 300px;
  }
  .logo {
    height: 4.5rem !important;
  }

  .parte-rossa .titolo-start-page {
    font-size: 2rem !important;
  }
  .parte-rossa .paragrafo-start-page {
    font-size: 1.75rem !important;
  }
  .form-control::placeholder {
    font-size: 1.2rem;
  }
  .start-page button.gioca-ora {
    transform: scale(1.2);
    margin-top: 3.5rem !important;
  }
  .carta {
    width: 200px;
    height: 300px;
  }
  .carta h5 {
    letter-spacing: 0.2rem;
    margin-bottom: 1rem;
  }
  .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    border: 1px solid #000;
  }
  .form-check-label {
    font-size: 1rem !important;
  }

  .istruzioni {
    font-size: 1.5rem !important;
  }
  .categoria {
    font-size: 1.5rem;
  }

  #indizio {
    position: absolute;
    top: 70%;
    right: 0;
    transform: translate(-50%, -50%);
    width: 6rem;
    height: 6rem;
  }

  #cambio-carta {
    bottom:  calc(3rem + 1.5rem);
    right: 0;
  }

  .range-disponibile {
    font-size: 1.5rem;
    /* bottom: 0; */
  }
  .dashboard {
    min-height: 12rem;
  }
  .tick-item {
    width: 6rem;
    margin: 0 1.5rem;
  }
  .tick-line {
    height: 4rem;
  }
  .tick-label-wheel {
    font-size: 3rem;
  }
  .fake-selector-year {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 12.5rem;
    height: 5.5rem;
  }

  .tick-item.active {
    margin: 0 3.5rem;
  }
  .letter-spacing-04 {
    letter-spacing: 0.4rem;
  }
  .message-feedback {
    font-size: 8rem;
  }
  .animazione-timeline-vittoria {
    font-size: 1.5rem;
  }
  .message-vittoria {
    font-size: 4rem;
    letter-spacing: 0.4rem;
    margin-bottom: 1rem;
    /* opacity: 0; */
  }
  .record-feedback {
    font-size: 2rem;
    margin: 1.5rem 0;
  }
  .message-game-over {
    color: white;
    font-size: 4rem;
    letter-spacing: 0.4rem;
    margin-bottom: 1rem;
  }

  .testo-email {
    margin: 3rem 0;
  }
}

@media (min-width: 992px) {
  .range-disponibile {
    /* bottom: -5rem; */
    left: 2%;
    top: 3%;
    transform: translateX(0%);
    font-size: 1.2rem;
  }
  #indizio {
    right: 10%;
  }
  #istruzioni {
    margin-top: .5rem !important;
    font-size: 1.5rem !important;
  }
  .logo {
    height: 2.5rem !important;
  }
  .dashboard {
    min-height: 8rem;
  }
  .banner-carte {
    position: absolute;
    height: 30rem;
    bottom: -10rem;
    left: 50%;
    transform: translateX(-50%);
    object-fit: contain;
  }
	.timeline {
    	padding: 0 1rem;
 	 }

  .ticks {
    padding: 0 .5rem;
  }

  .tick .tick-label {
    width: 2px;
    position: relative;
    left: -1rem;
  }
}
