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

body{
    background: rgb(47, 163, 240);
}

/*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(29, 28, 28);
}

.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);
    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{
    /*animation: wiggle2 750ms ease;*/
    color: rgb(47, 163, 240);
}

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

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

@keyframes wiggle2 {
    0% { transform: rotate(0deg); }
   20% { transform: rotate(15deg); }
   40% { transform: rotate(-15deg); }
   60% { transform: rotate(15deg); }
   80% { transform: rotate(-15deg); }
  100% { transform: rotate(0deg); }
}

.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(29, 28, 28);
    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*/

/*CHANGING HEADER ON SCROLL*/

.nav-scrolled{
    background: rgba(224, 216, 216, 1);
    background: #111111;
}

.nav-scrolled li a{
    color: rgb(2, 10, 83);
    color: rgb(47, 163, 240);
}

/*FINAL NAVBAR*/

.container{
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-image: url(./DreamPotion-img/montañasdino.png);
    background-position: center;
    background-size: 100% 100%;
}

.container-shadow{
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 15, 15, 0.397);
}

.form{
    min-height: 35rem;
    width: 100%;
    max-width: 65rem;
    border-radius: 10px;
    box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    z-index: 1000;
}

.contact-info{
    background-color: #2c2c2c;
    color: rgb(47, 163, 240);
    font-family: 'Black Han Sans', sans-serif;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.contact-info h1{
    font-size: 3rem;
    text-align: center;
}

.contact-info h2{
    font-size: 1.5rem;
    text-align: start;
    color: rgb(236, 236, 234);
    font-family: 'Poppins', sans-serif;
}

.info-minitext{
    padding: 1rem 0 1rem 0;
    margin: 0 auto 0 auto;
}

.contact-info p{
    font-size: 1.5rem;
    text-align: center;
}

.contact-form{
    background-color: rgb(47, 163, 240);
    position: relative;
    font-family: 'Poppins', sans-serif;
}

.contact-form::before{
content: "";
position: absolute;
width: 52px;
height: 52px;
background-color: rgb(47, 163, 240);
transform: rotate(45deg);
top: 50px;
left: -26px;
}

form{
    padding: 2.3rem 2.2rem;
    z-index: 10;
    /*overflow: hidden;*/
    position: relative;
}

.tittle{
    color: rgb(236, 236, 234);
    font-weight: 500;
    font-size: 1.5rem;
    font-family: 'Black Han Sans', sans-serif;
}

.input-container{
    position: relative;
    margin: 1rem 0;
}

.input{
    width: 100%;
    outline: none;
    background: none;
    border: 2px solid rgb(235, 235, 235);
    color: rgb(236, 236, 234);
    padding: 0.6rem 0.6rem;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 15px;
    transition: 0.3s;
}

textarea.input{
    padding: 0.8rem 1.2rem;
    min-height: 150px;
    border-radius: 15px;
    resize: none;
    overflow-y: auto;
}

.input-container label{
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    padding: 0 0.4rem;
    color: rgb(236, 236, 234);
    pointer-events: none;
    font-size: 0.9rem;
    font-weight: 400;
    z-index: 1000;
    transition: 0.5s;
}

.input-container.textarea label{
    top: 1rem;
    transform: translateY(0);
}

.btn{
    padding: 0.6rem 1.3rem;
    background-color: rgb(233, 233, 233);
    border: 2px solid rgb(233, 233, 233);
    font-size: 0.95rem;
    color: rgb(47, 163, 240);
    line-height: 1;
    border-radius: 25px;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover{
    background-color: transparent;
    color: rgb(236, 236, 234);
}

.form-file{
    margin-bottom: 1.3rem;
}

.input-container span{
    position: absolute;
    top: 0;
    left: 25px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    padding: 0 0.4rem;
    color: transparent;
    pointer-events: none;
    z-index: 500;
}

.input-container span::before,
.input-container span::after{
    content: "";
    position: absolute;
    width: 10%;
    opacity: 0;
    transition: 0.3s;
    height: 5px;
    background-color: rgb(47, 163, 240);
    top: 50%;
    transform: translateY(-50%);
}

.input-container span::before{
    left: 50%;
}

.input-container span::after{
    right: 50%;
}

.input-container.focus label{
    top: 0;
    transform: translateY(-50%);
    left: 25px;
    font-size: 0.8rem;
}

.input-container.focus span::before,
.input-container.focus span::after{
    width: 50%;
    opacity: 1;
}

/*MEDIA QUERIES PARA EL BODY*/

@media (max-width: 1100px){
    .form{
        display: grid;
        width: 100%;
        height: 100vh;
        max-width: none;
        grid-template-columns: 1fr;
        grid-template-rows: 40vh 70vh;
    }
    .contact-info{
        grid-column: 1/2;
        grid-row: 1/2;
        padding-top: 5rem;
    }
    .contact-form{
        grid-column: 1/2;
        grid-row: 2/3;
        height: 100%;
        width: 100%;
    }
    .contact-form::before{
        display: none;
    }
    /*body{
        overflow: hidden;
    }*/
}

@media (max-width: 580px){
    form{
        padding: 1.5rem 2.2rem;
    }
    .contact-info{
        padding-top: 3.5rem;
    }
    .contact-info h1{
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    .contact-info h2{
        font-size: 1rem;
    }
    .contact-info p{
        font-size: 1rem;
    }
    .input-container{
        margin: 0.5rem 0;
    }
    .tittle{
        font-size: 1.4rem;
    }
    textarea.input{
        min-height: 100px;
    }
    .container{
        background-image: none;
        background: rgb(47, 163, 240);
    } 
}