:root {
    --site-background: #303030;
    --site-secondary-color: #8a1919;
    --site-accent-color: #c21515;
    --site-text: #c4c4c4;
    --site-scrollbar-color: #c21515;
}

body {
    background-image: url('../../img/bg.png');
	background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    text-align: center;
}

/* ============ */
/* NAVBAR STUFF */
/* ============ */

#main-navbar {
    background-color: #2e2e2e !important;
    border-bottom: 1px solid #525252;
}

#main-navbar .nav-item.active,
#main-navbar .nav-item:hover,
#main-navbar .nav-item.dropdown.show {
    background-color: #3d3d40;
}

@media (min-width: 992px) {
    #main-navbar .navbar-nav {
        border-left: 1px solid #525252;
    }

    #main-navbar .navbar-nav li {
        border-right: 1px solid #525252;
    }
}

.login-button {
    max-width: 325px;
}

/* ========= */
/* DROPDOWNS */
/* ========= */

.dropdown-menu {
    background-color: #2e2e2e;
}

.dropdown-item.active,
.dropdown-item:focus,
.dropdown-item:hover {
    background-color: #3d3d40;
}

/* ======= */
/* BUTTONS */
/* ======= */

.btn-primary:hover {
    background-color: #a33131;
    border-color: #a33131;
}

/* ====== */
/* INPUTS */
/* ====== */

.form-control, .custom-select {
    background-color: #3d3d40;
    border-color: #3d3d40;
}

.form-control:focus, .custom-select:focus {
    background-color: #3d3d40;
}

.form-control[disabled],
.input-text[disabled],
select[disabled],
.form-control[readonly],
.input-text[readonly],
select[readonly],
fieldset[disabled] .form-control,
fieldset[disabled] .input-text,
fieldset[disabled] select,
.custom-select[disabled] {
    background-color: #2c2c30;
}

.input-group-text {
    background-color: #2c2c30;
}

.custom-control-label::before,
.custom-control-input:disabled~.custom-control-label::before {
    background-color: #2c2c30;
}

/* Lighter on a list group item */

.list-group-item .custom-control-label::before,
.list-group-item .custom-control-input:disabled~.custom-control-label::before {
    background-color: #2e2e2e;
}

/* ========== */
/* PAGINATION */
/* ========== */

.page-link {
    background-color: #3d3d40;
    border-color: #525252;
}

.page-link:hover {
    background-color: #2c2c30;
    border-color: #2c2c30;
}

.page-link.light-hover:hover {
    background-color: #2e2e2e;
    border-color: #2e2e2e;
}

.page-item.disabled .page-link {
    background-color: #2c2c30;
    border-color: #2c2c30;
}

/* ===== */
/* CARDS */
/* ===== */

.card {
    border: 1px solid #525252;
    background-color: #2e2e2e;
}

.card .card-text {
    text-align: center;
}

/* ===== */
/* MODAL */
/* ===== */

.modal .modal-content {
    border: 1px solid #525252;
    background-color: #2e2e2e;
}

/* ========== */
/* LIST-GROUP */
/* ========== */

.list-group-item {
    background-color: #3d3d40;
}

.list-group-item-action:focus,
.list-group-item-action:hover,
.list-group-item-action:active {
    background-color: #262626;
}

/* ============= */
/* PROGRESS BARS */
/* ============= */

.popover {
    border: 1px solid #525252;
    background-color: #2e2e2e;
}

.popover-header {
    border-bottom: 1px solid #525252;
}

/* ====== */
/* FOOTER */
/* ====== */

.footer {
    background-color: #2e2e2e;
}

/* ============== */
/* GROUP ASSIGNER */
/* ============== */

.group-assigner .assigner-header {
    background-color: #2c2c30;
}

/* ================== */
/* BANNED TEXT - GLOW */
/* ================== */

.glow {
	color: #fff;
	text-align: center;
	animation: glow 1s ease-in-out infinite alternate;
}
@-webkit-keyframes glow {
	from {
		text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #c21515, 0 0 40px #c21515, 0 0 50px #c21515, 0 0 60px #c21515, 0 0 70px #c21515;
	}					  
	to {
		text-shadow: 0 0 20px #fff, 0 0 30px #c21515, 0 0 40px #c21515, 0 0 50px #c21515, 0 0 60px #c21515, 0 0 70px #c21515, 0 0 80px #c21515;
	}
}

/* ============ */
/* USER PROFILE */
/* ============ */

.user-profile-panel-title {
    display: flex;
    align-items: center;
}

.user-profile-panel-title > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.user-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: .25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.user-profile-identity {
    display: flex;
    align-items: center;
    min-width: 0;
}

.user-profile-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    margin-right: 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.user-profile-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.user-profile-avatar-fallback {
    width: 100%;
    height: 100%;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.user-profile-avatar-fallback i {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1;
    font-size: 1.35rem;
}

.user-profile-name {
    margin: 0 0 .2rem;
    font-size: 1.2rem;
    font-weight: 600;
    word-break: break-word;
}

.user-profile-uid {
    color: rgba(255, 255, 255, .58);
    font-size: .88rem;
    word-break: break-all;
}

.user-profile-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.user-profile-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .35rem .65rem;
    border-radius: .25rem;
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.2;
}

.user-profile-status i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-right: .4rem;
    line-height: 1;
}

.user-profile-details {
    margin: 0;
}

.user-profile-detail {
    display: flex;
    align-items: flex-start;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.user-profile-detail:last-child {
    border-bottom: 0;
}

.user-profile-detail dt {
    width: 190px;
    min-width: 190px;
    margin: 0;
    font-weight: 600;
}

.user-profile-detail dd {
    margin: 0;
    min-width: 0;
    word-break: break-word;
}

.user-profile-groups-title {
    display: flex;
    align-items: center;
    margin: 1.2rem 0 .75rem;
    font-size: .95rem;
    font-weight: 600;
}

.user-profile-groups-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.user-profile-groups {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.user-profile-group {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: .35rem .65rem;
    border-radius: .25rem;
    background: rgba(255, 255, 255, .08);
    line-height: 1;
}

.user-profile-group-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-right: .45rem;
    line-height: 1;
}

.user-profile-group-icon img {
    display: block;
    max-width: 16px;
    max-height: 16px;
}

.user-profile-group-icon i {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    opacity: .65;
    font-size: .78rem;
    line-height: 1;
}

/* Profile - Mobile */
@media (max-width: 575.98px) {
    .user-profile-header {
        align-items: flex-start;
    }

    .user-profile-statuses {
        width: 100%;
    }

    .user-profile-detail {
        display: block;
    }

    .user-profile-detail dt {
        width: auto;
        min-width: 0;
        margin-bottom: .3rem;
    }
}

div.banned {
    content: url('../../img/banned.png');
}

/* ============ */
/* ADMIN PANEL */
/* ============ */

.admin-page {
    width: 100%;
}

.admin-navbar-icon-link {
    min-width: 48px;
    text-align: center;
}

.admin-navbar-icon-link i {
    margin-right: 0 !important;
}

.admin-settings-dropdown {
    min-width: 285px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background-color: #2e2e2e;
    border: 1px solid #525252;
}

.admin-settings-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    min-height: 38px;
}

.admin-settings-dropdown .dropdown-item i {
    width: 20px;
    margin-right: .55rem;
    text-align: center;
}

.admin-settings-dropdown .dropdown-item.active,
.admin-settings-dropdown .dropdown-item:active,
.admin-settings-dropdown .dropdown-item:hover,
.admin-settings-dropdown .dropdown-item:focus {
    color: #fff;
    background-color: #3d3d40;
}

.admin-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem;
    margin-bottom: 1rem;
    background-color: #2e2e2e;
    border: 1px solid #525252;
}

.admin-dashboard-hero h2 {
    margin: .15rem 0 .35rem;
}

.admin-dashboard-hero p {
    margin: 0;
}

.admin-eyebrow {
    margin-bottom: .15rem;
    color: var(--site-accent-color);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.admin-access-badge {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 220px;
    padding: .75rem .9rem;
    background-color: #3d3d40;
    border: 1px solid #525252;
}

.admin-access-badge > i {
    margin: 0;
    color: #fff;
    font-size: 1.35rem;
}

.admin-access-badge small,
.admin-access-badge strong {
    display: block;
}

.admin-access-badge small {
    color: var(--site-text);
}

.admin-access-badge strong {
    color: #fff;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.admin-stat {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-height: 92px;
    padding: 1rem;
    color: var(--site-text);
    background-color: #2e2e2e;
    border: 1px solid #525252;
    transition: background-color .2s ease;
}

a.admin-stat:hover {
    color: var(--site-text);
    background-color: #3d3d40;
}

.admin-stat > i {
    width: 34px;
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: 1.35rem;
}

.admin-stat strong,
.admin-stat span {
    display: block;
}

.admin-stat strong {
    color: #fff;
    font-size: 1.25rem;
}

.admin-stat span {
    color: var(--site-text);
}

.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.admin-quick-action {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: 1rem;
    color: var(--site-text);
    background-color: #2e2e2e;
    border: 1px solid #525252;
    transition: background-color .2s ease;
}

.admin-quick-action:hover {
    color: var(--site-text);
    background-color: #3d3d40;
}

.admin-quick-action > i:first-child {
    width: 30px;
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: 1.15rem;
}

.admin-quick-action strong,
.admin-quick-action span {
    display: block;
}

.admin-quick-action strong {
    color: #fff;
}

.admin-quick-action span {
    margin-top: .15rem;
    color: var(--site-text);
    font-size: .82rem;
}

.admin-quick-arrow {
    margin: 0 !important;
    color: var(--site-text);
}

.admin-settings-head,
.admin-content-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-section-intro p,
.admin-content-head p,
.admin-rules-intro p {
    margin: 0;
    color: var(--site-text);
}

.admin-config-search {
    width: 340px;
    max-width: 100%;
}

.admin-config-list {
    background-color: #2e2e2e;
    border: 1px solid #525252;
}

.admin-config-row {
    display: grid;
    grid-template-columns: minmax(250px, 42%) minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    border-bottom: 1px solid #525252;
}

.admin-config-row:last-child {
    border-bottom: 0;
}

.admin-config-info {
    min-width: 0;
}

.admin-config-label {
    margin-bottom: .2rem;
    color: #fff;
    font-weight: 600;
}

.admin-config-description {
    margin-bottom: .35rem;
    color: var(--site-text);
    font-size: .87rem;
}

.admin-config-identifier {
    color: var(--site-text);
    font-size: .75rem;
    opacity: .75;
}

.admin-config-control {
    min-width: 0;
}

.admin-config-json,
.admin-config-list-input {
    resize: vertical;
    font-family: var(--font-family-monospace);
    font-size: .84rem;
}

.admin-config-list-input {
    min-height: 110px;
}

.admin-config-type {
    margin-top: .35rem;
    color: var(--site-text);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .7;
}

.admin-config-switch {
    padding-top: .4rem;
    padding-bottom: .4rem;
}

.admin-config-empty {
    padding: 2rem 1rem;
    color: var(--site-text);
    text-align: center;
}

.admin-save-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1rem;
    background-color: #2e2e2e;
    border: 1px solid #525252;
    border-top: 0;
}

.admin-save-bar span {
    color: var(--site-text);
    font-size: .82rem;
}

.admin-content-filterbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: .75rem;
}

.admin-content-filterbar form {
    width: 280px;
    max-width: 100%;
}

.admin-content-filterbar label {
    display: block;
    margin-bottom: .3rem;
}

.admin-content-list {
    background-color: #2e2e2e;
    border: 1px solid #525252;
}

.admin-content-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #525252;
}

.admin-content-item:last-child {
    border-bottom: 0;
}

.admin-content-main {
    min-width: 0;
}

.admin-content-main h4 {
    margin: .35rem 0;
    color: #fff;
    font-size: 1rem;
    text-align: left;
}

.admin-content-main p {
    margin: 0;
    color: var(--site-text);
}

.admin-content-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    color: var(--site-text);
    font-size: .76rem;
}

.admin-content-actions {
    display: flex;
    flex-shrink: 0;
    gap: .4rem;
}

.admin-content-actions form {
    margin: 0;
}

.admin-news-content,
.admin-faq-answer,
.admin-rules-editor {
    resize: vertical;
}

.admin-empty-state {
    padding: 3rem 1rem;
    color: var(--site-text);
    text-align: center;
    background-color: #2e2e2e;
    border: 1px solid #525252;
}

.admin-empty-state > i {
    margin: 0 0 .75rem !important;
    color: var(--site-text);
    font-size: 2rem;
}

.admin-empty-state h4 {
    margin-bottom: .3rem;
    color: #fff;
}

.admin-empty-state p {
    margin: 0;
}

.admin-rules-intro {
    margin-bottom: 1rem;
}

.admin-rules-language-form {
    width: 320px;
    max-width: 100%;
    margin-bottom: 1rem;
}

.admin-rules-editor {
    min-height: 420px;
    font-family: var(--font-family-monospace);
    font-size: .9rem;
}

#adminCreateNewsModal .modal-content,
#adminEditNewsModal .modal-content,
#adminCreateFaqModal .modal-content,
#adminEditFaqModal .modal-content {
    background-color: #2e2e2e;
    border-color: #525252;
}

#adminCreateNewsModal .modal-header,
#adminEditNewsModal .modal-header,
#adminCreateFaqModal .modal-header,
#adminEditFaqModal .modal-header {
    background-color: #3d3d40;
    border-bottom-color: #525252;
}

#adminCreateNewsModal .modal-footer,
#adminEditNewsModal .modal-footer,
#adminCreateFaqModal .modal-footer,
#adminEditFaqModal .modal-footer {
    background-color: #2e2e2e;
    border-top-color: #525252;
}

@media (max-width: 1199.98px) {
    .admin-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-settings-dropdown {
        max-height: none;
    }
}

@media (max-width: 767.98px) {
    .admin-dashboard-hero,
    .admin-settings-head,
    .admin-content-head,
    .admin-content-item {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-access-badge,
    .admin-config-search,
    .admin-content-filterbar form,
    .admin-rules-language-form {
        width: 100%;
        min-width: 0;
    }

    .admin-config-row {
        grid-template-columns: 1fr;
        gap: .7rem;
    }

    .admin-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-save-bar .btn {
        width: 100%;
    }

    .admin-content-actions {
        width: 100%;
    }

    .admin-content-actions .btn,
    .admin-content-actions form {
        flex: 1;
    }

    .admin-content-actions form .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .admin-stats-grid,
    .admin-quick-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Admin shortcuts dropdown - latest additions only
   Append this to the bottom of gpc.css
   ========================================================== */

.admin-tools-dropdown {
    min-width: 240px;
}

.admin-tools-dropdown .dropdown-item {
    display: flex;
    align-items: center;
}

.admin-tools-dropdown .dropdown-item i {
    width: 20px;
    margin-right: .55rem;
    text-align: center;
}

/* ==========================================================
   Custom Admin dropdown caret + menu translation layout
   LATEST CHANGES ONLY
   ========================================================== */

.admin-navbar-tools .dropdown-toggle::after {
    display: inline-block;
    margin-left: .35rem;
    vertical-align: .15em;
}

.admin-menu-translations {
    padding: .85rem 0 .15rem;
    margin: .85rem 0;
    border-top: 1px solid #525252;
    border-bottom: 1px solid #525252;
}

.admin-menu-translations h6 {
    margin-bottom: .25rem;
    color: #fff;
    text-align: left;
}

.admin-menu-translations > p {
    margin-bottom: .85rem;
}

/* Custom Menu Font Awesome icon field - latest addition only */

.admin-menu-icon-preview {
    min-width: 46px;
    justify-content: center;
}

.admin-menu-icon-preview i {
    margin-right: 0 !important;
}

/* ==========================================================
   TS OPTIONS / User Verification / TeamSpeak Badges
   ========================================================== */

.ts-options-dropdown {
    min-width: 235px;
}

.ts-options-dropdown .dropdown-item {
    display: flex;
    align-items: center;
}

.ts-options-dropdown .dropdown-item i {
    width: 22px;
    margin-right: .55rem;
    text-align: center;
}

.verification-card .card-body {
    padding: 1.25rem;
}

.verification-intro {
    margin-bottom: 1.25rem;
}

.verification-status i {
    margin-right: .45rem;
}

.verification-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.verification-recaptcha {
    max-width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
}

.badges-source-note i {
    margin-right: .5rem;
}

.badges-card {
    overflow: hidden;
}

.badges-toolbar {
    display: flex;
    justify-content: flex-end;
}

.badges-search {
    width: 100%;
    max-width: 420px;
}

.badges-table {
    min-width: 900px;
}

.badges-table th {
    white-space: nowrap;
    vertical-align: middle;
}

.badges-table td {
    vertical-align: middle;
}

.badges-image-cell {
    width: 125px;
    text-align: center;
}

.badges-image-cell img {
    display: inline-block;
    max-width: 64px;
    object-fit: contain;
}

.badges-details {
    min-width: 320px;
}

.badges-details strong,
.badges-details span,
.badges-details code {
    display: block;
}

.badges-details span {
    margin: .3rem 0 .45rem;
}

.badges-details code {
    word-break: break-all;
}

.badges-no-results {
    padding: 2rem 1rem;
}

@media (max-width: 767.98px) {
    .badges-toolbar {
        justify-content: stretch;
    }

    .badges-search {
        max-width: none;
    }

    .verification-recaptcha {
        transform-origin: left top;
    }
}

/* ==========================================================
   User Verification layout cleanup - latest change only
   ========================================================== */

.verification-card .card-header {
    text-align: left;
}

.verification-card .card-body {
    text-align: center;
}

.verification-intro {
    text-align: center;
}

.verification-form {
    align-items: center;
}

.verification-recaptcha {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================
   Twitch full-width / large embed
   LATEST CSS CHANGE ONLY
   ========================================================== */

.twitch-page-card {
    width: 100%;
}

.twitch-page-card .card-body {
    padding: 1rem;
}

.twitch-embed-row {
    min-height: calc(100vh - 245px);
}

.twitch-player-wrap {
    height: 100%;
    min-height: calc(100vh - 245px);
}

.twitch-player-wrap.embed-responsive::before {
    padding-top: 0;
}

.twitch-player-wrap .embed-responsive-item {
    position: absolute;
    width: 100%;
    height: 100%;
}

.twitch-chat-frame {
    height: 100%;
    min-height: calc(100vh - 245px);
}

.twitch-channel-switch {
    width: 100%;
    text-align: center;
}

@media (max-width: 991.98px) {
    .twitch-embed-row {
        min-height: 0;
    }

    .twitch-player-wrap {
        min-height: 56.25vw;
        height: auto;
    }

    .twitch-chat-frame {
        min-height: 500px;
        height: 500px;
    }
}

/* ==========================================================
   Restricted / banned access
   LATEST CSS ADDITION ONLY
   ========================================================== */

.restricted-access-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 1.5rem;
    text-align: center;
}

.restricted-access-image {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    margin: 0 auto;
}


/* ==========================================================
   Mobile Admin navbar alignment
   Latest addition only
   ========================================================== */

@media (max-width: 991.98px) {
    .navbar-collapse .admin-navbar-tools,
    .navbar-collapse .admin-navbar-tools + .nav-item {
        width: 100%;
    }

    .navbar-collapse .admin-navbar-icon-link {
        display: block;
        width: 100%;
        min-width: 0;
        text-align: left;
    }
}
