/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : Sep. 24, 2020, 7:42:30 a.m.
    Author     : anthony
*/


@media screen and (max-width: 500px) {
    .custom-select {
        font-size: 1.5em;
    }
    
    /* Style the arrow inside the select element: 
    // basically the arrow just won't show up on a phone, something to look into another time */
      .select-selected:after { 
      position: absolute;
      content: "";
      top: 40% !important;
      right: 10px;
      width: 0;
      height: 0;
      border: 8px solid transparent;
      /* border-color: white transparent transparent transparent; */
      border-color: transparent transparent transparent transparent;
    }

    /* Point the arrow upwards when the select box is open (active): */
    .select-selected.select-arrow-active:after {
      border-color: transparent transparent transparent transparent;
      top: 25% !important;
    }

}



 /* The container must be positioned relative: */
.custom-select {
  position: relative;
  font-family: sans-serif;
  border: none;
  width: 90%;
  max-width: 640px;
}

.custom-select select {
  display: none; /*hide original SELECT element: */
}

.select-selected {
  background-color: gray;
}

.custom-select:focus .select-selected {
    background-color: orange;
}

/* Style the arrow inside the select element: */
.select-selected:after {
  position: absolute;
  content: "";
  top: 42%;
  right: 10px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-color: white transparent transparent transparent;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
  border-color: transparent transparent white transparent;
  top: 25%;
}


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

div.select-items {
    max-height: 296px;
    overflow: auto;
}

.select-items div {
    color: #444;
}

/* Style items (options): */
.select-items {
  position: absolute;
  background-color: lightgray;
  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(0, 0, 0, 0.1);
} 

