@font-face {
    font-family: tf2;
    src: url(../css/tf2build.ttf);
}

@font-face {
    font-family: danub;
    src: url(../css/DANUB___.TTF);
}

@font-face {
    font-family: danube;
    src: url(../css/DANUBE__.TTF);
}

body {
    background-color: #bab5b2;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    color: #444;
    font-family: Verdana, Arial, Tahoma, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
    font-size: 11px;
    line-height: 135%;
    margin: 0px;
    padding: 0px; /* required for Opera to have 0 margin */
    text-align: center /* centers board in MSIE */
}

a:link {
    text-decoration: none;
    color : #4d4742;
}

a:active {
    color: #b05015;
}

a:visited {
    text-decoration: none;
    color : #4d4742;
}

a:hover {
    color: #b05015;
}

.inputbox {
    border: 1px solid #000000;
    width: 105px;
    font-size: 14px;
    background-color: rgb(215, 215, 215);
    width: 200px;
    padding-left: 2px;
}

.dbg.b {
    font-size: 12px;
    font-weight: bold;
}
/** ================ Permissions ================ **/

.tablerow1 {
    background-color: #eaebeb;
    padding:6px;
}

.tablerow2 {
    background-color: rgb(236, 213, 216);
    border-color: #eaebeb;
    border-style:solid;
    border-width:1px;
    padding:6px;
}

.tablerow4 {
    background-color: #736B63;
    border-style:solid;
    border-width:1px;
    padding:6px;
    color:#fff;
}

/* =============== FORMS ==================== */

.badentry{
    color:#CC0000;
    width:195px;
    display:none;
}

/* ================ Popup Boxes ============== */
.dialog-holder{
    border-collapse:collapse;
    margin:auto;
    table-layout:fixed;
    width:465px;
}

td.dialog-topleft{
    background-image:url(../images/dialog/dialog_topleft.png) !important;
}
td.dialog-border{
    background-image:url(../images/dialog/dialog_border.png) !important;
}
td.dialog-topright{
    background-image:url(../images/dialog/dialog_topright.png) !important;
}
td.dialog-bottomright{
    background-image:url(../images/dialog/dialog_bottomright.png) !important;
}
td.dialog-bottomleft{
    background-image:url(../images/dialog/dialog_bottomleft.png) !important;
}

td.dialog-topleft, td.dialog-topright, td.dialog-bottomright, td.dialog-bottomleft {
    height:10px;
    overflow:hidden;
    padding:0px !important;
    width:10px !important;
}

h2{
    color:white;
    font-size:14px;
    font-weight:bold;
    margin:0px;
    display:block;
    padding:4px 10px 5px;
}

h2.error{
    background:#b46d6d none repeat scroll 0%;
    border:1px solid #983b3b;
}

h2.info{
    background:#6d8bb4 none repeat scroll 0%;
    border:1px solid #3b6298;
}

h2.warning{
    background:#b4ae6d none repeat scroll 0%;
    border:1px solid #887a2c;
}

h2.ok{
    background:#75b46d none repeat scroll 0%;
    border:1px solid #46983b;
}


.icon-ok{
    background-image:url(../images/ok.png);
    float:left;
    height:48px;
    overflow:hidden;
    padding:0px !important;
    width:48px !important;
}
.icon-error{
    background-image:url(../images/warning.png);
    float:left;
    height:48px;
    overflow:hidden;
    padding:0px !important;
    width:48px !important;
}
.icon-warning{
    background-image:url(../images/warning.png);
    float:left;
    height:48px;
    overflow:hidden;
    padding:0px !important;
    width:48px !important;
}
.icon-info{
    background-image:url(../images/info.png);
    float:left;
    height:48px;
    overflow:hidden;
    padding:0px !important;
    width:48px !important;
}


.dialog-content{
    background:#FFFFFF none repeat scroll 0%;
    border-color:#555555;
    border-style:solid;
    border-width:0px 0px 1px 0px;
}
div.dialog-body{
    border-bottom:1px solid #CCCCCC;
    padding:10px;
}
div.dialog-control{
    background:#F2F2F2 none repeat scroll 0%;
    padding:8px;
    text-align:right;
    vertical-align:bottom
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {display: inline-block;}

/* ================ STRUCTURE ================ */

#mainwrapper {
    flex: 1;
    width: 984px;
    margin: 0 auto 0 auto;  /*centers the box, no matter the overall width */
    text-align: left; /* re_aligns text to left second part of two part MSIE centering workaround */
    height: 100%;
}

#header {
    width: 984px;
    margin: 0 auto 0 auto;  /*centers the box, no matter the overall width */
    height: 200px;
    border: 0;
}

#tabsWrapper {
    width: 100%;
    margin: 0 auto;
    text-align: left;
    height: 50px;
    background-color: #38322c;
}

#innerwrapper {
    text-align: left; /* re_aligns text to left, second part of two part MSIE centering workaround */
}
#navigation {
    width: 100%;
    height: 22px;
}

#breadcrumb {
    width: 100%;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
#content_title {
    font-size: 26px;
    color: #4d4742;
    margin-bottom: 10px;
}

#content {
    height: 100%;
    overflow:hidden;
}

#footer {
    clear:both;
    color: #919191;
    width: 100%;
    padding: 20px 0 20px 0;
    background-color: #38322c;
    margin-top: 40px;
}

/** ================ Header ================ **/

#head-logo {
    float: left;
    margin-top: 73px;
}

.searchbox {
    width: 200px;
    padding: 10px 6px 12px 6px;
    background-color: #DADFE1;
    color: #34495E;
    border:0;
    margin-bottom: 5px;
}

/** ================ Tabs ================ **/

#tabs {
    float: left;
    width: 100%;
    margin-left: 0;
}

#tabs ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#tabs ul li {
    float: left;
}

#tabs ul li a {
    border: 0;
    display: block;
    padding: 0 16px;
    text-align: center;
    color: #eee;
    font-size: 11px;
    font-weight: bolder;
    line-height: 50px;
    text-decoration: none;
    text-transform: uppercase;
}

#tabs ul li a:hover {
    border: 0;
    color: #eee;
    background-color: #2A2723;
}

#tabs ul li.active {
}

#tabs ul li.active a {
    /* padding: 0.1em 0.6em; */
    padding: 0 16px;
    color: white;
    background-color: #2A2723;
}

#tabs ul li.active a:hover {
    color: white;
    text-decoration: none;
}

h4 {
    margin:0px;
}

h3 {
    margin-top:5px;
    margin-bottom:15px;
    font-size: 12px;
    padding: 10px;
    font-weight: bold;
    background-color: #A69E97;
    color: #e6e6e6;
}
/** ================ ToolTips ================ **/
.tool-tip {
    color: #fff;
    width: 139px;
    z-index: 13000;
    text-align:left;
}

.tool-title {
    font-weight: bold;
    font-size: 14px;
    margin: 0;
    color: #DADFE1;
    /*text-decoration:underline;*/
    border-bottom: #DADFE1 dotted 1px;
    padding: 8px 8px 4px;
    background-color: rgba(108, 122, 137, 0.7);
}

.tool-text {
    font-size: 11px;
    padding: 4px 8px 8px;
    background-color: rgba(108, 122, 137, 0.7);
}
.perm-tip {
    color: #fff;
    width: 210px;
    z-index: 13000;
    text-align:left;
}

.perm-title {
    font-weight: bold;
    font-size: 14px;
    margin: 0;
    color: #DADFE1;
    /*text-decoration:underline;*/
    border-bottom: #DADFE1 dotted 1px;
    padding: 8px 8px 4px;
    background: url(../images/tooltip_sqr.png) top left;
}

.perm-text {
    font-size: 11px;
    padding: 4px 8px 8px;
    background: url(../images/tooltip_sqr.png) bottom right;
}
/** ================ Navigation ================ **/

#nav {
    font-family: tf2;
    position: absolute;
    top: 10px;
    color: #2A2723;
    float: left;
    width: 74%;
    font-size: 13px;
    transition: all 0.5s ease;
}

a.nav_link:link,
a.nav_link:visited {
    color: #2A2723;
    text-decoration: none;
    padding: 0 5px;
}

a.nav_link:hover {
}

#nav a:hover, #nav a.first:hover {
    color : #666666;
    text-decoration: none;
    transition: all 0.5s ease;
}
#nav a {
    color: #2A2723;
}
#nav a.first {
    border-left: 0px none;
}

#nav a.active {
    color: #666666;
}

#search {
    text-align: right;
    margin-top: 55px;
}

#searchbtn{
    width: 100%;
    padding: 8px 12px;
    border-radius: 0;
    font-size: 14px;
    text-transform: uppercase;
}

.button {
    border: 0;
    width: 60px;
    height: 38px;
    color: #DADFE1;
    background-color: #5885A2;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
}

/** ================ Content ================ **/
/* Buttons
.btn{
	background-color: #e9e9e9;
	background-repeat: no-repeat;
	background-position: 2px 50%;
	padding:1px 1px 1px 20px;
	font-weight: bold;
	margin: 0 0.5em;
} */

.btn{
    font-family: Verdana, Arial, Tahoma, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
    font-weight:400;
    font-size: 13px;
    color: #fff;
    border:1px solid;
    border-radius: 3px;
    padding:6px 12px;
    transition: all 0.5s ease;
}

.btnhvr{
    color: #fff;
    font-family: Verdana, Arial, Tahoma, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
    font-weight: 400;
    border: 1px solid;
    border-radius: 3px;
    padding: 6px 12px;
    transition: all 0.5s ease;
}

.game{
    background-color: #8CC152;
    border-color: #8CC152;
}
.game:hover {
    background-color: #A0D468;
    border-color: #A0D468;
}
.ok{
    background-color: #729E42;
    border-color: #729E42;
}
.ok:hover {
    background-color: #558126;
    border-color: #558126;
}
.save{
    background-color: #7D4071;
    border: 1px solid #7D4071;
}
.cancel{
    background-color: #CF7336;
    border: 1px solid #CF7336;
}
.login{
    width: 100%;
    text-transform: uppercase;
}
.refresh{
    background-color: #3BAFDA;
    border-color: #3BAFDA;
}
.refresh:hover {
    background-color: #4FC1E9;
    border-color: #4FC1E9;
}

.msg-button {
    float:right;
    position:absolute;
    top:85px;
    left:480px;
}
.msgbox-border {
    position:fixed !important;
    position:absolute;
    overflow:hidden;
    top:250px;
    padding:15px;
    margin: auto 210px;
    width: 520px;
}
#msg-red {
    background-color:#fefad3;
    border:#E80909 1px solid;
    color:#E80909;
    width: 500px;
    padding: 8px;
    height: 75px;
    overflow:hidden;
}

#msg-red-debug {
    background-color: #ffdd87;
    border: 1px solid #ffce54;
    color: #8a6d3b;
    width: 100%;
    padding: 8px;
    margin: 10px auto;
    overflow: hidden;
}

#msg-blue-debug {
    background-color: #7cd1ef;
    border: 1px solid #4fc1e9;
    color: #31708f;
    width: 100%;
    padding: 8px;
    margin: 10px auto;
    overflow: hidden;
}

#msg-red b, #msg-green b, #msg-blue b, #msg-red-debug b,#msg-blue-debug b, #msg-green-debug b {
    font-size: 16px;
}
#msg-red i, #msg-blue i, #msg-green i, #msg-red-debug i, #msg-blue-debug i, #msg-green-dbg i {
    float:left;
    margin-right: 7px;
}
#msg-green {
    background-color:#fcf7c9;
    border:#339933 1px solid;
    color:#339933;
    width: 500px;
    padding: 8px;
    height: 75px;
    overflow:hidden;
}

#msg-green-dbg {
    background-color:#fcf7c9;
    border:#339933 1px dotted;
    color:#339933;
    width: 75%;
    padding: 8px;
    margin: 10px auto;
    overflow:hidden;
}

#msg-blue {
    background-color:#fcf7c9;
    border:#0066FF 1px solid;
    color:#0066FF;
    width: 500px;
    padding: 8px;
    height: 75px;
    overflow:hidden;
}
#log_res {
    overflow: auto;
}


.front-module-line {
    background-color: #A69E97;
    color: #fff;
}

}

/** ================ Login ================ **/

#login {
    width: 305px;
    height: 260px;
    background-color: #e0e0e0;
    margin: 30px auto;
    padding: 12px;
}

#lostpassword {
    width: 305px;
    margin: 30px auto;
    padding: 12px;
    background-color: #e0e0e0;
}


#loginLogo {
    text-align: center;
    height: 60px;
}

#loginUsernameDiv,
#loginPasswordDiv,
#loginRememberMeDiv,
#loginSubmit {
    padding: 6px 0;
}


.loginmedium {
    width: 278px;
    padding: 6px 12px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 3px;
}


#loginSubmit {
    text-align: right;
}

#loginbutton {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #000;
    border: 2px outset #999;
    color: #FFF;
    font-weight: 700;
}

#loginOtherlinks {
    border-top: 1px solid #aaa9a9;
    text-align: center;
    padding: 8px 0;
    margin-top: 26px;
}



/** ================ Admin ================ **/
/* Admin table */
.rowdesc {
    color:#0B1B51;
    font-weight:bold;
}

/* CPanel */
#cpanel {
    width: 100%;
    height: 120px;
    background-color: #e0e0e0;
}

#cpanel ul {
    margin: 0;
    padding: 10px;
    list-style: none;
}

#cpanel ul li {
    margin-right: 2px;
    float: left;
    text-align: center;
}

#cpanel ul li a {
    display: block;
    height: 97px !important;
    height: 100px;
    width: 108px !important;
    width: 110px;
    vertical-align: middle;
    text-decoration: none;
    padding: 2px 5px 1px 5px;
    margin-right: 10px;
}

#cpanel ul li a:hover {
    color : #333;
    padding: 3px 4px 0px 6px;
    text-decoration: none
}

#cpanel ul li.active {
}

#cpanel ul li img {
    margin-top: 13px;
}

/* Admin Page Menu */

#admin-page-menu {
    width: 20%;
    float: left;
}

/* Admin Page Content */

#admin-page-content {
    width: 75%;
    float: right;
    background-color: #e0e0e0;
    padding: 10px;
}

/** ================ Permissions ================ **/
#permis-drop{
    width: 676px;
    float: right;
    height: 100%;
    border: 1px solid #DDD;
    overflow:hidden;
    padding:7px;
    margin: 0 auto 0 auto;
}
.permis-container {
    width: 690px;
    float: none;

    height: 100%;
    overflow:hidden;
}

.permis-container ul {
    margin: 0;
    padding: 10px;
    list-style: none;
}

.permis-container ul li {
    margin-right: 2px;
    float: left;
    text-align: center;
}

.permis-container ul li a {

    display: block;
    height: 37px;
    width: 100px;
    vertical-align: middle;
    text-decoration: none;
    border: 1px solid #DDD;
    padding: 7px 5px 1px 5px;
    margin-right: 20px;
    margin-bottom:20px;
}
.permis-container ul li a:hover {
    color : #333;
    background-color: #f1e8e6;
    border: 1px solid #c24733;
    padding: 8px 4px 0px 6px;
    cursor:move;
}

/** ================ Frontpage ================ **/

#front-introduction {
    padding: 5px;
}

#front-servers {
    margin-bottom: 30px;
}

#front-servers hr {
    border: 1px solid #DDD;
    margin-bottom: 5px;
}

.front-module {
    width: 410px;
}
.front-module-intro {
    margin: 11px;
}

.fmsd {
    font-size: 10px;
}

/** ================ Submit ================ **/

#submit-main {
    background-color: #e0e0e0;
    padding: 10px;
}

.faux-button {
    padding: 2px 10px;
    font-size: 11px;
    background-color: #d7d8d8;
    border: 2px outset #999;
    color: #b80202;
    border: 1px solid #aaa9a9;
    font-weight: 600;
    letter-spacing: 1px;
}

.mandatory {
    color:#FF0000;
}

/** ================ Servers ================ **/

#servers {
    width: 850px;
    padding: 5px;
    border: 1px solid #DDD;
    border-top: 2px solid #aaa9a9;
}

#singleserver {
    width: 500px;
    padding: 5px;
    border: 1px solid #DDD;
    border-top: 2px solid #aaa9a9;
    float: left;
}
#singleoverview {
    width: 350px;
    padding: 5px;
    border: 1px solid #DDD;
    border-top: 2px solid #aaa9a9;
    float: right;
}

.activeplayer {
    border-bottom: 1px solid #DDD;
    border-top: 1px solid #DDD;
    background-color: #eaebeb;
}

/** ================ Banlist ================ **/

.tbl_hover {
    cursor: pointer;
    background-color: #eaebeb;
}
.tbl_out {
    background-color: #fff;
}

table.listtable {
    font-family: Verdana, Arial, Tahoma, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
    font-size: 10px;
    border: 1px solid;
    border-color: transparent;
    border-collapse:collapse;
}

table.listtable2 {
    font-family: Verdana, Arial, Tahoma, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
    font-size: 10px;
    color: #000000;
    border: #c5c5c5 solid;
    border-width : 1px 1px 1px 1px;
}

table.listtable3 {
    font-family: Verdana, Arial, Tahoma, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
    font-size: 11px;
    color: #000000;
    border: #c5c5c5 solid;
    border-width : 0px 0px 0px 0px;
}

td.listtable_top {
    font-size: 11px;
    font-weight: bold;
    background-color: #2A2723;
    padding: 3px 10px 3px 10px;
    color: #e6e6e6;
    height: 30px;
    text-transform: uppercase;
}

a.listtable_top {
    color: #fff;
}


td.listtable_1 {
    font-family: Verdana, Arial, Tahoma, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
    font-size: 10px;
    padding-top: 4px;
    padding-right: 4px;
    padding-bottom: 4px;
    padding-left: 4px;
    background-color: #e0e0e0;
}

td.listtable_1_unbanned {
    font-family: Verdana, Arial, Tahoma, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
    font-size: 10px;
    padding-top: 4px;
    padding-right: 4px;
    padding-bottom: 4px;
    padding-left: 4px;
    background-color: #C8F7C5;
}

td.listtable_1_permanent {
    font-family: Verdana, Arial, Tahoma, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
    font-size: 10px;
    padding-top: 4px;
    padding-right: 4px;
    padding-bottom: 4px;
    padding-left: 4px;
    background-color: #F1A9A0;
}

td.listtable_1_banned {
    font-family: Verdana, Arial, Tahoma, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
    font-size: 10px;
    padding-top: 4px;
    padding-right: 4px;
    padding-bottom: 4px;
    padding-left: 4px;
    background-color: #FDE3A7;
}

td.listtable_2 {
    font-family: Verdana, Arial, Tahoma, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
    font-size: 10px;
    border: #CCC solid;
    border-width: 0px 0px 1px 1px;
    padding-top: 2px;
    padding-right: 4px;
    padding-bottom: 2px;
    padding-left: 4px;
    background-color: #eaebeb;
}

.ban-edit {
    padding: 5px;
}

.ban-edit ul {
    margin: 0;
    padding: 0 10px;
    list-style: none;
}

.ban-edit ul li {
    text-align: left;
}

.ban-edit li a {
    display: block;
    height: 20px;
    text-decoration : none;
    border-bottom: 1px solid #DDD;
    padding: 2px 5px 1px 5px;
}

.ban-edit ul li a:hover {
    color : #333;
    padding: 3px 4px 0px 6px;
}

#banlisttitle {
    width: 50%;
    float: left;
}

#banlist-nav {
    width: 60%;
    float: right;
    text-align: right;
}

#banlist {
    width: 100%;
    float:left;
    margin-top: 10px;
}


/** ================ Theme Page CSS ================ **/
#current-theme-holder {
    height: 235px;
    background: #eaebeb;
    padding: 5px;
}

.largetitle {
    font-size: 18px;
    border-bottom: 1px dotted #cdcdcd;
    line-height: 20px;
}
#current-theme-holder b {
    font-size: 16px;
    border-bottom: 1px dotted #cdcdcd;
}

#current-theme-screenshot {
    width: 250px;
    float: left;
    border: 3px solid #ccc;
    clear: none;
    margin-top: 10px;
}

#current-theme-details {
    width: 370px;
    float: right;
    clear: none;
    margin-top: 10px;
}


#theme-list ul {
    margin: 2px;
    padding: 0 10px;
    list-style: none;
}

#theme-list ul li {
    text-align: left;
    margin: 3px;
}

#theme-list ul .active
{
    color : #333;
    font-weight: bold;
}

#theme-list ul li a {
    display: block;
    height: 20px;
    text-decoration : none;
    border-left: 5px solid #CCC;
    padding: 2px 5px 1px 5px;
}

#theme-list ul li a .tab-img {
    vertical-align:baseline;
    border:none;
}

#theme-list ul li a:hover {
    color : #333;
    border-left: 5px solid #c24733;
    padding: 2px 5px 1px 5px;
}

#theme-list ul li.active a:hover  {
    color : #333;
    background-color: #f1e8e6;
    border: 1px solid #c24733;
    border-left: 5px solid #c24733;
    background-image: url(../images/admin/rightarrow.png);
    background-position: center right;
    background-repeat: no-repeat;
    padding: 2px 5px 1px 5px;
}

/** ======= Context Menu Styles ======= **/

div.contextmenu {
    position: absolute;
    top: 0;
    left: 0;
    font-family: Verdana, Arial, Tahoma, Trebuchet MS, Sans-Serif, Georgia, Courier, Times New Roman, Serif;
    background-color: #eaeaea;
    border: 1px solid #dddddd;
    border-left: 5px solid #dddddd;
}
div.contextmenu a {
    display: block;
    text-decoration: none;
    cursor: default;
    outline: none;
    font-size: 11px;
}
div.contextmenu .separator {
    height: 1px;
    padding: 0;
    overflow: hidden;
}

.contextmenu {
    width: 12em;
    /*background: #F4F5EB;*/
    border-top: 1px solid #ddd;
    /*border-left: 1px solid #ddd;*/
    border-right: 1px solid #666;
    border-bottom: 1px solid #666;
    padding: 2px 0;
}
.contextmenu a {
    color: #555;
    padding: 4px 15px;
    margin: 0 2px;
}
.contextmenu a:hover {
    background-color: #F4F5EB;
}
.contextmenu a.disabled {
    color: #bbb;
}
.contextmenu a.disabled:hover {
    background: #F4F5EB;
    color: #bbb;
}
.contextmenu .separator {
    border-bottom: 1px solid #fff;
    background: #999;
    margin: 4px 4px;
}
.contextmenu .head {
    font-size: 12px;
    background-color: #DFE3E9;
    padding-top: 4px;
    padding-right: 5px;
    padding-bottom: 3px;
    padding-left: 5px;
    color: #fff;
}

.select {
    background: #fff;
    font-size: 13px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.textbox {
    background: #fff;
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.file {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 3px;
}

.user {
    color: #eee;
    float: right;
    margin-top: 18px;
    margin-right: 10px;
}

.user a:visited, .user a:link, .user a:hover {
    color: #bd754b;
}

.front-module-header {
    margin-bottom: 3px;
    font-size: 12px;
    font-weight: 600;
}

#breadcrumb > a:last-child {
    font-weight: 600;
}

hr {
    border: 1px solid #ddd;
}

#admin-page-menu > a {
    display: block;
    height: 20px;
    text-decoration : none;
    padding: 9px 0px 3px 8px;
    background-color: #4f463e;
    color: #fff;
    cursor: pointer;
}

#admin-page-menu > a:hover {
    color : #fff;
    background-color: #3d3631;
}

#admin-page-menu > .active {
    font-weight: bold;
}

.tabcontent {
    display: none;
}

.tabcontent:first-of-type {
    display: block;
}

/** ======= Mobile Design Styles ======= **/

@media only screen and (min-width: 1280px) {
    .dashboard-comm-blocks {
        float: left;
        width: 49%;
    }
    .dashboard-ban-blocks {
        float: right;
        width: 49%;
    }
    .dashboard-blocks-separate {
        display: none;
    }
    .dashboard-ban-block-date {
        text-align: center;
    }
}

@media only screen and (max-width: 1279px) {
    .dashboard-comm-blocks {
        width: 100%;
    }
    .dashboard-ban-blocks {
        width: 100%;
    }    
    .dashboard-blocks-separate {
        display: block;
    }
    .dashboard-ban-block-date {
        text-align: left;
    }
    
    #header {
        width: 984px;
        margin: 0 auto 0 auto;  /*centers the box, no matter the overall width */
        height: 150px;
        border: 0;
    }    
    #head-logo {
        float: left;
        margin-top: 60px;
    }
    #search {
        text-align: right;
        margin-top: 40px;
    }
}

/* ============================================================
   3te PGD theme — aligned with main site (xampp/htdocs/3tepgd)
   Colors: #1a1a1a / #2a2a2a / #cc5200 / #cccccc / #f0f0f0
   ============================================================ */

:root {
    --pgd-bg: #1a1a1a;
    --pgd-panel: #2a2a2a;
    --pgd-panel-2: #333333;
    --pgd-accent: #cc5200;
    --pgd-accent-soft: rgba(204, 82, 0, 0.28);
    --pgd-text: #cccccc;
    --pgd-text-strong: #f0f0f0;
    --pgd-muted: #888888;
    --pgd-border: rgba(255, 255, 255, 0.1);
    --pgd-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

body {
    background-color: var(--pgd-bg) !important;
    background-image:
        linear-gradient(135deg, rgba(26, 26, 26, 0.90) 0%, rgba(26, 26, 26, 0.62) 40%, rgba(20, 20, 20, 0.82) 100%),
        url(../images/pgd-wallpaper.jpg) !important;
    background-size: cover, cover !important;
    background-position: center center, center center !important;
    background-repeat: no-repeat, no-repeat !important;
    background-attachment: fixed, fixed !important;
    color: var(--pgd-text) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

a:link,
a:visited {
    color: #e0a070 !important;
}

a:hover,
a:active {
    color: var(--pgd-accent) !important;
}

#mainwrapper {
    width: min(1100px, 96%) !important;
    max-width: 1100px;
}

#header {
    width: min(1100px, 96%) !important;
    height: auto !important;
    min-height: 120px;
    padding: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-sizing: border-box;
}

#head-logo {
    float: none !important;
    margin-top: 0 !important;
}

#head-logo img {
    max-height: 72px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

#search {
    float: none !important;
    margin-top: 0 !important;
    text-align: right !important;
}

.searchbox {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--pgd-text) !important;
    border: 1px solid var(--pgd-border) !important;
    border-radius: 8px !important;
    padding: 0.55rem 0.75rem !important;
    width: 200px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.searchbox:focus {
    outline: none;
    background: rgba(204, 82, 0, 0.12) !important;
    border-color: rgba(204, 82, 0, 0.4) !important;
    box-shadow: 0 0 0 2px rgba(204, 82, 0, 0.12);
}

.button {
    background-color: var(--pgd-accent) !important;
    color: #fff !important;
    border-radius: 8px !important;
    height: auto !important;
    min-height: 36px;
    padding: 0 0.85rem !important;
    width: auto !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.button:hover {
    background-color: #e05a00 !important;
    transform: scale(1.02);
}

#tabsWrapper {
    background: rgba(0, 0, 0, 0.35) !important;
    border-bottom: 1px solid var(--pgd-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    height: auto !important;
    min-height: 0 !important;
    padding: 0.75rem 1.25rem;
    box-sizing: border-box;
    /* Match main site rem sizing (SB body is 11px) */
    font-size: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 200;
    overflow: hidden;
}

#tabs {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    float: none !important;
    width: 100%;
    box-sizing: border-box;
}

#tabs > ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#tabs > ul:first-of-type {
    flex: 1 1 auto;
    min-width: 0;
}

#tabs > div {
    float: none !important;
    display: flex;
    align-items: center;
    order: 3;
}

#tabs > div ul {
    gap: 0.35rem 0.5rem;
}

#tabs ul li {
    float: none;
}

#tabs ul li a {
    color: var(--pgd-text) !important;
    font-weight: 500 !important;
    font-size: 0.88rem !important;
    text-transform: none !important;
    letter-spacing: normal;
    line-height: 1.25 !important;
    margin: 0;
    padding: 0.45rem 0.7rem !important;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

#tabs ul li a:hover {
    color: var(--pgd-text-strong) !important;
    background: rgba(204, 82, 0, 0.2) !important;
    border-color: rgba(204, 82, 0, 0.25);
}

#tabs ul li.active a,
#tabs ul li.active a:hover {
    color: var(--pgd-text-strong) !important;
    background: var(--pgd-accent-soft) !important;
    border-color: rgba(204, 82, 0, 0.4);
    border-bottom-color: var(--pgd-accent) !important;
    box-shadow: 0 2px 8px rgba(204, 82, 0, 0.2);
}

#tabs ul li a[style*="background-color: #70B04A"],
#tabs ul li a[style*="background-color:#70B04A"] {
    background: rgba(204, 82, 0, 0.35) !important;
    border-color: rgba(204, 82, 0, 0.45) !important;
}

#tabs ul li a[style*="background-color: #B8383B"],
#tabs ul li a[style*="background-color:#B8383B"] {
    background: rgba(220, 53, 69, 0.28) !important;
    border-color: rgba(220, 53, 69, 0.4) !important;
}

.user {
    color: var(--pgd-text) !important;
    float: none !important;
    margin: 0 0.35rem 0 auto !important;
    font-size: 0.88rem;
    line-height: 1.25;
    order: 2;
    white-space: nowrap;
}

.user a:visited,
.user a:link,
.user a:hover {
    color: var(--pgd-accent) !important;
}

#nav a,
#nav a.first,
#nav a.active {
    color: var(--pgd-text) !important;
}

#nav a:hover,
#nav a.first:hover,
#nav a.active {
    color: var(--pgd-accent) !important;
}

#content_title {
    color: var(--pgd-text-strong) !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

#breadcrumb {
    color: var(--pgd-muted) !important;
}

#innerwrapper {
    background: transparent !important;
    padding: 0.35rem 0 2rem;
}

#content {
    background: var(--pgd-panel);
    border-radius: 10px;
    box-shadow: var(--pgd-shadow);
    border: 1px solid var(--pgd-border);
    padding: 0.45rem 1.1rem 1rem;
    box-sizing: border-box;
}

h3 {
    background: rgba(204, 82, 0, 0.25) !important;
    color: var(--pgd-text-strong) !important;
    border-radius: 6px;
    border-left: 4px solid var(--pgd-accent);
}

.front-module-intro {
    background: transparent !important;
    color: var(--pgd-text) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.15rem 0 0.35rem !important;
    margin-bottom: 0.65rem;
    overflow: visible !important;
    text-align: center;
}

.front-module-intro table {
    width: auto !important;
    margin: 0 auto !important;
    border: none !important;
    background: transparent !important;
}

.front-module-intro td {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    text-align: center !important;
}

.front-module-intro img {
    border: 1px solid #000 !important;
    outline: none !important;
    display: inline-block;
    max-width: 100%;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    vertical-align: middle;
    box-sizing: border-box;
}

.front-module {
    background: var(--pgd-panel) !important;
    border-radius: 10px;
    border: 1px solid var(--pgd-border);
    box-shadow: var(--pgd-shadow);
    overflow: hidden;
    margin-bottom: 1rem;
}

.front-module-header {
    background: rgba(0, 0, 0, 0.35) !important;
    color: var(--pgd-accent) !important;
    font-weight: 600;
}

.front-module-header td[align="left"],
.front-module-header td:first-child {
    padding-left: 12% !important;
}

.front-module-header td[align="right"],
.front-module-header td:last-child {
    padding-right: 12% !important;
}

.front-module-line {
    background-color: rgba(204, 82, 0, 0.35) !important;
}

table.listtable,
table.listtable2,
table.listtable3 {
    color: var(--pgd-text) !important;
    background: transparent !important;
    width: 100%;
}

td.listtable_top {
    background-color: rgba(0, 0, 0, 0.45) !important;
    color: var(--pgd-text-strong) !important;
    border-bottom: 2px solid var(--pgd-accent) !important;
}

td.listtable_1 {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: var(--pgd-text) !important;
    border-bottom: 1px solid var(--pgd-border) !important;
}

td.listtable_2 {
    background-color: rgba(255, 255, 255, 0.02) !important;
    color: var(--pgd-text) !important;
    border-color: var(--pgd-border) !important;
}

td.listtable_1_unbanned {
    background-color: rgba(140, 193, 82, 0.25) !important;
    color: #e8ffe0 !important;
}

td.listtable_1_permanent {
    background-color: rgba(220, 53, 69, 0.28) !important;
    color: #ffe0e3 !important;
}

td.listtable_1_banned {
    background-color: rgba(204, 82, 0, 0.28) !important;
    color: #ffe8d6 !important;
}

.tbl_out {
    background-color: transparent !important;
}

.tbl_hover {
    background-color: rgba(204, 82, 0, 0.18) !important;
}

.tablerow1 {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: var(--pgd-text) !important;
}

.tablerow2 {
    background-color: rgba(204, 82, 0, 0.12) !important;
    border-color: var(--pgd-border) !important;
    color: var(--pgd-text) !important;
}

.tablerow4 {
    background-color: rgba(0, 0, 0, 0.4) !important;
    color: var(--pgd-text-strong) !important;
}

.inputbox {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--pgd-text-strong) !important;
    border: 1px solid var(--pgd-border) !important;
    border-radius: 6px;
}

.btn,
.btnhvr {
    border-radius: 6px !important;
}

.ok,
.game {
    background-color: var(--pgd-accent) !important;
    border-color: var(--pgd-accent) !important;
}

.ok:hover,
.game:hover {
    background-color: #e05a00 !important;
    border-color: #e05a00 !important;
}

.cancel {
    background-color: #8a3a2a !important;
    border-color: #8a3a2a !important;
}

#footer {
    background: rgba(0, 0, 0, 0.72) !important;
    color: var(--pgd-muted) !important;
    border-top: 1px solid var(--pgd-border);
    margin-top: 2rem !important;
}

#footer a,
#footqversion a {
    color: var(--pgd-text) !important;
}

#footer a:hover {
    color: var(--pgd-accent) !important;
}

#msg-red,
#msg-green,
#msg-blue,
.msgbox-border {
    color: #222;
}

@media only screen and (max-width: 1279px) {
    #header {
        width: min(1100px, 96%) !important;
        height: auto !important;
        flex-wrap: wrap;
    }
    #head-logo {
        margin-top: 0 !important;
    }
    #search {
        margin-top: 0.5rem !important;
    }
}

/* ---- Admin panel / forms (dark fields) ---- */

#admin-page-content,
#cpanel,
#submit-main,
#login,
#lostpassword,
#permis-drop {
    background-color: var(--pgd-panel) !important;
    color: var(--pgd-text) !important;
    border: 1px solid var(--pgd-border);
    border-radius: 10px;
    box-shadow: var(--pgd-shadow);
}

#admin-page-menu {
    color: var(--pgd-text);
}

#cpanel {
    height: auto !important;
    min-height: 0 !important;
    padding: 0.75rem !important;
    box-sizing: border-box;
}

#cpanel ul {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.25rem !important;
}

#cpanel ul li {
    float: none !important;
    margin: 0 !important;
}

#cpanel ul li a {
    color: var(--pgd-text) !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--pgd-border);
    border-radius: 8px;
    width: 128px !important;
    height: auto !important;
    min-height: 102px;
    padding: 0.8rem 0.45rem 0.7rem !important;
    margin: 0 !important;
    box-sizing: border-box;
    font-size: 12px !important;
    line-height: 1.25 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

#cpanel ul li a br {
    display: none;
}

#cpanel ul li a i,
#cpanel ul li a .fas,
#cpanel ul li a .fa {
    font-size: 2.35rem !important;
    line-height: 1 !important;
    margin: 0 !important;
}

#cpanel ul li a b {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

#cpanel ul li a:hover {
    color: var(--pgd-text-strong) !important;
    background: rgba(204, 82, 0, 0.22) !important;
    border-color: rgba(204, 82, 0, 0.4);
    padding: 0.8rem 0.45rem 0.7rem !important;
}

.rowdesc {
    color: var(--pgd-text-strong) !important;
}

.permis-container ul li a {
    color: var(--pgd-text) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--pgd-border) !important;
}

.permis-container ul li a:hover {
    color: var(--pgd-text-strong) !important;
    background: rgba(204, 82, 0, 0.22) !important;
    border-color: var(--pgd-accent) !important;
}

input.textbox,
input.loginmedium,
textarea.textbox,
select,
select.select,
.textbox,
textarea,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="url"] {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--pgd-text-strong) !important;
    border: 1px solid var(--pgd-border) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}

input.textbox:focus,
input.loginmedium:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border-color: rgba(204, 82, 0, 0.55) !important;
    background: rgba(204, 82, 0, 0.1) !important;
    box-shadow: 0 0 0 2px rgba(204, 82, 0, 0.12) !important;
}

input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.55;
    background: rgba(0, 0, 0, 0.25) !important;
}

option,
optgroup {
    background: #2a2a2a;
    color: var(--pgd-text-strong);
}

#loginOtherlinks {
    border-top-color: var(--pgd-border) !important;
    color: var(--pgd-muted);
}

.ban-edit,
.ban-edit ul li a {
    color: var(--pgd-text) !important;
}

.ban-edit ul li a:hover {
    color: var(--pgd-accent) !important;
}

div.opener,
div.opener2,
div.opener3,
div.opener4,
div.opener5,
.admin-details-panel {
    background: var(--pgd-panel) !important;
    color: var(--pgd-text) !important;
    border: 1px solid var(--pgd-border);
    border-radius: 8px;
    overflow: hidden;
}

div.opener table,
div.opener2 table,
div.opener3 table,
div.opener4 table,
div.opener5 table,
.admin-details-panel {
    background: transparent !important;
    color: var(--pgd-text) !important;
}

div.opener td,
div.opener2 td,
div.opener3 td,
div.opener4 td,
div.opener5 td,
.admin-details-panel td {
    background-color: transparent !important;
    color: var(--pgd-text) !important;
}

div.opener .front-module-header,
div.opener2 .front-module-header,
.admin-details-panel .front-module-header {
    background: rgba(0, 0, 0, 0.4) !important;
    color: var(--pgd-accent) !important;
}

div.opener .front-module-line,
div.opener2 .front-module-line,
.admin-details-panel .front-module-line {
    background-color: rgba(204, 82, 0, 0.28) !important;
    color: var(--pgd-text-strong) !important;
}

div.opener span[style*="color:#1b75d1"],
div.opener span[style*="color: #1b75d1"],
.admin-details-panel span[style*="color:#1b75d1"],
.admin-details-panel span[style*="color: #1b75d1"] {
    color: var(--pgd-accent) !important;
}

/* Inline light leftovers from default theme */
table[bgcolor],
td[bgcolor],
tr[bgcolor],
table[bgcolor="#eaebeb"],
table[bgcolor="#EAEBEB"],
div[style*="background-color: #fff"],
div[style*="background-color:#fff"],
div[style*="background-color: #FFF"],
div[style*="background:#fff"],
td[style*="background-color: #e0e0e0"],
td[style*="background-color:#e0e0e0"],
div[style*="background-color: #e0e0e0"],
div[style*="background-color:#e0e0e0"],
td[style*="background-color: #eaebeb"],
div[style*="background-color: #eaebeb"],
table[style*="background-color: #eaebeb"] {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: var(--pgd-text) !important;
}

/* Admin tabs / content panes */
.tabcontent {
    background: transparent !important;
    color: var(--pgd-text) !important;
}

fieldset {
    border: 1px solid var(--pgd-border) !important;
    border-radius: 8px;
    color: var(--pgd-text);
}

legend {
    color: var(--pgd-accent) !important;
}

hr {
    border: 0;
    border-top: 1px solid var(--pgd-border) !important;
}

/* Help icons / small labels */
.help-title,
.helpicon,
.icon-16x16 {
    filter: none;
}

/* Keep message boxes readable */
#msg-red,
#msg-green,
#msg-blue,
#msg-red-debug,
#msg-green-debug,
#msg-blue-debug {
    color: #1a1a1a !important;
}
