*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*INICIO CSS BARRA DE NAVEGACIÓN RESPONSIVE SIMPLE*/

header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transition: all 300ms ease;
    background-color: rgb(10,10,10);
    background-size: 380%;
}

.nav-container .brand-name{
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(236, 236, 234);
    font-size: 1.5rem;
    font-family: 'Black Han Sans', sans-serif;
    letter-spacing: 2px;
}

.nav-container .brand-name a{
    text-decoration: none;
    color: rgb(236, 236, 234);
}

.nav-container .brand-name img{
    height: 2rem;
    width: 2rem;
    transform: translateY(-5px) translateX(-1px);
}

.nav-container{
    width: 80%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(29, 28, 28);
    background-color: transparent;
    font-family: 'Black Han Sans', sans-serif;
    font-size: 1.5rem;
    line-height: 9vh;
}

.navbar-links ul{
    display: flex;
    line-height: 9vh;
}

.navbar-links li{
    list-style: none;
    line-height: 9vh;   /*EXPERIMENTO parte para submenu*/
    position: relative;   /*EXPERIMENTO parte para submenu*/
}

.navbar-links li a{
    text-decoration: none;
    color: rgb(236, 236, 234);
    padding: 0 2rem 0 2rem;
    display: block;
    letter-spacing: 2px;
}

ul li a{
    transition: all 500ms ease;
}

ul li a:hover{
    color: rgb(47, 163, 240);
}

ul li img{
    transition: all 750ms ease;
    margin-left: 4px;
}

ul li:hover img{
    transform: rotate(180deg);
}

.toggle-button{
    position: absolute;
    top: 1.3rem;
    top: 40%;
    right: 1rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.toggle-button .bar{
    height: 3px;
    width: 100%;
    background-color: rgb(236, 236, 234);
    border-radius: 10px;
}

/*FIN CSS BARRA DE NAVEGACIÓN RESPONSIVE SIMPLE, a escepcion de los mediaqueries*/

/*CSS PARA AGREGAR UN DROPDOWN MENU*/

ul{
    list-style: none;
}

.navbar-links .sub-menu{
    display: flex;
    flex-direction: column;
}

.sub-menu{
    width: 10rem;
    display: block;
    position: absolute;
    border-top: 3px solid rgb(47, 163, 240);
    background-color: rgb(10, 10, 10);
    opacity: 0;
    visibility: hidden;
    transition: all 550ms ease;
    z-index: 100;   /*puede no ser necesario, header ya tiene uno de 1001*/
    top: 10rem;
}

.sub-menu::before{
    content: '';
    position: absolute;
    top: -2.5rem;
    left: 3.8rem;
    border: 1.2rem solid transparent;
    border-bottom-color: rgb(47, 163, 240);
}

.navbar-links li:hover > .sub-menu{
    top: 9vh;
    opacity: 1;
    visibility: visible;
} 

/*MEDIAOQUERIES BARRA DE NAVEGACION*/

@media (max-width: 1300px){
    .navbar-links li a{
        padding: 0 1rem 0 1rem;
    }
}

@media (max-width: 1200px){
    .toggle-button{
        display: flex;
        z-index: 1050;
    }
    .navbar-links{
        display: none;
    }
    .nav-container{
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-links ul{
        width: 100%;
        flex-direction: column;
        line-height: 9vh;  
    }
    .navbar-links{
        position: fixed;    /*experimento full page*/
        top: 0;    /*experimento full page*/
        left: 0;    /*experimento full page*/
        width: 100%;
        height: 100vh;    /*experimento full page*/
        background-color: #111111;   /*experimento full page*/
        z-index: 900;    /*experimento full page*/
    }
    .navbar-links li{
        text-align: center;
        width: 100%;
        line-height: 9vh; 
    }
    .navbar-links.active{
        display: flex;
    }
    .navbar-links li a{
        padding: 1rem 0 1rem 0;
    }
    .sub-menu{
        width: 5rem;
        position: initial;
        border: 3px solid transparent;
        border-top-color: rgb(47, 163, 240);
      /*  margin-left: 10rem;  */
        max-height: 0;
        background-color: #1f1d1d;
    }
    .sub-menu::before{
        top: 8.4vh;
        left: 46.5%;
    }
    .sub-menu a{
        text-align: center;
    }

    .navbar-links li:hover > .sub-menu{
        opacity: 1;
        visibility: visible;
        max-height: initial;
    }
}

/*MEDIA QUERY PARA MARCA FORMATO MOVIL*/

@media (max-width: 500px){
    .nav-container .brand-name{
        font-size: 1rem;
    }
    .toggle-button{
        top: 30%;
    }
}

/*FINAL MEDIAQUERIES BARRA DE NAVEGACION*/


body{
    background-image: url(./DreamPotion-img/bestiary-bg2.png);
    background-size: 100% 100%;
    background-attachment: fixed;
}

/*GALERIA*/

.filler{
    min-height: 6rem;
    background-color: transparent;
}

.gallery{
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: 10% 1fr 10%;
    grid-template-rows: 1rem 1fr 5rem;
}

.main-container{
    grid-column: 2/3;
    grid-row: 2/3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-template-rows: repeat(11, 420px);
    place-items: center;
}

/*Pseudo element al main-container*/

.tarjeta{
    position: relative;
}

.tarjeta{
    height: 22rem;
    width: 19rem;
    text-align: justify;
    border-radius: 0.5rem;
    box-shadow: 0rem 0.25rem 0.75rem 0rem rgb(19, 19, 19);
    /*outline: 4px rgb(236, 139, 48) solid;*/
}

.tarjeta::before{
    content: '';
    position: absolute;
    top: -9px;
    left: -8px;
    height: 24rem;
    width: 20rem;
    background-image: url(./DreamPotion-img/marco1.png);
    background-size: 20rem 24rem;
    z-index: 12;
}

.sub-container{
    height: 16rem;
    width: 19rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0rem 0.25rem 0.75rem 0rem rgb(19, 19, 19);
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imagen{
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 500ms ease;
    cursor: pointer;
}

.imagen:hover{
    transform: scale(1);
}

.texto{
    font-size: 1.5rem;
    font-family: 'Black Han Sans', sans-serif;
    letter-spacing: 1px;
    height: 6rem;
    width: 19rem;
    padding: 0.5rem;
    color: rgb(231, 231, 231);
    border-top: 5px solid rgb(236, 139, 48);
    background: rgb(67, 6, 136);
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    box-shadow: 0rem 0.25rem 0.75rem 0rem rgb(19, 19, 19);
    text-align: center;
    padding-top: 1.5rem;
    margin: auto;
}

.modal{
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease-out;
}

.modal.open{
    opacity: 1;
    pointer-events: all;
}

.modal p{
    color: white;
    font-size: 2rem;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translate(-50%, 5%);
}

.full-image{
    position: absolute;
    height: 70%;
    top: 50%;
    left: 50%;
    transform: translate(50%, 50%) scale(0.5);
}

.full-image.open{
    transform: translate(-50%, -50%) scale(1);
}

/*TARJETA PARA VULCAN*/

.tarjeta-vulcan{
    position: relative;
    height: 22rem;
    width: 19rem;
    text-align: justify;
    border-radius: 0.5rem;
    box-shadow: 0rem 0.25rem 0.75rem 0rem rgb(19, 19, 19);
}

.tarjeta-vulcan::before{
    content: '';
    position: absolute;
    top: -9px;
    left: -8px;
    height: 24rem;
    width: 20rem;
    background-image: url(marco2.png);
    background-size: 20rem 24rem;
    z-index: 12;
}

/*Media queries para gallery*/

@media (max-width: 1617px){
    .main-container{
        grid-template-rows: repeat(15, 420px);
    }
}

@media (max-width: 1222px){
    .main-container{
        grid-template-rows: repeat(22, 420px);
    }
}

@media (max-width: 656px){
    .main-container{
        grid-template-rows: repeat(43, 420px);
    }
}

@media (max-width: 1100px){
    .tarjeta{
        height: 19rem;
        width: 16rem;
    }
    .sub-container{
        height: 13rem;
        width: 16rem;
    }
    .texto{
        height: 6rem;
        width: 16rem;
    }
    .tarjeta::before{
        height: 20rem;
        width: 18rem;
        background-size: 18rem 20rem;
        left: -15px;
    }
}

@media (max-width: 1100px){
    .gallery{
        min-height: 100vh;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr ;
        grid-template-rows: 1rem 1fr 5rem;
    }
    .gallery .main-container{
        grid-column: 1/2;
        grid-row: 2/3;
        width: 100%;
    }
}