body{
  background-image: url("../images/bg.jpg");
  background-size: cover;       
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-size: 22px;
  font-family: 'Segoe UI', 'Helvetica', 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.working-area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "d1 d2 d2"
    "d3 d4 d5"
    "d6 d7 d8";
  align-items: start;
  gap: 10px;
  padding: 10px;
}

.visualizzatore {
  margin-bottom: 20px;
  max-height: 405px;
  max-width: 100%;
  width: 100%;
}

#jmolApplet0_canvas2d{
  border-radius: 10px;
  box-shadow: 0 0 10px grey;
  max-width: 100%;
  height: auto;
}

.domanda-style {
  width: 100%;
  min-height: 403px;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 20px;
  background-color: #D3D3D3;
  box-shadow: 0 0 10px grey;
}

.titolo,
.image {
  cursor: pointer;
}

.title {
  text-align: center;
  padding: 10px;
  margin: 10px 0;
}

.riepilogo-style{
  padding: 10px;
  width: 100%;
  min-height: 250px;
  margin-top: 20px;
  box-sizing: border-box;
  border-radius: 20px;
  background-color: #D3D3D3;
  box-shadow: 0 0 10px grey;
}

.bottoneProgresso {
  border-radius: 10px;
  width: 30px;
  height: 30px;
  border: none;
  background-color: #D3D3D3;
  box-shadow: 0 0 3px grey;
  margin-top: 10px;
  margin-right: 5px;
  font-size: 20px;
  font-weight: bold;
  font-family: 'Segoe UI', 'Helvetica', 'Arial', sans-serif;
  cursor: pointer;
}

.multi-choice label {
  position: relative;
  display: block;
  padding-left: calc(13px + 0.5em);
  line-height: 1.35;
  white-space: normal;
  word-wrap: break-word;
  cursor: pointer;
}

.multi-choice label input[type="radio"] {
  position: absolute;
  left: 0;
  top: calc((1.35em - 13px) / 2 + 0.14em);
  width: 13px;
  height: 13px;
  margin: 0;
}

/* i <br> restano nel codice ma non vengono mostrati */
.multi-choice br {
  display: none;
}

/* evita che apici e pedici allarghino l'interlinea della riga */
.multi-choice sup,
.multi-choice sub {
  line-height: 0;
}

.badge-text {
  position: absolute;
  font-size: 40px;
  font-weight: bold;
  color: black;
  margin: 5px;
  margin-top: -5px;
  z-index: 9999;
  pointer-events: none;
}

.bottoneZero{
  border-radius: 10px;
  width: 100%;
  max-width: 300px;
  height: 40px;
  border: none;
  background-color: lightblue;
  box-shadow: 0 0 3px grey;
  margin-top: 100px;
  font-size: 20px;
  font-weight: bold;
  font-family: 'Segoe UI', 'Helvetica', 'Arial', sans-serif;
  cursor: pointer;
}

ul{
  margin-top: 0px;
  padding-left: 20px;
}

/* Media query per tablet */
@media screen and (max-width: 1024px) {
  body {
    font-size: 20px;
  }
  
  .working-area {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "d1 d1"
      "d2 d2"
      "d3 d4"
      "d5 d6"
      "d7 d8";
    gap: 15px;
  }
  
  .domanda-style {
    min-height: 300px;
  }
  
  .riepilogo-style {
    min-height: 200px;
  }
}

/* Media query per mobile */
@media screen and (max-width: 768px) {
  body {
    font-size: 18px;
  }
  
  .title {
    font-size: 1.5em;
    padding: 5px;
  }
  
  .working-area {
    grid-template-columns: 1fr;
    grid-template-areas:
      "d1"
      "d2"
      "d3"
      "d4"
      "d5"
      "d6"
      "d7"
      "d8";
    gap: 10px;
    padding: 5px;
  }
  
  .visualizzatore {
    margin-bottom: 10px;
    max-height: none;
  }
  
  .domanda-style {
    min-height: auto;
  }
  
  .riepilogo-style {
    min-height: auto;
  }
  
  .badge-text {
    font-size: 30px;
  }
  
  .bottoneZero {
    margin-top: 20px;
    width: 100%;
  }
  
  .bottoneProgresso {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

/* Media query per schermi molto piccoli */
@media screen and (max-width: 480px) {
  body {
    font-size: 16px;
  }
  
  .title {
    font-size: 1.2em;
  }
  
  .working-area {
    padding: 3px;
    gap: 8px;
  }
  
  .badge-text {
    font-size: 25px;
  }
  
  .bottoneProgresso {
    width: 30px;
    height: 30px;
    font-size: 16px;
    margin-right: 3px;
  }
}