@import url(pag2_style.css);

.title {
  margin: 2%;
}

.row {
  margin: 1rem;
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 15px;
}

body .main .Youtube iframe {
  width: 20rem;
  height: 10rem;
}

iframe {
  box-shadow: 10px 10px 10px 10px #00000030;
}

/*Nuovo stile*/

.year {
  margin: 0 1em;
  padding: 0.5em;
  padding-bottom: 1rem;
  transition-duration: 500ms;
  transition-timing-function: ease;
  position: relative;
}

.year::before,
.year::after {
  content: "";
  position: absolute;
  height: 1px;
  width: 0%;
  left: 50%;
  background: linear-gradient(90deg, transparent, black, transparent);
  transition: inherit;
}

.year::before {
  top: 0;
}

.year::after {
  bottom: 0;
}

.year:hover::before,
.year:hover::after,
.year:has(input[type="checkbox"]:checked)::before,
.year:has(input[type="checkbox"]:checked)::after {
  width: 100%;
  left: 0%;
}

.year>label {
  display: block;
  text-align: center;
  font-size: 2.5rem;
  font-weight: bolder;
  cursor: pointer;
  user-select: none;
  transition: inherit;
  transition-duration: 0.5s;
}

.year>label:hover {
  color: #E8BF60;
}

.year>.row {
  height: 0;
  overflow-y: scroll;
  transition: inherit;
}

.year>input[type="checkbox"]:checked~.row {
  height: 50vh;
}