/* navigation */
*{
    box-sizing: border-box;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Raleway", sans-serif;
}
nav{
    display:flex;
    justify-content:center;
    align-items:center;

    height:3em;
    background-color:#008f9f;
}
nav a{
    padding:20px;
    color:white;
    text-decoration:none;
}
nav a:hover{
    font-weight: 750;
}
.active{
    text-decoration: underline;
}
#navigation{
    display:flex;
}
#navdropdown{
    position: relative;
}
#navdropdown p {
    cursor: pointer;
    color:white;
    padding:20px;
    margin:0;
}
#navdropdown-content{
    position:absolute;
    display:none;
    flex-direction: column;
    justify-content: center;
    top:50px;
    left:-35px;
    width:188px;
    z-index: 1;
}
.navdropdown-active {
    display: block !important;
}
#navdropdown-content a{
    display: flex;
    justify-content: center;
    z-index: 1;
    background-image:linear-gradient(to bottom,#008f9f,#1ab8ca) ;
    padding:10px;
}
#navdropdown-content :last-child{
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
#navdropdown:hover #navdropdown-content{ 
    cursor:pointer;
    display: block;
}
#menu-icon{
    display:none;
    font-size: 2em;
}
#close-icon{
    display:none;
    font-size: 5em;
    position: absolute;
    right:40px;
    top:10px;
}


/* LOGO */
#logo-container{
    position: relative;
    background-image: url(../assets/ubb.jpg);
    background-repeat: no-repeat;
    background-size: 1500px 650px;
    background-position:right bottom;
    height: 650px;
    animation: zoomBackground 5s ease-in-out infinite alternate; 
}
@keyframes zoomBackground {
    0% {
        background-size: 1500px 650px;
    }
    100% {
        background-size: 1600px 700px;
    }
}
.v-overlay {
    position: absolute;
    bottom: 0;
    background-color: #b3dbdc;
}
.v-overlay.large {
    transform: skewY(-7deg); 
    height: 12%; 
    width:30%;
    max-width:calc(0.3 * 100vw);
    right:0;
    bottom:0px;
    transform-origin: top right;
}
.v-overlay.small {
    transform: skewY(3deg);
    height: 12%; 
    bottom:0px;
    width:70%;
    max-width:calc(0.7*100vw);
    transform-origin: bottom left;
}
#logo{
    display: flex;
    justify-content: space-between;
    background-color: rgba(203,239,255,0.6);
}
#logo p span{
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   font-weight: 700;
   text-transform: uppercase;
   font-size: 1.5em;
}
#logoanalytica{
    margin-left:30px;
    width: 140px;
    height: 140px;
}
#logoubb {
    width: 140px;
    height: 140px;
    margin-right: 30px;
}
#logo button{
    position: absolute;
    bottom:130px;
    left:20px;
    padding: 10px;
    border:1px solid #1ab8ca;
    background-color: #008f9f;
    cursor:pointer;
    font-weight: 600;
    text-transform: uppercase;
    color:white;
}
#logo button:hover{
    background-color: #1ab8ca;
}


/* responsive design */

@media screen and (min-width: 1500px) {
    nav{
        height:4em;
    }
    nav a{
       font-size: 1.5em;
    }
    nav p {
        font-size: 1.5em;
    }
    @keyframes zoomBackground {
        0% {
            background-size: 2000px 700px;
        }
        100% {
            background-size: 2100px 750px;
        }
    }
    #navdropdown-content{
        top:65px;
        width:250px;
    }
    #logo-container{
        background-position: center;
    }
    #logo{
        align-items: center;
    }
    #logo p span{
        font-size: 1.7em;
    }
    #logoanalytica{
        width: 160px;
        height: 160px;
    }
    #logoubb {
        width: 160px;
        height: 160px;
    }
    #logo button{
        padding: 15px;
        font-size:1em
    }
    main div p, main div li{
        font-size: 1.3em;
    }
}

@media screen and (max-width: 1200px) {
    #logo-container {
        background-position:center
    }
    @keyframes zoomBackground {
        0% {
            background-size: 1200px 650px;
        }
        100% {
            background-size: 1300px 700px;
        }
    }
    #logoanalytica,#logoubb{
        width: 125px;
        height: 125px;
    }
}


@media screen and (max-width: 992px) {
    #menu-icon{
        display:block;
    }
    nav {
        flex-direction: row;
        position: relative;
        justify-content: space-around;
        height: auto;
        z-index: 10;
    }
    #navigation {
        display:none;
        flex-direction: column;
        align-items: center;
    }
    #navdropdown{
        position: static;
    }
    #navdropdown-content{
        display: block;
        position: static;
    }
    .research{
        display:none
    }
    #navdropdown-content a{
        background-image: none;
        padding:10px;
    }
    nav a{
        font-size: 1.6em;
        padding: 10px;
     }
     nav p {
         font-size:1.6em;
     }
    #navdropdown-content {
        left: 0;
        width: 100%;
    }
    #logo-container {
        display: block;
        background-position:center
    }
    @keyframes zoomBackground {
        0% {
            background-size: 1000px 700px;
        }
        100% {
            background-size: 1100px 750px;
        }
    }
    #logoanalytica,#logoubb{
        width: 115px;
        height: 115px;
    }
    #logo p span {
        font-size: 1.2em;
    }
}

@media screen and (max-width: 768px) {
    #logo p span {
        font-size: 1em;
    }
    #logoanalytica, #logoubb {
        width: 100px;
        height: 100px;
    }
    #logo-container {
        display: block;
        background-position:center
    }
    @keyframes zoomBackground {
        0% {
            background-size: 800px 700px;
        }
        100% {
            background-size: 900px 750px;
        }
    }
}

@media screen and (max-width: 576px) {
    #close-icon{
        font-size: 3.5em;
        right:15px;
    }
    nav a {
        display: block;
        text-align: center;
        width: 100%;
        padding: 10px;
    }
    #navdropdown p {
        text-align: center;
    }
    #navdropdown-content {
        width: 100%;
    }
    #logo p{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        word-wrap: break-word;
    }
    #logo p span {
        font-size: 0.9em;
        text-align: center;
    }
    #logoanalytica, #logoubb {
        width: 80px;
        height: 80px;
    }
    #logoanalytica{
        margin-left:5px;
    }
    #logoubb{
        margin-right:5px;
    }
    #logo button {
        font-size: 12px;
        padding: 5px;
        bottom: 100px;
    }
    #logo-container {
        display: block;
        background-size: cover;
        background-position:center
    }
    @keyframes zoomBackground {
        0% {
            background-size: 800px 750px;
        }
        100% {
            background-size: 800px 750px;
        }
    }
}









