:root{
  --bg-select: transparent;
  --bg-select-items: #fff;
  --color-font-select: #333333;
}
/*the container must be positioned relative:*/
.custom-select {
  position: relative;
  /*font-family: Arial;*/
}
.custom-select select {
  /*display: none; hide original SELECT element:*/
  position: absolute;
  left: -5000px;
}
.select-selected {
  background-color: var(--bg-select);
}

/*style the arrow inside the select element:*/
.select-selected:after {
  position: absolute;
  content: "";
  top: 17px;
  /*top: 50%;
  transform: translateY(-50%);*/
  right: 12px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: var(--color-font-select) transparent transparent transparent;
}

/*point the arrow upwards when the select box is open (active):*/
.select-selected.select-arrow-active:after {
  border-color: transparent transparent var(--color-font-select) transparent;
  /*top: 7px;*/
  top: 10px;
}

/*style the items (options), including the selected item:*/
.select-items div,.select-selected {
  color: var(--color-font-select);
  padding: 8px 16px;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
  user-select: none;
}

/*style items (options):*/
.select-items {
  position: absolute;
  background-color: var(--bg-select-items);
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

/*hide the items when the select box is closed:*/
.select-hide {
  display: none;
}
.select-items div:hover, .same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}