@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* body {
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #ECF5FE;
} */

section {
  margin-top: 1em;
  
  max-width: 1200px;
}

.dropdown-action {
  width: 100%;
  background-color: #5b076a;
  color: white;
  padding: 0.5em 0.5em;
  /* border-radius: 0.25em; */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.dropdown-action:hover {
  background-color: #ba1fc8;
}

.dropdown-action .caret-down {
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-action .caret-down svg {
  fill: white;
  width: 1.25em;
  height: 1.25em;
  transform: rotateZ(360deg);
  transition: transform 0.2s ease-in-out;
}

.dropdown-action.active-dropdown span svg {
  transform: rotateZ(180deg);
}

.dropdown-content {
  padding: 0 0.2em;
  max-height: 0;
  transition: max-height 0.5s ease-in-out;
  overflow: hidden;
  background-color: #dc8ee3;
  padding: 0;
  display: flex;
  /* align-items: center; */
  flex-direction: column;
  padding-left: 50px;
}

.dropdown-content * {
  animation: fadeOut 0.5s ease-in-out;
  opacity: 0;
  padding: .5em;
}

.dropdown-action.active-dropdown + .dropdown-content * {
  animation: fadeIn 0.5s ease-in-out;
  opacity: 1;
}

.dropdown-content img {
  width: 100%;
  height: auto;
  max-width: fit-content;
  margin-bottom: .5em;
}
