html,
body,

#darker {
    color: #000; /* Was 999 */
}

#panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 340px;
    max-height: calc(100% - 20px);
    max-width: calc(100% - 20px);
    background-color: #fff;
    margin: 10px;
    border-radius: 3px;
    box-shadow: rgba(0,0,0,0.298039) 0px 1px 4px -1px;
    overflow: auto;
	display: none; /* Hides entire panel */
}
#panel section {
    width: 100%;
}
#mid {
    background-color: #f5f5f5;
}

#top {
    padding: 5px 20px 0 10px;
    position: relative;
}
#mid,
#bottom {
    padding: 10px;
}

#panel.hide {
    width:auto;
}
#panel.hide #exit-container,
#panel.hide #state-sel,
#panel.hide #places-auto,
#panel.hide #truckstops-container,
#panel.hide #rest-container,
#panel.hide #mid,
#panel.hide #bottom {
    display: none;
}
#panel.hide #top {
    padding: 10px 10px 4px 10px;
}

#exit-container {
    text-align: left;
    margin-bottom: -20px;
}

#hide-container {
    text-align: right;
    margin-bottom: 6px;
}
#hide {
    background-color: transparent;
    color: #777;
    font-size: 0.85rem;
    line-height: 1;
    padding: 3px 4px;
}
#hide:hover {
    color: #999;
}

#exit {
    background-color: transparent;
    color: #777;
    font-size: 0.85rem;
    line-height: 1;
    padding: 3px 4px;
}

#state-sel {
    border: 2px solid #1abc9c;
    margin-bottom: 20px;
}

#places-auto {
    margin-bottom: 20px;
}

#truckstops-container,
#rest-container  {
    margin: 0 -20px 0 -20px;
    padding: 12px 20px 20px 20px;
    background-color: #fdfdfd;
    position: relative;
}

#truckstops-container.off,
#rest-container.off {
    padding-bottom: 12px;
}
#truckstops-container.off .category,
#rest-container.off .category {
    color: #999;
}
#truckstops-container.off .clear,
#rest-container.off .clear {
    display: none;
}
#truckstops-container.off .switch,
#rest-container.off .switch {
    background-color: #999;
}
#truckstops-container.off #truckstops,
#rest-container.off #rest {
    display: none;
}
#truckstops-container .hideit,
#rest-container .hideit {
    display: none;
}



#top .category {
    margin: 0;
    text-align: left;
    background-color: transparent;
    color: #666;
    border:none;
}
#top .clear {
    margin: 0;
    height: 26px;
    background-color: transparent;
    color: #666;
    border: none;
}
#top .switch {
    position: absolute;
    right: 26px;
    top: 17px;
    height: 16px;
    line-height: 16px;
    background-color: #666;
    color: #fff;
    margin: 0;
    padding: 0 6px;
}
#top .switch:hover {
    background-color: #444;
}
#top .select .ui.label {
    padding: 4px 4px;
    margin: 2px 3px 2px 0;
    box-shadow: none;
    border: none;
    color: #666;
    background-color: #fafafa;
    border: 1px solid #ddd;
}

#mid .category {
    margin: 5px 0 0 0;
    text-align: left;
    color: #1abc9c;
    background-color: transparent;
    border: none;
}
#mid .category:first-child {
    margin: 0;
}
#mid .clear {
    margin: 0;
    height: 26px;
    color: #1abc9c;
    background-color: transparent;
    border: none;
}

#mid .select .ui.label {
    padding: 4px 4px;
    margin: 2px 3px 2px 0;
    box-shadow: none;
    border: none;
    color: #666;
    background-color: #fafafa;
    border: 1px solid #ddd;
}

#top .select .ui.label img,
#mid .select .ui.label img {
    display: inline-block;
    vertical-align: middle;
    height: 16px !important;
    width: auto !important;
    margin-right: 4px;
}
#top .select .ui.label span,
#mid .select .ui.label span {
    display: inline-block;
    vertical-align: middle;
    height: 16px;
    padding-top:1px;
}

#mid .star {
    margin-left: -3px;
    margin-right: 0;
    color: #ffe623;
    text-shadow: 0 -1px 0 #ddc507,-1px 0 0 #ddc507,0 1px 0 #ddc507,1px 0 0 #ddc507;
}
#mid .star.empty {
    text-shadow: none;
}

#mid #elevation .menu {
    max-height: 7.58571429rem;
}

#bottom .ui.checkbox {
    display: inline-block;
    width:50%;
    margin-bottom: 5px;
}
#bottom .ui.checkbox:nth-child(2),
#bottom .ui.checkbox:nth-child(4) {
    margin-bottom: 0;
}