@font-face {
    font-family: 'October Crow';
    src: url('fonts/october_crow.ttf');
}

@font-face {
    font-family: 'Yahfie';
    src: url('fonts/yahfie.ttf');
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: none 
}

::-webkit-scrollbar-thumb {
    background: #ffffff60; 
}

::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

body{
    background-image: radial-gradient(circle, rgba(0,0,0,0.75), rgba(0,0,0,1)), url('https://zero-network.net/phasmophobia/static/imgs/background.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

hr{
    border: 1px dashed rgba(204, 204, 204, 0.26);
    margin: 5px;
    width: 90%;
}

.title{
    font-size: 30px;
    padding-top: 20px;
}

.phasfont{
    font-family:"October Crow";
    letter-spacing: 1;
}

.yfont{
    font-family:"Yahfie";
}

.white{
    color: white;
}

@media screen and (pointer: fine),screen and (pointer: coarse) and (min-device-width: 601px) {

    #blackout, #blackout_voice{
        position: fixed;
        background: rgba(0,0,0,0.9);
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-content: center;
        z-index: 110;
    }

    #settings_box{
        position: fixed;
        top: 0;
        z-index: 2;
        width: 200px;
        height: 100%;
        background-color: #313248;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: stretch;
        align-items: flex-start;
        color: #fff;
        padding: 5px 8px 5px 20px;
        font-size: 14px;
        transition: left 0.5s ease;
    }

    #settings_tab{
        position: absolute;
        transform: rotate(-90deg);
        height: 15px;
        width: 90px;
        text-align: center;
        top: 44px;
        right: -64px;
        background-color: #313248;
        padding: 5px;
        cursor: pointer;
        border-style: solid;
        border-color: #ccc;
        border-width: 0px 1px 1px 1px;
        border-radius: 0px 0px 5px 5px;
    }

    #settings_status, #discord_link_status{
        width: 5px;
        height: 25px;
        border-radius: 0px 0px 15px 0px;
        top: 0px;
        right: 0px;
        position: absolute;
    }

    #dllink_status{
        width: 5px;
        height: 25px;
        border-radius: 0px 0px 0px 0px;
        top: 0px;
        right: 6px;
        position: absolute;
    }

    #voice_recognition_status{
        background-size: cover;
        background-repeat: no-repeat;
        transform: rotate(90deg);
        width: 16px;
        height: 16px;
        top: 7px;
        left: 4px;
        position: absolute;
        
    }

    .pulse_animation{
        animation: mic_pulse 3s infinite;
    }

    @keyframes mic_pulse{
        0% {
            filter: opacity(1);
            -webkit-filter: opacity(1);
        }
        50% {
            filter: opacity(0.5);
            -webkit-filter: opacity(0.3);
        }
        100% {
            filter: opacity(1);
            -webkit-filter: opacity(1);
        }
    }

    .connected{
        background: #2ccc29;
    }

    .pending{
        background: #b5c710;
    }

    .error{
        background: #db4d48;
    }

    .download{
        position: absolute;
        right: 0;
        bottom: 0;
    }

    .download_icon{
        width: 20px;
        cursor: pointer;
    }

    .download_icon:hover{
        filter: opacity(0.5);
    }

    #discord_link_box{
        position: fixed;
        top: 0;
        z-index: 1;
        width: 200px;
        height: 100%;
        background-color: #313248;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: stretch;
        align-items: flex-start;
        color: #fff;
        padding: 5px 8px 5px 20px;
        font-size: 14px;
        transition: left 0.5s ease;
    }

    #discord_link_tab{
        position: absolute;
        transform: rotate(-90deg);
        height: 15px;
        width: 90px;
        text-align: center;
        top: 153px;
        right: -64px;
        background-color: #313248;
        padding: 5px;
        cursor: pointer;
        border-style: solid;
        border-color: #ccc;
        border-width: 0px 1px 1px 1px;
        border-radius: 0px 0px 5px 5px;
    }

    #event_box{
        position: fixed;
        top: 0;
        z-index: 1;
        width: 350px;
        height: 100%;
        background-color: #313248;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: stretch;
        align-items: flex-start;
        color: #fff;
        padding: 5px 8px 5px 20px;
        font-size: 14px;
        transition: left 0.5s ease;
    }

    #event_tab{
        position: absolute;
        transform: rotate(-90deg);
        height: 15px;
        width: 90px;
        text-align: center;
        top: 262px;
        right: -64px;
        background-color: #313248;
        padding: 5px;
        cursor: pointer;
        border-style: solid;
        border-color: #ccc;
        border-width: 0px 1px 1px 1px;
        border-radius: 0px 0px 5px 5px;
    }

    #wiki_box{
        position: fixed;
        top: 0;
        z-index: 1;
        width: 350px;
        height: 100%;
        background-color: #313248;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: stretch;
        align-items: flex-start;
        color: #fff;
        padding: 5px 8px 5px 20px;
        font-size: 14px;
        transition: left 0.5s ease;
    }

    #wiki_tab{
        position: absolute;
        transform: rotate(-90deg);
        height: 15px;
        width: 90px;
        text-align: center;
        top: 371px;
        right: -64px;
        background-color: #313248;
        padding: 5px;
        cursor: pointer;
        border-style: solid;
        border-color: #ccc;
        border-width: 0px 1px 1px 1px;
        border-radius: 0px 0px 5px 5px;
    }

    #maps_box{
        position: fixed;
        top: 0;
        z-index: 1;
        width: 556px;
        min-width: 556px;
        height: 100%;
        background-color: #313248;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: stretch;
        align-items: flex-start;
        color: #fff;
        padding: 5px 8px 5px 20px;
        font-size: 14px;
        transition: left 0.5s ease, width 0.5s ease;
    }

    #maps_tab{
        position: absolute;
        transform: rotate(-90deg);
        height: 15px;
        width: 90px;
        text-align: center;
        top: 480px;
        right: -64px;
        background-color: #313248;
        padding: 5px;
        cursor: pointer;
        border-style: solid;
        border-color: #ccc;
        border-width: 0px 1px 1px 1px;
        border-radius: 0px 0px 5px 5px;
    }

    #news_box{
        position: fixed;
        top: 0;
        z-index: 1;
        width: 350px;
        height: 100%;
        background-color: #313248;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-content: stretch;
        align-items: flex-start;
        color: #fff;
        padding: 5px 8px 5px 8px;
        font-size: 14px;
        transition: right 0.5s ease;
    }

    #news_tab{
        position: absolute;
        height: 24px;
        width: 24px;
        text-align: center;
        top: 5px;
        left: -35px;
        background-color: #313248;
        padding: 5px;
        cursor: pointer;
        border-style: solid;
        border-color: #ccc;
        border-width: 1px 0px 1px 1px;
        border-radius: 5px 0px 0px 5px;
    }

    /* #settings_tab:hover, #discord_link_tab:hover, #event_tab:hover, #wiki_tab:hover, #maps_tab:hover{
        background-color: #ffffff60;
    } */

    .settings_title{
        font-size: 26px;
        margin: 2px 0px 10px 0px;
    }

    #settings_box .icon, #discord_link_box .icon, #event_box .icon, #wiki_box .icon, #maps_box .icon, #news_box .icon{
        position: absolute;
        top: 5px;
        right: 4px;
        width: 23px;
        height:23px;
        -ms-transform: rotate(45deg); /* IE 9 */
        -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
        transform: rotate(45deg);
        cursor: pointer;
    }

    #settings_box .icon:before, #discord_link_box .icon:before, #event_box .icon:before, #wiki_box .icon:before, #maps_box .icon:before, #news_box .icon:before{
        content:"";
        position: absolute;
        width:3px;
        height:15px;
        background-color:#fff;
        left:10px;
        top:4px;
    }

    #settings_box .icon:after, #discord_link_box .icon:after, #event_box .icon:after, #wiki_box .icon:after, #maps_box .icon:after, #news_box .icon:after{
        content:"";
        position: absolute;
        width:15px;
        height:3px;
        background-color:#fff;
        left:4px;
        top:10px;
    }

    #settings_box .info_block, #discord_link_box .info_block, #event_box .info_block, #wiki_box .info_block{
        display: flex;
        flex-direction: column;
        z-index: 2;
        box-shadow: inset 0 0 10px #161615;
        background: rgba(0,0,0,0.25);
        align-items: center;
        width: 100%;
        padding-bottom: 20px;
        user-select: none;
        overflow-y: scroll;
        overflow-x: hidden;
        margin-bottom: 13px;
        border-radius: 5px;
    }

    #news_box .info_block {
        display: flex;
        flex-direction: column;
        z-index: 2;
        box-shadow: inset 0 0 10px #161615;
        background: rgba(0,0,0,0.25);
        align-items: flex-start;
        width: 100%;
        padding-bottom: 20px;
        user-select: none;
        overflow-y: scroll;
        overflow-x: hidden;
        margin-bottom: 13px;
        border-radius: 5px;
    }

    #speed_offset{
        font-size: 20px;
        margin-top: 5px;
        font-weight: bold;
    }

    .speed_icon{
        display: inline-block;
        background: #FFF;
        border-radius: 15px;
        color: #444;
        width: 25px;
        height: 25px;
        text-align: center;
        margin: 0;
        padding: 0;
        cursor: pointer;
    }

    .speed_icon:hover{
        background-color: #747474;
    }

    #info_box, #info_box_voice{
        z-index: 100;
        width: 600px;
        height: auto;
        max-height: calc(100vh - 100px);
        background-color: #313248;
        border-radius: 5px;  
        display: flex;
        flex-direction: column;
        position: relative;
        flex-wrap: nowrap;
        align-content: stretch;
        align-items: flex-start;
        color: #fff;
        padding: 20px;
        overflow-y: scroll;
        font-size: 12px;
    }

    #info_box .icon, #info_box_voice .icon{
        position: absolute;
        top: 10px;
        right: 10px;
        width: 23px;
        height:23px;
        -ms-transform: rotate(45deg); /* IE 9 */
        -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
        transform: rotate(45deg);
        cursor: pointer;
    }

    #info_box .icon:before, #info_box_voice .icon:before{
        content:"";
        position: absolute;
        width:3px;
        height:15px;
        background-color:#fff;
        left:10px;
        top:4px;
    }

    #info_box .icon:after, #info_box_voice .icon:after{
        content:"";
        position: absolute;
        width:15px;
        height:3px;
        background-color:#fff;
        left:4px;
        top:10px;
    }

    #info_box h3, #info_box_voice h3{
        margin-bottom: 8px;
    }

    #info_box .info_block, #info_box_voice .info_block{
        font-family: 'Courier New', Courier, monospace;
        box-shadow: inset 0 0 10px #161615;
        background: rgba(0,0,0,0.25);
        padding: 10px;
        height: fit-content;
        width: calc(100% - 20px);
        font-size: 11px;
        
    }

    #info_box_voice .info_block li{
        padding-bottom: 5px !important;
    }

    #info_box .info_block hr, #info_box_voice .info_block hr{
        width: calc(100% - 10px);
        margin-top: 15px;
        margin-bottom: 15px;
    }

    #info_box .info_text, #info_box_voice .info_text{
        margin-left: 10px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    #info_box .info_image_text{
        margin-left: 10px;
        display: grid;
        align-content: center;
        grid-template-columns: 80px auto;
        align-items: center;
    }

    .info_image_text img{
        margin-right: 20px;
        max-height: 60px;
        max-width: 60px;
        filter: drop-shadow(2px 2px 2px black);
        position: relative;
        z-index: -1;
    }

    #info_box .copyright_text, #info_box_voice .copyright_text{
        margin-top: 10px;
        text-align: center;
        align-self: center;
        font-size: 11px;   
    }

    #info_box .thankyou_text, #info_box_voice .thankyou_text{
        color: #ffffffa0;
        margin-top: 25px;
        text-align: center;
        align-self: center;
        font-size: 10px;
        line-height: 15px;
    }

    input[type="range"] {
        margin-left: 0;
        -webkit-appearance: none;
        margin: 10px 0px;
    }
    input[type=range]:focus {
        outline: none;
    }
    input[type=range]::-webkit-slider-runnable-track {
        width: 100%;
        height: 5px;
        cursor: pointer;
        animate: 0.2s;
        box-shadow: 0px 0px 0px #000000;
        background: #ffffff60;
        border-radius: 1px;
        border: 0px solid #000000;
    }
    input[type=range]::-webkit-slider-thumb {
        box-shadow: 0px 0px 0px #000000;
        border: 1px solid #ffffff60;
        height: 16px;
        width: 16px;
        border-radius: 25px;
        background: #ccc;
        cursor: pointer;
        -webkit-appearance: none;
        margin-top: -7px;
    }
    input[type=range]:focus::-webkit-slider-runnable-track {
        background: #ffffff60;
    }
    input[type=range]::-moz-range-track {
        width: 100%;
        height: 5px;
        cursor: pointer;
        animate: 0.2s;
        box-shadow: 0px 0px 0px #000000;
        background: #ffffff60;
        border-radius: 1px;
        border: 0px solid #000000;
    }
    input[type=range]::-moz-range-thumb {
        box-shadow: 0px 0px 0px #000000;
        border: 1px solid #ffffff60;
        height: 16px;
        width: 16px;
        border-radius: 25px;
        background: #ccc;
        cursor: pointer;
    }
    input[type=range]::-ms-track {
        width: 100%;
        height: 5px;
        cursor: pointer;
        animate: 0.2s;
        background: transparent;
        border-color: transparent;
        color: transparent;
    }
    input[type=range]::-ms-fill-lower {
        background: #ffffff60;
        border: 0px solid #000000;
        border-radius: 2px;
        box-shadow: 0px 0px 0px #000000;
    }
    input[type=range]::-ms-fill-upper {
        background: #ffffff60;
        border: 0px solid #000000;
        border-radius: 2px;
        box-shadow: 0px 0px 0px #000000;
    }
    input[type=range]::-ms-thumb {
        margin-top: 1px;
        box-shadow: 0px 0px 0px #000000;
        border: 1px solid #ffffff60;
        height: 16px;
        width: 16px;
        border-radius: 25px;
        background: #ccc;
        cursor: pointer;
    }
    input[type=range]:focus::-ms-fill-lower {
        background: #ffffff60;
    }
    input[type=range]:focus::-ms-fill-upper {
        background: #ffffff60;
    }

    .data{
        width: 100%;
        height: 100%;
        display: grid;
        grid-template-columns: 180px auto;
    }

    .menu{
        grid-column: 1;
        display: grid;
        width:100%;
        grid-template-rows: 40px auto 55px 20px 20px;
        background-color: #313248;
        margin: -8px;
        padding: 8px;
        box-shadow: 5px 0px 10px 0px #000;
        z-index: 2;
    }

    .tools-filter-buttons{
        grid-row: 1;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-evenly;
    }

    .filter_tool_button{
        cursor: pointer;
        width: 50%;
        margin-bottom: 10px;
        font-family: 'Yahfie';
        font-size: 21px;
    }

    .filter_tool_button_live{
        border-left: 1px solid #ccc;
        border-top: 1px solid #ccc;
        border-right: 1px solid #ccc;
        border-bottom: none;
        background: none;
        color: #fff;
        border-radius: 10px 10px 0px 0px;
    }

    .filter_tool_button_back{
        border-left: none;
        border-top: none;
        border-right: none;
        border-bottom: 1px solid #ccc;
        background: none;
        background-image: linear-gradient(rgba(0 0 0 / 0%), rgb(0 0 0 / 40%));
        transition: 0.3s;
        color: #aaa;
    }

    .filter_tool_button_back:hover{
        background-image: linear-gradient(rgba(0 0 0 / 0%), rgb(204 204 204 / 40%));
    }

    .tools-content{
        grid-row: 2;
        display: grid;
        width:100%;
        grid-template-rows: 32px min-content 40px auto;
    }

    .spin_hide{
        animation-name: spinhide;
        animation-duration: 150ms;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
    }

    @keyframes spinhide {
        from {
            transform: rotateY(0deg);
        }
        to{
            transform: rotateY(90deg);
        }
    }

    .spin_show{
        animation-name: spinshow;
        animation-duration: 150ms;
        animation-timing-function: linear;
        animation-fill-mode: forwards;
    }

    @keyframes spinshow {
        from {
            transform: rotateY(270deg);
        }
        to{
            transform: rotateY(360deg);
        }
    }

    .timer_title{
        grid-column: 1;
        grid-row: 1;
        font-size: 26px;
        z-index: 2;
    }

    .modifier_title{
        grid-column: 1;
        grid-row: 3;
        font-size: 26px;
        z-index: 2;
        margin-top: 8px;
    }

    .timers{
        grid-column: 1;
        grid-row: 2;
        font-size: 30px;
        text-align: center;
        display: flex;
        flex-direction: column;
        z-index: 2;
        box-shadow: inset 0 0 10px #161615;
        background: rgba(0,0,0,0.25);
        align-items: center;
        border-radius: 5px;
        padding: 2px 4px 10px 4px;
    }

    .modifier{
        grid-column: 1;
        grid-row: 4;
        font-size: 30px;
        text-align: center;
        display: flex;
        flex-direction: column;
        z-index: 2;
        box-shadow: inset 0 0 10px #161615;
        background: rgba(0,0,0,0.25);
        align-items: center;
        border-radius: 5px;
        padding: 2px 4px 10px 4px;
    }

    .modifier_ghost_speed, .modifier_bpm_finder{
        font-size: 18px;
        letter-spacing: 1px;
        padding: 10px 10px 0px 10px;
    }

    .modifier_smudge_timer{
        font-size: 18px;
        letter-spacing: 1px;
        padding: 10px;
    }

    #ghost_modifier_speed, #modifier_volume{
        width: 90%;
        margin-left: 2%;
        background: none;
    }

    .modifier_ghost_speed_labels{
        display: flex;
        justify-content: space-between;
        width: 92%;
        padding-top: 2px;
    }

    .modifier_ghost_speed_label{
        color: #fff;
        font-size: 10px;
        rotate: 320deg;
    }

    .modifier_note{
        color: #ffffffa0;
        font-size: 10px;
        padding-top: 10px;
        margin: 0px 10px;
    }

    .modifier_note_2{
        color: #ffffffa0;
        font-size: 10px;
    }

    .timer_div{
        width: 100%;
    }

    .modifier_sound_select{
        display: flex;
        padding-top: 10px;
    }

    .modifier_sound_select img{
        height: 20px;
        filter: invert(1);
        padding: 0px 5px;
    }

    .filter-content{
        grid-row: 2;
        display: grid;
        width:100%;
        grid-template-rows: 32px min-content 40px min-content 40px auto;
        overflow-x: hidden;
    }

    .evidence_title{
        grid-column: 1;
        grid-row: 1;
        font-size: 26px;
        z-index: 2;
    }

    .num_evidence{
        border: none;
        color: #FFF;
        background: rgba(0,0,0,0.25);
        box-shadow: inset 0 0 10px #161615;
        height: 25px;
        font-size: 16px;
        padding: 0px 3px;
        padding-top: 1px;
        font-family: 'October Crow';
        float: right;
        cursor: pointer;
    }

    #game_mode{
        grid-column: 1;
        grid-row: 2;
        font-size: 32px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 4;
        box-shadow: inset 0 0 10px #161615;
        background: rgba(0,0,0,0.90);
        position: relative;
        border-radius: 5px;
        padding: 2px 0;
    }

    #game_mode span{
        font-size:20px;
    }

    .evidence{
        grid-column: 1;
        grid-row: 2;
        font-size: 30px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 2;
        box-shadow: inset 0 0 10px #161615;
        background: rgba(0,0,0,0.25);
        height: min-content;
        border-radius: 5px;
        padding: 2px 0;
    }

    .speed_title{
        grid-column: 1;
        grid-row: 3;
        font-size: 26px;
        z-index: 2;
        margin-top: 8px;
    }

    .speed{
        grid-column: 1;
        grid-row: 4;
        font-size: 30px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 2;
        box-shadow: inset 0 0 10px #161615;
        background: rgba(0,0,0,0.25);
        height: min-content;
        border-radius: 5px;
        padding: 2px 0;
    }

    .hunt_sanity_title{
        grid-column: 1;
        grid-row: 5;
        font-size: 26px;
        z-index: 2;
        margin-top: 8px;
    }

    .hunt_sanity{
        grid-column: 1;
        grid-row: 6;
        font-size: 30px;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        z-index: 2;
        box-shadow: inset 0 0 10px #161615;
        background: rgba(0,0,0,0.25);
        border-radius: 5px;
        padding: 2px 0;
    }

    .hunt_sanity_num{
        color: #bbb;
        font-size: 12px;
    }

    #modifier_sound_type {
        display: none;
    }

    .speed_logic_select{
        font-size: 12;
        display: flex;
        padding: 5px;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }

    .speed_logic_select span{
        align-self: center;
        margin: 0px 5px;
    }

    #speed_logic_type, #bpm_type {
        display: none;
    }

    .shared_journal{
        display: flex;
        flex-direction: column;
        align-content: center;
        justify-content: flex-start;
        align-items: center;
    }

    #room_id, #link_id {
        border: none;
        background: rgba(0,0,0,0.25);
        box-shadow: inset 0 0 10px #161615;
        padding: 10px;
        margin: 10px 0px;
        width: 100%;
        color: white;
        font-size: 1em;
        outline: none;
        text-align: center;
    }

    .clipboard_icon{
        width: 20px;
        position: absolute;
        right: 5px;
        top: 17px;
        cursor: pointer;
        filter: opacity(0.4);
    }

    .clipboard_icon:hover{
        filter: opacity(1.0);
    }

    .copy_cover{
        background-color: #ffffffaa;
        color: #000000;
        position: absolute;
        top: 0;
        width: 100%;
        height: 35px;
        margin: 10px 0px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .journal_link {
        position: relative;
    }

    .journal_link_buttons{
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: space-between;
    }

    .journal_link_button{
        width: 100%;
        cursor: pointer;
        border: none;
        margin: 0px 2px;
        padding: 5px;
        background: #ccc;
    }

    .journal_link_button:hover{
        background: rgb(128, 128, 128);
    }

    .toggle {
        height: 15px;
        width: 40px;
        border-radius: 10px;
        box-shadow: inset 0 0 10px #161615;
        background: rgba(0,0,0,0.25);
        position: relative;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        margin-top: 3px;
    }
    
    .toggle::before {
        content: "";
        height: 15px;
        width: 15px;
        position: absolute;
        left: 0;
        border-radius: 50%;
        background-color: #f4f4f4;
        transition: all 0.2s ease-in-out;
    }

    #speed_logic_type:checked + .toggle::before {
        position: absolute;
        left: calc(100% - 15px);
    }

    #bpm_type:checked + .toggle::before {
        position: absolute;
        left: calc(100% - 15px);
    }
    
    #modifier_sound_type:checked + .toggle::before {
        position: absolute;
        left: calc(100% - 15px);
    }

    .play_button {
        filter: invert(1);
        opacity: 0.8;
        cursor: pointer;
        position: relative;
        width: 28px;
        float: left;
    }
      
    .play_button:hover {
        opacity: 0.5;
    }

    #time_left{
        color: #fff;
        width: calc(100% - 20px);
        font-size: 12px;
        text-align: end;
        position: relative;
        padding: 0px 10px;
        margin-top: -5px;
    }

    #progress {
        margin: 0px 10px;
        width: calc(100% - 20px);
        position: relative;
    }

    #progressBar {
        width: calc(100% - 32px);
        margin: 11px 0px 11px 4px;
        height: 6px;
        box-shadow: inset 0 0 10px #161615;
        background: rgba(0,0,0,0.25);
        display: inline-block;
        position: relative;
    }
      
    #progressBar .bar {
        height: 6px;
        text-align: right;
        line-height: 6px;
        width: 0;
        background-color: #ffffff60;
        box-sizing: border-box;
        position: absolute;
        float: left;
    }

    #progressBar .demon_line {
        height: 8px;
        border-left: 1px #fff dotted;
        left: 66.666%;
        width: 0;
        top: -2px;
        position: absolute;
        float: left;
    }

    #progressBar .ghost_line {
        height: 10px;
        border-left: 1px #fff solid;
        left: 50%;
        width: 0;
        top: -2px;
        position: absolute;
        float: left;
    }

    #progressBar .spirit_line {
        height: 8px;
        border-left: 1px #fff dotted;
        width: 0;
        top: -2px;
        position: absolute;
        float: left;
    }

    .line_labels{
        display: block;
        width: calc(100% - 49px);
        height: 6px;
        margin: 0px 10px 0px 29px;
        text-align: left;
        position: relative;
    }

    .spirit_line_label{
        color: rgb(145, 145, 145);
        font-size: 10px;
        display: inline-block;
        left: 9px;
        bottom: -6px;
        position: absolute;
    }

    .demon_line_label{
        color: rgb(145, 145, 145);
        font-size: 10px;
        display: inline-block;
        left: 71.666%;
        bottom: -6px;
        position: absolute;
    }

    #time_left_cooldown{
        color: #fff;
        width: calc(100% - 20px);
        font-size: 12px;
        text-align: end;
        position: relative;
        padding: 0px 10px;
        margin-top: -5px;
    }

    #cooldownProgress {
        margin: 0px 10px;
        width: calc(100% - 20px);
        position: relative;
    }

    #cooldownProgressBar {
        width: calc(100% - 32px);
        margin: 11px 0px 11px 4px;
        height: 6px;
        box-shadow: inset 0 0 10px #161615;
        background: rgba(0,0,0,0.25);
        display: inline-block;
        position: relative;
    }
      
    #cooldownProgressBar .bar {
        height: 6px;
        text-align: right;
        line-height: 6px;
        width: 0;
        background-color: #ffffff60;
        box-sizing: border-box;
        position: absolute;
        float: left;
    }

    #cooldownProgressBar .demon_line {
        height: 8px;
        border-left: 1px #fff dotted;
        left: 20%;
        width: 0;
        top: -2px;
        position: absolute;
        float: left;
    }

    #cooldownProgressBar .ghost_line {
        height: 10px;
        border-left: 1px #fff solid;
        left: 0;
        width: 0;
        top: -2px;
        position: absolute;
        float: left;
    }

    .cooldown_demon_line_label{
        color: rgb(145, 145, 145);
        font-size: 10px;
        display: inline-block;
        left: 25%;
        bottom: -6px;
        position: absolute;
    }

    #tap{
        font-size: 18px;
        color: #ccc;
        border: 2px solid #ccc;
        background: none;
        border-radius: 5px;
        padding: 5px;
        margin: 5px;
        cursor: pointer;
        z-index: 100;
        width: 90%;
        height: 45px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }

    #tap_viz{
        color: #ffffff52;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-size: 12px;
        width: 90%;
        height: 18px;
        overflow: hidden;
        margin-top: -10px;
    }

    .tap_note{
        color: #ffffffa0;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-size: 9px;
    }

    #input_bpm, #input_speed{
        color: #ffffff52;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-size: 12px;
        text-align: center;
        width: 30px;
    }

    .modifier_volume{
        font-size: 18px;
        letter-spacing: 1px;
        padding: 10px 10px 0px 10px;
        position: relative;
        width: calc(100% - 42px);
        text-align: center;
    }

    .modifier_volume_labels{
        display: flex;
        justify-content: space-between;
        width: 92%;
        padding-top: 2px;
    }

    .modifier_volume_label{
        color: #fff;
        font-size: 11px;
        rotate: 320deg;
        padding-bottom: 5px;
    }

    .cards{
        grid-column: 2;
        height: 0;
        min-height: calc(100% - 14px);
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        overflow-y: scroll;
        align-content: flex-start;
        user-select: none;
        background: rgba(0,0,0,0.5);
        padding-bottom: 30px;
        margin: -8px -8px -8px 8px;
        padding-left: 26px;
    }

    .copyright{
        grid-column: 1;
        grid-row: 5;
        text-align: center;
        z-index: 2;
        color: rgb(173, 173, 173);
        font-size: 10px;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        padding-right: 10px;
    }

    .copyright img{
        height: 16px;
        filter: invert(1);
        padding: 0px 5px;
    }

    .copyright:hover{
        filter: opacity(0.5)
    }

    .link_hover{
        color: rgb(173, 173, 173);
        cursor: pointer;
        text-decoration: underline;
    }

    .link_hover:hover{
        filter: opacity(0.5)
    }

    .active_title,.maps_title,.info_title{
        font-size: 24px;
        height:24px;
        padding: 10px;
    }

    .maps_image{
        width: calc(100% - 20px);
        height: calc(100% - 260px);
        margin: 0px 0px 30px 10px;
        background-color: #000;
        overflow: hidden;
        position: relative;
        cursor: zoom-in;
    }

    .map_image{
        width: 100%;
        height: 100%;
        background-color: #000;
        background-image: url(https://zero-network.net/phasmophobia/static/imgs/maps/tanglewood.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        position: absolute;
    }

    .hover_zoom{
        color: white;
        position: absolute;
        background: rgba(255,255,255,0.2);
        padding: 5px;
        font-size: 11px;
        border-radius: 10px;
        filter: opacity(0.8);
        bottom: 5px;
        left: 5px;
    }

    .maps_credit{
        color: #FFF;
        text-align: right;
        position: absolute;
        bottom: 205px;
        right: 35px;
        font-size: 10px;
    }

    .maps_credit a{
        text-decoration: none;
        color:#00aa2b;
    }

    .maps_buttons{
        display: flex;
        height: 158px;
        width: calc(100% - 20px);
        margin: 0px 0px 30px 10px;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-content: stretch;
    }

    .maps_button{
        background: none;
        cursor: pointer;
        border: 1px solid #FFF;
        color: #fff;
        border-radius: 5px;
        margin: 3px;
        position: relative;
        font-size: 12px;
    }

    .selected_map{
        background-color: #FFF;
        border: 1px solid #FFF;
        color: #313248;
    }

    .maps_button:hover{
        background-color: #ffffff60;
    }

    .map_size{
        position: absolute;
        top: 0px;
        left: 0px;
        height: 100%;
        width: 13px;
        display: flex;
        border-radius: 4px 0px 0px 4px;
        align-items: center;
        align-content: center;
        justify-content: center;
        font-size: 10px;
    }

    .maps_button .s{
        background-color: #1d8100;
        color: #fff;
    }

    .maps_button .m{
        background-color: #d1cc00;
        color: #000;
    }

    .maps_button .l{
        background-color: #e90000;
        color: #fff;
    }

    #active-users{
        grid-column: 1;
        grid-row: 4;
        text-align: center;
        z-index: 2;
        font-size: 9px;
        padding-top: 5px;
        z-index: 50;
    }

    #active-users-label{
        color: #0abdce;
    }

    #current-version-label{
        color: #0abdce;
    }

    #session{
        color: #ffffffa0;
        font-size: 8px;
        text-align: center;
        align-self: center;
        margin-bottom: 15px;
    }

    #reset{
        grid-column: 1;
        grid-row: 3;
        width: 100%;
        justify-self: center;
        font-size: 20px;
        color: #ccc;
        border: 2px solid #ccc;
        background: none;
        border-radius: 5px;
        padding: 10px;
        margin: 5px;
        cursor: pointer;
        z-index: 100;
    }

    .standard_reset:hover{
        background-color: #ffffff60 !important;
    }

    .reset_pulse{
        padding-top:5px !important;
        animation: blink 0.5s;
        animation-iteration-count: 3;
    }

    @keyframes blink { 
        50% { background-color:rgba(75, 0, 0, 0.705);}  
    }

    .reset_note{
        color: #ffffffa0;
        padding-top:3px;
        font-size: 12px;
    }

    .ghost_card{
        display: grid;
        width: 510px;
        border-radius: 5px;
        grid-template-columns: 245px 265px;
        grid-template-rows: 45px 35px 45px;
        color: white;
        background-color: #313248;
        margin: 20px 5px 0px 5px;
        height: 125px;
        overflow: hidden;
        position: relative;
    }

    .ghost_name{
        grid-column: 1;
        grid-row: 1;
        font-family:"October Crow";
        font-size: 24px;
        font-weight: bold;
        padding:10px 10px 0px 10px;
        text-align: center;
        letter-spacing: 2px;
        height: 30px;
    }

    .ghost_evidence{
        grid-column: 1;
        grid-row: 2;
        font-size: 12px;
        text-align: center;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .ghost_evidence_item{
        height: fit-content;
        padding: 2px 3px;
        margin: -2px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .ghost_evidence_item img{
        padding-right: 1px;
        width: 17px;
    }

    .ghost_nightmare_evidence, .ghost_hunt_high, .ghost_hunt_low{
        display: none;
    }

    .ghost_hunt_info{
        grid-column: 1;
        grid-row: 3;
        display: grid;
        grid-template-columns: 28% 72%;
        justify-content: space-evenly;
    }
    
    .ghost_speed{
        font-size: 14px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 3px 3px 3px 0px;
        border-radius: 0px 5px 5px 0px;
        background: rgb(0,0,0,0.25);
    }

    .ghost_speed img{
        height: 20px;
        filter: invert(1) opacity(0.6);
    }

    .ghost_speed .ms{
        font-size: 10px;
        color: #ffffff60;
        margin-left: -3px;
    }

    .ghost_speed_values{
        width: fit-content;
        line-height: 1.2;
        color: #ccc;
    }

    .ghost_hunt{
        font-size: 14px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 5px 0px 0px 5px;
        margin: 3px 0px 3px 5px;
    }

    .ghost_hunt img{
        height: 20px;
        padding-right: 2px;
        filter: opacity(0.6);
    }

    .ghost_behavior{
        grid-column: 2;
        grid-row: 1 / 4;
        padding:10px 10px;
        margin-left: 2px;
        margin-right: 30px;
        box-shadow: inset 0 0 10px #161615;
        border-radius: 5px;
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: scroll;
        background: rgba(0,0,0,0.25);
        margin-top: 3px;
        margin-bottom: 3px;
        z-index: 0;
    }
    
    .ghost_behavior_item{
        line-height: 18px;
        font-size: 12px;
    }

    .ghost_behavior_item .dtitle{
        width: 100%;
        display: flex;
        flex-direction: row;
        align-content: center;
        color: rgba(255 255 255 / 50%);
        justify-content: space-between;
        font-size: 10px;
        padding-top: 0;
    }

    .ghost_behavior_item .ddash{
        border-bottom: 1px dashed rgb(255 255 255 / 50%);
        flex-grow: 1;
        margin-bottom: 8px;
        margin-left: 5px;
    }

    .ghost_behavior_item ul{
        margin: 0px;
        padding: 0px 0px 0px 10px;
        list-style-type: '- ';
    }

    .ghost_behavior_item li{
        padding: 0px;
    }

    .ghost_clear{
        grid-column: 2;
        grid-row: 1 / 4;
        display: flex;
        align-content: center;
        justify-content: space-evenly;
        align-items: flex-end;
        padding-right: 5px;
        flex-direction: column;
    }

    .card_icon{
        width: 19px;
        cursor: pointer;
    }
    
    .space{
        height:30px;
    }
}


.card_icon:hover{
    filter: invert(1);
}

.sg{
    color:rgb(161, 170, 170);
    font-size: smaller;
}
li{
    padding-bottom: 10px;
}
table{
    width: 49%;
    min-width: 400px;
    display: inline-flex;
}
input{
    margin-left: 30px;
}
.hidden{
    display: none !important;
}
.permhidden{
    display: none !important;
}
.faded{
    /*display: none;*/
    opacity: 0.3;
}

@media screen and (pointer: fine),screen and (pointer: coarse) and (min-device-width: 601px) {
    .tricheck{
        border: 0;
        background:none;
        position: relative;
        margin: 4px 0px;
        cursor: pointer;
        font-size: 18px;
        font-family: "Yahfie";
        letter-spacing: 1.5;
        display: grid;
        justify-content: start;
    }

    #checkbox{
        grid-column: 1;
        width: 16px;
        height: 16px;
        cursor: pointer;
        margin-right: 10px;
        border-radius: 5px;
        border: solid 2px #ccc;
        display: flex;
        align-content: center;
        justify-content: center;
    }

    .evidence-row{
        display: flex;
        flex-wrap: nowrap;
        align-content: center;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .monkey-smudge{
        position: absolute;
        left: 0;
        z-index: 1;
        width: 85%;
    }

    .monkey-paw-select{
        height: 18px;
        cursor: pointer;
        margin-right: 10px;
        filter: opacity(0.2);
    }

    .monkey-paw-select:hover{
        filter: opacity(0.9);
    }

    .monkey-paw-selected{
        filter: opacity(0.9) !important;
    }

    .neutral{}

    .neutral:hover{
        background-color: #ffffff60;
    }

    .block{
        cursor: not-allowed !important;
    }

    .disabled, .disabled:hover{
        background-color: #ffffff14;
        border: solid 2px #ffffff00 !important;
    }

    .disabled .icon{
        background: #4c4e74;
        border-radius: 2px;
        width: 12px;
        height: 8px;
        top: 9px;
        position: absolute;
    }
    
    .disabled .icon:before {
        content: "";
        display: block;
        position: absolute;
        border:2px solid #4c4e74;
        top: -5px;
        left: 2px;
        width: 4px;
        height: 7px;
        border-radius: 35px 35px 0 0;
    }

    .disabled-text{
        color: #4c4e74;
    }

    .good{
        background-color: #ccc;
        border-color: #1d8100 !important;
    }

    .good .icon{
        display:inline-block;
        width: 23px;
        height:17px;
        -ms-transform: rotate(45deg); /* IE 9 */
        -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
        transform: rotate(45deg);
    }

    .good .icon:before{
        content: "";
        position: absolute;
        width: 2px;
        height: 12px;
        background-color: #313248;
        left: 8px;
        top: 1px;
    }

    .good .icon:after{
        content: "";
        position: absolute;
        width: 4px;
        height: 2px;
        background-color: #313248;
        left: 4px;
        top: 11px;
    }

    .bad{
        background-color: #ccc;
        border-color: #e90000 !important;
    }

    .bad .icon{
        display:inline-block;
        width: 24px;
        height:17px;
        -ms-transform: rotate(45deg); /* IE 9 */
        -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
        transform: rotate(45deg);
    }

    .bad .icon:before{
        content:"";
        position: absolute;
        width:2px;
        height:14px;
        background-color:#313248;
        left:7px;
        top:1px;
    }

    .bad .icon:after{
        content:"";
        position: absolute;
        width:14px;
        height:2px;
        background-color:#313248;
        left:1px;
        top:7px;
    }

    .footer_link{
        font-size: inherit;
    }

    #eye{
        position: fixed;
        right: 10px;
        bottom: 3px;
    }

    #eye img{
        width: 25px;
        cursor: pointer;
        filter: invert(1);
    }

    #eye img:hover{
        filter: invert(0);
    }

    #domovoi{
        position: fixed;
        bottom: 40px;
        right: 10px;
        display: flex;
        animation: domovoi-float 2s cubic-bezier(0.1, -0.6, 0.2, 0) infinite;
        flex-direction: column;
        align-items: flex-end;
        z-index: 50;
    }

    .domovoi-flip{
        align-items: flex-start !important;
        left: 205px !important;
        animation: domovoi-float-flip 2s cubic-bezier(0.1, -0.6, 0.2, 0) infinite !important;
    }


    @keyframes domovoi-float {
        0% {
            bottom: 40px;
        }
        50% {
            bottom: 44px;
        }
        100% {
            bottom: 40px;
        }
    }

    @keyframes domovoi-float-flip {
        0% {
            bottom: 8px;
        }
        50% {
            bottom: 12px;
        }
        100% {
            bottom: 8px;
        }
    }

    #domovoi-text{
        font-family: "Yahfie";
        font-size: 16px;
        letter-spacing: 2;
        font-weight: bold;
        border-radius: 20px;
        padding: 10px;
        background-image: radial-gradient(#ffffff, #ffffff77);
        box-shadow: 0px 0px 10px 5px rgb(0 0 0);
    }

    #domovoi-img{
        height: 25px;
    }

    .domovoi-img-flip{
        -webkit-transform: scaleX(-1);
        transform: scaleX(-1);
    }
}

.label{
    grid-column: 2/6;
    text-align: left;
    padding-top: 2px;
}

.strike{
    text-decoration: line-through;
}

.low{
    color:#ffffff99;
    background: linear-gradient(90deg, rgba(0,75,0,0.6) 0%, rgba(0,0,0,0.25) 100%);
}


.average{
    color:#ffffff99;
    background: rgba(0,0,0,0.25);
}


.high{
    color:#ffffff99;
    background: linear-gradient(90deg, rgba(75,0,0,0.5) 0%, rgba(0,0,0,0.25) 100%);
}

.sound{
    cursor: pointer;
    transition: transform .5s;
}

.sound:hover { 
    transform: scale(1.1); 
}

#tap:hover{
    background-color: #ffffff60;
}

.selected {
    background-color: #353 !important;
}

.guessed {
    background-color: rgb(89, 85, 34) !important;
}

.died {
    background-color: rgb(71, 31, 31) !important;
}

.dot-flashing {
    top: calc(50% - 5px);
    margin: 10px;
    align-self: center;
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #313248;
    color: #313248;
    animation: dotFlashing 1s infinite linear alternate;
    animation-delay: .5s;
}

.dot-flashing::before, .dot-flashing::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
}

.dot-flashing::before {
    left: -15px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #313248;
    color: #313248;
    animation: dotFlashing 1s infinite alternate;
    animation-delay: 0s;
}

.dot-flashing::after {
    left: 15px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #313248;
    color: #313248;
    animation: dotFlashing 1s infinite alternate;
    animation-delay: 1s;
}

@keyframes dotFlashing {
    0% {
        background-color: #313248;
    }
    50%,
    100% {
        background-color: #161615;
    }
}
  
.inline_image_text{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: center;
}