/*css*/
@font-face {
    font-family: 'miFuente';
    src: url('PokemonClassic.ttf') format('truetype');
}

body{
    height: 100vh;
    width: 100vw;
    
    display: flex;
    flex-direction: column;
    font-family: 'miFuente', sans-serif ;
    font-size: 0.8em;
    background: linear-gradient(135deg, 
        #2d4545 0%, /* Versión más oscura */
        #68a0a0 50%, /* Color original como punto medio */
        #3a5757 100% /* Versión oscura diferente */
    );
    margin: 0;
    padding: 0;
}


.GameArea{
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: center;

}

#UI{
    margin-left:auto;
    margin-right: auto;
    margin-top: 5%;
    display: flex;
    width: 50%;
    background-color: rgba(104, 160, 160, 0.9);
    display: flex;
    flex-flow: row;
    justify-content: center;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    padding: 10px;
}

#arena{
    position: relative;
    width: 64vh;
    height: 36vh;
    /*background-image: url('./fondo.png');*/
    /*background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.1)), url('./BGS/battlebg_1.png');*/
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin: 0 auto;
    border: 10px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    /*border: 10px;
    border-style: solid;
    border-color: #411e09f7;*/
}

.poke-info{
    position: absolute;
    
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.poke-info .stat-bar {
    flex-grow: 1;
    width: auto;
    height: 15px;
    background-color: #444;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 5px;
    display: inline-block;
}

.poke-info .stat-bar-inner {
    height: 100%;
    background-color: #6edaa3; /* Color verde para HP lleno */
    transition: width 0.3s ease-in-out;
}
  
.rival-info, .propio-info {
    
    display: flex;
    flex-direction: column;
}


.poke-info p {
    margin: 2px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hp-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Ajusta el espacio entre el texto y la barra */
}

.rival-info {
    top: 10px;
    left: 10px;
    padding: 15px;
    width: 230px;
    height: 60px;
    border-radius: 5px;
    background-image: url('./resources/FONDORIVAL.png');
    opacity: 0.88;
    background-size: 100% 100%;  
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat;
    font-size: 0.8em;
    /*font-size: 0.8em;
    font-weight: bold;*/

    text-shadow: 
    -1px -1px 0 #000000,  
     1px -1px 0 #000000,
    -1px  1px 0 #000000,
     1px  1px 0 #000000;
color: #ffffff; /* Color del texto */

}

.rival-info span {
    margin-left: 5px;  /* Añade margen izquierdo al span */
    font-weight: 300;   /* Hace el texto aún más grueso */
    display: block;     /* Hace que el span ocupe su propia línea */
    margin-bottom: 0px; /* Espacio debajo del nombre */
    font-size: 1.2em;
    
}

.rival-info p {
    margin: 2px 5px;   /* Reducir el margen */
    font-weight: bold;
    display: flex;     /* Usar flexbox */
    align-items: center; /* Alinear verticalmente */
    gap: 10px;
    
}

.rival-info .stat-bar {
    display: inline-block; /* Hacer que la barra esté en línea */
    width: 100px;        /* Ancho fijo para la barra */
    margin-left: 10px;   /* Espacio después del texto */
    vertical-align: middle; /* Alinear verticalmente */
}


.propio-info {
    bottom: 68px;
    right: 10px;
    padding: 15px;
    width: 230px;
    height: 50px;
    font-size: 0.8em;
    border-radius: 5px;
    background-image: url('./resources/FONDOPROPIO.png');
    opacity: 0.88;
    background-size: 100% 100%;  
    background-position: center;
    background-repeat: no-repeat;
    font-size: 0.8em;
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);

    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
    color: #ffffff; /* Color del texto */
}

.propio-info span {
    margin-left: 5px;
    font-weight: 500;
    display: block;
    margin-bottom: 0px;
    font-size: 1.2em;
}

.propio-info p {
    margin: 2px 5px;
    font-weight: bold;
    display: flex;     /* Usar flexbox */
    align-items: center; /* Alinear verticalmente */
    gap: 10px;
}

.propio-info .stat-bar {
    display: inline-block; /* Hacer que la barra esté en línea */
    width: 100px;        /* Ancho fijo para la barra */
    margin-left: 10px;   /* Espacio después del texto */
    vertical-align: middle; /* Alinear verticalmente */
}


#pokePropio{
    position: relative;
    top: 48%;
    left: 15%;
    height: 50%;
}

#pokeRival{
    position: relative;
    top: 17%;
    left: 30%; 
    height: 50%;
}

#poke-propio{
    background-color: rgba(242, 242, 242, 0.4);
    display: flex;
    flex-flow: column;
    height: 100%;
    width: 15%; 
    align-items: center;
    margin-right: 1%;
    border: 4px solid #d3d3d3;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

#poke-rival{
    background-color:rgba(242, 242, 242, 0.4);
    display: flex;
    flex-flow: column;
    height: 100%;
    width: 15%; 
    align-items: center;
    margin-left: 1%;
    border: 4px solid #d3d3d3;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.stats {
    background-color: rgba(255, 255, 255, 0.8);
    border: 3px solid #6d6d6d;
    border-radius: 10px;
    padding: 10px;
    /*font-family: 'Press Start 2P', sans-serif; */
    text-align: left;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.88em; 
    overflow: visible;
}

.stats h3 {
    color: #222;
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-align: center;
    text-transform: uppercase;
    white-space: normal; /* Evita que el texto haga saltos de línea */
    word-wrap: break-word; /* Fuerza el salto de línea en palabras largas */
    width: 100%;
}

.stats p {
    margin: 5px 0;
}

.stats span {
    font-weight: bold;
}

.stats .stat-bar {
    width: 100%;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
    margin-top: 5px;
}

.stats .stat-bar-inner {
    height: 100%;
    transition: width 0.3s ease-in-out;
}

.type {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    border-radius: 5px;
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
}

.stats img {
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.poke-tipos img {
    width: 35%; /* En lugar de 40px */
    height: auto; /* Mantiene la proporción */
    margin: 2% 0; /* En lugar de 5px */
    vertical-align: middle;
    min-width: 30px; /* Asegura un tamaño mínimo */
    box-shadow: none;
    border-radius: 0;
}

.poke-tipos {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 3%;
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
    align-items: center;
}

#nombreRivalStats {
    color: #222;
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    
}

#nombreRival {
    color: #222;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.caja-inf {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 18%;
    background-color: #68A0A0; /* Color de fondo de la caja */
    color: white; /* Color del texto */
    padding: 10px;
    text-align: left;
    box-sizing: border-box; /* Incluye el padding en el ancho total */
    font-weight: bold;
    font-size: 1em;
    background-image: url('./resources/bottomtext1.png');
    background-size: 100% 100%; 
}


#dialogTxt {
    margin: 0;
    color: #F8F8F8;
    font-weight: bold;
    margin-left: 30px;
}

#UI button {
    font-family: 'miFuente', sans-serif;
    font-size: 1em;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 3px;
    border-color: #000;
    background-color: #F8F8F8;
    cursor: pointer;
    transition: background-color 0.3s;
}

#UI button:hover {
    background-color: #cce4d4;
}

.error-msg {
    font-family: 'miFuente', sans-serif;
    color: #b90d0d;
    font-weight: bold;
    font-size: 0.9em;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/*
Para ocultar el botón al inicio 
*/
#btn-iniciar-combate{
    display: none;
}
#btn-jugar-de-nuevo{
    display: none;
}
#btn-atk-fis{
    display: none;
}


#btn-atk-esp{
    display: none;
}


#input {
    font-family: 'miFuente', sans-serif; 
    font-size: 1em; 
    padding: 3px; 
    border: 2px solid #68A0A0; 
    border-radius: 5px;
    text-align: center;
    background-color: #f8f8f8; 
    color: #333; 
    transition: border-color 0.3s ease; 
}

#input:focus {
    border-color: #68a0a0;
    box-shadow: 0 0 5px #68a0a0; 
}
 

/*.type.bug {background-color: #A6B91A; }
.type.dark {background-color: #705746; }
.type.dragon {background-color: #6F35FC; }
.type.electric {background-color: #F7D02C; }
.type.fairy {background-color: #D685AD; }
.type.fighting {background-color: #C22E28; }
.type.fire {background-color: #EE8130; }
.type.flying {background-color: #A98FF3; }
.type.ghost { background-color: #735797; }
.type.grass { background-color: #7AC74C; }
.type.ground { background-color: #E2BF65; }
.type.ice { background-color: #96D9D6; }
.type.normal { background-color: #A8A77A; }
.type.poison { background-color: #A33EA1; }
.type.psychic { background-color: #F95587; }
.type.rock { background-color: #B6A136; }
.type.steel { background-color: #B7B7CE; }
.type.water { background-color: #6390F0; }*/

