.active {
    background-color: blueviolet;
}

.hidden {
    display: none !important;
}

ul {
    list-style-type: none;
    margin-left: 200px;
    margin-right: 200px;
    padding-left: 0;
    overflow: hidden;
    background-color: #404040;
    border: 1px solid #808080;
}

li a,
.dropdown-header {
    display: inline-block;
    color: #D0D0D0;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.dropdown-header {
    cursor: default;
}

li {
    float: left;
    border-right: 1px solid #808080;
}

li.dropdown {
    display: inline-block;
}

li a:hover:not(.active) {
    background-color: #333;
}

body {
    background-color: #282828;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 160px;
    background-color: #404040;
    border-left: 1px solid #808080;
    border-right: 1px solid #808080;
    border-top: 1px solid #808080;
    z-index: 1;
}

.dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 1px solid #808080;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.grid {
    border: 1px solid #808080;
    margin-left: 200px;
    margin-right: 200px;
    margin-bottom: 20px;
    display: grid;
    background-color: #404040;
    gap: 10px;
}

.top {
    grid: auto-flow / repeat(auto-fit, minmax(50px, 1fr));

}

.grid>div,
.grid>table {
    margin: 5px;
}

.griditem {
    outline: 1px solid black;
    background-color: #404040;
    color: #D0D0D0;
    padding: 10px;
}

.griditem2 {
    outline: 1px solid black;
    background-color: #404040;
    color: #D0D0D0;
    padding: 10px;
    grid-row-start: 2;
}

select,
option {
    border: 1px solid #808080;
    background-color: #404040;
    color: #D0D0D0;
    margin: 1px;
}

option:focus-visible {
    pointer-events: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    margin-top: 0px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #26e787;
}

input:focus+.slider {
    box-shadow: 0 0 1px #26e787;
}

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


/* Rounded sliders */

.slider.round {
    border-radius: 17px;
}

.slider.round:before {
    border-radius: 50%;
}

table {
    border-collapse: collapse;
    letter-spacing: 1px;
    width: 100%;
    border-left: none;
}

th,
td {
    border: 1px solid black;
    padding: 8px 10px;
    color: #D0D0D0;
    background-color: #404040;
}

#crystals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

label {
    display: inline-block;
    margin-bottom: 5px;
}

.COMMON {
    color: #FFFFFF
}

.UNCOMMON {
    color: #55FF55
}

.RARE {
    color: #5555FF
}

.EPIC {
    color: #AA00AA
}

.LEGENDARY {
    color: #FFAA00;
}

.MYTHIC {
    color: #FF55FF;
}

.jasperlabel {
    color: #ff55ff
}

.rubylabel {
    color: #ff5555
}

.opallabel {
    color: #ffffff
}

.onyxlabel {
    color: #555555
}

.aquamarinelabel {
    color: #00aaaa
}

.citrinelabel {
    color: #aa0000
}

.peridotlabel {
    color: #00aa00
}

input[type="number"] {
    background-color: #555555;
    color: white;
    border: 1px solid #808080;

}

th {
    background-color: #2b2b2b;
}

#keycostlabel {
    color: #ff5555;
    border-bottom: 1px solid black;
}

#profitlabel {
    color: #00aa00;
}

#powderlabel {
    color: #55ffff
}

#fishgrid {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    margin-left: 200px;
    margin-right: 200px;
    margin-bottom: 20px;
    gap: 10px;
}

#fishtable {
    display: grid;
    grid-template-columns: 0.5fr 0.5fr
}

/*#fishstats {
    grid-template-columns: 1fr;
    grid-template-rows: 0.01fr 1fr;
}*/

.lava {
    margin: 0;
}

#nucleusgrid,
#nucleusstatsgrid {
    grid-template-columns: 1fr;
}

#cropgrid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    margin: 5px;
    gap: 5px;
}

thead,
tfoot {
    display: table-header-group;
}

/*td img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 20%;
}*/

.sprite {
    background-position: 0px 0px;
    margin-right: 5px;
    max-width: 16px;
    max-height: 16px;
}

.header {
    float: right;
    max-width: 75px;
    max-height: 120px;
}

#miniongrid {
    display: grid;
    grid-template-columns: 1fr;
    margin-left: 200px;
    margin-right: 200px;
    margin-bottom: 20px;
    gap: 10px;
}

#treasuregrid {
    grid-template-columns: repeat(4, 1fr);
}

caption {
    font-weight: bold;
    font-size: 36px;
    text-align: left;
    margin-bottom: 16px;
}

.no-border {
    padding: 0px;
    outline-offset: -1px;
}

small {
    margin-bottom: 10px;
    display: block;
}