*
{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family:'Open Sans', sans-serif;

}

/*Cabecera*/
.navegador
 {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    
    list-style: none;
    margin: auto; 
    background:rgb(64,33,49);
    background-image: url("../img/inicio/rayos.png");
    background-position:10px;
    background-repeat: repeat;

  }
  
  .navegador a {
    text-decoration: none;
    display: block;
    padding: 1em;
    color: white;
  }
  
  .navegador a:hover {
    background: #7f8f99;
    width: 100%;
    height: 100%;
  }
  
  @media all and (max-width: 800px) {
    .navegador {
      justify-content: space-between;
    }
  }
  
  @media all and (max-width: 600px) {
    .navegador {
      flex-flow: column wrap;
      padding: 0;
      
    }
    .cabecera_img{
    margin: 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
    }
    .navegador a { 
      text-align: center; 
      padding: 10px;
      border-top: 1px solid rgba(255, 255, 255,0.3); 
      border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
    }
    .navegador li:last-of-type a {
      border-bottom: none;
    }
  }

  .cabecera_img
  {
      padding-left: 10;
      height:50px;
  }


  /*Fin de cabecera*/

/*division del cuerpo*/



.cuerpo {
    min-height: 800px;
    margin: 0px;
    padding: 0px;
    display: -webkit-flex;
    display:  flex;
    -webkit-flex-flow: row;
    flex-flow: row;
    background-image: url("../img/inicio/fondo2.jpg");
     background-position: right -100px; 

}

.cuerpo > article {
    margin: 5px;
    padding: 5px;
    border-radius: 2px;
    -webkit-flex: 3 1 60%;
    flex: 3 1 60%;
    -webkit-order: 2;
    order: 2;
}

.cuerpo > nav {
    margin: 5px;
    padding: 5px;
    border-radius: 2px;
    background-image: url("../img/inicio/fondo2.jpg");
    background-position:  left -100px; 
    -webkit-flex: 1 6 20%;
    flex: 1 6 20%;
    -webkit-order: 1;
    order: 1;
    -webkit-box-shadow: 12px 5px 23px 5px #000000; 
    box-shadow: 12px 5px 23px 5px #000000;
}

.cuerpo > aside {
    margin: 5px;
    padding: 5px;
    border-radius: 2px;
    background-image: url("../img/inicio/fondo2.jpg");
    border-right:3px solid black;
    background-position: right -100px; 
    -webkit-flex: 1 6 20%;
    flex: 1 6 20%;
    -webkit-order: 3;
    order: 3;
    -webkit-box-shadow: -13px 5px 23px 5px #000000; 
     box-shadow: -13px 5px 23px 5px #000000;
}

.lateral_izquierdo, .lateral_derecho
{
  box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
  backdrop-filter: blur( 4px );
  -webkit-backdrop-filter: blur( 4px );
  border-radius: 10px;
  border: 1px solid rgba( 255, 255, 255, 0.18 );
  color: white;
  display: flex;
  flex-flow: column;
}



  /*pie de la pagina*/
  footer {
    display: block;
    min-height: 100px;
    border-radius: 2px;
    background: mediumseagreen;
    background-image: url("../img/inicio/rayos.png");
    background-repeat: repeat;
    color: white;
}


@media all and (max-width: 640px) {

    .cuerpo {
        -webkit-flex-flow: column;
        flex-flow: column;
    }

    .cuerpo > article, .cuerpo > nav, .cuerpo > aside {
        -webkit-order: 0;
        order: 0;
    }

    .cuerpo > nav, .cuerpo > aside, header, footer {
        min-height: 20%;
        max-height: 30%;
    }
}


/*fin de  estructura de cuerpo*/


/*galería de cartas*/



.contenedor
{
    position: relative;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}

.imagen
{
    position:relative;
    width: 280px;
    height: 280px;
    display: flex;
    margin: 10px;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 20px;
    position: relative;
    left: -5px;
    background-image: url("../img/color_fondo/negro.png");
    background-position: right -5px bottom 75px;
    background-repeat: no-repeat;
    border-bottom: 3px solid black;
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 4px );
    -webkit-backdrop-filter: blur( 4px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
    animation-name: imagenmov;
    animation-duration:0.9s;
}

@keyframes imagenmov {

  from{top:-330px; opacity: 0;}
      to{top: 0; opacity: 1;}
  
}


li
{
  list-style-type: none;
}

li .imagenes
{
  position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 5%;
    margin: auto;
    top: 0;
    left: 25px;
    right: 0;
    bottom: 65px;
    margin-right: 5%;
    margin-left: 5%;
    border-bottom:3px solid black;
}

.desc
{

    display: flex;
    flex-direction: row;
    flex-flow: row wrap;
    justify-content: flex-start;
    list-style-type: none;
    position: relative;
    top: 115px;
  
}

.mana
{
    position: relative;
    width: 50px;
    height: 30px;
}

.expansion
{
    position: relative;
    bottom: 1px;
    width: 60px;
    height: 40px;
    border-radius: 50px;

}

.texto
{
    position: relative;
    font-size: smaller;
    text-align: center;
    flex: 1 100%;
    color: rgb(248, 241, 148);

    
}

.textosub
{
  position: relative;
  font-size: smaller;
  text-align: center;
  flex: 1 100%;
  color: white;
}

/*zona de nav para hacer las busquedas*/

.buscador
{
border-radius: 40px;
background: #e0e0e0;
box-shadow:  -20px -20px 60px #bebebe,
20px 20px 60px #ffffff;
height: 50px;
width: 50px;
}



/*BOTON FLOTANTE PARA AÑADIR CARTA*/

.nuevaCarta
{
  position: fixed;
  bottom:20px;
  right:20px;
  border: none;
  background: transparent;

}

.nuevaCartaImg
{
  width: 100px;
  height: 75px;
}

/*PARA JAVASCRIPT MODAL button */

.modalContainer {
  display: none; 
  position: fixed; 
  z-index: 1;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%; 
  overflow: auto; 
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.modalContainer .modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
  backdrop-filter: blur( 4px );
  -webkit-backdrop-filter: blur( 4px );
  border-radius: 10px;
  border: 1px solid rgba( 255, 255, 255, 0.18 );
  animation-name: modal;
  animation-duration: 3s;
}
@keyframes modal {

  from{top:-330px; opacity: 0;}
      to{top: 0; opacity: 1;}
  
}




.modalContainer .close {
  color: #aaaaaa;
  position:absolute;
  left: 65%;
  bottom: 92%;
  float: right;
  font-size: 28px;
  font-weight: bold;
  
}

@media all and (max-width: 900px) {
  .close .modalContainer {
    color: #aaaaaa;
    position:absolute;
    left: 850px;
    bottom: 95%;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
}


.modalContainer .close:hover,
.modalContainer .close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/*formulario modal*/

.formulario
{

  position: relative;
    width: 300px;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    border: none;
}



textarea
{
    width:290px;
    height: 52px;
}
/*para el formulario*/



.tablaform
{
  table-layout: fixed;
  width: 300px;
  margin-right: 30px;
  background-image: url("../img/inicio/formulario1.png");

}

/*input de fuerza y defensa*/

.f,.d
{
  width: 20%;
}
/*enviar*/
.enviar
{
  width: 100%;
  margin-left: 100%;
}

.ordenar
{
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  border: solid grey 1px;
}

@media (max-width: 600px) {
  .modal-content {
    display: flex;
    width: 20%;
    height: 20%;
  }
 .flexito
 {
   display: flex;
   width: 20%;
   height: 60%;
 }

 .formulario
 {
  width: 20%;
  height: 20%;
 }

}




/*para la carta modal*/

.modal
{
  display: none;
  position: fixed;
  z-index: 1; 
  padding-top: 100px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.4); 
}

.fondo_carta_modal
{
display: flex;
flex-flow: column wrap;
padding:0;
margin: 0;
}

 .carta_modal
{

    padding: 5px;
    margin-top: 10px;
    line-height: 150px;
    border-radius: 15px;
    box-shadow:  0 10px 10px 10px rgb(65, 60, 60);
    height: 530px;
    width: 340px;
    border:black  solid 10px;
    display: flex;
    flex-flow: column;
    padding:0;
    margin: 0;
	-webkit-transform-style: preserve-3d;
	-webkit-transition: 0.4s;
  backface-visibility: hidden;
}
/*para que de la vuelva la carta*/
.espalda {
  -webkit-transform: rotateY(180deg);
  position: absolute;
  /* right: 450px; */
  padding: 5px;
  margin-top: 10px;
  line-height: 150px;
  border-radius: 15px;
  box-shadow: 0 10px 10px 10px rgb(65, 60, 60);
  height: 530px;
  width: 340px;
  border: black  solid 10px;
  display: flex;
  flex-flow: column;
  padding: 0;
  margin: 0;
  bottom: -10px;
  /* z-index: -44; */
}

.carta_modal:active
{
  -webkit-transform: rotateY(180deg);				

}

.nombre_carta_modal
{
    border-radius: .4rem;
    margin: 0 auto;
    padding: 0 0 0 3%;
    width: 95%;
    background: rgb(231, 31, 31);
    font-size:15px;
    line-height: 1.5rem;
    border-color: white;
    border-style: double;
    border-bottom: black;
    color:black;
    font-weight: bold;
    

}
.mana_carta_modal
{
    float: right;
    /* margin: .1rem .3rem 0 0; */
    background: #ccc;
    border-radius: 50%;
    width: 1.8rem;
    height: 1.3rem;
    line-height: 1.3rem;
    text-align: center;    
    

}

.tipo_carta_modal
{
    border-radius: .4rem;
    margin: 0 auto;
    padding: 0 .5rem;
    width: 95%;
    background: rgb(235, 170, 170);
    font-size: .9rem;
    line-height: 1.6rem;
    border-color: white;
    border-style: double;
    font-weight: bold;
}

.imagen_carta_modal
{
    background: #333;
    width:293px;
    height: 230px;
    margin: 0 auto;
    text-align: center;
    color: white;
    border-color: white;
    border-style: double;
}
.descripcion_carta_modal
{
    position:relative;
    display: inline-block;
    background: #ccc;
    width: 93%;
    min-height: 35%;
    word-wrap: break-word;
    text-overflow: ellipsis;
    font-size: smaller;
    margin: 0 auto;
    padding: .3rem .1rem;
    border-color: white;
    border-style: double;
    overflow-wrap: break-word;
    line-height: normal;
    text-align: justify;
    
}





.expansion_carta_modal
{
   
    float: right;
    width: 3.1rem;
    text-align: center;
    line-height: 1.4rem;
    margin-right: 0;
}

.fuerza_carta_modal
{
    background: #fff;
    border-radius: .4rem;
    float: right;
    /* margin: 75px 0px 0 0; */
    padding: .15rem .4rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.3rem;
    border-color: white;
    border-style: double;
    position:absolute;
    bottom: -4px;
    left:260px
}

.art
{
  font-size: xx-small;
  position: absolute;
  top:190px;
  background-color: white;
}

.diseñador_carta_modal
{
  padding-bottom: 900px;

}

.modalContainer_carta {
  display: none; 
  position: fixed; 
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%; 
  overflow: auto; 
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.modalContainer_carta .modal-content_carta {
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
  backdrop-filter: blur( 4px );
  -webkit-backdrop-filter: blur( 4px );
  border-radius: 10px;
  border: 1px solid rgba( 255, 255, 255, 0.18 );
}

.modalContainer_carta .close_carta {
  color: #aaaaaa;
  position: fixed;
  z-index: 130;
  left: 65%;
  bottom: 95%;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.modalContainer_carta .close_carta:hover,
.modalContainer_carta .close_carta:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}


@media all and (max-width: 900px) {
  .close_carta .modalContainer_carta {
    color: #aaaaaa;
    position:absolute;
    left: 850px;
    bottom: 95%;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
}


/*formulario aparezca de color rojo para que sepa que tiene que rellenarlo que es obligatorio*/
input:invalid,textarea:invalid {
  box-shadow: 0 0 5px 1px red;
}

input:focus:invalid,textarea:focus:invalid {
  box-shadow: none;
}