body {
  font-family: "Lustria", serif;
  font-weight: bold;
  font-size: large;
  margin-left: 10px;
  /*background-color: #f4f4f4;*/
  background-color: #F2F2F2;
  z-index: 1000;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /*background-color: #f1ac1f;*/
  background-color: #D9BBA0;
}

h1 {
  text-align: center;
}

h2 {
  /*color: #cb0404;*/
  color: #8c2a2a;
  margin-bottom: 0;
}

button,
input,
select {
  font-family: "Lustria", serif;
  font-size: medium;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  border: 0px;
  border-radius: 10px;
  box-shadow: black 1px 1px 1px 1px;
}

button {
  color: black;
  cursor: pointer;
  font-weight: bold;
}

input {
  width: 100%;
  height: 40px;
  margin-top: 10px;
  padding: 12px 20px 12px 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
  cursor: text;
  background-color: #ffffff;
}

a {
  text-decoration: none;
}

a:link {
  color: black;
}

a:visited {
  color: black;
}

td {
  padding: 10px;
}

p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

table {
  margin-bottom: 10px;
}

ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  border-top: 1px solid black;
}

li {
  display: block;
  border-bottom: 1px solid black;
}

li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
}

li a::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(0, 0, 0, .3);
  border-right: 2px solid rgba(0, 0, 0, .3);
  transform: rotate(45deg);
  margin-right: 4px;
}

dialog {
  padding: 1em;
}

dialog[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
}

dialog button {
  width: 100px;
  margin-top: 20px;
}

dialog p {
  display: block;
  white-space: normal;
}

.dropdown {
  display: inline-flex;
  margin-bottom: 10px;
  position: relative;
}

.dropdown-title {
  /*background-color: #f5a623;*/
  background-color: #D9BBA0;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  user-select: none;
}

.dropdown-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.4s ease;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 8px;
  padding: 0 10px;         /* Padding ridotto per stato chiuso */
  border: none;            /* Nessun bordo da chiuso */
  z-index: 1;
}

#seleziona {
  right: 0;   /* fa aprire il menu da destra */
  left: auto; /* disattiva il left del CSS comune */
}

.dropdown-content.show {
  max-height: 1000px;
  padding: 10px;           /* Padding pieno quando visibile */
  border: 1px solid #ccc;  /* Mostra il bordo solo se aperto */
}

.button {
  display: block;
  margin: 5px auto;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.select_domenica {
  width: 200px;
}

.select_scegli {
  width: 150px;
}

#back,
#sec,
#copia {
  display: none;
}

#tipo > button {
  background-color: #f4f4f4;
  margin-bottom: 10px;
  width: 150px;
}

#seleziona > button {
  margin-bottom: 10px;
  width: 150px;
}

#top,
#sec {
  margin-top: 110px;
}

#top {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#sec {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#back {
  margin-bottom: 25px;
}

#salva {
  margin-top: 20px;
}

#copia {
  width: 70px;
}

#scegli_canti {
  display: flex;
  align-items: center;
  gap: 20px;
}

#howto {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
