@media only screen and (min-width: 200px) {
  .colorSelectorButton{width: 30px; height: 30px}
}

@media only screen and (min-width: 600px) {
  .colorSelectorButton{width: 40px; height: 40px}    
}


/* -------------------------------------- */
/* Modal Dialog:                         */
/* -------------------------------------- */

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #000000;
  width: 80%;
  opacity: 0.9;
}

/* The Close Button */
.close {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* -------------------------------------- */
/* Item Wrapper                           */
/* -------------------------------------- */
.itemWrapper{
  background-color: #fff;
  margin-bottom: 5px;
  padding-left: 8px;
  border: 1px solid #000000;
  box-shadow: 
      0 0 5px #fff,
      0 -1px 4px #ffc107,
      0 1px 4px #ffc107;
}
.itemWrapper.inactive{
  border: 1px solid rgb(231, 231, 231);
  box-shadow: none;
}

div.itemWrapper p{
  font-family: 'Montez', cursive, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 14px;
  margin-top: 3px;
  margin-left: 8px;
  margin-bottom: 3px;
}

/* -------------------------------------- */
/* Color Palette Control                  */
/* -------------------------------------- */
.colorPaletteControl{
  background-color: #fff;
  margin-bottom: 5px;
  padding-left: 8px;
  border: 1px solid #000000;
  box-shadow: 
      0 0 5px #fff,
      0 -1px 4px #ffc107,
      0 1px 4px #ffc107;
}
.colorPaletteControl.inactive{
  border: 1px solid rgb(231, 231, 231);
  box-shadow: none;
}

div.colorPaletteControl p{
  font-family: 'Montez', cursive, Cochin, Georgia, Times, 'Times New Roman', serif;
  font-size: 14px;
  margin-top: 3px;
  margin-left: 8px;
  margin-bottom: 3px;
}

/* -------------------------------------- */
/* Color Icon                             */
/* -------------------------------------- */
.colorIcon{
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 7px;
  margin-bottom: 5px;
  border-radius: 10%;
  border-style: solid;
  border-width: 1.5px;
  border-color: #000000;          
  cursor: pointer;
  box-shadow: 
      0 0 5px #fff,
      0 -1px 4px #ffc107,
      0 1px 4px #ffc107;    
}
.colorIcon.inactive{
border: 1px solid rgb(0, 0, 0);
box-shadow: none;
}


/* -------------------------------------- */
/* Color Selector Button                  */
/* -------------------------------------- */

.colorSelectorButton{
  width: 40px; 
  height: 40px;
  background-color: #ffffff;
  border-radius: 7px;
  border: 2px solid #eece92;
  box-shadow: 1px 1px 8px rgb(20, 20, 20);
  cursor: pointer;
}
.colorSelectorButton:hover{
  box-shadow: 0 0 2px rgb(0, 0, 0);
}


/* -------------------------------------- */
/* ToolTip:                               */
/* -------------------------------------- */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted #ccc;
  cursor: help;
  color: #000000;
}

.tooltip:hover {
  border-bottom: 1px dotted #000;
}

.tooltip .tooltiptext {
  visibility: hidden;
  position: absolute;
  width: 200px;
  background-color: #000000;
  color: #fff;
  text-align: center;
  padding: 5px 5px;
  border-radius: 6px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.6s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 0.8;
}
.tooltip-right {
top: -5px;
left: 125%;  
}

.tooltip-right::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent #555 transparent transparent;
}

.tooltip-bottom {
top: 135%;
left: 50%;  
margin-left: -100px;
}

.tooltip-bottom::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #555 transparent;
}

.tooltip-top {
bottom: 125%;
left: 50%;  
margin-left: -100px;
}

.tooltip-top::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip-left {
top: -5px;
bottom:auto;
right: 128%;  
}
.tooltip-left::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #555;
}


/* -------------------------------------- */
/* Custom Select:                         */
/* -------------------------------------- */

/* The container must be positioned relative: */
.custom-select {
    position: relative;
    font-family: Arial;
  }
  
  .custom-select select {
    display: none; /*hide original SELECT element: */
  }
  
  .select-selected {
    background-color: #ffc107;
    border-radius: 5px;
  }
  
  /* Style the arrow inside the select element: */
  .select-selected:after {
    position: absolute;
    content: "";
    top: 20px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #000000 transparent transparent transparent;
  }
  
  /* Point the arrow upwards when the select box is open (active): */
  .select-selected.select-arrow-active:after {
    border-color: transparent transparent #000000;
    top: 7px;
  }
  
  /* style the items (options), including the selected item: */
  .select-items div,.select-selected {
    color: #000000;
    padding: 8px 16px;
    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: whitesmoke;
    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);
  }

/* -------------------------------------- */
/* Custom CheckBox:                       */
/* -------------------------------------- */

  /* Customize the label (the container) */
.checkBoxContainer {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default checkbox */
.checkBoxContainer input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkBoxCheckmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
}

/* On mouse-over, add a grey background color */
.checkBoxContainer:hover input ~ .checkBoxCheckmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.checkBoxContainer input:checked ~ .checkBoxCheckmark {
  background-color: #ffc107;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkBoxCheckmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkBoxContainer input:checked ~ .checkBoxCheckmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkBoxContainer .checkBoxCheckmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* -------------------------------------- */
/* Custom RadioButton:                    */
/* -------------------------------------- */

  /* The container */
  .radiobutton-container {
    display: block;
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 15px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  /* Hide the browser's default radio button */
  .radiobutton-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
  }
  
  /* Create a custom radio button */
  .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    border-style: solid;
    border-width: thin;
    border-color: #000000;        
    background-color: #eee;
    border-radius: 50%;
  }
  
  /* On mouse-over, add a grey background color */
  .radiobutton-container:hover input ~ .checkmark {
    background-color: #ccc;
  }
  
  /* When the radio button is checked, add a blue background */
  .radiobutton-container input:checked ~ .checkmark {
    background-color: #ffc107;
  }
  
  /* Create the indicator (the dot/circle - hidden when not checked) */
  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
  }

/* -------------------------------------- */
/* Custom Sliders:                        */
/* -------------------------------------- */

  input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 1;
    -webkit-transition: .2s;
    transition: opacity .2s;
  }
  
  input[type=range]:hover {
    opacity: 1;
  }
  
  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none ;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border-style: solid;
    border-width: thin;
    border-color: #000000;
    background:#ffc107;
    cursor: pointer;
  }
  
  input[type=range]::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border-style: solid;
    border-width: thin;
    border-color: #000000;    
    background: #ffc107;
    cursor: pointer;
  }
