.main .dropdown {
  position: relative;
  width: 120px;
  height: 35px;
}

.modal .dropdown {
  position: relative;
  width: 160px;
  height: 35px;
}

.dropdown::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid #333;
  right: 20px;
  top: 10px;

  z-index: 10;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-45deg);
  transition: .5s;
  pointer-events: none;
}

.dropdown input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: none;
  outline: none;

  box-shadow: 0 10px 20px rgba(0, 0, 0, .5);
  padding: 12px 20px;
  border-radius: 10px;

  font-size: 14px;
}

.dropdown .option {
  position: absolute;
  top: 40px;
  width: 100%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .5);
  border-radius: 10px;
  overflow: hidden;
  display: none;

  background-color: #2d3436;
  color: white;
  z-index: 1;
}

.dropdown.dropdown-active .option {
  display: block;
}

.dropdown.dropdown-active::before {
  transform: rotate(-225deg);
  top: 14px;
}

.dropdown .option div {
  padding: 5px 20px;
  cursor: pointer;
}

.dropdown .option div:hover {
  background-color: #74b9ff;
  color: #fff;
}

@media (max-width: 399px) {
  .dropdown {
    width: 100px;
  }

  .dropdown input {
    font-size: 12px;
    padding: 10px 5px;
  }
}