body { @apply bg-white antialiased; } *::marker { display: inline-block; color: red; font-size: 20px; font-weight: bold; } details { @apply bg-white shadowed rounded-2xl mb-4 px-8 py-6; summary { @apply font-bold list-none flex justify-between items-center cursor-pointer; .open-close-icon { transition: transform 0.3s ease-in-out; transform: translate(0, 0%); display: flex; border: 2px solid black; justify-content: center; align-items: center; border-radius: 50%; height: 26px; width: 26px; } } .content { @apply mt-4; } } details[open] summary .open-close-icon { transform: translate(0, 0%) rotate(180deg); }