
body {
  font-family: sans-serif;
  margin: 1rem;
  font-size: x-large;
}

h1, h2 {
  text-align: center;
}

nav {
  background-color: #FFEB57;
  color: black;
  padding: 1rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li, nav button {
  font-size: x-large;
  display: inline-block;
  margin-right: 1rem;
}

nav a {
  color: black;
  text-decoration: none;
}

/* Sezione checkbox */
input[type="checkbox"] {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border: 2px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background-color: #4CAF50;
  border-color: #4CAF50;
}

input[type="checkbox"]::after {
  content: "✓";
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  line-height: 1rem;
  text-align: center;
  font-size: 1.5rem;
  color: #fff;
  margin-left: 0.25rem;
  transition: background-color 0.3s ease;
}

#checkbox, #liste {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #ccc;
}

/* Sezione riepilogo */
#riepilogo-checkbox ul {
  margin-top: 20px;
  line-height: 33px;
}

button {
  background-color: #FFEB57;
  border: none;
  color: black;
  padding: 0.5rem 1rem;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
}

.button:hover {
  background-color: #020000;
  color: white;
}

/*Sezione prodotti*/
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.product {
  background-color: #FFEB57;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product img {
  height: auto;
  margin-bottom: auto;
  cursor: pointer;
}

.product label {
  margin: 0.5rem;
}

.product input[type="number"] {
  width: 50%;
  height: 1.75rem;
  margin: auto;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.product i {
  padding-bottom: 0.5rem;
}

#numberInput3_type {
  font-size: 24px;
}

.format-selector {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    justify-content: center;
}

.format-btn {
    font-size: 0.7em;
    padding: 4px 8px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.format-btn.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}
/* Sezione liste */
#outputList, #outputList2 {
  padding: 5rem;
  border: 1px solid #ccc;
}

#outputList ul, #outputList2 ul, #riepilogo-checkbox ul {
  list-style: none;
  padding: 0;
}

#outputList li, #outputList2 li {
  margin-bottom: 0.75rem;
}

#lista1, #lista2 {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/*Popup*/
.popup, .popup-content, #popup {
  width: 80%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: lightgoldenrodyellow;
  padding: 20px;
  border: 1px solid black;
  z-index: 20; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Torna su */
#tornaSu {
  position: fixed;
  bottom: 10px;
  right: 20px;
  z-index: 100;
  border: none;
  padding: 10px 20px;
  background-color: #FFEB57;
  color: black;
  cursor: pointer;
  border-radius: 5px;
}

#tornaSu.active {
  background-color: black;
  color: #FFEB57;
}

@media only screen and (min-width: 961px) {

  /* Sezione checkbox */
  #checkbox, #liste {
    flex-direction: row;
  }

  #riepilogo-checkbox ul {
    margin: 0%;
    line-height: 38px;
  }

  /*Sezione prodotti*/
  .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .product {
    background-color: #FFEB57;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    width: 200px;
    text-align: center;
    display: flex; 
    flex-direction: column; 
    justify-content: center;
  }

  .product input[type="number"] {
    width: 80%;
    height: 1.75rem;
    margin-bottom: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
  }

  /*Popup*/
  .popup, .popup-content, #popup {
    width: 100%;
  }
}














