/* 
Index Main Style
Date: 2023-02-18
By: Marcos Melo
*/

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

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-flow: column wrap;

    background-image: linear-gradient(
        rgba(0, 9, 138, 0.719) 15% ,
        rgb(97, 73, 184) 50%
    );    background-size: contain;
    font-family: Arial, Helvetica, sans-serif;
    color: rgb(197, 197, 197);
}

h2 {
    padding-bottom: 20px;
}

a {
    text-decoration: none;
}


/* Header */
header {
    width: 100%;
    position: fixed;
    background-color: rgba(39, 39, 39, 0.938);    
}

header li {
    list-style: none;
}

header a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
}

.navbar {
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.nav-logo img {
    width: 200px;
}

.nav-link {
    transition: 0.7s ease;
}

.nav-link:hover {
    color: dodgerblue;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
}


/* Footer */
.footerM {
    width: 100%;
    padding: 30px;    
    font-size: 1.2em;
    text-align: center;
    color: rgb(197, 197, 197);
    background-color: rgb(39, 39, 39);
}


/* Reponsive Section*/

/* Tablets */
@media screen and (max-width: 768px) {
    /*Header Menu*/
    .hamburger {
        display: block;
    }

    .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);
    } 

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: rgb(39, 39, 39);
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-menu.active {
        left: 0;
    }    
}


/* Cellphone */
@media screen and (max-width: 480px) {
    /* Header */
    .nav-logo {
        padding-left: 20px;
    }
    .nav-logo img {
        width: 140px;
    }
    .menu a {
        font-size: 12px;

    }    
}