/* ELEMENTS */

body
{
    padding: 15px 0 105px;
    position: relative;
    min-width: 360px;
    overflow-x: hidden;
}

body:not(.page)
{
    background: #000000 url('img/background.webp') fixed;
    background-size: cover;
    padding: 0;
}

body.page
{
    background-color: transparent;
}

body.page-dark
{
    /*background-color: rgba(0, 0, 0, 0.3);*/
    color: #fff;
}

h1
{
    margin-bottom: 30px;
}

hr
{
    border-top: thick double #000;
}

iframe
{
    border: none;
    height: 100%;
    width: 100%;
}

nav.navbar
{
    min-width: 330px;
    padding-bottom: 18px;
}

td
{
    border-color: #000 !important;
    vertical-align: middle !important;
}

textarea
{
    resize: none;
}

/* CUSTOMIZED BOOTSTRAP */

.card
{
    opacity: .95;
}

.page-dark .card
{
    color: #000;
}

.card.card-texture .card-header
{
    background-color: #fff;
}

.card-heavy
{
    border: none;
    box-shadow: 0px 0px 6px 3px lightblue;
    margin-bottom: 2px;
}

.card-heavy .card-header
{
    background-image: url(img/card_header_center.webp), url(img/card_header_left.webp), url(img/card_header_right.webp), url(img/card_header_background.webp);
    background-position: center bottom, left center, right center, left center;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat-x;
    background-color: #222;
    color: #fff;
    height: 50px;
    padding-top: 6px;
    text-align: center;
}

.card-heavy .card-body
{
    background-image: url(img/email/footer.webp), url(img/email/texture_original.webp);
    background-repeat: no-repeat, repeat;
    background-position: center bottom, left top;
    background-size: auto, contain;
    padding-bottom: 50px;
}

.card-texture
{
    background-image: url(img/email/texture_original.webp);
    background-repeat: repeat-y;
    background-size: 100%;
}

.card-title {
    margin-bottom: 0;
}

.carousel-inner, .carousel-item
{
    height: 100%;
}

.carousel-inner .carousel-item {
    transition: -webkit-transform .5s ease;
    transition: transform .5s ease;
    transition: transform .5s ease, -webkit-transform .5s ease;
}

.dropdown-menu
{
    min-width: 1rem;
}

.load-spinner
{
    width: 1rem;
    height: 1rem;
    color: #fff;
    margin-bottom: 1px;
}

.load-spinner.hidden
{
    display: none;
}

.load-spinner.show
{
    display: inline-block;
}

.load-spinner-dark
{
    color: #000;
}

.color-spinner
{
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 2px;
    margin-right: 1px;
}

.army1, .army1 .nav-link {
    color: #dc3545;
}

nav.army1 .nav-link.active, .progress-bar.army1 {
    background-color: #dc3545;
}

.army2, .army2 .nav-link {
    color: #ffc107;
}

nav.army2 .nav-link.active, .progress-bar.army2 {
    background-color: #ffc107;
    color: #000;
}

.army3, .army3 .nav-link {
    color: #007bff;
}

nav.army3 .nav-link.active, .progress-bar.army3 {
    background-color: #007bff;
}

.army4, .army4 .nav-link {
    color: #28a745;
}

nav.army4 .nav-link.active, .progress-bar.army4 {
    background-color: #28a745;
}

.army5, .army5 .nav-link {
    color: #778899;
}

nav.army5 .nav-link.active, .progress-bar.army5 {
    background-color: #778899;
}

.army6, .army6 .nav-link {
    color: #6f42c1;
}

nav.army6 .nav-link.active, .progress-bar.army6 {
    background-color: #6f42c1;
}

.army7, .army7 .nav-link {
    color: #8b4513;
}

nav.army7 .nav-link.active, .progress-bar.army7 {
    background-color: #8b4513;
}

.mt-30
{
    margin-top: 30px;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active
{
    border-color: #333 #333 #666;
}

.nav-tabs .nav-link:focus:not(.active), .nav-tabs .nav-link:hover:not(.active)
{
    border-color: #666;
    background-color: rgba(255, 255, 255, 0.2)
}

.nav-tabs
{
    border-bottom: 1px solid #333;
}

.progress {
    width: 150px;
}

.progress-bar {
    transition: width .1s;
    width: 0%;
}

.typeahead a
{
    color: #007bff;
    padding: 0 1rem;
}

.typeahead li.active
{
    background-color: #007bff
}

.typeahead li.active a
{
    color: #fff;
}

/* ORIGINAL HEADERS */

#login_form, #login_buttons, #login_title, #register_form, #register_buttons, #register_title, #avatar_controls, #profile_controls, .idx:not(.active), .idx-page:not(.active)
{
    display: none;
}

#avatar_controls nav, #avatar_controls p, .avatar-lock, #avatar_controls img:not(.avatar-selection .avatar[class*="army-glow"])
{
    opacity: 0;
}

#about_donate div
{
    border-bottom: 5px dashed #fff;
    border-top: 5px dashed #fff;
}

#about_info div, #about_donate div
{
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    opacity: 0.9;
}

#about_info ol
{
    background-color: #ccc;
    color: #000;
    border-radius: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

#app_carousel
{
    height: calc(100vh - 89px);
}

#avatar_locked_description
{
    font-weight: bold;
}

#avatar_favorite
{
    top: -53px;
    width: 44px;
    left: calc(50% + 49px);
    position: relative;
    background-color: #000;
    border-radius: 50%;
    padding: 10px 0;
    color: #fff;
}

#avatar_favorite.favorited
{
    color: #ffc107;/*#28a745;*/
}

#avatar_favorite.favorited:hover .fa-star, #avatar_favorite .fa-user-minus
{
    display: none;
}

#avatar_favorite.favorited:hover .fa-user-minus
{
    display: inline;
}

#avatar_favorite_container
{
    height: 0;
}

#back_btn, #profile_cog, #notification_bell
{
    position: absolute;
    padding: 10px 15px;
}

.right-40 {
    right: 40px;
}

.right-45 {
    right: 45.5px;
}

#back_btn a:hover
{
    color: inherit;
}

#footer
{
    font-weight: bold;
    padding: 20px;
    text-align: center;
}

#footer span
{
    color: #fff;
    cursor: pointer;
}

#idx_menu
{
    background-color: #000;
    box-shadow: none;
    color: #fff;
}

#loader, #gallery
{
    background-color: #000;
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1130;
}

#gallery
{
    overflow: auto;
}

#gallery img
{
    position: absolute;
}

#gallery a
{
    position: fixed;
    top: 30px;
    right: 30px;
    cursor: pointer;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    display: inline-block;
    z-index: 1131;
    border-radius: 50%;
    width: 52px;
    border: 2px solid #fff;
    background-color: #000;
    text-align: center;
}

#gallery a::before
{
    content: "X";
}

body:not(.page) #loader
{
    height: calc(100vh - 90px);
}

#loader .spinner-border, #loader .progress
{
    position: fixed;
    left: 50%;
    top: 50%;
    margin-left: -1rem;
    margin-top: -1rem;
}

#loader .progress {
    margin-left: -4.75rem;
    margin-top: 0;
    height: 10px;
    background-color: transparent;
    border: 1px solid #444;
}

body:not(.page) #loader .spinner-border
{
    top: calc(50% - 40px);
}

#loader img
{
    display: none;
    max-width: 80%;
    position: fixed;
    left: 50%;
    top: calc(50% - 40px);
    transform: translate(-50%, -50%);
}

#logo
{
    margin-top: 14vh;
    width: 300px;
}

body.page #logo
{
    margin-top: 30px;
}

#profile_controls .btn-group button {
    width: 100px;
}

#profile_controls .btn-header {
    margin-right: 15px;
    display: inline-block;
}

#profile_cog {
    width: 100%;
}

#profile_cog h3 {
    display: inline-block;
}

#profile_pic {
    background-color: rgba(0, 0, 0, 0.75);
    margin: 30px 0;
    padding: 2px;
    opacity: .95;
    text-align: center;
    height: 262px;
}

#release_note .card-body h6
{
    font-weight: bold;
}

/* ORIGINAL CLASSES */

.army-glow1, .army-hover-glow1:hover
{
    box-shadow: 0 0 20px 10px #dc3545;
}

.avatar-list div:hover .army-hover-glow1
{
    box-shadow: 0 0 10px 5px #dc3545;
}

.army-glow2, .army-hover-glow2:hover
{
    box-shadow: 0 0 20px 10px #ffc107;
}

.avatar-list div:hover .army-hover-glow2
{
    box-shadow: 0 0 10px 5px #ffc107;
}

.army-glow3, .army-hover-glow3:hover
{
    box-shadow: 0 0 20px 10px #007bff;
}

.avatar-list div:hover .army-hover-glow3
{
    box-shadow: 0 0 10px 5px #007bff;
}

.army-glow4, .army-hover-glow4:hover
{
    box-shadow: 0 0 20px 10px #28a745;
}

.avatar-list div:hover .army-hover-glow4
{
    box-shadow: 0 0 10px 5px #28a745;
}

.army-glow5, .army-hover-glow5:hover
{
    box-shadow: 0 0 20px 10px #778899;
}

.avatar-list div:hover .army-hover-glow5
{
    box-shadow: 0 0 10px 5px #778899;
}

.army-glow6, .army-hover-glow6:hover
{
    box-shadow: 0 0 20px 10px #6f42c1;
}

.avatar-list div:hover .army-hover-glow6
{
    box-shadow: 0 0 10px 5px #6f42c1;
}

.army-glow7, .army-hover-glow7:hover
{
    box-shadow: 0 0 20px 10px #8b4513;
}

.avatar-list div:hover .army-hover-glow7
{
    box-shadow: 0 0 10px 5px #8b4513;
}

.avatar
{
    border-radius: 50%;
    width: 120px;
    height: 120px;
}

#avatar_display .avatar.cursor:hover
{
    opacity: .8;
}

.avatar-close
{
    padding: 3px 15px 0 15px;
    
}

.avatar-lg
{
    width: 200px;
    height: 200px;
}

.avatar-list div:hover a
{
    text-decoration: none;
}

.avatar-list img
{
    width: 100%!important;
    height: auto!important;
    border-radius: 50%;
}

.avatar-list p
{
    margin-top: 10px;
    white-space: nowrap;
}

.avatar-lock-container
{
    height: 0;
    position: relative;
}

.avatar-lock
{
    top: -120px;
    width: 120px;
    height: 120px;
    position: absolute;
    background-color: rgba(0,0,0,.7);
    border-radius: 48%;
    font-size: 24px;
    padding-top: 42px;
    transition: font-size .1s, padding-top .1s;
}

.avatar-lock:hover
{
    font-size: 32px;
    padding-top: 34px;
}

#avatar_controls nav
{
    height: 40px;
}

#avatar_controls p
{
    font-weight: bold;
}

#avatar_controls, #avatar_controls .nav-link
{
    color: #fff;
}

#avatar_controls .nav-link.active.army2
{
    color: #000;
}

#avatar_controls .nav-link:not(.active):hover
{
    text-decoration: underline;
}

#avatar_display img
{
    margin-top: 1rem;
}

#avatar_display img.no-tag
{
    margin-top: 2rem;
}

#avatar_display p
{
    font-weight: bold;
}

.avatar-selection li.avatar-filler
{
    margin: 0;
    width: calc(50vw - 66px);
}

.avatar-selection-container
{
    overflow-x: scroll;
    overflow-y: hidden;
}

.avatar-selection
{
    width: max-content;
}

.avatar-selection ul
{
    margin: 0;
    padding: 0;
}

.avatar-selection li
{
    display: inline-block;
    margin-right: 30px;
    margin-top: 18px;
}

.avatar-selection li:nth-last-child(2)
{
    margin-right: 0;
}

.avatar-sm
{
    width: 80px;
    height: 80px;
    max-width: 120px;
}

.avatar-xs
{
    width: 40px;
    height: 40px;
}

.btn-icon
{
    border-radius: 15px;
    padding: 4px;
    width: 30px;
}

.btn-toggle
{
    margin: 7px;
    max-width: 150px;
    width: 40%;
}

.color-change
{
    font-size: 24px;
    height: 28px;
    margin: 0 2px;
}

.color-change:hover
{
    font-size: 28px;
    margin: 0;
}

.cursor
{
    cursor: pointer;
}

.cursor-forbidden
{
    cursor: not-allowed;
}

.error
{
    color: #ff0000;
}

.error-container
{
    height: 52px;
}

.error-form
{
    border-radius: 5px;
    box-shadow: 0 0 3px 3px #ff0000;
}

.favorite.army2
{
    color: #000;
}

.idx .btn:not(.btn-link)
{
    width: 40px;
    height: 40px;
    position: relative;
    margin-right: 4px;
    margin-top: 8px;
    border: none;
}

.idx .btn.btn-light
{
    background-color: #f8f9fa!important;
}

.idx .btn.active::before, .idx .btn.active::after, .idx .btn.active span::before, .idx .btn.active span::after
{
    display: block;
    content: "";
    width: 10px;
    height: 10px;
    position: absolute;
}

.idx .btn.active::before
{
    top: -2px;
    left: -2px;
    border-top: 4px solid #5aaed5;
    border-left: 4px solid #5aaed5;
}

.idx .btn.active::after
{
    top: -2px;
    right: -2px;
    border-top: 4px solid #5aaed5;
    border-right: 4px solid #5aaed5;
}

.idx .btn.active span::before
{
    bottom: -2px;
    left: -2px;
    border-bottom: 4px solid #5aaed5;
    border-left: 4px solid #5aaed5;
}

.idx .btn.active span::after
{
    bottom: -2px;
    right: -2px;
    border-bottom: 4px solid #5aaed5;
    border-right: 4px solid #5aaed5;
}

.idx .btn:not(.btn-link):focus
{
    box-shadow: none!important;
}

.idx .accordion .btn span
{
    font-size: 10px;
    white-space: nowrap;
    font-weight: bold;
}

.input-group-btn .input-group-text
{
    padding: 0;
}

.input-group-btn .btn
{
    padding: 0 5px;
    margin: 2px 8px;
}

.input-group-prepend:not(.cursor-forbidden)
{
    cursor: pointer;
}

.map
{
    background-color: #000;
    cursor: zoom-in;
    padding: 5px;
    border: 1px solid #5aaed5;
    outline: solid #000 5px;
}

#gallery .map
{
    cursor: auto;
}

.online-dot
{
    font-size: 16px;
    display: inline-block;
    color: #28a745;
    position: relative;
    top: -4px;
    right: 4px;
}

.avatar-list span.online-dot
{
    top: 0;
    right: 0;
}

.online-dot.offline
{
    color: #778899;
}

.white-glow
{
    box-shadow: 0 0 10px 5px #fff;
}

/* NON-MOBILE CSS */

@media (hover: hover)
{
    nav.army2 .nav-link:not(.active):hover
    {
        color: #fff;
    }
    
    nav:not(.army2) .nav-link:hover
    {
        color: #fff;
    }
    
    #avatar_favorite:not(.favorited):hover
    {
        color: #28a745;
    }

    #avatar_favorite.favorited:hover
    {
        color: #dc3545;
    }
    
    .avatar-selection-container::-webkit-scrollbar, #gallery::-webkit-scrollbar
    {
        background-color: rgba(0,0,0,0.5);
    }

    .avatar-selection-container::-webkit-scrollbar-thumb, #gallery::-webkit-scrollbar-thumb
    {
        background-image: url('img/card_header_center.webp');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center center;
    }
}

/* RESPONSIVE */

@media (max-width: 991px)
{
    .card-top
    {
        margin-top: -15px;
        padding: 0;
    }
    
    .card-top .card
    {
        border: none;
        border-radius: 0;
    }
}

@media (max-width: 450px)
{
    .navbar .nav-link span
    {
        font-size: .65rem;
    }
    
    .avatar-sm + p
    {
        font-size: 3vw;
    }
    
    #avatar_controls .nav-link
    {
        font-size: 3vw;
    }
}

@media (min-width: 768px)
{
    #profile_controls .btn-group
    {
        margin-top: 33px;
    }
}

@media (min-width: 992px)
{
    #profile_controls .btn-group
    {
        margin-left: -13px;
    }
}