
@import url(https://fonts.googleapis.com/css?family=Josefin+Sans:300,400);
* {
    margin: 0;
    padding: 0;
}

/* width */
::-webkit-scrollbar {
    width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px white;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: grey;
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: grey;
}

header {
    position: relative;
    background-color: black;
    min-height: 15rem;
    width: 100%;
    overflow: hidden;
}

.dropdown-menu {
    top: 10px!important;
    left: -20px!important;
    min-width: 0;
    background-color: black;
}

.dropdown-item {
    color: white;
}

/*SEZIONE NAV BAR*/
.logo {
    z-index: 3;
    line-height: 20px;
    position: fixed;
    float: left;
    margin: 16px 46px;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 2px;
}
nav {
    z-index: 3;
    position: fixed;
    width: 100%;
    line-height: 20px;
}

.menu{
    background: rgba(0, 0, 0, 0);
    transition: 1s
}

.menu.black{
    opacity: 0.7;
    background: #000;
}

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-left: calc(100% - 300px);
    line-height: 20px;
    list-style: none;
    background: rgba(0, 0, 0, 0);
    color: #fff;
    padding: 0;
    text-align: right;
    transition: 1s;
}

@media(max-width: 1200px) {

    nav ul {
        margin-left: calc(100% - 300px);
    }

}

nav.black ul {
    /*opacity: 0.7;*/
    /*background: #000;*/
}
nav ul li {
    display: inline-block;
    padding: 20px 0;;
}
nav ul li a {
    cursor: pointer;
    text-decoration: none !important;
    color: #fff;
    font-size: 16px;
}

nav ul li a:hover {
    color: grey;
    text-decoration: none;
}

.menu-icon {
    z-index: 2;
    line-height: 20px;
    width: 100%;
    background: black;
    text-align: right;
    box-sizing: border-box;
    padding: 15px 24px;
    cursor: pointer;
    color: #fff !important;
    display: none;
}






/*FOOTER*/
.socialIconFooter{
    height: 40px;
    width: 40px;
}

footer{
    color: black;
    background-color: white;
}





/*LOIGN*/

#loginFormContainer {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    z-index: 20;
    transition: right 0.4s cubic-bezier(0.945, 0.020, 0.270, 0.665);
    position: absolute;
    right: -320px;
    top: 60px;
    background-color: white;
    width: 320px;
    height: 340px;
    -webkit-box-shadow: 6px 6px 10px 6px rgba(0,0,0,0.15);
    -moz-box-shadow: 6px 6px 10px 6px rgba(0,0,0,0.15);
    box-shadow: 6px 6px 10px 6px rgba(0,0,0,0.15);

}


#loginFormContainer.showingLogin{
    right: 40px;
}

#loginForm .form-group{
    margin-left:20px;
    margin-right:20px;
    margin-bottom:20px;
}

#loginForm .rememberMe{
    font-size: 0.8em;
    margin-left:20px;
    margin-bottom:20px;
}

.inputLoginContainer{
    margin-top:20px ;
}

.btnDefault{
    background-color: cornflowerblue;
    color: white;
    border-color: cornflowerblue;
}
.btnDefault:hover{
    background-color: dodgerblue;
    color: white;
    border-color: dodgerblue;
}

.loginActionsContainer{
    display: flex ;
    flex-direction: row ;
    margin: 0 20px ;
    justify-content: space-between
}

.loginActions{
    color: cornflowerblue;
    cursor: pointer;
    font-size: 0.9em;
}

.loginActions:hover{
    color: red;
}

.field-icon {
    float: right;
    margin-right: 10px;
    margin-top: -27px;
    position: relative;
    z-index: 2;
}

.field-icon-registration {
    float: right;
    margin-right: 30px;
    margin-top: -27px;
    position: relative;
    z-index: 2;
}

.signUpBtn{
    float: right;
}

.wrongCredential{
    border-color: #dc3545;
}

#loginWrongCredential{
    width: 100%;
    margin-top: .25rem;
    font-size: 80%;
    color: #dc3545;
    margin-left:20px;
    margin-right:20px;
}

@media(max-width: 786px) {

    #loginFormContainer.showingLogin{
        /*border-radius: 5px;*/
        /*z-index: 20;*/
        /*transition: all 0.2s linear;*/
        /*position: absolute;*/
        right:5%;
        top: 160px;
        /*background-color: white;*/
        width: 90%;
        /*height: 400px;*/
        /*-webkit-box-shadow: 6px 6px 10px 6px rgba(0,0,0,0.15);*/
        /*-moz-box-shadow: 6px 6px 10px 6px rgba(0,0,0,0.15);*/
        /*box-shadow: 6px 6px 10px 6px rgba(0,0,0,0.15);*/
    }

}

@media(max-width: 786px) {


    .logo {
        position: fixed;
        top: 0;
        margin-top: 20px;
    }

    .logo img {
       height: 40px !important;
    }

    nav ul {
        overflow: hidden;
        margin-left: 0;
        display: block;
        max-height: 0;
        background: #000;
    }

    nav.black ul {
        opacity: 0.7;
        background: #000;
    }

    .showing {
        max-height: 34em;
    }

    nav ul li {
        box-sizing: border-box;
        width: 100%;
        padding: 30px;
        text-align: center;
    }

    .menu-icon {
        opacity: 0.7;
        display: block;
    }

    .dropdown-menu {
        right: auto;
        bottom: -10px !important;
        left: unset;
        min-width: 0;
        opacity: 0.7;
        background: #fff;
    }

    .dropdown-item {
        color: #000;
    }

}