/* Calendario Magico Penelope iltelaiodipenelope.it */
body {
  background-color:transparent;
  overflow:hidden;
  padding:0;
  margin: 0;
}
.box{
  position: relative;
  border: 3px solid #fcde7f;
  border-radius: 10px;
  background-image: linear-gradient(45deg, #fdf9ea, #ffe48b, #fcf5dc);
  width: 240px;
  height: 540px;
  box-sizing: border-box;
  box-shadow: 0 4px 6px rgba(63, 61, 61, 1);
  text-align: center;
}  
#box-stagione {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  box-sizing: border-box;
  height: auto;
}
#box-stagione img {
  max-width:95%;
  height:auto;
}
.testo {
  font-family: "Handlee", cursive;
  font-size: 16px;
  color: #845e3c;
  text-align: center;
  width: 80%;
  padding: 8px;
  margin-top: 6px;
  border-radius: 8px;
  background-image: linear-gradient(45deg, #fdf9ea, #ffe48b, #fcf5dc);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 3px 8px rgba(80,50,40,0.15);   
}
.box-calendario{
	position: absolute;
	padding: 8px;
	top: 260px;
	left: 10px;
	width: 214px;
	height: 220px;
	box-sizing: border-box;
 }
.calendario-magico-box {
  width: 190px;
  margin: auto;
}
.calendario-magico-title {
  font-family: "Handlee", cursive;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: #845e3c;
  padding: 4px;
  margin-bottom: 6px;
}
.calendario-magico-giorni,
.calendario-magico-griglia {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  text-align: center;
}

/* intestazione giorni */
.calendario-magico-giorni span {
  font-family: "Handlee", cursive;
  font-size: 12px;
  font-weight: bold;
  color: #845e3c;
  height: 20px;
}
/* domenica */
.calendario-magico-giorni span:first-child {
  color: #f28758;
}

/* numeri */
.calendario-magico-griglia span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  font-family: "Handlee", cursive;
  font-size: 12px;  
  color: #845e3c;
}
.calendar-day.giorno-evento {
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 2px 1px rgba(80,50,40,0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-sizing: border-box;
  cursor: pointer;
}
.calendar-day.oggi {
  font-weight: bold;
  color: #845e3c;
  text-decoration: underline;
}
.calendario-magico-tooltip {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  z-index: 10;
  padding: 0 12px 14px 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 2px 1px rgba(80,50,40,0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.calendario-magico-tooltip.visibile {
  opacity: 1;
  visibility: visible;
}
.tooltip-evento {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tooltip-evento span {
  white-space: pre-line;
  font-family: "Handlee", cursive;
  font-size: 14px;
  color: #7a5e03;
}
.tooltip-evento + .tooltip-evento {
  margin-top: 0px;
}
.tooltip-evento i {
  flex-shrink: 0;
  font-size: 14px;
  margin-right: 5px;
  margin-top: 15px;
}
.testo-ora {
  font-family: "Handlee", cursive;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  color: #845e3c;
  margin: 0 auto 4px;
}  
.telaio-credits {
  width: 90%;
  margin: 4px auto 10px;
}  
a:link { 
  text-decoration: none; 
  cursor:nw-resize;
  font-family: "Handlee", cursive; 
  font-size: 13px;
  color: #a88204; 
  }
  a:visited { 
  text-decoration:none; 
  cursor:nw-resize;
  font-family: "Handlee", cursive; 
  font-size: 13px;
  color: #a88204; 
  }
  a:hover {
  text-decoration: underline; 
  color: #c5750f;
  }
  .pioggia {
  position:absolute;
  left:0;
  top:0;
  width:180%;
  height:520px;
  pointer-events:none;
}
.brillantino{
  position:absolute;
  top:-40px;
  animation: caduta linear infinite;
  animation-duration: calc(5s + var(--i) * 0.5s);
  animation-delay: calc(var(--i) * 0.5s);
}
@keyframes caduta{
  from { transform: translateY(-40px); }
  to { transform: translateY(520px); }
}