.overlay_scr {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background-color: rgba(55, 4, 4, 0.7);
    z-index: 9999;
    border: solid 3px black;
    text-align: center;
    transition: all 0.3s;
}

.tab-container {
    display: flex;
    justify-content: space-between;
    background-color: #b80000;
}
.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: solid 2px black;
    width: 100%;
    text-align: center;
    font-weight: bolder;
    transition: all 0.2s;
}

.tab:hover, #submitMod:hover {
    background-color: #6b0000;
}

.tab-content {
    display: none;
    padding: 20px;
}

#submitMod {
    position: absolute;
    bottom: 0;
    background-color: #b80000;
    cursor: pointer;
    border: solid 2px black;
    width: 100%;
    text-align: center;
    font-weight: bolder;
    height: 50px;
    font-size: larger;
    transition: all 0.2s;
}

.dropdown_menu_cont {
    background-color: #190202;
    color: white;
    width:100%;
    height: 65px;
    border-top: solid 2px white;
    border-bottom: solid 2px white;
    padding-top: 3px;
}

.overlay_tab {
    background-color: #190202;
    color: white;
    width: 80%;
    height: 60%;
    border: solid 2px white;
    text-align: center;
    position: absolute;
    right: 50%;
    top: 57.5%;
    transform: translate(50%, -50%);
    overflow-y: auto;
}

#widgetsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.widget {
    background-color: #0e0000;
    padding: 20px;
    border: solid 2px #ffffff;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.widget h3 {
    margin: 0;
    font-size: 1.2rem;
}

.widget span {
    margin-top: 10px;
    font-size: 0.8rem;
    font-style: italic;
}

.widget button {
    margin-top: 10px;
    padding: 8px 16px;
    border: solid 2px #ffffff;
    background-color: #000000;
    color: rgb(255, 220, 220);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.widget button:hover {
    background-color: #3e0404;
}

.widget_image {
    width: 50px;
    height: 50px;
    border: solid 2px;
    margin-bottom: 5px;
}

.selected_widget .select-button {
    background-color: white;
    color: rgb(71, 0, 0);
    border: solid 2px;
}

.selected_widget .select-button:hover {
    background-color: rgb(144, 144, 144);
    color: rgb(71, 0, 0);
    border: solid 2px;
}

.mod_loader_overlay_block {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 5000;
    cursor: pointer;
}

.fullscreen_toggle {
    position: absolute;
    right: 0px;
    top: -30px;
    transition: all 0.3s;
}

.down {
    top: 80px;
}

.fullscreen {
    width: 100%;
    height: 100%;
}

/* State issue stuff because it's easier than a new file */


.popup-content {
    position: relative;
    overflow-y: auto;
    height: 185px;
}

.popup-content * {
    margin-right: 10px;
}

.overlay_tab_i p {
    font-weight: normal !important;
    text-align: left !important;
    margin-left: 10px !important;
}

.overlay_tab_i h3 {
    font-style: italic;
}

.overlay_tab_i .stance_desc {
    margin-left: 20px !important;
}