body{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 15px;
}

.layout {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 8px;
  max-width: 100vw;
  padding-inline: 20px;
  box-sizing: border-box;
}

.tavola {
  flex: 0;
  display: grid;
  grid-template-columns: 20px repeat(18, 70px);
  grid-template-rows: 19px repeat(6, 70px) 10px repeat(5, 70px);
  gap: 5px;
  justify-content: start;
  margin: 0 auto;

  transition: all 1s ease;
}

.tavola button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  justify-self: center;
}

.period{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  background-color: lightgray !important; 
  border: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  width: 20px !important;
  height: 70px !important;
  margin-top: 1px !important;
  cursor: auto !important;
}

.group{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  background-color: lightgray !important; 
  border: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  width: 70px !important;
  height: 20px !important;
  justify-self: center;
  cursor: auto !important;
}

.metalliAlcalini{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(237, 53, 29, 1);
  color: white;
  background-color: rgba(237, 53, 29, 1) !important;
  width: 150px !important;
  height: 40px;
  border-radius: 50px;
  margin-top: 50px;
  margin-left: 50px;
}

.metalliAlcalinoTerrosi{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(255, 127, 36, 1);
  color: white;
  background-color: rgba(255, 127, 36, 1) !important;
  width: 150px !important;
  height: 40px;
  margin-top: 25px;
  margin-left: 50px;
  border-radius: 50px;
}

.metalliDiTransizione{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(29, 118, 201, 1);
  color: white;
  background-color: rgba(29, 118, 201, 1) !important;
  width: 150px !important;
  height: 40px;
  border-radius: 50px;
  margin-left: 190px;
}

.lantanidi{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(115, 71, 205, 1);
  color: white;
  background-color: rgba(115, 71, 205, 1) !important;
  width: 150px !important;
  height: 40px;
  border-radius: 50px;
  margin-top: 50px;
  margin-left: 220px;
}

.attinidi{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(205, 71, 162, 1);
  color: white;
  background-color: rgba(205, 71, 162, 1) !important;
  width: 150px !important;
  height: 40px;
  border-radius: 50px;
  margin-top: 25px;
  margin-left: 220px;
}

.metalliDiPostTransizione{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(65, 97, 129, 1);
  color: white;
  background-color: rgba(65, 97, 129, 1) !important;
  width: 150px !important;
  height: 40px;
  border-radius: 50px;
  margin-left: 370px;
}

.semimetalli{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(177, 121, 37, 1);
  color: white;
  background-color: rgba(177, 121, 37, 1) !important;
  width: 150px !important;
  height: 40px;
  border-radius: 50px;
  margin-top: 50px;
  margin-left: 390px;
}

.nonMetalli{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(38, 227, 145, 1);
  color: white;
  background-color: rgba(38, 227, 145, 1) !important;
  width: 150px !important;
  height: 40px;
  border-radius: 50px;
  margin-top: 25px;
  margin-left: 390px;
}

.alogeni{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(95, 174, 30, 1);
  color: white;
  background-color: rgba(95, 174, 30, 1) !important;
  width: 150px !important;
  height: 40px;
  border-radius: 50px;
  margin-left: 550px;
}

.gasNobili{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(43, 200, 227, 1);
  color: white;
  background-color: rgba(43, 200, 227, 1) !important;
  width: 150px !important;
  height: 40px;
  border-radius: 50px;
  margin-top: 50px;
  margin-left: 560px;
}

.proprietaIgnote{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(156, 156, 156, 1);
  color: white;
  background-color: rgba(156, 156, 156, 1) !important;
  width: 150px !important;
  height: 40px;
  border-radius: 50px;
  margin-top: 25px;
  margin-left: 560px;
}

.evidenziato img{
  box-sizing: border-box;
  box-shadow: 0 0 20px black;
  transform: scale(2.0);
}

.descrizione {
  width: 0dvh;
  height: 0dvh;
  flex-shrink: 0;

  transition: all 1s ease;
}

.descrizione-attiva {
  flex-shrink: 0;
  transform: translateX(-370px);
  width: 450px;
  margin: 0;
  transition: all 1.1s ease;
}

.descrizioneInfo {
  padding: 0;
  transition: padding 0.3s ease;
}

.descrizioneInfo.aperta {
  padding: 12px;
  border-radius: 6px;
  box-sizing: border-box;
}

.headerMetalli{
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: rgba(29, 118, 201, 1);
  color: white;
  box-sizing: border-box;
  justify-content: space-between;
  display: flex;
  margin-bottom: -12.5px;
}

.headerMetalli p{
   margin-left: 10px;
}

.headerMetalliPostTransizione{
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: rgba(65, 97, 129, 1);
  color: white;
    
  box-sizing: border-box;
  justify-content: space-between;
  display: flex;
  margin-bottom: -12.5px;
}

.headerMetalliPostTransizione p{
   margin-left: 10px;
}

.headernonMetalli{
  color: black;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: rgba(38, 227, 145, 1);
  color: white;
    
  box-sizing: border-box;
  justify-content: space-between;
  display: flex;
  margin-bottom: -12.5px;
}

.headernonMetalli p{
  margin-left: 10px;
}

.headergasNobili{
  color: black;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color:  rgba(43, 200, 227, 1);
  color: white;
    
  box-sizing: border-box;
  justify-content: space-between;
  display: flex;
  margin-bottom: -12.5px;
}

.headergasNobili p{
  margin-left: 10px;
}

.headermetalliAlcalini{
  color: black;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color:  rgba(237, 53, 29, 1);
  color: white;
    
  box-sizing: border-box;
  justify-content: space-between;
  display: flex;
  margin-bottom: -12.5px;
}

.headermetalliAlcalini p{
  margin-left: 10px;
}

.headermetalliAlcalinoTerrosi{
  color: black;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color:   rgba(255, 127, 36, 1);
  color: white;
    
  box-sizing: border-box;
  justify-content: space-between;
  display: flex;
  margin-bottom: -12.5px;
}

.headermetalliAlcalinoTerrosi p{
  margin-left: 10px;
}

.headersemimetalli{
  color: black;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color:   rgba(177, 121, 37, 1);
  color: white;
    
  box-sizing: border-box;
  justify-content: space-between;
  display: flex;
  margin-bottom: -12.5px;
}

.headersemimetalli p{
  margin-left: 10px;
}

.headeralogeni{
  color: black;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color:   rgba(95, 174, 30, 1);
  color: white;
    
  box-sizing: border-box;
  justify-content: space-between;
  display: flex;
  margin-bottom: -12.5px;
}

.headeralogeni p{
  margin-left: 10px;
}

.headerLantanidi{
  color: black;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: rgba(115, 71, 205, 1) !important;
  color: white;
    
  box-sizing: border-box;
  justify-content: space-between;
  display: flex;
  margin-bottom: -12.5px;
}

.headerLantanidi p{
  margin-left: 10px;
}

.headerAttinidi{
  color: black;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: rgba(205, 71, 162, 1) !important;
  color: white;
    
  box-sizing: border-box;
  justify-content: space-between;
  display: flex;
  margin-bottom: -12.5px;
}

.headerAttinidi p{
  margin-left: 10px;
}

.headerPI{
  color: black;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: rgba(156, 156, 156, 1) !important;
  color: white;
    
  box-sizing: border-box;
  justify-content: space-between;
  display: flex;
  margin-bottom: -12.5px;
}

.headerPI p{
  margin-left: 10px;
}

.image img{
  border-top-right-radius: 8px;
}

.proprietà{
  background-color: silver;
  box-sizing: border-box;
  padding: 10px;
}

.proprietà p{
  margin-left: 3px;
}

.introduzione{
  background-color: lightgrey;
  padding: 12px;
}

.informazioni{
  background-color: rgb(224,224,224);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.informazioni button{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 15px;
  color: black;
  display: block;
  padding: 6px;
  border: none;
  width: 100%;
  cursor: pointer;
}

.biologia{
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background-color: lightcoral;
}

.biologiaAttiva{
  background-color: lightcoral;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.ambiente{
  background-color: lightgreen;
}

.applicazioni{
  background-color: lightblue;
}

select{
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 16px;
  border: none;
  box-shadow: 0 0 10px yellow;
  width: 280px;
  height: 30px;
  border-radius: 100px;
  text-align: center;
  background-color: #FFEA61;
  padding: 5px !important;
  margin-left: 40px;
}

.grigio {
  opacity: 0.4;
  pointer-events: none;
}

.ombra{
  box-shadow: 10px 10px 10px grey;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 12px;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

.layout.descrizione-attiva-visibile .tavola {
  transform: scale(0.7);
  transform-origin: top left;
}

.layout.grafico-attivo-visibile .tavola {
  transform: scale(0.5);
  transform-origin: top left;
}

.grafico-attivo {
  flex-shrink: 0;
  transform: translateX(-640px);
  width: 450px;
  margin: 0;
  background: transparent;
  transition: all 1.1s ease;
}

.chiudi-grafico {
  position: absolute;
  left: 670px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

.ombra-grafico {
  box-shadow: 10px 10px 10px grey;
  border-radius: 10px;
  overflow: hidden;
  display: inline-block;
  background: transparent;
}