/* CSS for the main interaction */ .accordion > input[name="collapse"] { display: none; /*position: absolute; left: -100vw;*/ } .accordion label, .accordion .content{ /*max-width: 620px;*/ margin: 0 auto; } .accordion .content { /*background: rgba(0, 0, 0, 0.7);*/ overflow: hidden; height: 0; transition: 0.5s; box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3); } .accordion > input[name="collapse"]:checked ~ .content { /*height: 380px; transition: height 0.5s;*/ height: 100%; } .accordion label { display: block; } /* For Desktop */ @media only screen and (min-width: 620px){ .accordion > input[name="collapse"]:checked ~ .content { height: 100%; } } .accordion { margin-bottom: 1em; } .accordion > input[name="collapse"]:checked ~ .content { border-top: 0; transition: 0.3s; } .accordion .handle { margin: 0; font-size: 16px; } .accordion label { color: #fff; cursor: pointer; font-weight: normal; padding: 10px; /*background: #b0100c; rouge*/ background: #3DB22B; /*vert*/ user-select: none; } .accordion label:hover, .accordion label:focus { background: #252525; } .accordion .handle label:before { font-family: "Font Awesome 5 Free"; /*content: "\f063";*/ content: "\f055"; display: inline-block; margin-right: 10px; font-size: 1em; line-height: 1.556em; vertical-align: middle; transition: 0.4s; font-weight: 900; } .accordion > input[name="collapse"]:checked ~ .handle label:before { /*transform: rotate(180deg);*/ /*transform-origin: center;*/ font-family: "Font Awesome 5 Free"; content: "\f056"; transition: 0.4s; }