/* https://www.youtube.com/watch?v=GdrbE-s5DgQ */
@import url("http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,400,400italic,600,600italic,700,700italic");

/* HEADER */
.new_menu {
    background: #002E4F;
    position: relative;
    padding: 0 2rem;

}

.navbar {
    width: 100%;
    height: 70px;
    /* max-width: 1200px; */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar img#logo {
    width: 75px;
    height: 75px;
    padding: 10px;
}

.navbar .links {
    display: flex;
    gap: 2rem;
}


.navbar .links a {
    text-decoration: none;
    color: #fff;
    font-size: 1.2rem;
    font-family: "Source Sans Pro", sans-serif;
}

.navbar .links a:hover {
    color: #739EBE;
}


.navbar .links .dropdown .dropbtn {
    border: none;
    outline: none;
    background-color: inherit;
    font-family: inherit;
    color: #fff;
    font-size: 1.2rem;
    font-family: "Source Sans Pro", sans-serif;
}

.navbar .links .dropdown .dropbtn:hover {
    color:#739EBE;
}

.navbar .links .dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 50px;
    margin-left: -0px;
    width: max-content;
    background: #002e4fc9;
    backdrop-filter: blur(15px);
}

.navbar .links .dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;

}

.navbar .links .dropdown:hover .dropdown-content a {
    font-size: 1.1rem;

}

.navbar a#login {
    padding-left: 3rem;
    padding-right: 10px; /* para ficar o mesmo espeço livre dos dois lados do ecrã */
}


button#login_button {
    background-color: #739EBE;
    color: #002E4F;
    margin: -5px; /* para ficar alinhado com os restantes items do menu*/
    padding: 5px 15px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-family: "Source Sans Pro", sans-serif;
}

button#login_button:hover {
    scale: 1.05;
    cursor: pointer;
}

.navbar .toggle_btn {
    color:#fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}



/*
.action_btn {
    background-color: orange;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: scale 0.2 ease;
}

.action_btn:hover {
    scale: 1.05;
    color: #fff;
}

.action_btn:active {
    scale: 0.95;
}
*/


/* DROPDOWN MENU */
.dropdown_menu {
    position: absolute;
    right: 2rem;
    top: 60px;
    height: 0;
    width: 300px;
    background: #002e4fc9;
    backdrop-filter: blur(15px);
    overflow: hidden;
    transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown_menu.open {
    height: min-content;
}

.dropdown_menu a {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
}

.dropdown_menu a:hover {
    color: #739EBE;
}

.dropdown_menu .dropdown {
    display: flex;
    justify-content: center;
}

.dropdown_menu .dropdown .dropbtn {
    border: none;
    outline: none;
    background-color: inherit;
    font-family: inherit;
    color: #fff;
    font-size: 1rem;
    font-family: "Source Sans Pro", sans-serif;
}

.dropdown_menu .dropdown .dropbtn:hover {
    color: #739EBE;
}
.dropdown .dropdown-content {
    display: none;
    position: relative;
    width: max-content;
    background: #002e4fc9;
    backdrop-filter: blur(15px);
    margin-left: 1rem;
}

.dropdown_menu .dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    padding: 0.4rem;

}

.dropdown_menu .dropdown:hover .dropdown-content a {
    font-size: 0.9rem;
    padding: 0.2rem;
}


.dropdown_menu .action_btn {
    width: 100%;
    display: flex;
    justify-content: center;
}



/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .navbar .links,
    .navbar .action_btn {
        display: none;
    }

    .navbar .toggle_btn {
        display: block;
    }

    .dropdown_menu {
        display: block;
    }
}

@media (max-width: 576px) {
    .dropdown_menu {
        left: 2rem;
        width: unset;
    }


}
