/* @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%);
    margin: 0;
    background: #ffffff;
    z-index: 0;
    overflow-y: auto;
}

#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: 14;
    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); */
    height: 100vh;
    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: #e4e6ff;
}
.dirBtn:hover{
    background-color: #c0daea;
}

.tabBtn{
    width: 100%;
    list-style-type: none;
    text-decoration: none;
    color: black;
    margin: 0;
/*     border: 1px solid #777; */
    border-bottom: 5px solid #ddd;
    padding: 5px;
/*     background: #e4e6ff; */
}
.tabBtn:hover{
    background-color: #c0daea;
}

.currentTab{
    border-bottom: 5px solid #c0daea;
}


.dir{
    list-style-type: none;
    margin: 0;
    border: 1px solid #555;
}
.dir li a{
    display: block;
    text-decoration: none;
    color: black;
}

.flex-container{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

div.gallery{
    border: 1px solid #ccc;
    margin: 0.5em;
    width: 9em;
    text-decoration: none;
    color: black;
}
div.gallery:hover{
    border: 1px solid #000;
}

div.desc{
    text-decoration: none;
    color: black;
    padding: 0.2em 0.3em;
    text-align: center;
}
div.gallery a{
    text-decoration: none;
    color: black;
}


#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;
}

#home_video{
    width: 50vw;
    height: 28.4vw;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.card{
    display: block;
    text-decoration: none;
    color: black;
    width: calc(100% - 1.5vw);
    height: 80%;
    padding: 0.5vw;
    margin-left: 1vw;
    margin-bottom: 1vw;
    float: left;
    border: 1px solid #000000;
    background-color: #e5e5e5;
    font-size: 0.83vw;
}

.card h3{
    font-size: 1vw;
}

.presentation{
    clear: both;
    position: relative;
/*     width: 100%; */
/*     height: 25vw; */
/*     height: 200px; */
    display: block;
    text-decoration: none;
    color: black;
    
    padding: 0.5vw;
    margin-left: 1vw;
    margin-bottom: 1vw;
    float: left;
    border: 1px solid #000000;
    background-color: #e5e5e5;
    font-size: 0.83vw;
}

.presentation a{
    color: black;
    width: 100%;
    text-decoration: none;
}

.overlay{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #e5e5e5;
  /*transform: translate(0%, -100%);
  -ms-transform: translate(0%, -100%);*/
}

.overlay a:hover{
    text-decoration: underline;
}

.presentation:hover .overlay{
  opacity: 0.9;
}

#flex{
    display: flex;
    flex-wrap: wrap;
    margin: 0.5vw;
}
#flex > div {
    width: calc(50% - 1vw);
    height: 80%;
    display: block;
    text-decoration: none;
    color: black;
    padding: 0.5vw;
    margin: 0.5vw;
    float: left;
    border: 1px solid #000000;
    background-color: #e5e5e5;
    font-size: 0.83vw;
    text-align: center;
    font-size: 0.83vw;
}


.alert{
    padding: 20px;
    padding-top:15px;
    padding-bottom:15px;
/*     background-color: #f44336; */
    background-color: #98a7ce;
    color: black;
    opacity: 0.9;
    transition: opacity 0.6s;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 15;
    width: 100%;
    font-weight: bold;
}

.alert.success {background-color: #4CAF50;}
.alert.info {background-color: #98a7ce;}
.alert.warning {background-color: #ff9800;}

.closebtn{
    margin-left: 15px;
    color: black;
    float: right;
/*     font-size: 22px; */
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.closebtn:hover{
    color: black;
}


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

@media only screen and (min-width: 992px){
    .logo{
        height:84px;
    }
    #left_h{
        height: calc(100vh - 50px - 84px);
    }
    #home_video{
        width: 50vw;
        height: 28.4vw;
    }
    
    .card{
        width: calc(33.33% - 1.5vw);
    }
    
    #flex > div {
        width: calc(33% - 1.25vw);
    }
}

.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% - 11%);
    }
    #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;
    }
    #home_video{
        width: 37.5vw;
        height: 21.3vw;
    }
    
    .card{
        width: calc(33.33% - 1.5vw);
    }
    
    #flex > div {
        width: calc(25% - 1.25vw);
    }
}


