* {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}
html,body{
  height: 100%;
  width: 100%;
}

img#clear{
  display: none;
}

#main-container{
  display: flex;
  justify-content: center; 
  min-height: 100vh;
  flex-direction: column;
}


header{
  display: flex;
}

.canvas-container{
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;

  border:1px solid rgb(36, 56, 73);
  margin: 10px;

  padding: 10px;

  background:
  linear-gradient(90deg, #fff 10px, transparent 1%) center,
  linear-gradient(#fff 10px, transparent 1%) center,  #bbb;
  background-size: 11px 11px;
}

#presets-container{
  display: flex;
  flex-wrap:wrap;
  align-content: flex-start;
  flex: 2;
  min-height: 3em;
  background: #eeeeee;

  padding: 10px;
}

#presets-list{
 display: flex;
 width:100%;
 flex-wrap: wrap;
}

.preset-wrapper{
  border: 2px solid #2196F3;
  background-color: white;
  color: rgb(68, 116, 156);
  margin: 2px; 
}

.preset-button{
  border: 0;
  width: auto;
  height: 100%;
  font-size: 18px;
  cursor: pointer;
}

.button-delete{
  color: rgb(158, 0, 0);
  font-weight: bold;
}

.button-add{
  border: 2px solid #2196F3;
  margin: 2px; 
  color: #2196F3;
  font-weight: bold;
}

.header-label{
  padding: 5px;
  margin: 2px;
  background: #ccc;
  width: 100%;
}

canvas#temp{
  display: none;
}

div#settings{
  width:286px;
  padding: 10px;
  background: #eeeeee;
}

input[type="number"], input[type="color"] {
  width:30px;
}


select {
  /* General styling */
  height: 30px;
  width: 100%;
  border-radius: 0;
  padding-left: 10px;
  margin-bottom: 10px;

  font-size: 15pt;
}

/* MODE SWITCHES RELATED */

.switch {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 34px;
}

.mode-dependent{
    display:none;
    padding:5px;
    background:#dce9f3;
}

.switch input {display:none;}

.slider {
  font-size:90%;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding-left: 40px;
  padding-top: 8px;
  background-color: #ccc;  
  
  -webkit-transition: .2s;
  transition: .2s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  color:#666;
  -webkit-transform: translateX(200px);
  -ms-transform: translateX(200px);
  transform: translateX(200px);
  opacity:0;
}


input:checked + .slider {
  color:white;
  background-color: #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(0px);
  -ms-transform: translateX(0px);
  transform: translateX(0px);
  opacity:1;
  
}

.checkbox-highlighted+span{
    background: transparent;
}

.checkbox-highlighted:checked+span{
    background: rgba(255, 179, 0, 0.71);
}

.chord-mode-button  {
    background-color: #2196F3;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

/*ARROW RELATED*/


.rangeslidecontainer {
    width: 100%;
}

.rangeslider {
    -webkit-appearance: none;
    width: 100%;
    height: 30px;
    background: #b3cad1;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

.rangeslider:hover {
    opacity: 1;
}

.rangeslider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    background: #2196F3;
    cursor: pointer;
}

.rangeslider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #2196F3;
    cursor: pointer;
}

button {
    border: 2px solid #2196F3;
    background-color: white;
    color: #2196F3;
    width: 100%;
    padding: 5px 10px;
    font-size: 26px;
    cursor: pointer;
    margin-bottom: 5px;
}

button:hover {
    background-color: #2196F3;
    color: white;
    transition: .4s;
}

.hint{
    display:block;
    font-size:70%;
    color:darkgray;
}

input[type="text"]{
    font-size:20px;
    width:100%;
    margin-bottom:5px;
    display: block;

}


.validation{
    display:none;
    color:red;
    font-weight:bold;
    margin:10px;
    font-size:20px;
}

#undoredo-wrapper {
    position: fixed;
    top: 12px;
    right: 318px;
    background: white;
}
#undoredo-wrapper a {
    display: inline-block;
    font-size: 20px;
    text-decoration: none;
    color: black;
    padding: 4px;
}
#undoredo-wrapper a:hover {
    background: #ccc;
}

.colorsample {
    display: inline-block;
    width: 20px;
    margin: 2px;
    background: black;
    height: 20px;
}

div.legends > div {
    font-size: 10pt;
    background: #FFF3E0;
    border: 1px solid gray;
    padding: 10px;
}

#pop {
    z-index: 10;
}
.a-color-picker-row.a-color-picker-hint {
    color: #777;
    padding: 8px 13px;
}