* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a.header:link, a.header:active, a.header:visited {
text-decoration: none;
color: inherit;
}

a.bodylinks {
  text-decoration: none;
  color: blue;
}

body {
  background: url(../Images/background.JPG) no-repeat top right fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}


.wrapper {
    height: 100vh;
    display: flex;
    /* Direction of the items, can be row or column */
    flex-direction: column;
}

header {
  display: flex;
  height: 50px;
  width: 100%;
  background: rgba(0, 0, 0, .2);
}


#lefttopnavname {
  width: 33%;
  align-self: center;
  font-size: 25px;
  color: rgba(228, 224, 255, 1);
  letter-spacing: 2px;
  font-family: 'Julius Sans One', Verdana;
  padding-left: 15px;
}




nav {
  align-self: center;
  width: 100%;
  padding-right: 5%;
}


li {
  list-style: none;
}


ul.parent > li {
  float: left;
  width: 20%;
  text-align: center;
  font-family: 'Droid Sans', sans-serif;
  color: rgba(228, 224, 255, 1);
  padding:6px;
  cursor: pointer;
  font: 1em;
  letter-spacing: 2px;
 -o-transition:color .1s ease-out, background 1s ease-in;
  -ms-transition:color .1s ease-out, background 1s ease-in;
  -moz-transition:color .1s ease-out, background 1s ease-in;
  -webkit-transition:color .1s ease-out, background 1s ease-in;
  /* ...and now override with proper CSS property */
  transition:color .1s ease-out, background 1s ease-in;

}

ul.parent > li:hover { color: white; }






main {
    flex: 1;
}


#AboutDiv {

        width: 750px;
        height: 540px;
        background-color: rgba(255,255,255,0.9);

        position:relative; /*it can be fixed too*/
        margin:auto;
	margin-top: 30px;
        /*this to solve "the content will not be cut when the window is smaller than the content": */
        max-width:100%;
        max-height:100%;
        overflow:auto;
	border-radius: 3px;

}


#AboutLeft {
   height: 100%;
   width: 50%;

   float: left;
   position: relative;
}

#AboutLeft > img {
    border:1px solid gray;
    height: 90%;
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#AboutRight {
   margin: 10px;
   padding: 10px;
}

#AboutRight > h1 {
    font-family: 'Julius Sans One', Verdana;
    font-size: 1.2em;
    padding-bottom: 10px;
    color: #4c566f;
}

#AboutRight > p {
  text-align: left;
  padding-bottom: 20px;
}

/* WORK */

#WorkDiv {

        width: 80%;
        height: 75%;
        background-color: rgba(255,255,255,0.9);

        position:absolute; /*it can be fixed too*/
        left:0; right:0;
        top:0; bottom:0;
        margin:auto;

        /*this to solve "the content will not be cut when the window is smaller than the content": */
        max-width:100%;
        max-height:100%;
        overflow:auto;
 	padding-left: 40px;
 	padding-right: 40px;
	border-radius: 3px;
}

#WorkDiv > h1 {
    font-family: 'Julius Sans One', Verdana;
    font-size: 1.3em;
    padding-bottom: 10px;
    color: #4c566f;
    padding-top: 20px;
}

#WorkDiv > h2 {
    font-family: 'Julius Sans One', Verdana;
    font-size: 0.9em;
    padding-bottom: 10px;
    color: #4c566f;
}

#WorkDiv > p {
	text-align: left;
        padding-bottom: 10px;
}



/* Black and white pages */


#lefttopnavnameblk {
  width: 33%;
  align-self: center;
  font-size: 25px;
  color: black;
  letter-spacing: 2px;
  font-family: 'Julius Sans One', Verdana;
  padding-left: 15px;
}





#TeachingDiv {


        width: 50%;
        height: 68%;
        background-color: rgba(255,255,255,0.9);

        position:absolute; /*it can be fixed too*/
        left:0; right:0;
        top:0; bottom:0;
        margin:auto;

        /*this to solve "the content will not be cut when the window is smaller than the content": */
        max-width:100%;
        max-height:100%;
        overflow:auto;
 	padding-left: 40px;
 	padding-right: 40px;
	border-radius: 3px;

}



#TeachingDiv > h1 {
    font-family: 'Julius Sans One', Verdana;
    font-size: 1.3em;
    padding-bottom: 10px;
    color: #4c566f;
    padding-top: 20px;
}

#TeachingDiv > h2 {
    font-family: 'Julius Sans One', Verdana;
    font-size: 0.9em;
    padding-bottom: 10px;
    color: #4c566f;
}

#TeachingDiv > p {
	text-align: left;
        padding-bottom: 10px;
}













footer {
   display: flex;
   bottom:0;
   width:100%;
   height:30px;   /* Height of the footer */
   background: rgba(0, 0, 0, .2);
}



#footerp {
  align-self: center;
  padding-left: 15px;
  font-family: 'Droid Sans', sans-serif;
  font-size: 0.8em;
  color: #c1beb7;
}

#footerp > a {

 -o-transition:color .1s ease-out, background 1s ease-in;
  -ms-transition:color .1s ease-out, background 1s ease-in;
  -moz-transition:color .1s ease-out, background 1s ease-in;
  -webkit-transition:color .1s ease-out, background 1s ease-in;
  /* ...and now override with proper CSS property */
  transition:color .1s ease-out, background 1s ease-in;
}

#footerp > a:hover { color: white; }
