:root {
  --theme-primary-color: 255,1,0;           /* RED */
  --theme-secondary-color: 235,235,235;     /* GREY */
  --theme-accent-color: 255,255,255;        /* WHITE */
  --theme-primary-font-color: 0,0,0;        /* BLACK */
  --theme-border-radius: 8px;
}

/* The container must be positioned relative: */
.custom-select {
  position: relative;
}
  
.custom-select select {
  display: none; /*hide original SELECT element: */
}
  
.select-selected {
  background-color: rgba(var(--theme-accent-color));
  border: 1px solid rgba(var(--theme-primary-font-color));
  border-radius: var(--theme-border-radius);
}

.select-selected-initial {
  color: rgba(var(--theme-primary-font-color), 0.6) !important;
}
  
/* Style the arrow inside the select element: */
.select-selected:after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: rgb(var(--theme-primary-font-color)) transparent transparent transparent;
}
  
/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
  border-color: transparent transparent rgb(var(--theme-primary-font-color)) transparent;
  top: 7px;
}
  
/* style the items (options), including the selected item: */
.select-items div,.select-selected {
  color: rgba(var(--theme-primary-font-color));
  padding: 8px 10px;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
}
  
/* Style items (options): */
.select-items {
  position: absolute;
  background-color: rgba(var(--theme-secondary-color), 1.0);
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}
  
/* Hide the items when the select box is closed: */
.select-hide {
  display: none;
}
  
.select-items div:hover, .same-as-selected {
  background-color: rgba(var(--theme-primary-font-color), 0.1);
}

/* Popup container */
.popup {
  position: relative;
  display: inline-block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* The actual popup (appears on top) */
.popup .popuptext {
  visibility: hidden;
  width: 160px;
  background-color: rgba(var(--theme-primary-font-color), 0.9);
  color: rgb(var(--theme-accent-color));
  text-align: center;
  border-radius: 6px;
  padding: 8px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -80px;
}

/* Popup arrow */
.popup .popuptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(var(--theme-primary-font-color), 0.9) transparent transparent transparent;
}

/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
  visibility: visible;
  -webkit-animation: fadeIn 1s;
  animation: fadeIn 1s
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity:1 ;}
}