:root {
  --Almost-White: hsl(0, 0%, 98%);
  --Medium-Gray: hsl(0, 0%, 41%);
  --Almost-Black: hsl(0, 0%, 8%);
}

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

@font-face{
    font-family: 'Epilogue';
     src:url(./Epilogue/Epilogue-VariableFont_wght.ttf);
}

body{
    font-family: 'Epilogue';
    color: var(--Almost-Black);
    background-color: var(--Almost-White);
    font-size: 1.125em;
 
}

button{
    font-family: 'Epilogue';
    background-color: var(--Almost-White);
    border: none;
    cursor: pointer;
    color: var(--Medium-Gray);
    font-size: 1em;


}


header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 16px 24px;

    & .hamburguer-menu{
       /*display: none;*/
       cursor: pointer;
    }

    & nav{
        display: none;
        color: var(--Medium-Gray);


        & .back{
            background-color: var(--Medium-Gray);
            opacity: 0.5;
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;

        }
        & .front{
            background-color: var(--Almost-White);
            width: 240px;
            position: absolute;
            right: 0;
            top: 0;
            height: 100%;
            padding: 20px;

        }

        & .img-close{
            text-align: right;
            cursor: pointer;
        }

        & li{
            list-style: none;
            cursor: pointer;
            margin-bottom: 26px;

        }
        & .features-ul, .company-ul{
            margin-left: 28px;
            display: none;
        }

        & .submenu-btn{
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 24px 0;
            width: 110px;
            height: 26px;


        }

        & .btn-container{
            position: absolute;
            bottom: 124px;
        }

        & .login-btn{
            display: block;
            margin: 0 auto 16px;
        }

        & .register-btn{
            border: 1px solid var(--Almost-Black);
            width: 195px;
            height: 42px;
            border-radius: 14px;
        }

    }
}

main{
    display: flex;
    flex-direction: column-reverse;

    & .hero-image{
        width: 100%;
        margin-bottom: 48px;
    }
    & h2{
        font-size: 2.25em;
        margin-bottom: 16px;
        text-align: center;
    }
    & p{
        line-height: 26px;
        text-align: center;
        color: var(--Medium-Gray);
        margin: 0 16px 24px;
        font-size: 0.89em;
    }
    & button{
        margin: 0 auto;
        width: 136px;
        height: 48px;
        border-radius: 15px;
        display: block;
        margin:  0 auto;
        margin-bottom: 52px;
        background-color: var(--Almost-Black);
        color: var(--Almost-White);
        &:hover{
            background-color: var(--Almost-White);
            color: var(--Almost-Black);
            border: 1px solid var(--Almost-Black);
        }
    }

    & .logos-container{
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        margin-bottom: 96px;
    }

    & .databiz{
        width: 81px;
    }

    & .audiophile{
        width: 52px;
    }

    & .meet{
        width: 64px;
    }

    & .maker{
        width: 59px;
    }

}



@media (min-width: 768px){

    header{
        & .hamburguer-menu{
            display: none;
        }
        & nav{
            margin-left: 24px;
            display: block;
            width: 100%;
            height: 100%;

             & .back{
            display: none;
             }
            & .front{
            position: static;
            width: 100%;
            height: 100%;
            display: flex;
            padding: 0; 
            justify-content: space-between;
            }
            & .img-close{
                display: none;
            }
            & ul{
                display: flex;
                align-items: center;
                width: 378px;
                justify-content: space-between;

            }
            & li{
                margin: 0 16px;
                cursor: pointer;
            }
            & .submenu-btn{
                margin: 0;
            }
            & .btn-container{
                position: static;
                display: flex;
                width: 182px;
                justify-content: space-between;


               
            }
            & .features-ul, .company-ul{
                background-color: var(--Almost-White);
                border-radius: 10px;
                width: 152px;
                height: 160px;
                position: absolute;
                top:35px;
                padding: 18px 10px;
                font-size: 0.875em;
                display: none;
                & li{
                    margin-bottom: 12px;
                }

            }
            & .features-ul-container, .company-ul-container{
                position: relative;
            }
            & .features-ul{
                left: -80px;
            }
            & #company-btn, #features-btn{
                width: 100px;
            }
            & .company-ul{
                left: -30px;
            }
            & .login-btn{
                margin: 0;
            }
            & .register-btn{
                width: 104px;
            }
    }
}

    main{

        & h2{
            font-size: 2.625em; 
        }
        & p{
            font-size: 1.125em;
            margin: 40px auto;
            width: 600px;
        }
        & button{
            width: 163px;
            height: 56px;
            font-size: 1.125em;
            margin-bottom: 46px;
        }
        & picture{
            width: 80%;
            margin: 24px auto;
        }
    }


}


@media (min-width: 1024px){

    header{
      margin: 21px 80px 67px;

       & nav{
            margin-left: 48px ;
        }
      
        }
    

    main{
        margin: 0 40px 20px 165px;
        flex-direction: row;
        width:85%;
        justify-content: space-between;


        & picture{
             width: 500px;
            margin: 0;
        }
        & h2{
            text-align: left;
            font-size: 4.5em;
            width: 549px;
            margin: 100px 0 48px;
        }
        & p{
            text-align: left;
            font-size: 1.125em;
            width: 445px;
            font-weight: 500;
            margin: 0 0 25px;
        }
        & button{
            margin: 0 0 116px ;
        }
    }


}
