/* Body */

html, body {
    height: 100%;
}

body {
    background: #232931;
}

#wrapper {
    height: auto !important;
    height: 100%;
}

#maintenanceContainer {
    background-color: #ff0000;
    text-align: center;
    padding: 5px;
    color: #fff;
    font-weight: bold;
}

* {
    box-sizing: initial;
    margin: 0;
}

a, a:focus {
    outline: 0 !important;
    text-decoration: none;
}

a, a:active, a:visited {
    color: #000000;
}

a:hover {
    color: var(--realm-accent-color2, #2CAFE4);
    text-decoration: none;
}

a.btn-primary, a.btn-success {
    color: #FFFFFF;
}

a.btn-default {
    color: #000000;
}

a.mention-link {
    color: #2F5394;
}

a.mention-link:hover {
    color: var(--realm-accent-color2, #2CAFE4);
}

a.remove-link:hover {
    color: #FF0000;
}

a.ok-link:hover {
    color: #50B649;
}

.alert-info a {
    color: #31708f;
    text-decoration: underline;
}

.alert-info a:hover, .alert-info a:focus {
    color: #23527c;
    text-decoration: none;
}

.quote {
    margin-left: 10px;
    color: #777;
    font-style: italic;
}

.quote-content {
    border-left: 1px dashed #E1E0E0;
    padding-left: 3px;
}

button, input, optgroup, select, textarea {
  margin-top: 3px;
}

.input-group input {
    margin-top: 0;
}

.input-group-addon {
    width: 0%;
}

h3 {
    font-style: normal !important;
}

h3.section-title, h4.section-title, h5.section-title {
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

h5.section-title.upcoming-matches {
    margin-bottom: 5px;
}

ul {
    margin-left: -10px;
}

.row {
    width: 1100px;
    margin-left: 0px;
}

[class*="col-md-"] {
    padding-left: 0px;
    padding-right: 0px;
}

.col-md-12 {
    width: 1000px;
}

.col-md-6 {
    width: 500px;
}

.col-md-4 {
    width: 333px;
}

.col-md-3 {
    width: 250px;
}

.col-md-2 {
    width: 200px;
}

.flag {
    margin-bottom: 3px;
}

.btn-default {
    color: #000000;
    background-color: #eee;
}

.btn-default:hover,
.btn-default:focus,
.btn-default.focus,
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
    background-color: #6B778D;
    color: #222831;
}


.jumbotron {
    padding: 0;
    margin-bottom: 0;
    background-color: #3D4248;
    height: 164px;
}

.container {
    width: 1100px;
    padding: 0px;
}

.section-separator {
    border: 0;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 10px;
}

.vertical-separator {
    border-right: 1px solid #A2A2A3;
    width: 1px;
    height: 150px;
    display: inline-block;
}

.icon-sm {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-bottom: -3px;
}

.code-snippet {
    background-color: #EEEEEE;
    margin: 20px 0 20px;
    font-size: 12px;
    border-radius: 3px;
    padding: 3px;
}

.scrollup {
    width: 40px;
    height: 40px;
    opacity: 0.3;
    position: fixed;
    bottom: 50px;
    right: 50px;
    display: none;
    text-indent: -9999px;
    background: url('/img/layout/icon_top.png') no-repeat;
    outline: none !important;
    z-index: 3000;
}

.autocomplete-suggestions { border: 1px solid #999; background: #FFF; overflow: auto; }
.autocomplete-suggestion { padding: 2px 5px; white-space: nowrap; overflow: hidden; }
.autocomplete-selected { background: #F0F0F0; cursor: pointer;}
.autocomplete-suggestions strong { font-weight: bold; color: #FF7E00; }

.modal {
    z-index: 2500;
}

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

.table th.center, .table td.center {
    text-align: center;
}

.table th.left, .table td.left {
    text-align: left;
}

.table th.right, .table td.right {
    text-align: right;
}

.table th.middle, .table td.middle {
    vertical-align: middle;
}

table .bold {
    font-weight: bold;
}

th.sortable {
    cursor: pointer;
}

th.sortable:hover {
    color: var(--realm-accent-color2, #2CAFE4);
}

th.sortable > .glyphicon-sort {
    font-size: 11px;
}

.strikethrough {
  position: relative;
}

.strikethrough:before {
  position: absolute;
  content: "";
  left: 0;
  top: 50%;
  right: 0;
  border-top: 1px solid;
  border-color: inherit;
  
  -webkit-transform:rotate(-5deg);
  -moz-transform:rotate(-5deg);
  -ms-transform:rotate(-5deg);
  -o-transform:rotate(-5deg);
  transform:rotate(-5deg);
}

.tooltip-inner {
    max-width: 350px;
}

.calendar-curweek a {
    background: #b4bcc4 !important;
}

.ui-state-highlight, .ui-widget-content .ui-state-highlight {
    border: 1px solid #393e46 !important;
}

.table-heading {
    font-weight: bold;
    padding-right: 20px !important;
    vertical-align: top;
}

.form-control {
    height: 20px;
    width: auto;
    padding: 5px;
    display: inline-block;
}

.form-control:focus {
    border-color: var(--realm-accent-color2, #2CAFE4);
}

.form-group {
    margin-bottom: 10px;
    min-height: 39px;
}

.form-group .control-label {
    padding-top: 7px;
}

.form-group .control-label.label-normal {
    font-weight: normal !important;
}

.form-group input[type="checkbox"] {
    margin-top: 6px;
}

.form-group .checkbox-inline .checkbox-label {
    margin-top: 3px;
}

input[type="radio"].form-control {
    height: 14px;
}

.help-block {
    margin-bottom: 0px;
}

.form-helper {
    margin-left: 5px;
    margin-right: 5px;
    color: #737373;
}

.form-success {
    color: #32931C;
    font-weight: bold;
}

.form-error {
    color: #A94442;
    font-weight: bold;
}

.form-helper .btn-xs {
    margin-left: 10px;
    margin-bottom: 2px;
}

.col-xs-2 {
    width: 20%;
}

.col-xs-3 {
    width: auto;
}

.table-playedMatches {
    width: 80%;
    margin: 20px auto;
    border: 1px solid #eee;
}

.table-playedMatches > tbody > tr > td.win,
.table-playedMatches > tbody > tr > td.loss,
.table-playedMatches > tbody > tr > td.draw {
    color: #ffffff;
}

.table-playedMatches > tbody > tr > td.win {
    background-color: #008000;
}

.table-playedMatches > tbody > tr > td.loss {
    background-color: #e61a1a;
}

.table-playedMatches > tbody > tr > td.draw {
    background-color: #cacaca;
}

.table-playedMatches > tbody > tr > td.noshow,
.table-playedMatches > tbody > tr > td.forfeit,
.table-playedMatches > tbody > tr > td > span.waiting {
    font-size: 11px;
    font-style: italic;
    vertical-align: middle;
}

.table-heat {
    border: 1px solid #eee;
}

.table-heat > tbody > tr.advance {
    background-color: #41db41;
}

.table-heat.heat-complete > tbody > tr > td {
    cursor: pointer;
}

/* Realm selection modal styles */
#realmModal .modal-dialog {
    max-width: 720px;
}
#realmModal .modal-content {
    background: linear-gradient(180deg, rgba(34,40,49,0.98), rgba(20,23,28,0.98));
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 20px;
}
#realmModal .modal-header { background: transparent; border-bottom: none; padding-bottom: 10px }
#realmModal .modal-title { font-size: 20px; color: #F7F9FB }
#realmModal .modal-body p { color: #cbd3da }

.realm-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}
.realm-card {
    flex: 1 1 30%;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35) inset;
}
.realm-card:focus, .realm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    background: rgba(44,175,228,0.06);
}
.realm-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2CAFE4, #5EE2A3);
    color: #0b1320;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.realm-name { font-size: 15px; font-weight: 700; color: #F7F9FB }
.realm-domain { font-size: 12px; color: #9fb0bf }

@media (max-width: 600px) {
    .realm-card { flex: 1 1 100%; }
    .realm-avatar { width: 48px; height: 48px }
}

/* Make the realm modal hide the background entirely */
.modal-backdrop.show {
    opacity: 1 !important;
    background-color: rgba(3,6,10,0.98) !important;
}

/* Ensure the realm modal is full-screen centered and prominent */
#realmModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    pointer-events: auto !important;
}

#realmModal .modal-dialog {
    max-width: 920px;
    margin: 0 auto;
}

#realmModal .modal-content {
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    z-index: 100000 !important;
    pointer-events: auto !important;
}

/* Prevent background interactions while modal is open */
.modal-open { overflow: hidden; }

/* Subtle backdrop blur where supported */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99990 !important;
}

.modal-backdrop.show {
    opacity: 1 !important;
    background-color: rgba(3,6,10,0.98) !important;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

/* Custom realm overlay (replaces Bootstrap modal for realm selection) */
.realm-overlay { display: none; position: fixed; inset: 0; z-index: 120000; }
.realm-overlay.show { display: flex; align-items: center; justify-content: center; }
.realm-overlay-backdrop { position: absolute; inset: 0; background: rgba(3,6,10,0.98); backdrop-filter: blur(3px); }
.realm-overlay-content { position: relative; max-width: 920px; width: calc(100% - 40px); margin: 0 20px; z-index: 120001; }
.realm-overlay-header { margin-bottom: 12px; text-align: center; }
.realm-overlay-header .modal-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.realm-overlay-header p {
    color: #e6f0f6;
    margin: 6px 0 0;
    font-size: 15px;
}
.realm-overlay-body { background: linear-gradient(180deg, rgba(34,40,49,0.98), rgba(20,23,28,0.98)); color:#fff; padding: 20px; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.7); }
.realm-overlay-open { overflow: hidden; }

/* ensure buttons/cards are interactive */
.realm-overlay, .realm-overlay * { pointer-events: auto !important; }

/* Final overrides to ensure realm overlay is centered and interactive */
.realm-overlay { display: flex !important; align-items: center !important; justify-content: center !important; }
.realm-overlay.show { display: flex !important; }
.realm-overlay-content { margin: 0 auto; max-height: 86vh; overflow: auto; }
.realm-overlay-header { text-align: center; }
.realm-overlay-open { overflow: hidden; }



/* Header */

#header-row {
    position: relative;
    height: 162px;
    width: 1098px;
    border: 1px solid #72777b;
    margin-bottom: 3px;
    border-radius: 5px;
}

.popover {
    min-width: 270px;
    max-width: none;
}

.popover-title {
    font-weight: bold;
}

/* End header*/


/* Main navigation */

#main-menu {
    background: #2C394B;
    border-radius: 0px;
    margin: 0px;
    min-width: 1100px;
    min-height: 30px;
    width: 100%;
}

.smooth-transition {
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.menu-fixed {    
    padding: 0px;
    top: 0px;
    z-index: 1030;
    right: 0px;
    left: 0px;
    position: fixed;
    border-top: 0px solid #EEEEEE;
}

.navbar {
    border-left: 0px;
    border-right: 0px;
}

.navbar-collapse {
    padding-left: 0px;
    padding-right: 0px;
    background: #2C394B;
}

.navbar .nav > li .glyphicon {
    margin-right: 7px;
}

.navbar .nav > li > a {
    font-weight: bold;
    font-size: 14px;
    text-shadow: none;
    padding: 5px 12px 5px 12px;
}

.navbar .nav > li > a:hover {
    color: var(--realm-accent-color2, #2CAFE4);
}

.navbar .nav > .active > a, .navbar .nav > .active > a:hover, .navbar .nav > .active > a:focus {
    box-shadow: none;
    background: rgba(0,0,0,0.7);
    color: #f5f5f5 !important;
    background-color: var(--realm-accent-color2, #058980);
}

.navbar .nav > li > a.nextMatch {
    margin: 0px 15px;
    font-size: 12px;
    border-radius: 4px;
    background-color: #a82e2e;
}

.navbar .nav > li > a.nextMatch:hover,
.navbar .nav > li > a.nextMatch:active {
    background-color: #c84545;
    color: #f5f5f5;
}

.navbar-right {
    margin-right: 0px;
}

/* Override collapsing */
.navbar-collapse.collapse {
    display: block!important;
    visibility: visible!important;
    margin-left: 0px !important;
    margin-right: 0px !important;
}

.navbar-nav > li, .navbar-nav {
    float: left !important;
}

.navbar-right {
    float: right!important;
}

.navbar-default .navbar-brand {
    color: #f5f5f5;
}

.navbar-default {
    border-color: #3E434B;
}

.navbar-default .navbar-text {
    color: #f5f5f5;
}
.navbar-default .navbar-nav > li > a {
    color: #f5f5f5;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: var(--realm-accent-color2, #058980);
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: var(--realm-accent-color2, #058980);
}

.navbar-default .navbar-nav .open .dropdown-menu  {
    min-width: 175px;
    left: -1px;
}

.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
    color: var(--realm-accent-color2, #058980);
}
.navbar-default .navbar-nav .open .dropdown-menu > .active > a,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
    color: var(--realm-accent-color2, #058980);
}
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
    color: var(--realm-accent-color2, #058980);
}

.nav-tabs > li > a {
    padding: 10px 7px;
}

.nav-tabs > li > a:hover {
    color: var(--realm-accent-color2, #058980);
}

.nav-tabs > li.dropdown.active > ul > li.active > a {
    color: var(--realm-accent-color2, #058980);
}

#popoverLogin .control-label {
    width: 70px;
}


/* Submenu container */
.dropdown-submenu {
  position: relative;
}

/* Submenu itself */
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 99% !important;
  margin-top: -6px;
  margin-left: 0;
}

/* Show submenu on hover */
.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

.dropdown-submenu:hover > a:after {
  border-left-color: #fff;
}



/* End main navigation */

/* End header */


/* Middle */

#middle {
    padding-top: 10px;
    background: #232931;
    min-height: 500px;
}

#middle .container {
    background: #232931;
    width: 1100px;
}

#middle-row-left {
    margin-left: 0px;
    float: left;
    width: 864px;
    padding-right: 5px;
}

#middle-row-right {
    margin-left: 0px;
    float: left;
    width: 222px;
    padding-left: 5px;
}

#middle-row {
    width: 1100px;
}

#breadcrumb-container {
    min-height: 16px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: bold;
}

#breadcrumb {
    float: left;
}

#breadcrumb ol {
    padding: 0px;
    border-radius: 0px;
    margin-bottom: 10px;
    margin-left: 2px;
}

#breadcrumb a {
    color: #f5f5f5;
}

#breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb {
    background-color: #232931;
}

.breadcrumb > .active {
    color: var(--realm-accent-color2, #058980);
}

.menuitem-account {
    background-color: var(--realm-accent-color, #5885AF);
    margin-left: 5px;
    border-radius: 5px;
}

.menuitem-account > a:active {
    border-radius: 5px;
    color: #f5f5f5 !important;
    background-color: var(--realm-accent-color2, #058980);
}

.menuitem-account > a:hover,
.menuitem-account > a:focus {
    background-color: var(--realm-accent-color2, #058980) !important;
    color: #f5f5f5 !important;
    border-radius: 5px;
}

.menuitem-account > ul {
    min-width: 170px;
}

#servertime-container {
    float: right;
    color: #f5f5f5;
}

.mainpanel {
    min-height: 80px;
    border: none;
    line-height: 22px;
    border-radius: 0px;
}

.mainpanel.frontpage {
    width: 422px;
}

.mainpanel.frontpage.left {
    float: left;
}

.mainpanel.frontpage.right {
    float: right;
}

.mainpanel > .panel-heading, .simplepanel .panel-heading {
    color: #F5F5F5;
    border: 0px;
    background-color: #393E46;
    border-left: 5px solid var(--realm-accent-color, #5885AF);
    border-radius: 0px;
    text-align: left;
}

.mainpanel > .panel-body {
    text-align: left;
}

.mainpanel .panel-heading .panel-title, .simplepanel .panel-heading .panel-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.panel-title a {
    color: #F5F5F5;
    outline: none;
}

.panel-title a:hover {
    color: var(--realm-accent-color2, #2CAFE4);
}

#page-title {   
    background: #EEE;
    height: 20px;    
    margin: -5px 0px 20px -5px;
    padding: 5px;
    border-left: 5px solid #000000;
}

#page-title > span {
    font-size: 18px;
    font-weight: 700;
}

.carousel-desc {
    left: 0;
    right: 0;
    bottom: 0px;
    padding: 10px;
    text-align: justify;
    background-color: rgba(0, 0, 0, 0.5);

    font-size: 12px;
    line-height: 18px;
    color:#fff;
    text-shadow: none;
    z-index: 100;
}

.carousel-news-header-image {
    background-position: 0px 0px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 834px;
    height: 309px;
    margin: auto;
    text-align: center;
    position: relative;
}

.carousel-indicators {
    position: absolute;
    left: 720px;
    width: 100px;
    padding-left: 0px;
    margin-left: 0px;
    text-align: right;
    list-style: outside none none;
    
    bottom: 0px;
    z-index: 101;
}

.carousel-desc > a {
    text-decoration: none;
    font-weight: bold;
    font-size: 17.5px;
    color: #fff;
}

.carousel-desc > p {
    padding: 5px 0px 5px;
    font-weight: bold;
    margin-bottom: 0px;
    color: #fff;
    width: 700px;
}

.carousel-newcontrol, .carousel-newcontrol:focus {
    position: absolute;
    width: 37px;
    height: 37px;
    top: 112px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.6);
    color: #FFF !important;
    opacity: 0.4;
    border-radius: 30px;
    outline: 0px none;
}

.carousel-newcontrol:hover {
    color: #FFF;
    text-decoration: none;
    outline: 0px none;
    opacity: 0.7;
}

.carousel-newcontrol.left {
    left: 20px;
    right: auto;
    background-color: #333;
}

.carousel-newcontrol.right {
    right: 20px;
    left: auto;
    background-color: #333;
}

.carousel-newcontrol .icon-prev, .carousel-newcontrol .icon-next, .carousel-newcontrol .glyphicon-chevron-left, .carousel-newcontrol .glyphicon-chevron-right {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: inline-block;
}

.carousel-newcontrol .glyphicon-chevron-left, .carousel-newcontrol .glyphicon-chevron-right, .carousel-newcontrol .icon-prev, .carousel-newcontrol .icon-next {
    width: 37px;
    height: 37px;
    margin-top: -14px;
    margin-left: 6px;
    font-size: 26px;
}


.right-menu-header {
    background-color: #EEEEEE;
    height: 24px;
    padding: 2px 0px 2px 7px;
    line-height: 24px;
    border: 1px solid #E1E0E0;
    border-left: 5px solid var(--realm-accent-color2, #2CAFE4);
    width: 207px;
    font-family: "Helvetica Neue","Helvetica","Arial","sans-serif";
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.right-menu-header .glyphicon {
    float: right !important;
    padding-right: 3px;
    line-height: 24px;
}

.upcoming {
    font-size: 12px;
    margin: auto;
    width: 200px;
    padding: 1px 0 1px;
}

.upcoming .glyphicon {
    color: var(--realm-accent-color2, #2CAFE4);
    padding-right: 5px;
}

.recentsongs {
    color: var(--realm-accent-color2, #2CAFE4);
    padding-right: 5px;
}

#right-menu {
    margin: 0px;
    padding-left: 0px;
}

#right-menu > li {
    display: block;
}

.menu-btn {
    width: 95%;
    padding: 4px 0px 4px 0px;
}

#discordBanner {
    background-image: url("/img/layout/discord.png");
    background-position: 0px 0px;
    background-size: 100% 100%;
    width: 222px;
    height: 80px;
    margin-bottom: 20px;
}

#discordBanner > a {
    display: block;
    width: 222px;
    height: 80px;
}

/* End middle */


/* Footer */

/* Footer contents */

#footer-top {
    padding-top: 20px;
    min-width: 1100px;
    width: 100%;
    background: #3D4248;
    color: #ffffff;
    height: 160px;
}

#footer-bottom {
    padding: 20px 0px 20px 0px;
    min-width: 1100px;
    width: 100%;
    background: #32373D;
    height: 20px;
    color: #8F8F8F;
    font-size: 11px;    
}

#footer-bottom a {
    color: #8F8F8F;
}

#footer-bottom a:hover {
    text-decoration: underline;
}

#footer-left {
    width: 306px;
    height: 100px;
    float: left;
}

#footer-logo {
    background-image: url("/img/layout/footer-logo.png");
    background-position: 0px 0px;
    background-repeat: no-repeat;
    width: 210px;
    height: 100px;
    display: block;    
    overflow: hidden;
}

#footer-logo > a {
    display: block;
    width: 210px;
    height: 100px;
}

#footer-right {
    width: 690px;
    float: left;
}

.footer-links {
    width: 230px;
    float: left;
}

.footer-links > h5 {
    color: var(--realm-accent-color2, #058980);
    margin: 0px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 25px;
    font-style: normal;
    font-size: 14px;
}

.footer-links > ul {  
    margin: 0px;
    padding-left: 0px;
}

.footer-links > ul > li {
    display: block;
    font-size: 12px;
    line-height: 22px;
}

.footer-links .glyphicon-link {
    color: var(--realm-accent-color2, #2CAFE4);
}

.footer-links a {
    color: #FFFFFF;
}

.footer-links a:hover {
    text-decoration: underline;    
}

.footer-links ul.social > li {
    line-height: 27px;
}

.footer-links ul.social > li > .icon-sm {
    margin-right: 5px;
    margin-bottom: -4px;
}

#realmSwitcher {
    margin-top: 20px;
    color: #fff8f8;
    background-color: #32373d;
    border: 1px solid #999;
}

#cookieInfoContainer {
    background: rgba(50, 55, 61, 0.9) none repeat scroll 0px 0px;
    bottom: 0px;
    height: 10px;
    padding: 10px 0 20px;
    position: fixed;
    font-size: 13px;
    text-align: center;
    width: 100%;
    z-index: 2000;
    color: #FFFFFF;
}

#cookieInfoContainer a {
    color: #FFFFFF;
    font-weight: bold;
}

#cookieInfoContainer a:hover {
    text-decoration: underline;
}

#closeCookieAlert {
    position: absolute;
    top: 5px;
    right: 13px;
    width: 30px;
    height: 30px;
    background: transparent url("/img/icons/cross.png") no-repeat scroll center center;
    cursor: pointer;
    z-index: 1103;
}

/* End footer */

/* End body */


/* General */

hr.faded {
    border: 0;
    height: 1px;
    background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}

.menu-icon {
    background-position: 0px 0px;
    background-repeat: no-repeat;
    padding-right: 22px;
}

.rss-small {
    background-image: url("/img/icons/rss.png");
    margin-left: -2px;
}

.trophy-small {
    background-image: url("/img/icons/trophy-small.png");
}

.ladder-small {
    background-image: url("/img/icons/ladder-small.png");
}

.comment {
    margin: 20px 0px;
}

.comment .avatar {
    margin-right: 12px;
    position: relative;
    float: left;
    width: 48px;
    height: 48px;
    border-radius: 3px;
    background-position: 0px 0px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.comment .body header .metadata, .comment .body header .metadata a {
    font-size: 11px;
    color: #777;
}

.comment .body header .metadata a:hover {
    color: var(--realm-accent-color2, #2CAFE4);
} 

.comment .body header .metadata .bullet {
    padding: 0px 5px;
}

.comment .body .body-inner {
    overflow: hidden;
}


/* Notifications */

#notif-popover-content {
    width: 350px;
    max-width: 350px;
}

.notif {
    width: 99%;
    height: 48px;
    display: table;
    table-layout: fixed;
    padding: 5px 3px;
    margin: auto;
    border-radius: 3px;
}

#notif-popover-content .notif {
    height: auto;
    min-height: 30px;    
}

.notif .avatar {
    margin-left: 5px;
    margin-right: 20px;
    float: left;
    width: 48px;
    height: 48px;
    border-radius: 3px;
    background-position: 0px 0px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: table-cell;
    cursor: pointer;
}

#notif-popover-content .notif .avatar {
    width: 32px;
    height: 32px;
}

.notif .content {
    width: 620px;
    display: table-cell;
    float: left;
    vertical-align: middle;
    cursor: pointer;
}

.notif .content .text {
    line-height: 26px;
    font-size: 14px;
}

#notif-popover-content .notif .content {
    width: 260px;
    text-align: left;
}

#notif-popover-content .notif .content .text {
    font-size: 12px;
    line-height: 16px;
}

.notif .content .timestamp {
    line-height: 16px;
    font-size: 11px;
}

.notif .action {
    margin: 10px 8px;
    display: table-cell;
    float: right;
    vertical-align: middle;
}

.notif .markRead, .notif .markUnread {
    font-size: 9px;
    color: #BBBBBB;
}

.notif .markRead:hover, .notif .markUnread:hover {
    color: #000000;
    cursor: pointer;
}

.notif-hr {
    margin-top: 8px;
    margin-bottom: 8px;
}

.notif-unread {
    background-color: #F9F9F9;
}

.notif-loading {
    text-align: center;
}

.notif-button {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.notif-count {
    margin: -5px 0 0 -13px;
    position: absolute;
    background-clip: padding-box;
    display: inline-block;
    font-family: 'helvetica neue', helvetica, arial, sans-serif;
    font-size: 10px;
    line-height: 1.3;
    min-height: 13px;   
    background-color: #FA3E3E;
    border-radius: 2px;
    color: #FFFFFF;
    padding: 1px 3px;
}

.notif-popover-btns {
    text-align: center;
    margin-top: 8px
}

.notif-popover-btns > a {
    margin: 0 5px;
}


/* CREW */

#crew-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}

.crew-badge {
    width: 280px;
}

.crew-profile-img {
    float: left;
    width: 75px;
    height: 75px;
    border-radius: 3px;
    background-position: 0px 0px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.crew-profile-img > a {
    display: block;
    width: 100%;
    height: 100%;
}


/* PROFILE PAGE */ 

.profile-img {
    width: 200px;
    float: right;
    margin-top: 20px;
}


/* EDIT PROFILE */

.nav-tabs a, .navbar-nav a {
    outline: 0px none !important;
}

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

.nav-center ul .nav {
    display: inline-block;
}

.nav-center ul li .glyphicon {
    margin-right: 4px;
}

.tab-content {
    text-align: initial;
}

.tab-pane {
    padding-top: 10px;
}


/* NEWS */

.news-header-image {
    background-position: 0px 0px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 732px;
    height: 271px;
    margin: auto auto 20px auto;
    text-align: center;
    position: relative;
}

#news-subject {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

#news-brief {
    font-weight: bold;
    text-align: justify;
}

#news-body p {
    text-align: justify;
}

.news-posted-info, .news-posted-info a {
    margin-top: 8px;
    font-size: 12px;
    color: #8F8F8F;
    font-weight: bold;
}

.news-posted-info a:hover {
    color: #000000;
}

#news-author-displaypic {
    background-position: 0px 0px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-right: 25px;
    float: left;
    width: 60px;
    height: 60px;
    border-radius: 3px;
}

.news-item-info {
    width: 280px;
    float: left;
}

.news-item-info header {
    font-weight: bold;
    font-size: 16px;
}

.news-unpublished {
    font-weight: bold;
    font-size: 10px;
    color: #FF0000;
}

.itemPoll {
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    min-width: 200px;
    margin: 20px auto;
    border: 1px solid #EEE;
    border-radius: 10px;
    padding: 15px;
}

.potmPoll {
    width: 60%;
}

.itemPoll .question {
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    padding: 5px 0 5px;
}

.itemPoll .answers {
    margin: auto;
}

.menuPoll .question {
    font-weight: bold;
    text-align: center;
    padding-bottom: 5px;
}

.pollVoteCount {
    font-size: 11px;
}

.pollTotalCount {
    text-align: center;
    font-weight: bold;
    padding: 5px;   
}

.pollButtons {
    text-align: center;
}

.pollButtons > button {
    margin: 5px;
}

.pollAnswer {
    padding: 3px 0 3px;
}

.pollUserVote {
    font-weight: bold;
}

.pollBars {
    height: 10px;
}

.pollBar1 {
    background-image: linear-gradient(#EAA681, #D4520B 70%);
}

.pollBar2 {
    background-image: linear-gradient(#68F56E, #29A52F 70%);
}

.pollBar3 {
    background-image: linear-gradient(#FFF999, #E3D714 70%);
}

.pollBar4 {
    background-image: linear-gradient(#99C2FF, #0864EE 70%);
}

.pollBar5 {
    background-image: linear-gradient(#F875D4, #DC02A1 70%);
}

.pollBar6 {
    background-image: linear-gradient(#6DF6EB, #00C6B6 70%);
}

.pollBar7 {
    background-image: linear-gradient(#EAA681, #F26F27 70%);
}

.pollBar8 {
    background-image: linear-gradient(#68F56E, #6CD371 70%);
}

.pollBar9 {
    background-image: linear-gradient(#FFF999, #F1EA78 70%);
}

.pollBar10 {
    background-image: linear-gradient(#99C2FF, #70A6F7 70%);
}

.pollBar11 {
    background-image: linear-gradient(#F875D4, #ED5CC6 70%);
}

.pollBar12 {
    background-image: linear-gradient(#6DF6EB, #57E7DB 70%);
}

.pollLoginNote {
    font-size: 11px;
    text-align: center;
}

.pollThankyouNote {
    font-size: 12px;
    text-align: center;
}

.listButtons {
    text-align: center;
    margin: 10px auto 10px auto;
}

.btnListLetter {
    margin-left: 3px;
    margin-right: 3px;
}


/* MENTIONS */

.mentions-input img {
    width: 30px !important;
    height: auto !important;
    margin-right: 3px;
}

.commentField {
    width: 450px;
    resize: none;
}

.ui-autocomplete {
    position: initial !important;
}


/* GROUP BUILDER */

#signups {
    float: left;
    width: 15%;
    padding-right: 15px;
    border-right: 1px solid #eee;
}

#signups > ul {
    list-style: none;
    margin-left: -40px;
    min-height: 60px;
    text-align: center;
}

#divisions {
    float: left;
    width: 80%;
    padding: 0 15px;
}

#signups > ul > li, .div-groups > .group > ul > li {
    margin: 5px;
}

.division-block {
    margin-bottom: 50px;
}

.division-block .actionButtons  {
    margin: 10px;
    text-align: center;
}

.div-groups {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.div-groups > .group {
    width: 20%;
    margin: 10px;
}

h4.group-title {
    text-align: center;
    font-weight: bold;
}

h4.group-title > span {
    font-size: 14px;
}

h4.group-title > span.complete {
    color: #50B649;
}

h4.group-title > span.incomplete {
    color: #FF0000;
}

.div-groups > .group > ul {
    margin: 0;
    list-style: none;
    min-height: 50px;
    border: 1px solid #eee;
    text-align: center;
}

.div-groups > .group > ul > li {
    margin-left: -40px;
}

.shuffleMatchups {
    float: right;
    margin-right: 3px; 
    margin-top: 5px;
}


/* TEAMS */

#team-logo {
    background-position: 0px 0px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin: auto;
}

.team-avatar {
    background-position: top;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 128px;
    height: 128px;
}

.team-avatar.ladder-rating {
    width: 20px;
    height: 20px;
    margin: auto;
}

.team-avatar.ladder-rating.nr1 {
    width: 35px;
    height: 35px;
}

#team-desc {
    width: 50%;
    margin: 15px auto;
    font-style: italic;
    font-weight: bold;
    text-align: center;
}

/* LEAGUES */

#league-main-container {
    width: 792px;
    float: left;
}

#league-menu-container {
    width: 290px;
    float: right;
}

#leagueLogo {
    background-position: 0px 0px;
    background-size: 100% auto;
    width: 290px;
    height: 156px;
    margin-bottom: 20px;
}

.draftTeams {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.draftTeams .team {
    width: 210px;
    float: left;
    margin: 11px;
    align-self: baseline;
}

.draftTeams .dropdown-toggle {
    cursor: pointer;
}

#adminBadges, #draftRaters {
    margin-top: 6px;
    float: left;
}

#adminBadges > div, #draftRaters > div {
   float: left;
   margin-right: 5px
}

#draft-header {
    font-weight: bold;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    height: 35px;
    margin-bottom: 5px;
    border-bottom: 1px dashed #ccc;
}

#draft-header > div {
    min-width: 30%;
    margin: auto;
}

#draft-header > div.center {
    text-align: center;
}

#draft-header > div.right {
    text-align: end;
}

.team.inactive, #players > tbody > tr > td.inactive {
    opacity: 50%;
}

.team .picking {
    color: #32931C;
}

.badge-admin {
    background-color: #5885af;
}

.badge-streamer {
    background-color: #286090;
}

.badge > a {
    color: #eee
}

.league-news-title {
    font-weight: bold;
    font-size: 16px;
}

.league-news-body {
    margin-top: 8px
}

.league-rm-standings {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.league-rm-standings .standings-wrapper {
    width: max-content;
    margin: 7px auto 7px;
    min-width: 50%;
}

.standings-wrapper .standings-group-name {
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

.standings-wrapper > table > tbody > tr > td {
    padding: 2px;
    border: 0;
}

.league-rm-standings .standings-wrapper > table {
    width: max-content;
    margin: auto;
}

#team-list {
    text-align: left;
    padding-left: inherit;
    list-style-type: none !important;
    width: max-content;
    margin: auto;
}

.matchSettings-container {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
}

.matchSettings {
    border: 1px solid #eee;
    padding: 20px;
    width: 300px;
}

/* MATCHES */

#match-result {
    display: flex;
    align-items: center;
    margin: 20px 0 30px;
}

.dash {
    min-width: 40px;
    align-self: stretch;
}

.btn-challenge {
    background-color: transparent;
}

.opponent {
    flex: 8;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.win {
    color: #008000;
}

.loss {
    color: #e61a1a;
}

.result {
    padding: 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 48px;
    color: #fff;
    background-color: #cacaca;
}

.result.win {
    background-color: #008000;
}

.result.loss {
    background-color: #e61a1a;
}

.result.draw {
    background-color: #cacaca
}

.result.noshow, .result.forfeit {
    font-size: 13px;
    font-style: italic;
}

.ladder-points {
    padding: 10px;
    font-weight: bold;
    font-size: 16px;
}

.ladder-points-none {
    font-size: 9px;
    margin-right: 2px;
    top: 0;
    color: #F4C408;
}

.matchResultBlock {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
}

.mapBlock {
    margin: 20px 0 20px;
}


.potmNote {
    font-size: 12px;
    width: max-content;
    margin: auto;
}

#potmVotes_error {
    width: max-content;
    margin: auto;
}

.potmPlayers {
    width: 60%;
    display: flex;
    justify-content: space-between;
    margin: 0 auto 20px;
}

.potmPoll .potmPlayers {
    width: auto;
}

.potmPlayers > div {
    width: max-content;
    margin: 0 auto;
}

.potmPlayers > div > div > div {
    width: max-content;
}

.potmPlayers span.subNote {
    font-size: 12px;
    font-style: italic;
}


/* IMAGE VIEWER */

img.image-viewer {
    border-radius: 5px;
    cursor: zoom-in;
    transition: 0.3s;
}

img.image-viewer:hover {
    opacity: 0.7;
}

#image-viewer {
    display: none;
    position: fixed;
    z-index: 3001;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    cursor: zoom-out;
}

.image-modal-content {
    margin: auto;
    display: block;
    width: 75%;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

#image-viewer .close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f5f5f5;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    opacity: .7;
}

#image-viewer .close:hover,
#image-viewer .close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}

/* Calendar */

#calendarContainer {
    width: 100%;
    border-right: 1px solid #DDD;
    border-bottom: 1px solid #DDD;
    display: table;
    overflow: hidden;
    border-collapse: collapse;
}

#calendarContainer a {
    color: #000000;
}

#calendarContainer a:hover {
    color: var(--realm-accent-color2, #2CAFE4);
    text-decoration: none;
}

.calendar-row {
    display: table-row;
}

.calendar-weekDay {
    display: table-cell;
    height: 110px;
    min-width: 110px;
    border-top: 1px solid #DDD;
    border-left: 1px solid #DDD;
    vertical-align: top;
}

.calendar-dayName {
    display: table-cell;
    width: 110px;
    height: 20px;
    border-top: 1px solid #DDD;
    border-left: 1px solid #DDD;
    background-color: #EEEEEE;
    text-align: center;
    font-size: 12px;    
    font-weight: 700;    
}

.calendar-today {
    background-color: #F5F5F5;
}

.calendar-dayNum {
    background-color: #FAFAFA;
    float: right;
    text-align: right;
    width: 100%;
    height: 20px;
    border-bottom: 1px solid #DDD;
}

.calendar-dayNum > span {
    padding: 2px;
    font-weight: 600;
    color: #636363;
}

.calendar-inactive {
    background-color: #ECECEC;
}

.calendar-event {
   display: inline-block;
   width: 100%;
   margin: 2px 0 2px;
   font-size: 12px;    
   text-align: center;
}

.calendar-event > div {
    display: block;
}

.calendar-event > div:first-child {
    font-weight: bold;
}

.calendarNavigator {
    margin: 0 auto 10px;
    width: max-content;
}

.calendarNavigator .glyphicon {
    top: 2px;
    margin-right: 3px;
    margin-left: 3px;
}

.calendarNavigator > select {
    height: 20px;
    width: auto;
    display: inline-block;
    margin: 10px 5px 10px 5px;
}


/* Availability grid */

#availability-grid {
    margin: 10px 0;
    border-spacing: 0;
}

#availability-grid td, #availability-grid th {
    border: 1px solid #b8b8b8;
}

#availability-grid td.slot {
    background: #fff;
    user-select: none;
    cursor: pointer;
    height: 32px;
    width: 60px;
    position: relative;
}

#availability-grid td.slot.preview {
    box-shadow: inset 0 0 0 2px #3c763d;
}

#availability-grid td.slot.active {
    background-color: #5cb85c;
}

#availability-grid td.slot.active::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 4px;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

#availability-grid td.slot.past {
    background-color: #f5f5f5 !important;
    cursor: not-allowed;
    opacity: 0.6;
}

#availability-grid .slot-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 24px;
    height: 24px;
    border-radius: 50%;

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

    font-size: 11px;
    font-weight: 700;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;

    color: #fff;

    pointer-events: none;
    z-index: 3;

    box-shadow: 0 0 6px rgba(0,0,0,0.12);
}

#availability-grid .slot-count.hidden {
    display: none !important;
}

#availability-grid th {
    background-color: #fafafa;
}

#availability-grid th,
#availability-grid td {
    text-align: center;
    vertical-align: middle !important;
}

#availability-grid td.time-col {
    background-color: #fafafa;
    font-weight: bold;
    width: 80px;
}

#weekPrev, #weekNext {
    padding: 0 5px;
}

#weekPrev.disabled,
#weekNext.disabled {
    opacity: 0.3;
    pointer-events: none; /* 🔥 prevents clicks */
    cursor: default;
}