* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* remove test selection because its really annoying when clicking */
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select:none;
    user-select:none;
    -o-user-select:none;
    touch-action: manipulation;
    prefers-color-scheme: light;
    color-scheme: light;
}

body {
    /*display: flex;*/
    flex-direction: column;
    height: 100vh;
    width: 100%;
    background-color: #000;
    color: #fff;
    font-size: 16px;
    font-family: 'Quicksand', sans-serif;

}
ul ul {
    list-style-type: circle;
    margin:0 0 0 2em;
    margin-block-end: 0px;
}
hr {
    margin: 1em 0 1em 0;
}

a {
    color: #e0e0e0;
    font-weight: 700;
    padding: 0 1px;
}

label { /* prevent selecting label */
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select:none;
    user-select:none;
    -o-user-select:none;
}

a:hover {
    background: darkgray;
    color: #fff;
}

#content {
    margin-top:2em;
    padding: 20px;
    height:80%;
}
#header .left{
    display: inline-block;
    float:left;
}
#header .right{
    float:right;
}
#header {
    position: fixed;
    top:0%;
    background:#505050;
    width:100%;
    z-index: 1 !important;
}

#timer td {
    padding: 0px 5px 0px 5px;
}

#timer input[type=button], #metronome input[type=button]{
    background-color: black;
    border: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 2px;
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    cursor: pointer;
    font-weight: 700;
    margin: 0 5px 0 5px;
    border: none;
    outline:none;
    position:relative;
}

#metronome input[type=button]:hover, #metronome input[type=button].btn_active {
    background-color: darkblue;
}
#metronome input[type=button]:active {
    background-color:darkred;
}

#timer #field, #metronome #field{
    min-width:4em;
    /*float:left;*/
    font-family:monospace;
    display:inline-block;
}
h1 {
    font-size: 30px;
    margin: 0 0 5px 0;
}

h2 {
    font-size: 22px;
    margin: 0 0 10px 0;
    font-weight: 800;
}
h2.section {
    width:100%;
    margin-top:0px;
    padding-top:0px;
    background-color:#121212;
}
#ghost_name_holder{
    margin-bottom: 10px;
}

h2.off {
    color:grey;
    background-color:black;
}

li {
    margin: 0.4em 0 0.4em 0;
}

.inline {
    display:inline-block;
}
#markedOff {
    display:flex;
    margin-left:24px;
    flex-wrap:wrap;
}
#markedOff div {
    display:grid;
    align-items: center;
    margin: 0 10px 0 0;
}
#markedOff input[type='checkbox'] + label {
    display:flex;
    text-decoration: line-through;
    font-size: 18px;
}

input[type="text"]:focus {
    background: #fff;
    color: #000;
}
input[type="text"] {
    background: #1a1a1a;
    width: 350px;
    border: none;
    outline: none;
    text-decoration: none;
    color: #f41f86;
    font-size: 22px;
    padding: 5px;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance:    none;
    appearance:         none;
    font-family: 'Quicksand', sans-serif;
    border-radius: 2px;
    font-weight: 700;
    margin: 0 10px 0 0;
}

input[type="text"]:focus {
    background: #fff;
    color: #000;
}
input[type=reset] {
    background-color: black;
    border: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 2px;
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    cursor: pointer;
    font-weight: 700;
    margin: 0 0 0 10px;
    border: none;
    outline:none;
    position:relative;
}
input[type="checkbox"] {
    position:absolute;
    visibility:hidden;
    opacity:0;
}

input[type="checkbox"] + label {
    background: #383838;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 2px;
    border-bottom: 200px;
    cursor: pointer;
    font-size: 22px;
    text-decoration: none;
}
input[type="checkbox"]:checked + label {
    background: darkblue;
    text-decoration: none;
}

#objectives input[type="checkbox"]:checked + label {
    background: darkblue;
    text-decoration: none;
}

input[type=reset]:hover {
    background-color: darkblue;
}
input[type=reset]:active {
    background-color:darkred;
}



/* EVIDENCE LIST */
#evidence {
    margin: 0 0 20px 0;
}

#evidence ul {
    display: inline-grid;
    grid-template-columns: repeat(7, auto);
    grid-gap: 10px;
}

#evidence h2 {
    margin: 0 0 5px 0;
}

#evidence #nightmare {
    width: 10em;
    margin: 0 0 5px 0;
}

#evidence p {
    margin: 0 0 15px 0;
}
#evidence_list {
    display: flex;
    flex-wrap: wrap;
}
#evidence_list div {
    list-style: none;
    white-space: nowrap;
    width: auto;
    margin:0 10px 0 0;
}

.evidence_toggle input[type="range"].yes::-webkit-slider-thumb  {
    background-color: darkblue;
}

.evidence_toggle input[type="range"].no::-webkit-slider-thumb  {
    background-color: darkred;
}

#evidence_list ul li.disabled { /* what was this for again */
    display: none;
}
/* EVIDENCE TOGGLES */
.evidence_toggle input[type="range"] {
    appearance: none;
    width: 150px;
    padding: 1px;
    border-radius: 2px;
    background-color: #383838;
}

.evidence_toggle input[type="range"]::-webkit-slider-thumb  {
    appearance: none;
    height: 30px;
    width: 45px;
    border-radius: 2px;
    background-color: #2f2f2f;
}

.evidence_toggle label  {
    margin: auto;
    display: block;
}

/**********************************
OBJECTIVES
 */
#optional_objectives {
    display: flex;
    flex-direction: column;

}

#optional_objectives h2 {
    margin: 0 0 5px 0;
}

#optional_objectives p {
    margin: 0 0 5px 0;
}

#objective_list {
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0 10px 0;
}

#objective_list div {
    margin: 0 5px 5px 0;
    list-style: none;
    display:grid;
    white-space: nowrap;
    width: auto;
}

/*#nightmare_difficulty {
    margin: 5px 0px 5px 0px;
}*/

/**********************************************
 GHOSTS
***********************************************/

.ghost .ghost_evidence li {
    list-style: none;
    background-color: #2f2f2f;
    border-radius: 5px;
    padding: 2px;
    text-align: center;
    margin: 0 0 0.2em 0;
    font-weight: 700;
}

.ghost .ghost_evidence li.yes {
    background-color: darkblue;
}

.ghost .ghost_evidence li.no {
    background-color: darkred;
}

.ghost p {
    margin: 0 0 0.5em 0;
    font-size: 13px;
}

#ghosts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    grid-gap: 16px;
    grid-auto-flow: dense;
}

.ghost {
    transition: opacity 1s ease;
    background: #000;
    position: relative;
    margin: 0 1em 0 1em;
}

.ghost h3 {
    font-size: 22px;
    transition: color .125s ease;
}

.ghost h3, .ghost h4 {
    margin: 0.5em 0 0.1em 0;
}


.excluded {
    display:none;
}
.marked {
    display:none;
}
.determined h3{
    color: darkgreen;
}

/************ MAPS ************/
#map_list div.disabled, #map_hints div.hidden, #item_hints div.hidden {
    display: none;
}
#map_list {
    display:flex;
    align-items: center;
}
#map_list {
    display: flex;
    flex-wrap: wrap;
}
#map_list div {
    display: grid;
    align-items: center;
    margin: 0 5px 5px 0;
}
#map_hints img {
    max-width: 100vh;
    max-height: 100vh;
    object-fit: scale-down;
    margin:auto;
}
#maps .wrapper {
    display: flex;
    align-items: center;
}
#maps.tight img {
    max-height:50vh;
}
#map_list input[type="checkbox"] + label {
    display:flex;
}

/* items and stuff */
#item_hints img {
    max-height: 20em;
    margin-top:-4em;
    align:right;
    float:right;
    vertical-align: bottom;
}
.cursed_item{
    display:block;
}
#item_hints a{ /* to fix issue with large border below h3 */
    padding:0;
}
#item_hints{
    vertical-align: bottom;
}
#item_list {
    display:flex;
    align-items: center;
    flex-wrap: wrap;
}

#item_hints h3 {
    margin-top:12px;
    margin-bottom:3px;
    text-decoration: underline;
}
#item_hints h4 {
    margin-top:6px;
}
#item_hints p, #item_hints li {
    font-size:14px;
}
#item_list div {
    display: grid;
    align-items: center;
    margin: 0 5px 5px 0;
}
#item_list input[type="checkbox"] + label {
    display:flex;
}

.row {
    display:flex;
    align-items: center;
    flex-wrap: wrap;
}

.row div {
    display: grid;
    align-items: center;
    margin: 0 5px 5px 0;
}

/* mobile friendly */
@media screen and (max-width: 750px) {
    #ghosts{
        display:flex;
        flex-wrap:wrap;
    }
    h3 {
        font-size: 1.17em; /* default */
    }
    h2 {
        font-size: 1.5em; /* default */
    }
    p,li,font {
        font-size: 16px; /* default */
    }
    #header .left{
        float:none;
        align: center;
        display:block;
    }
    #header .left h1{
        width:100%;
        padding:0px;
    }
    #header .left input{
        float:right;
        position: relative;
    }
    #header .right{
        float:none;
        align: center;
        display:block;
    }
    #header table, #header tr {
        width:100%;
        padding:0px;
        text-align:center;
        position:center;
    }
    #header td {
        text-align:center;
    }
    #header .right h1 {
        display:none;
    }
    #header h1 {
        font-size:1.75em; /* smaller text for top */
    }
    #header {
        position: sticky;
        top:0%;
        background:#505050;
        width:100%;
        z-index: 500 !important;
    }
    #content {
        margin-top: 0em;
        padding: 10px;
        height: 100%;
        touch-action: manipulation; /* disable double tap zoom */
    }
}

@media (prefers-color-scheme: dark) {

}