/* ------------------ meu código -----------------------------*/

.select-wrapper{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 0.8rem;
}

.fancy-select {
  position: relative;
  /*width: 16.5rem;*/
  max-width: 100%;
  font-size: 1.0rem;
  color: #000;
  margin-top: 1.2rem;
  z-index: 1025;
}

.discipline-select{
  width: 21rem;
}

.semester-select{
  width: 9rem;
}

.select-button {
  width: 100%;
  font-size: 1.0rem;
  background-color: #fff;
  padding: 0.675em 1em;
  border: 1px solid #caced1;
  border-radius: 0.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selected-value {
  text-align: left;
}

.arrow {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #000;
  transition: transform ease-in-out 0.3s;
}

.select-dropdown {
  position: absolute;
  list-style: none;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  border: 1px solid #caced1;
  border-radius: 4px;
  padding: 10px;
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
  transition: 0.5s ease;

  transform: scaleY(0);
  opacity: 0;
  visibility: hidden;
  z-index: 1026;
}

.select-dropdown:focus-within {
  box-shadow: 0 10px 25px rgba(94, 108, 233, 0.6);
}

.select-dropdown li {
  position: relative;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.select-dropdown li label {
  width: 100%;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.select-dropdown::-webkit-scrollbar {
  width: 7px;
}
.select-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 25px;
}

.select-dropdown::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}

.select-dropdown li:hover,
.select-dropdown input:checked ~ label {
  background-color: #f2f2f2;
}

.select-dropdown input:focus ~ label {
  background-color: #dfdfdf;
}

.select-dropdown input[type="radio"] {
  position: absolute;
  left: 0;
  opacity: 0;
}


/* interactivity */

.fancy-select.active .arrow {
  transform: rotate(180deg);
}

.fancy-select.active .select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}

.warning{
  color:red;
  font-size: 12px;
  padding-left: 2px;
  display: none;
}


/*---------------------------------------------------------------*/
@media (max-width: 550px) {
  .select-wrapper{
    flex-direction: column;
  }

  .fancy-select {
    margin-top: 0;
    z-index: unset;
    width: 80vw;
  }


}