#calcolatore_container {
  width: 100%;
  position: relative;
  margin: auto;
  background-color: #fff8f0;
}

#calcolatore_container * {
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
}

.black_btn_box {
  padding: 10px 0;
  text-align: center;
  background-color: #fff8f0;
}

.black_btn {
  width: fit-content;
  border-radius: 22.5px;
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.3);
  background-color: #000;
  font-family: "SoleSans", Arial, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: normal;
  text-align: center;
  color: #fff;
  border: none;
  padding: 5px 15px;
  cursor: pointer;
}

.black_btn:hover {
  opacity: 0.5;
}

.box_inflazione {
  opacity: 0;
  z-index: -1;
  height: 0;
}

.inflazione_utente {
  font-size: 36px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.17;
  letter-spacing: normal;
  text-align: center;
  color: #000;
}

.inflazione_utente span {
  font-weight: 600;
}

.inflazione_italia {
  font-size: 16px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: center;
  /* color: #d9d3cc; */
  color: rgba(0, 0, 0, 0.5);
}

/* CARDS */

.cards {
  position: absolute;
  top: 0;
  left: 2%;
  width: 360px;
  opacity: 0;
  z-index: -1;
}

.card {
  width: 100%;
  height: fit-content;
  overflow: hidden;
  background: #fff;
  padding: 0;
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.3);
}

.card_menu_list {
  /*   list-style-type: none; */
  width: 252px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  height: 26px;
}

.card_menu_list button {
  font-size: 16px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  width: 26px;
  height: 26px;
  padding: 0; /* ci vuole perché altrimenti gli iphone fanno i cerchi ovali */
  letter-spacing: normal;
  text-align: center;
  /* color: #d9d3cc; */
  color: rgba(0, 0, 0, 0.5);
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 50%;
}

/* button.card_menu_hover:hover {
  background-color: #0CA97A;
  color: #fff;
  cursor: pointer;
} */

button.card_menu_active_group {
  background-color: #0CA97A;
  color: #fff;
}

button.card_menu_active_group:hover {
  cursor: pointer;
  border-color: #0CA97A;
  background-color: #fff;
  color: #0CA97A;
}

button.card_menu_active {
  border-color: #0CA97A;
  background-color: #fff;
  color: #0CA97A;
  cursor: pointer;
}

.card_occhiello {
  font-size: 14px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.14;
  letter-spacing: normal;
  text-align: left;
  color: #0CA97A;
  text-transform: uppercase;
}

.card_content {
  height: 100%;
  display: block;
  visibility: visible;
  padding: 0 30px 30px 30px;
  background: #fff;
}

.display_none {
  display: none;
}

.collapse {
  opacity: 0;
  visibility: collapse;
  height: 0;
}

.card_domanda {
  font-size: 32px;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.06;
  letter-spacing: normal;
  text-align: left;
  color: #000;
}

.card_descrizione {
  font-size: 14px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.14;
  letter-spacing: normal;
  text-align: left;
  color: #000;
  margin-top: 10px;
  margin-bottom: 20px;
}

.card_legenda {
  font-size: 14px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.14;
  letter-spacing: normal;
  text-align: left;
  /* color: #d9d3cc; */
  color: rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  margin-top: 15px;
}

/* .card_selettori {
  display: flex;
  flex-wrap: wrap;
} */

.card_number_cnt{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card_number_cnt div{
  width: fit-content;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 14px;
}

.card_number {
  width: 100%;
  margin-left: 20px;
  padding: 7px 20px;
  box-sizing: border-box;
  border: 2px solid #0CA97A;
  border-radius: 40px;
  text-align: right;
  -moz-appearance: textfield;
  color: #0CA97A;
  font-size: 20px;
}

.card_number::-webkit-outer-spin-button,
.card_number::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.card_number:focus, 
.card_number:focus{
  outline: none;
}

.card_checkbox {
  width: fit-content;
  padding: 8px 15px;
  border-radius: 17.5px;
  border: 1px solid rgba(0, 0, 0, 0);
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.3);
  background-color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.13;
  letter-spacing: normal;
  text-align: left;
  color: #000;
}

.card_checkbox {
  margin: 6px 8px 6px 0;
}

.card_checkbox:hover {
  border-color: #0CA97A;
  color: #0CA97A;
  background-color: #fff;
}

.card_checkbox_selected {
  background-color: #0CA97A;
  color: #fff;
  font-weight: 500;
}

.card_checkbox_selected:hover {
  background-color: #0CA97A;
  color: #fff;
  font-weight: 500;
}

.checkbox_no_border_radius_left {
  background-color: #0CA97A;
  color: #fff;
  cursor: pointer;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.checkbox_no_border_radius_right {
  background-color: #0CA97A;
  color: #fff;
  cursor: pointer;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

.checkbox_no_border_radius {
  background-color: #0CA97A;
  color: #fff;
  cursor: pointer;
  border-radius: 0px;
}

.card_conferma {
  text-align: center;
  margin-top: 10px;
}

.card_conferma button {
  padding: 8px 14px 8px 15px;
  border: none;
  border-radius: 17.5px;
  background-color: #000004;
  font-size: 16px;
  font-weight: 500;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.13;
  letter-spacing: normal;
  text-align: center;
  color: #fff;
  cursor: pointer;
}

.card_conferma button:hover {
  opacity: 0.7;
}

.card_errore {
  font-size: 12px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: center;
  color: #f00;
  margin: 20px 0 0 0;
  opacity: 0;
}

.card_011_row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.card_011_row_selettori {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
}

.no_border {
  margin: 6px 0;
  border: none;
  box-shadow: none;
}

.card_selettori {
  /* border-radius: 17.5px; */
  /* box-shadow: 0 0 3px 0 rgb(0 0 0 / 30%); */
  display: flex;
  flex-direction: row;
  /* width: fit-content; */
  margin-top: 6px;
  margin-bottom: 32px;
}

.card_selettori div {
  margin: 0;
}

.card_selettori {
  position: relative;
  /* width: 90px; */
}

#card_checkbox_no {
  width: 50px;
  z-index: 8;
}

#card_checkbox_si {
  width: 50px;
  position: absolute;
  top: 0;
  left: 40px;
  text-align: center;
}

#card_checkbox_nessuna_auto {
  margin: auto;
}

/* GRAFICO */

.box_canvas {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  margin-top: 20px;
}

.box_canvas_inner {
  position: relative; /* obbligatorio perché il canvas sia responsive */
  width: 100%;
  height: 100%;
}

.modal {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
  opacity: 0;
}

/* RESPONSIVE MOBILE */

@media only screen and (max-width: 600px) {
  .inflazione_utente {
    font-size: 26px;
  }

  .cards {
    z-index: -1;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
  }

  .card_menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 0;
    height: 100px;
  }

  .card_menu_handler_mobile {
    max-width: 30px;
    margin-right: 5px;
    margin-top: 5px;
    align-self: flex-end;
  }

  .card_menu_handler_mobile img {
    text-align: center;
    cursor: pointer;
  }

  .card_menu_handler_mobile img:hover {
    opacity: 0.7;
  }

  .card_occhiello {
    text-align: center;
    padding: 10px 0;
  }

  .card_menu_list {
    margin: auto;
  }

  .card_content {
    padding: 30px;
  }

  .card_domanda {
    font-size: 22px;
  }

  .box_canvas {
    height: 80vh;
  }

  .box_canvas_inner {
    position: relative; /* obbligatorio perché il canvas sia responsive */
    width: 100%;
    height: 100%;
  }

  #continua_game_btn {
    opacity: 0;
    z-index: -1;
  }

  .desktop {
    /* deve stare per ultimo nella media query */
    display: none;
  }

  .card_occhiello {
    margin-bottom: -6px;
  }
}

/* RESPONSIVE DESKTOP */
@media only screen and (min-width: 601px) {
  #calcolatore_container {
    max-width: 1020px;
    max-height: 100vh;
  }

  .card_menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    height: 100px;
  }

  .card_menu_arrow {
    max-width: 30px;
    margin-right: 5px;
    padding-top: 5px;
  }

  .card_menu_arrow img {
    text-align: center;
    cursor: pointer;
  }

  .card_menu_arrow img:hover {
    opacity: 0.7;
  }

  .card_menu_arrow_up {
    -webkit-transform: rotate(-180deg);
    -moz-transform: rotate(-180deg);
    transform: rotate(-180deg);
  }

  .box_canvas {
    height: 20vh;
  }

  .mobile {
    /* deve stare per ultimo nella media query*/
    display: none;
  }
}
