.select-api-button {
  padding: 12px 14px;
}

.api-select-chevrons {
  padding: 9px 14px;
}

.options-api-view-button:checked + .select-api-button .api-select-chevrons i {
  color: #2d3667;
}

.api-option i {
  position: absolute;
  left: 10px;
  display: none;
}

.options-api-view-button:checked ~ .api-options .api-option i {
  display: block;
  padding: 12px 0;
}

/* LABELS */
.api-label {
  display: none;
}

/* COMPORTEMENT DES LABELS LORS DE L'OUVERTURE */
.options-api-view-button:checked ~ .api-options .api-label {
  display: block;
  padding: 12px 16px;
}

/* RADIO INPUTS */
.api-radio.api-radio-top {
  top: 0;
}

.api-radio.api-radio-bottom {
  bottom: 0;
}

.api-radio:hover {
  height: 100%;
  z-index: 20;
}

/* ANIMATIONS DES ICONES LORS DU HOVER */
.api-radio:hover ~ i {
  color: #fff;
  opacity: 0;
}

.api-radio:hover ~ i svg {
  filter: brightness(100) grayscale(1);
}

.api-radio.api-radio-bottom:hover + i {
  animation: moveup 0.3s ease 0.1s forwards;
}

.api-radio.api-radio-top:hover ~ i {
  animation: movedown 0.3s ease 0.1s forwards;
}

/* ANIMATIONS */
@keyframes moveup {
  0% {
    bottom: -25px;
    opacity: 0;
  }
  100% {
    bottom: -2px;
    opacity: 1;
  }
}
@keyframes movedown {
  0% {
    top: -25px;
    opacity: 0;
  }
  100% {
    top: -2px;
    opacity: 1;
  }
}
/* COULEURS LORS DE LA SELECTION */
.api-option input[type=radio]:checked ~ .api-label {
  color: #fff;
}

.api-option input[type=radio]:checked ~ i svg {
  filter: brightness(100) grayscale(1);
}

/* LABEL SELECTIONNE */
.api-option input[type=radio]:checked ~ .api-label:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
}

/* COMPORTEMENT DU BG FIXE LORS DE LA SELECTION */
.api-option input[value=rest]:checked ~ .api-label:before {
  background-color: #21aabb;
  border-radius: 4px 4px 0 0;
}

.api-option input[value=graphql]:checked ~ .api-label:before {
  background-color: #cb2084;
}

.api-option input[value=grpc]:checked ~ .api-label:before {
  background-color: #0060d9;
}

.api-option input[value=websocket]:checked ~ .api-label:before {
  background-color: #ff591e;
}

.api-option input[value=socketio]:checked ~ .api-label:before {
  background-color: #ff1b1b;
  border-radius: 0 0 4px 4px;
}

/* OPTION-BG */
.option-bg {
  display: none;
  position: absolute;
  top: 0;
}

/* COMPORTEMENT DU BG MOBILE LORS DE L'OUVERTURE */
.options-api-view-button:checked ~ .api-options .option-bg {
  display: block;
}

/* COULEUR DU LABEL LORS DU HOVER */
.api-option:hover .api-label {
  color: #fff;
}

/* COMPORTEMENT DU BG MOBILE LORS DU HOVER */
.api-rest:hover ~ .option-bg {
  top: 0;
  background-color: #21aabb;
  border-radius: 4px 4px 0 0;
}

.api-graphql:hover ~ .option-bg {
  top: 40px;
  background-color: #cb2084;
}

.api-grpc:hover ~ .option-bg {
  top: 80px;
  background-color: #0060d9;
}

.api-websocket:hover ~ .option-bg {
  top: 120px;
  background-color: #ff591e;
}

.api-socketio:hover ~ .option-bg {
  top: 160px;
  background-color: #ff1b1b;
  border-radius: 0 0 4px 4px;
}
