/**
 * Evolution 2.0 - Modern Space Theme
 * Main Stylesheet
 * 
 * @package SteemNova
 * @author Evolution 2.0 Team
 * @version 2.0.0
 */

/* ========================================
   IMPORTAR SISTEMA DE DISEÑO
   ======================================== */
@import url('core/variables.css');
@import url('core/components.css');
@import url('core/utilities.css');

/* ========================================
   PÁGINAS ESPECÍFICAS
   ======================================== */
@import url('pages/navigation.css');
@import url('pages/overview.css');
@import url('pages/buildings.css');
@import url('pages/galaxy.css');
@import url('pages/techtree.css');

/* ========================================
   BASE STYLES
   ======================================== */

html {
	background: url("img/bkd_page.jpg") no-repeat fixed center center var(--color-bg-space);
	background-size: cover;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;
	font-size: var(--font-size-base);
	font-family: var(--font-primary);
	color: var(--color-text-primary);
	line-height: var(--line-height-normal);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body,input,select,button,textarea,a,td,th,tr,table,a:visited{
	color:#fff;
}

body.mceContentBody,input,button,select,option,textarea, .ui-widget-content{
	background: #1b4c6e;
    padding: 2px;
}

input[type="radio"] {
	background:transparent;
	border:0 none;
}


/* #menu li:first-child, #menu li:last-child{
	background-color:transparent;
} */

.card .title {
	background-image: url("img/bkd_title.png");
	border: 1px solid #000;
	color: #FFF;
	font-weight: bold;
}

.card .content {
	background: rgba(13, 16, 20, 0.95);
	border: 1px solid #000;
}

a:hover {
	color:#ffd600;
	text-decoration:none
font-weight:bold;

}

table,td,th {
	font-weight:400
}

table table,img {
	border:0
}

input, select, textarea, #userpic, input, button{
	border:1px solid #ffeec0;
}

button.selected{
	border:1px solid #1C1FD3;
}

td, th input, .tip {
	border:1px solid #000;
}

td, .tip {
	text-align:center;
	background: #0D1014;
	background: rgba(13, 16, 20, 0.95);
}

input,button {
	text-align:center
}

th, .ui-widget-header {
	background-image:url("img/bkd_title.png");
	color:#FFF;
	font-weight:700;
	text-align:left;
	border:1px solid #000;
}


.trade-disallowed > td{
	background: #001004;
}

.trade-enemy > .table_username{
	color:#F00;
}

.trade-ally  > .table_username{
	color:#0F0;
}

.no-background, .no-background > th, .no-background > td {
	background-image: none;
	background: transparent;
}

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


.no-border, .no-border > th, .no-border > td {
	border:0px;
}

th a:hover, .ui-widget-header a:hover, .article a:hover {
	color:#FFF;
font-weight:bold;
}

th a:hover, .ui-widget-header a:hover {
	text-decoration:underline;
font-weight:bold;
}

textarea {
	background:transparent;
}

select {
	border:1px solid #212121
}

/*Global Messgae */

.admin {
	color:red;
}
.mod {
	color:yellow;
}
.ops {
	color:skyblue;
}

.messages_body .admin {
	font-weight:700;
	color:red;
}
.messages_body .mod {
	font-weight:700;
	color:yellow;
}
.messages_body .ops {
	font-weight:700;
	color:skyblue;
}

.res_max {
	color:#0F0
}

.res_name {
	color:red;
	font-weight:700
}

.galaxy-alliance-member {
	color:#99FF66;
}

.galaxy-alliance-friend {
	color:#99FFFF;
}

.galaxy-alliance-enemy {
	color:#FF0000;
}

.galaxy-short-noob,
.galaxy-username-noob{
	color:#a0ffa0
}

.galaxy-short-strong,
.galaxy-username-strong {
	color:#ffa0a0
}

.galaxy-short-vacation,
.galaxy-username-vacation {
	color:#659ec7
}

.galaxy-short-inactive,
.galaxy-username-inactive {
	color:#ccc
}

.galaxy-short-longinactive,
.galaxy-username-longinactive {
	color:#999
}

.galaxy-short-banned {
	text-decoration:line-through
}

.ownattack {
	color:#6c3
}

.owncolony {
	color:#c1c1c1
}

.owndeploy {
	color:#cf79de
}

.owndestroy {
	color:#ff9
}

.ownfederation {
	color:#c66
}

.ownharvest {
	color:#ceff68
}

.ownhold {
	color:#80a0c0
}

.destroy {
	color:#d4a017
}

.hold {
	color:#39c
}

.warning {
	color:#FF8040
}

.notice {
	color:#FF0
}

.return {
	color:#6e8eea;
}

.allymember,.colony,.deploy,.harvest,.transport,.success {
	color:lime
}

.owntransport {
	color:#5bf1c2
}

.ownespionage,.ownmissile {
	color:#fc6
}

.espionage,.missile {
	color:#f60
}

.build_submit {
    background: none repeat scroll 0 0 transparent;
    border: 0 none;
    color: lime;
font-size: medium;
}
.onlist{
    color: #DDD;
}

/** LOGO **/
/* Ocultar contenedor antiguo de logo */
logo {
	display: none !important;
}

logo .fixed {
	display: none !important;
}

/* Crear logo dentro del header usando ::before */
header .fixed::before {
	content: '';
	display: block;
	width: 250px;
	height: 100px;
	background-image: url('meta.png');
	background-size: 100% auto;
	background-repeat: no-repeat;
	background-position: left center;
	order: -1;
	margin-right: var(--spacing-3);
	flex-shrink: 0;
	cursor: pointer;
}

/* Ajustar contenido para compensar */
content {
	grid-column: 3/5 !important;
	max-width: 950px;
	min-height: 700px;
	padding: 16px;
	overflow: visible;
}

/* Tech tree page needs wider content area */
body#techtree content {
	max-width: 1400px !important;
}

/** HEADER **/
/* Estilos del header movidos a navigation.css para mejor organización */

#resourcesdiv{
	text-align:center;
}

/** MENU **/

.menu-separator {
	background-image: url(img/bkd_title.png);
    /* color: #FFF; */
    /* border: 1px solid black; */
}

menu a {
	text-align: center;
	background: #1d5888cf;
    
}

menu a:hover {
  color: #2cbbf7;
font-weight:bold;
}

div#disclamer a {
	background: unset;
	border-top: unset;
}

/* PLANETMENU */

#planet_menu_link{
	font-weight:700;
}

#planet_menu_header{
	text-align:right;
}

#planet_menu_content li {
	text-align:center;
}


/* CONTENT */

.tip th{
	text-align:center
}

.transparent,header td, .tip td, .tip th, .raportMessage td {
	background: transparent;
	border:none;
	filter: none !important;
	border-radius: 0 !important;
}

.mes_unread td {
	font-weight:700;
	background-color:rgba(33, 36, 40, 0.85);
}

a {
	text-decoration:none
}

th a,.res_current{
	color:#FFF
}

.res_current_max,.attack,.federation,.error {
	color:red
}

#fleetstatustable td{
	background: transparent;
	background-image: none;
	border: 0 none
}

.raportWin {
	color:lime;
}

.raportLose {
	color:red;
}

.ui-progressbar-value {
	background-image: url(img/processbar.gif);
	background-position:top left;
	border-color:#000;
}

.spyRaportContainerHead {
	background: #212428;
	color: white;
	font-weight: 700;
	text-align: left;
	margin: 3px 0;
	padding: 3px;
}

.spyRaportContainerRow {
	border-top:1px solid #DDD;
}
.spyRaportContainerHead + .spyRaportContainerRow {
	border-top:0 none;
}

.message {
    margin: 0 0 0 744px;
    position: fixed;
    background-color: #208c81c4;
    padding: 8px;
    text-align: center;
    top: 100px;
    border-radius: 15px 0px 15px 15px;
    height: fit-content;
    max-width: 175px;
}

@media screen and (min-width: 700px) and (max-width: 1600px) {
.message {
right: 10.5%;
margin: 0;
}
}
@media screen and (max-width: 699px) {
.message {
	bottom: 0;
	width: 100%;
	max-width: unset;
	border-radius: 15px 15px 0 0;
	top: unset;
	margin: 0;
	}
.gal1 {
    position: fixed;
    font-size: unset !important;
    margin: 5% auto;
    left: 0;
    right: 0;
  }
  
/* Sobrescribir grid layout para móvil - esto es crítico */
.wrapper {
	display: block !important;
	grid-template-columns: none !important;
	overflow-x: hidden;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Ajustar contenido en móvil para evitar superposición con header */
content {
	grid-column: auto !important;
	margin-top: 160px !important;
	padding-top: 0 !important;
	padding-left: 8px !important;
	padding-right: 8px !important;
	overflow-x: hidden;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

body {
	overflow-x: hidden;
	width: 100%;
	padding: 0 !important;
	margin: 0 !important;
}

/* Asegurar que las cards no se salgan del viewport y estén centradas */
.card, .overview-wrapper, .infos, .infoso, .infos1 {
	max-width: 100% !important;
	overflow-x: hidden;
	box-sizing: border-box;
	margin-left: auto !important;
	margin-right: auto !important;
	width: 100% !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
}
}

.planeto {
	background: #592eabb3;
	text-align: center;
	border:#6321a9b3;
	border-radius: 0;
	padding: 5px;
}

.infos {
    text-align: center;
    background: rgba(45, 57, 85, 0.25);
    border-radius: 8px;
    margin-top: 8px;
    overflow: hidden;
}

.infos::after {
    content: "";
    display: table;
    clear: both;
}

.infoso {
    text-align: center;
    background: rgba(52, 59, 107, 0.22);
    border-radius: 8px;
    margin-top: 8px;
    overflow: hidden;
}

.infoso::after {
    content: "";
    display: table;
    clear: both;
}


.infos1 {
    text-align: center;
    background: rgba(53, 111, 109, 0.22);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 10px 10px 10px;
    padding: 5px;
}

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

.moon {
	float:left;
	width: 30%;
        padding: 8px;
	
}

.planetl {
	float:left;
	padding-left: 8px;
        min-height: 155px;
}

.planeth {
    	line-height: 1.4;
    	padding: 8px;
    font-variant-caps: petite-caps;
}

.galaxy {
    float: left;
    margin: 5px auto;
    width: 50%;
    font-variant-caps: petite-caps;
    
}

.gal1 {
    text-align: center;
    padding: 5px;
    font-size: medium;
}

.g1 {
    margin: auto;
    text-align: center;
}

.g2 {
    min-width: 10%;
    width: min-content;
    float: left;
    height: 105px;
    text-align: center;
    margin: 0 5px;}

.g3 {
    
    width: 115px;
    float: left;
    height: 105px;
    text-align: center;
}

.planetb {
min-width: 296px;
    float: left;
    background: #01111fab;
    padding: 5px;
    width: 33%;
height: 135px;
}

.planetb1 {
min-width: 296px;
    float: left;
    background: #01111fab;
    padding: 5px;
    width: 33%;
border: 1px solid #336c7b;
height: 133px;
}

.gal2 {
    background: #243463f5;
    text-align: center;
    border-radius: 0;
    padding: 5px;
    font-size: medium;
    float: left;}

.planeth img {
    	margin: 8px;}

.bulida {
	float: left;
    width: 35%;
    line-height: 1.4;
    padding: 8px;
    min-height: 60px;
    height: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.buildb {
	float: left;
	width: 65%;
	line-height: 1.4;
	padding: 8px;
	min-height: 60px;
	height: auto;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.hidden-div {
	border: 2px solid #c7cc02;
	border-radius: 0;
	margin: 3px;
	padding: 5px;
	text-align: center
}

.buildl {
	float: left;
	width: 50%;
	line-height: 1.4;
	padding: 8px;
	text-align: center;
	background: #303463c9;
	height: 150px;
}

.buildn {
	padding: 6px;
}

.buildn a:hover {
	color: #2cbbf7;
	font-weight:bold;

}

.techb {
    padding: 5px;
    text-align: left;
    width: 100%;
}

.techi {
	margin: 5px 0 0 5px;
	min-height: 200px;
	min-width: 172px;
    float: left;
    width: 32.5%;
    padding: 3px;
    background: #478f7e8c;
}

.ship {
    margin: 0 auto;
    max-width: 400px;
    background: #1b2e58d1;
    border-radius: 0;
}

.shipl {
    margin-top: 10px;
    padding: 8px;
    overflow: auto;
    border: none;
    border-radius: 0;
}
.z {
    margin: 5px auto;
    padding: 8px;
    max-width: 300px;
    background: #1b4c6e;
    border-radius: 0;
    color: #e9ff79;
    text-transform: uppercase;
}
.b {
    margin: 5px auto;
    padding: 5px;
    background: #1b4c6e;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: bold;
}


input:hover {
    color: #2cbbf7;}

.ui-autocomplete, .ui-state-hover, .ui-state-default, .ui-tabs-nav, .ui-tabs, .ui-progressbar, .ui-progressbar-value {
	-webkit-border-radius:0;
	-khtml-border-radius:0;
	border-radius:5px;
}

.ui-state-default{
	border:1px solid #000 !important;
	background: #0D1014 !important;
}
.ui-state-default > a{
	cursor:pointer !important;
}

.ui-state-hover, .ui-progressbar{
	border: 1px #000!important;
	background: #55386b!important;
}

/* Estilos específicos para la barra de progreso en la cola de construcción */
#progressbar {
	width: 100%;
	margin: 8px 0;
	height: 20px;
	box-sizing: border-box;
}

.buildb #progressbar {
	margin-top: 8px;
	margin-bottom: 8px;
}

.ui-tabs-nav {
	padding: 0;
}

.ui-tabs {
	border:1px solid #000;
	background:transaprent;
}

@media screen and (max-width: 520px) {
   div .buildb {border: none;
    }
div .bulida {border: none;
    }
}

.card {
	background-color: rgba(5, 5, 5, 0.5) !important;
	border: 1px solid #444;
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
}
.card-header, .card-header .card-actions a, .card-header .card-actions button
.card-footer, .card-footer .card-actions a, .card-footer .card-actions button{
	color: #fff;
	border-left: 0;
}
.card-header, .card-footer, .spyReportCat {
	background-color: #252831;
}

.card-header {
	border-bottom: 1px solid #444;
}
.card-footer {
	border-top: 1px solid #444;
}
.card-footer, .card {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
}

/* Ajustar tamaño global de los íconos de recursos */
img[src*="images/metal"],
img[src*="images/crystal"],
img[src*="images/deuterium"],
img[src*="images/energy"] ,
img[src*="images/darkmatter"] {
  width: 48px;
  height: 36px;
  vertical-align: middle;
}


