/* @import url("layout.css"); */

/* Layout */
body{
    /*min-width: 630px;*/
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 15px;
    margin: 0;
    padding: 0;
/*     line-height: 1.5em; */
}

* {
    box-sizing: border-box;
}

a:link {
    background-color: transparent;
    text-decoration: none;
}
a:visited {
    background-color: transparent;
    text-decoration: none;
}
a:hover {
    background-color: transparent;
    text-decoration: underline;
}
a:active {
    background-color: transparent;
    text-decoration: none;
}

/*html{
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    right:0;
}*/

/* IE hack */ /* sera que isto faz alguma coisa? */
* html #left{
    left: 150px;
}

/* CENTER */

#center{
    position: relative;
    float: left;
    width: calc(100% - 16% - 16%);
    margin: 0;
    background: #ffffff;
    z-index: 0;
    overflow-y: auto;
}

article{
    padding: 2%;
}

#header{
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.2%;
    background: #c0daea;
/*     background: #cbe7ff; */
    z-index: 2;
    box-shadow:0px 1px 4px 0px rgba(0,0,0,1);
}

.logo{
    height:8.5vw;
    max-height:85px;
}

#footer{
    position: relative;
    width: 100%;
    background: #c0daea;
    z-index: 2;
    clear: both;
    padding: 0px;
    overflow-y: auto;
    box-shadow:0px -1px 4px 0px rgba(0,0,0,1);
}

.f_logo{
    height:50px;
    padding: 10px 0px 10px 0px;
}

/* Fix for the footer */
/** html body{
    overflow: hidden;
}*/

/** html #footer-wrapper{
    float: left;
    position: relative;
    width: 100%;
    padding-bottom: 10010px;
    margin-bottom: -10000px;
    background: #ffffff;
}*/

/* LEFT */

#left{
    position: fixed;
    display: block;
    font-size: 1.245vw;
    width: 16%;
    height: 100vh;
    float: left;
    background: #e4e6ff;
    margin: 0px;
    padding: 0px;
    z-index: 1;
}

nav ul{
    list-style-type: none;
    margin: 0;
    padding: 0px;
    width: 100%;
}

nav li{
    position: relative;
    width: 100%;
}

nav li a{
    display: block;
    position: relative;
    color: #000000;
    padding: 3% 1% 3% 5%;
    text-decoration: none;
    width: 100%;
}

nav li a.active{
    background-color: #c0daea;
    color: #000000;
}

nav li a:hover:not(.active){
    background-color: #98a7ce;
    color: #000000;
}

nav li a, .dropbtn{
    display: inline-block;
    /*padding: 14px 16px;*/
}

nav li a:hover, .dropdown:hover .dropbtn{
    background-color: #98a7ce;
    text-decoration: none;
}

nav li.dropdown{
    display: inline-block;
}

.dropdown-content{
    display: none;
    position: absolute;
    background-color: #e4e6ff;
    min-width: 100%;
    box-shadow: 0px 0.5vw 1vw 0px rgba(0,0,0,0.2);
    z-index: 15;
    top: 0px;
    left: 100%;
}

.dropdown-content a{
    color: black;
    padding: 3% 1% 3% 5%;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover{background-color: #98a7ce}

.dropdown:hover .dropdown-content{
    display: block;
}

.dropdown-submenu{
    position: relative;
}

.dropdown-submenu .dropdown-content{
    top: 0;
    left: 100%;
    margin-top: -1px;
}

/* RIGHT */

#right{
/*     position: fixed; */
/*     position: relative; */
    float: right;
    font-size: 0.8vw;
    width: 16%;
    height: calc(100vh - 50px - 84px);
    padding: 0px;
    background: #e7ebf2;
    margin: 0px;
/*     overflow-y: auto; */
}

/* Aesthetics */
p{
    color: black;
}

button{
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    /*border: 1px solid #e5e9f0;*/
    border: 0px;
    border-radius: 0px;
    background: none;
    box-shadow: none;
    color: #000000;
    font-size: 1.2vw;
    padding: 0.4vw;
    text-decoration: none;
}

button:hover {
  /*background: #e0e4f0;*/
  cursor: pointer;
  text-decoration: none;
}

.bandeiras{
    height:4vw;
    overflow-y:none;
}

hr{ 
    display: block;
    margin-top: 2.5em;
    margin-bottom: 0.5em;
    margin-left: auto;
    margin-right: auto;
    border-style: inset;
    border-width: 5px;
}



/* The Modal (background) */
.modal{
    display: none; /* Hidden by default */
/*     display: block; */
    position: fixed; /* Stay in place */
    z-index: 3; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content{
    position: relative;
    background-color: #ffffff;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 50%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,1),0 6px 20px 0 rgba(0,0,0,1);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@-webkit-keyframes animatetop{
    from {top:-300px; opacity:0} 
    to {top:0; opacity:1}
}

@keyframes animatetop{
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

/* The Close Button */
.close{
    color: black;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus{
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header{
    padding: 2px 16px;
    background-color: #98a7ce;
    color: black;
}

.modal-body{
    padding: 2px 16px;
    color: black;
}

.modal-footer{
    padding: 2px 16px;
    background-color: #98a7ce;
    color: black;
}

.dirBtn{
    list-style-type: none;
    margin: 0;
    border: 1px solid #777;
    padding: 5px;
    background: #eeeeee;
}
.dirBtn:hover{
    background-color: #999;
    color: white;
}

.dir{
    list-style-type: none;
    margin: 0;
    border: 1px solid #555;
}
.dir li{
    margin: 1px;
    padding: 2px;
    background: #eeeeee;
    border-bottom: 1px solid #555;
}
.dir li:last-child{
    border-bottom: none;
}
.dir li a{
    display: block;
    text-decoration: none;
    color: black;
}
.dir li:hover{
    background-color: #999;
    color: white;
}


#left_h{
    position: relative;
    display: block;
    width: 16%;
    height: calc(100vh - 50px - 8.5vw);
    float: left;
    margin: 0px;
    padding: 0px;
    z-index: 0;
    visibility:hidden;
}

@media only screen and (min-width: 600px){
    .logo{
        height:8.4vw;
/*         max-height:84px; */
    }
    #left_h{
        height: calc(100vh - 50px - 8.4vw);
    }
}

@media only screen and (min-width: 992px){
    .logo{
        height:84px;
    }
    #left_h{
        height: calc(100vh - 50px - 84px);
    }
}

.ifr{
    font-size:100%;
}

@media only screen and (min-width: 1370px){
    #left{
        font-size: 0.83vw;
        width: 11%;
    }
    #left_h{
        width: 11%;
    }
    
    #right{
        width: 11%;
        font-size: 1vw;
    }
    
    .ifr{
        font-size:71%;
    }
    
    #center{
        width: calc(100% - 22%);
    }
    
    nav li a{
        padding: 5% 5% 5% 10%;
    }
    
    .dropdown-content a{
        padding: 5% 5% 5% 10%;
    }
    
    button{
        font-size: 0.9vw;
        padding: 0.25vw;
    }
}


