@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

:root {
    --first-color: #272727;
    --second-color: rgb(146,115,101);
    --third-color: #EFD09E;
    --font-family: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

/* HEADER */


header {
    height: 100vh;
    background-image: url(/images/image-nav.jpg);
    background-size: cover;
    background-position: top;
    width: auto;
}
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #272727;
    font-family: var(--font-family);
    position: fixed;
    top: 0;
    width: 100vw;
    transition: all 1s ease;
    height: 5rem;
    z-index: 5;
}
.nav-bar.scroll {
    background-color: var(--second-color);
}
img.logo {
    height: 7rem;
    width: 7rem;
    justify-self: flex-start;
    margin-left: 2rem;
}
ul li {
    list-style: none;
    padding: 1.7rem 0;
    align-items: center;
    justify-content: center;
}
ul li a {
    text-decoration: none;
    margin: 2rem;
    color: var(--first-color);
    font-weight: bold;
    letter-spacing: 10px;
}
.hamburger {
    cursor: pointer;
    top: 20rem;
}
.bar {
    display: block;
    width: 35px;
    height: 4px;
    margin: 5px 40px;
    transition: all 0.5s ease;
    background-color: var(--first-color);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.hamburger {
    display: block;
}
.nav-menu {
    position: fixed;
    left: 100%;
    top: 9rem;
    height: 14rem;
    gap: 0;
    flex-direction: column;
    width: 100vw;
    text-align: center;
    background-color: rgb(146, 115, 101);
    transition: 1s;
}
.nav-menu.active {
    left: 0;
}
.home-head {
    display: flex;
    flex-direction: column;
    font-family: var(--font-family);
    text-align: center;
    color: var(--first-color);
    width: 98vw;
    position: absolute;
    margin: 15rem auto 0 auto;
}
.home-head h1 {
    font-weight: bold;
    font-size: 3.5rem;
    padding: 1rem;
    margin: auto;
    letter-spacing: 0.2rem;
    color: var(--first-color);
    background-color: rgba(239, 208, 158,0.2);
}

.home-head.scroll {
    display: none;
}
.home-head.active {
    display: none;
}


/* SECTIONS  */

.container {
    min-height: 50vh; 
    display : flex;
    flex-direction: column;
    justify-content: center;
}

.container-text{
    color: var(--second-color);
    font-family: var(--font-family);
    background-color: var(--first-color);
    min-height: 50vh;
    justify-content: center;
    display: flex;
}


.container-description{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    margin:auto ;
    padding: 1.5rem 0;
}

.container-description p{
    padding: 1rem;
}

.container-description h2{
    padding: 1rem;
}


.container-description .button{
    align-self: center;
}

.container-picture{
    /*min-height: 60vh;*/
    background-color: var(--first-color);
    
}
.container-picture img{
    width: 100%;
    height: 100%;
}


.button {
    background-color: var(--second-color);
    border-radius: 0.25rem;
    border: 0.1rem solid var(--third-color);
    color: var(--first-color);
    padding: 0.5rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    width: 9rem;
    margin-top:2rem;
  }

  .button:hover{
    color:var(--first-color);
    transition: ease 0.5s;
  }



  /* FOOTER */


footer {
    background-color: var(--second-color);
    color: #fff;
    height:4.3rem;
}

.textfooter {
    margin-left: 1rem;
    background-color: var(--second-color);
    color: var(--first-color);
}

.logofooter{
    height: 4rem;
    width: 4rem;
    background-color: var(--second-color);
}

.rsimage{
    height: 2rem;
    width: 2rem;
    background-color: var(--second-color);
    margin: 0 1rem;
    transition: transform 0.3s;
}

.rsimage:hover{
    transform: scale(1.5);
}

.containerrs{
    display: flex ;
    justify-content: space-between;
    margin: 0 0.7rem;
 }
 .container-footer{
    display: flex;
    justify-content: space-around;
    align-items: center;
 }

  /* RESPONSIVE */


  @media screen and (min-width: 768px) {

    .nav-menu {   
    position: fixed;
    height: 5rem;
    top: 0;
    left: 0;
    flex-direction: row;    
    display: flex;
    width: 99.1vw;
    background-color: transparent;
    justify-content: flex-end;
    align-items: center;
    z-index: -1;
   }

   img.logo{
        z-index: 3;
    }

    .hamburger{
        display: none;
    }
 

    .container {
        display: flex;
        flex-direction: row; 
    }
    
    .container-text{
        width: 50%;
    }

    .container-description button{
        align-self: stretch;
    }

    #switch{
        order: -1;
    }

    .container-picture{
        width: 50%;
    }

    .button:hover {
        background-color: var(--third-color);
        border: 0.1rem solid var(--second-color);
        cursor: pointer;
    }

    a {
        position: relative;
    }
    ul li a:after {
        content: "";
        position: absolute;
        background-color: var(--third-color);
        height: 3px;
        width: 0%;
        left: 0;
        bottom: -10px;
        transition: 0.5s;
    }
    ul li a:hover:after {
        content: "";
        position: absolute;
        background-color: var(--third-color);
        height: 3px;
        width: 95%;
        left: 0;
        bottom: -10px;
        transition: 0.5s;
    }

  }
