:root {
    --theme1: #f7f9f9de;
    --theme2: #000000;
    --theme3: #e73e3e;
    --theme4: #393939;/*borders*/
    --theme5: #f1f2f3;
    --theme6: #141414;
    --theme7: #fff;/*text background*/
    --theme4txt: #fff;
}

body#troopmain {
    background-color: var(--theme6);
}

body#authmain {
    background-color: var(--theme5);

}

/* Content Styles */
.contact_box {
    background-color: #ffdede;
    border: 2px solid #8b0000;
    border-radius: 10px;
    width: fit-content;
    padding: 10px 20px;
}

.contact_box h2 {
    font-size: 26px;
    font-weight: 200;
}

.contact_box p:last-child {
    margin-bottom: 0;
}

/* profile */
.profile_item{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 18px;
}

.profile_item p:nth-child(1) {
    margin-bottom: 0;
}

.profile_item p:nth-child(2) {
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 0;
    margin-left: 15px;
    margin-right: 15px;
}

#profile_de {
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 0;
    width: 100%;
    margin-top: 10px;
}

/* Discussions */
.discItem {
    width: 100%;
    /* height: 142px; */
    border-radius: 10px;
    background-color: #bbbbbb63;
    margin: 10px 0;
    padding: 10px;
    display: block;
    position: relative;
}

.discTitle {
    background-color: #4e4e4e;
    padding: 6px;
    border-radius: 10px;
    color: white;
    font-size: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.discText {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 12px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    /* height: 37px; */
}

.discDate {
    font-size: 12px;
    display: inline;
}

.discTitle > span {
    display: inline;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin-bottom: 0;
    margin-right: 30px;
}

/* Discussion Comments */
.discCommentItem {
    display: flex;
    position: relative;
    flex-direction: row;
    background-color: #b9b9b9b5;
    margin-top: 10px;
    padding: 8px;
    border-radius: 10px;
}

.discCommentUser {
    background-color: white;
    padding: 10px;
    margin-right: 10px;
    height: 120px;
    width: 120px;
    min-width: 120px;
}

.discCommentMenu {
    position: absolute;
    top: 5px;
    right: 12px;
    padding: 2px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.discCommentMenu:hover > img {
    background-color: white;
}

.discCommentMenu > img {
    width: 15px;
    height: 10px;
    border-color: #353535;
    border-width: 0.5px;
    border-style: solid;
    padding: 2px;
    border-radius: 4px;
}

.discCommentDropdown > div {
    background-color: white;
    padding: 5px;
}

.discCommentDropdown > div:hover{
    background-color: #e3e3e3;
    
}

.discCommentMenu:hover .discCommentDropdown{
    display:block;
}

.discCommentDropdown{
    display: none;
    width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border: 1px solid black;
}

/* album */
.name_album{
    position: absolute;
    top: 20%;
    left: 0%;
}

.album_display {
    width: 100%;
    height: 142px;
    border-radius: 10px;
    background-color: #bbbbbb63;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    display: block;
    position: relative;
}

.album_display:hover {
    background-color: #dddddd63;
}

.album_name {
    padding: 10px;
    background-color: #ffffffa1;
    border-radius: 10px;
}

.album_date {
    position: absolute;
    right: 10px;
    bottom: 5px;
    background-color: #ffffffd4;
    padding: 2px 4px;
    border-radius: 10px;
}

.album_display_main {
    width: 100%;
    height: 142px;
    border-radius: 10px;
    background-color: #bbbbbb63;
    margin: 10px 0;
    padding: 10px;
    display: block;
    position: relative;
    overflow: hidden;
}

/* .album_display_main:hover {
    background-color: #d3d3d363;
} */

.album_display_hover {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.album_display_hover:hover {
    background-color: #ffffff8f;
}

.album_main_name {
    padding: 10px;
    background-color: #ffffffe0;
    border-radius: 10px;
    width: fit-content;
    position: absolute;
    font-weight: BOLD;
}
.album_main_date {
    position: absolute;
    left: 10px;
    bottom: 5px;
    background-color: #ffffffd4;
    padding: 2px 4px;
    border-radius: 10px;
}

.album_main_image_bg {
    height: 100%;
    width: 16.66%;
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.album_display_images{
    position: absolute;
    width:100%;
    height:100%;
    left: 0;
    top: 0;
}

#upload_album_popup {
    z-index: 3;
    position: relative;
}

/* Album Single */
.album_single_img {
    height: 215px;
    max-height: 33vh;
    padding: 10px;
}

.album_single_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.album_single_img img {
    height: 100%;
}

.album_single_img:hover {
    padding: 5px;
}

.as_img_popup {
    /* max-width: 100%; */
    max-height: 52vh;
    /* height: 52vh; */
    width: 100%;
    object-fit: contain;
}

.sa_checkbox, .sa_delete{
    display: none;
}

/* popup */

.popup_title {
    font-size: 24px;
    font-weight: 400;
    padding: 7px 39px 7px 10px;
    background-color: var(--theme4);
    color: var(--theme4txt);
    border-radius: 10px;
    display: flex;
}

.popup_fixed .popup_content{
    position: fixed;
    background-color: var(--theme7);
    border-radius: 10px;
    border: 3px solid var(--theme4);
    width: 50vw;
    left: 25vw;
    top: 10vh;
    padding: 10px;
    min-height: 49vh;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.popup_fixed .popup_shadow, .popup_fixed .popup_shadow_delete {
    background-color:#a0a0a075;
    display:block;
    position:fixed;
    left:0;
    top:0;
    width:100vw;
    height:100vh;
    z-index:0;
}

.popup_content > div{
    position:relative;
}

.popup_content_insert {
    display: flex;
    flex-direction: column;
    align-content: center;
}

.popup_close, .popup_close_delete {
    position: absolute;
    display: block;
    right: 10px;
    top: 10px;
    color: #2f2f2f;
    padding: 3px 10px;
    font-family: monospace;
    border-radius: 10px;
    background-color: var(--theme3);
    border: 2px solid #fb8181;
    font-weight: 600;
}

.popup_close:hover, .popup_close_delete:hover {
    background-color: #ff5151;
}

/* Popup Form */
.form_checkbox {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-top: 10px;
}

.form_checkbox label {
    height: 32px;
    display: flex;
    flex-direction: column;
    align-content: center;
    margin-left: 10px;
    margin-bottom: 26px;
}

.form_checkbox input {
    height: 32px;
}

.popup_note {
    color: #6E6E6E;
    font-size: 13px;
    /* margin-left: 5px; */
    display: flex;
    flex-direction: row;
    align-content: center;
    flex-wrap: wrap;
}

/**/
.auth_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.image-bg-outer {
    position: relative;
    overflow: hidden;
}

.image-bg {
    position: absolute;
    width: 0px;
    min-width: 101%;
    min-height: 101%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.image-bg-fixed {
    position: fixed;
    width: 0px;
    min-width: 101%;
    min-height: 101%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.middle_section {
    display: flex;
    justify-content: center;
}



.non-a .troop-main:hover {
    background-color: #ffe9e9;
}

h1.troop-main {
    border: solid 3px black;
    width: max-content;
    padding: 15px 13px;
    border-radius: 10px;
    background-color: white;
}

h1.troop-main span {
    color: #FFFA66;
    background-color: #e53c3c;
    width: max-content;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    font-family: helvetica;
}

.top_section {
    padding: 10px;
    background-color: var(--theme5);
    overflow-x: hidden;
}

.profile_info {
    display: flex;
    background-color: #ffffff70;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 10px;
    max-width: 100%;
}

.profile_content {
    display: flex;
    flex-direction: column;
    background-color: var(--theme3);
    padding: 10px;
    border-radius: 10px;
    width: 323px;
}

.profile_links {
    padding: 10px;
    background-color: #00000087;
    border-radius: 10px;
}

.profile_links .loggedin, .profile_links .loggedout{
    display:none;
}

.profile_name {
    display: flex;
    font-family: sans-serif;
    font-weight: 700;
    font-size: 20px;
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 55px);
}

.profile_image img {
    width: 50px;
    height: 50px;
    border: 2px solid #ffffff61;
    border-radius: 10px;
}

.profile_image {
    margin-left: 2%;
    width: 20%;
    /* border: 2px solid #18181830; */
    /* border-radius: 20px; */
}

.profile_col {
    display: flex;
    justify-content: flex-end;
}

.profile_username {
    overflow: hidden;
    text-wrap: nowrap;
    max-width: 100%;
    text-overflow: ellipsis;
}

.bottom_section {
    padding: 10px;
    height: 200px;
    background-color: var(--theme6);
}

.troop_nav {
    background-color: var(--theme4);
    padding: 0 50px;
}

.border_nav {
    background-color: var(--theme4);
    height: 6px;
    border: solid #0000007d;
    border-width: 2px 0;
}

/* .troop_nav:before,
.troop_nav:after {
    content: "";
    background-color: rgb(0 0 0 / 27%);
    padding-top: 2px;
    position: relative;
    width: 150%;
    left: -25%;
    border: solid rgb(0 0 0 / 50%);
    border-width: 2px 0;
    display: block;
    bottom: 0;
} */
.nav_item {
    display: inline-flex;
}

.nav_item a {
    padding: 5px 20px;
    color: var(--theme4txt);
    text-decoration: none;
    background-color: var(--theme4);
}


.nav_item a:hover {
    color: var(--theme4txt);
    background-color: #ffffff80;
    text-decoration: initial;
}

.content-col {
    background-color: rgb(65 65 65 / 71%);
    width: 100%;
    padding: 0 15px;
    z-index: 0;
    display: flex;
    justify-content: center;
    /* opacity: 0.9; */
    min-height: calc(100vh - 441px);
}

.pillar-col {
    padding: 0;
}

.pillar {
    background-color: var(--theme2);
    min-height: 700px;
    height: 100%;
}

.main_content {
    background-color: var(--theme1);
    padding: 29px;
    border-radius: 10px;
    margin: 15px 0;
    min-height: 61vh;
    width: 790px;
}

.tileeffect {
    background-color: #f1f1f1;
    border-radius: 5px;
    padding: 10px;
    border-width: 0 1px 1px 1px;
    border-color: #ababab lightgrey;
    border-style: solid;
    margin: 2px;
    display: inline-block;
    color: black;
}

a.tileeffect:hover {
    background-color: #b1b1b1;
    color: black;
    text-decoration: none;
    border-color: #6f6f6f #a7a7a7;
}

.pointer.tileeffect:hover {
    background-color: #b1b1b1;
    color: black;
    text-decoration: none;
    border-color: #6f6f6f #a7a7a7;
}

.tileeffect a {
    color: black;
}

button.tileeffect:hover {
    background-color: #c5c5c5;
    cursor: pointer;
}

.tileinput.tileeffect:hover {
    background-color: #c5c5c5;
    cursor: pointer;
}

.tileinput {
    margin: 10px;
}

.user-form {
    display: flex;
    flex-direction: column;
}

.tileform {
    width: 300px;
}

/* Alert */

#troop_alert {
    width: 100%;
    position: fixed;
    top: 10px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 30vh;
    overflow-y: auto;
}

#troop_alert > div {
    border-radius: 8px;
    display: flex;
    padding: 13px;
    margin-bottom: 18px;
    position: relative;
}

#troop_alert > .alert_1 {
    background-color: #74d071;
}

#troop_alert > .alert_2 {
    background-color: #fcf354;
}

#troop_alert > .alert_3 {
    background-color: #d07171;
}

#troop_alert > div > div {
    background-color: #ffffff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    min-width: 50vw;
    justify-content: center;
}

/* Test CSS */

.toolbox {
    padding: 10px;
    margin: 10px;
    border: 1px solid black;
    width: max-content;
}

.nav a {
    padding: 5px;
    margin: 5px;
    background-color: #ff0000;
    color: #fffa66;
    font-weight: 500;
    border-radius: 10px;
    /* border: #ff0000 2px solid; */
}

.nav a:hover {
    background-color: #8f0000;
}

/* Important CSS */

.non-a {
    color: black !important;
    text-decoration: none !important;
}

.hidden{
    display: none;
}

.pointer{
    cursor: pointer;
}