/* CUERPO */
@font-face {    /* para inserta una fuente descargada */
    font-family: 'ClashRoyale'; /* Nombre de la fuente */
    src: url('fonts/YouBlockhead.ttf') format('truetype'); /* Ruta de la fuente */
}

body {
    background-color:darkslateblue;
    background-image: url("img/fondo.jpg");
    background-size: 130%;
    background-repeat: no-repeat;
    background-position-x: -22em;
    background-position-y:center;
    background-attachment: fixed;
    font-size: 16px;
    font-family: 'ClashRoyale', sans-serif; /* Desde aquí llamo a la fuente que creé antes */
    color: #313131;
    text-align: justify;
    overflow-x: hidden; /* Oculta el desplazamiento horizontal del cuerpo */
}

.user {
    background-color: rgba(230, 189, 6, 0.49);
    width: 20em;
    margin-left: -27em;
    margin-top: -13em;

    border-radius: 15px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

    position: fixed;
    z-index: 1;
}

.userText {
    margin-top: -1em;
    margin-left: 2.5em;
    color: aliceblue;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra */
}

.whiteBox {
    background-color:aliceblue;
    margin-top: -2em;
    opacity: 65%;
    height: 80em;
    width: 75em;
    margin-left: 34em;
    background-position-y: center;
    border-radius: 5px;
    border-bottom-left-radius: 155px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

    /* para ponerlo por debajo del resto de elementos del main */
    position: fixed;
    z-index: 1;

}

main {
    margin-left: 34em;
    background-position-y: center;
    width: 75em;
    height: 40em;

    /* para ponerlo por encima de la caja blanca transparente */
    position: relative;
    z-index: 2;
}



/* IMÁGENES */
.logo {
    width: 45em;
    height: auto;
    margin-left: 14em;
    margin-bottom: -1em;
    margin-top: -3em;
    /* Para dar sombra a la imagen */
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.logoShield {
    width: 8em;
    height: auto;
    margin-left: 34em;
    margin-bottom: 0;
    margin-top: 2em;
}

.cards {
    margin-top: 3em;
    width: auto;
    height: 9em;
    margin-left: 10em;
    /* Para dar sombra a la imagen */
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.arenas {
    width: auto;
    height: 12em;
    margin-left: 5em;
    margin-top: -1em;
    /* Para dar sombra a la imagen */
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.chestImg {
    width: auto;
    height: 10em;
    margin-bottom: 1.5em;
    /* Para dar sombra a la imagen */
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

#firecracker {
    margin-left: 7.5em;
    height: 11.5em;
}


/* TEXTOS */
a {
    margin-right: 2em;
    text-decoration: none;
}

h2, h3 {
    text-align: center;

    /* texto */
    font-family: 'ClashRoyale', sans-serif;
    color: #ffffff;
    /*  poner borde y sombra al texto   */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra */
    -webkit-text-stroke: 1px black; /* Borde */
    -webkit-text-fill-color: white; /* Color del texto */

}


h5 {
    margin-bottom: -1.5em;
}

font {
    font-family: cursive;
    font-size: 15px;
    font-weight: lighter;
    color: #313131;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0); /* Sombra */
}

.fontCenter {
    margin-left: 9em;
    padding-top: 2em;
    text-align: center;
}

ul {
    margin-top: 1.5em;
    font-family: cursive;
    font-size: 17px;

    list-style-type: none; 
    list-style-image: url('img/elixir.png');
    margin-left: -0.5em;
}

h6 {
    width: calc(80% - 2em); /* Calcula el ancho para que ambos elementos ocupen la mitad del contenedor */
    margin-left: 4em;
    font-size: 16px;
    margin-top: 1em;
    text-align: center;

}

h7 {
    font-size: 16px;
    margin: 0;
    margin-top: 1em;
    text-align: center;

}

p {
    font-family: cursive;
    font-size: 18px;
    font-weight:bolder;
    
}

.chest {
    list-style-type: none; 
    list-style-image: url('img/cards.png'); 

}


table {
    margin: 0 auto;
}


/* DIV / CAJAS */
.boxCard {
    display: flex; /* Utiliza flexbox para colocar los elementos uno al lado del otro */
    margin-bottom: 2em; /* Ajusta el margen inferior entre las cartas */
    
}

.boxCard1,
.boxCard2 {
    width: calc(50% - 2em); /* Calcula el ancho para que ambos elementos ocupen la mitad del contenedor */
    margin-left: 2em;
}



.center {
    display: flex;
    
}

.center2 {
    width: calc(50% - 1em);
    margin-left: 5em;
}


/* PIE DE PÁGINA */
footer {
    background-color: rgba(230, 189, 6, 0.49);
    margin-left: 34em;
    width: 75em;
    height: 2em;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    top: 165em;
    margin-bottom: 2em;
    text-align: center;
    /* para ponerlo por encima de la caja blanca transparente */
    position: relative;
    z-index: 2;
}

footer > p, footer > font {
    padding-top: 0.5em;
    font-size: smaller;
}

.finalImg {
    /* Para dar sombra a la imagen */
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    height: 8em;
    margin-left: 63em;
    top: 163em;
    /* para ponerlo por encima de la caja blanca transparente */
    position: relative;
    z-index: 2;
}


/* ENLACES */
a:hover,
a:visited,
a:active {
    text-decoration: none; /* Evita que se subrayen los enlaces al pasar el mouse sobre ellos, después de visitarlos o cuando se activan */
    text-align: center;

    /* texto */
    font-family: 'ClashRoyale', sans-serif;
    color: #ffffff;
    /*  poner borde y sombra al texto   */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Sombra */
    -webkit-text-stroke: 1px black; /* Borde */
    -webkit-text-fill-color: white; /* Color del texto */
}
