/* Accordion styles */ #tabs .tab input[type='checkbox']{ position: absolute; opacity: 0; z-index: -1; } .tabs { border-radius: 8px; overflow: hidden; box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5); } .tab { width: 100%; color: white; overflow: hidden; } .tab-label { display: flex; justify-content: space-between; padding: 1em; background: #fff; cursor: pointer; color: #221815; border-bottom: 1px solid #cdcccc; /* Icon */ } .tab .tab-label:last-child{ border-bottom: 0; } .tab-label:hover { background: #fff; color: #221815; } .tab-label::after { content: "❯"; width: 1em; height: 1em; text-align: center; transition: all 0.35s; } .tab-content { max-height: 0; padding: 0 1em; color: #221815; background: white; transition: all 0.35s; } .tab-content li{ border-bottom: 1px solid #ccc; } .tab-close { display: flex; justify-content: flex-end; padding: 1em; font-size: 0.75em; background: #2c3e50; cursor: pointer; } .tab-close:hover { background: #1a252f; } input:checked + .tab-label { background: #fff; color: #2c3e50; } input:checked + .tab-label::after { transform: rotate(90deg); } input:checked ~ .tab-content { max-height: 100vh; padding: 1em; }