
@font-face {
   font-family: "Open Sans";
   src: url("../fonts/open-sans-v27-latin-300.woff2") format("woff2"), url("../fonts/open-sans-v27-latin-300.woff") format("woff");
   font-weight: 300;
   font-style: normal;
   font-display: swap;
}

@font-face {
   font-family: "Open Sans";
   src: url("../fonts/open-sans-v27-latin-regular.woff2") format("woff2"), url("../fonts/open-sans-v27-latin-regular.woff") format("woff");
   font-weight: 400;
   font-style: normal;
   font-display: swap;
}

html {
  scroll-behavior: smooth;
}

/* Flexbox Layout elements >> */

.layout {
	min-height: 100vh;
}
.layout {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}
.layout-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: row;
}
.layout-content {
	flex: 1 1 auto;
}
.layout-sidebar-1 {
  order: -1;
}

/* << Flexbox Layout elements */

* {
  font-family: 'Open Sans', sans-serif;
  font-size: 1em;
}

* {
  box-sizing: border-box; 
}

a:link { 
  text-decoration: none; 
  color: darkcyan;
}
a:visited { 
  text-decoration: none; 
  color: darkcyan;
}
a:hover { 
  text-decoration: none; 
  color: #B0C4DE;
}

body {
  margin: 0;
}

p.parhead { 
  font-weight: bold; 
  color: darkcyan; 
}

.navcontainer {
  display: flex;
  flex-direction: column;
}

.navitem {
  margin: 3px;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: #B0C4DE;
  color:darkcyan; /* #114411;*/
  border: 0;
  text-align: right;
}

.navitem.disabled {
  color:white; 
  background-color:darkcyan;
  /*background-color: #13547a;*/   /* YY */
  /*background-image: linear-gradient(15deg, #13547a 0%, #80d0c7 100%); /*Aqua Splash*/

/*  opacity: 0.8;*/
}
.navitem.disabled:hover {
  color:white; 
  box-shadow: none;
  cursor: default;
}
.navitem:hover { 
  color:white; 
  box-shadow: 0 0 2px 2px rgba(0, 140, 186, 0.5);
  cursor: pointer;
}
/*
.navitem:active {
  color: blue;
  border: 0;
}*/

nav {
  flex: 0 0 140px;  /*10vw auto*/ 
  /*min-width: fit-content;*/
  /*width: 140px;*/
  background: /*#ddddf0;*/ /*#ddf3fe;*/ /*#F7F7E3;*/ /*#FFF0E0;*/  beige;
}

main {
  position: relative;
  width: 100%;
  height: auto;
  background-color: white;
  margin-right: 20px;  /* because of deco */
}

header {
  display: flex;
  flex-direction: row;
  align-items: center; /* align vertical */
  /*height: 10vh;*/
  height: 80px;
  /*background: darkcyan;*/  /* YY */
  /*background-image: linear-gradient(15deg, #13547a 0%, lightblue 100%);*/ /*Aqua Splash*/
  /*background-image: linear-gradient(90deg, darkcyan 0%, #69b1b6 100%);*/
  background-image: linear-gradient(90deg, darkcyan 10%, #427695 100%);
  /*background-image: linear-gradient(15deg, #13547a 0%, darkcyan 100%);*/

  color: white;
}

header, main, nav {
  padding: 1em;
}

#headline {
  z-index: 100;
}

#logo {
  margin-top: 15px;
  margin-bottom: 10px;
  margin-left: 5px;
  margin-right: 35px;
}
#logo img {
  height: 60px;
}

#deco {
  z-index: 200;
}
/* frame
#deco img {
  border: 1px solid #ddd;
  background-color: #ddd;
  border-radius: 3px;
  padding: 3px;
}*/
#deco img {
  margin-left: -20px;
  margin-top: -80px;
  height: 250px;
  transition: height 0.5s linear;
}

.linkHover:hover {
  box-shadow: 0 0 2px 2px rgba(0, 140, 186, 0.5);
}

/*
#curpage {
  background-color: darkcyan;
}*/

footer {
  padding-top: 15px;
  padding-bottom: 15px;
  margin-right: 0px;  /* deco width */
  color: white;
  /*background: darkcyan;*/
  /*background-image: linear-gradient(15deg, #13547a 0%, lightblue 100%);*/   /* YY */
  /*background-image: linear-gradient(90deg, darkcyan 0%, #69b1b6 100%);*/
  background-image: linear-gradient(90deg, darkcyan 10%, #427695 100%);
  /*background-image: linear-gradient(90deg, darkcyan 10%, #13547a 100%);*/

  text-align: center;
}
footer a:link { 
  color: #B0C4DE;
}
footer a:visited { 
  color: #B0C4DE;
}
footer a:hover { 
  color: white;
}

#profilePic {
  float: left;
  /*padding-right: 15px;*/
}
#profilePic img {
  margin-right: 15px;
  border: 1px solid #ddd;
  background-color: #ddd;
  border-radius: 3px;
  padding: 3px;
}
  /* Hamburger Menu */

#sidebarMenu {
  /*
    overflow-x: hidden;
    height: 100%;*/
  z-index: 2000;
  position: absolute;
  left: 16px;
/*    width: 140px;*/
  margin-top: 0px;
}
#hamburger {
  display: none;
}
input[type=checkbox] {
  display: none;
}

/* Go to Top - button */
#topButton {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 40px;
  right: 60px;
  z-index: 1000; /* Make sure it does not overlap */
  border: none;
  outline: none;
  /*background-color: darkcyan;*/
  background: #008b8b;
  background: rgba(0, 55, 55, 0.5);
  color: white;
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px;
  border-radius: 10px; /* Rounded corners */
  font-size: 1.5em;
  transform:rotate(90deg);
}
/*
#topButton:hover {
  background-color: #B0C4DE;
  background-color: darkcyan;
}*/

/* --------------------------------------------- */

#profileTop {
  min-height: 140px;
  margin-left: 125px;
}

.profileTable {
  font-size: 11pt;
  text-align: left;
  /*width: 580px;*/
  width: 100%;
  border: 0px;
  padding: 5px;
  margin: 0px;
  padding-bottom: 20px;
  border-radius: 15px;
}

.profileTable a:hover { 
  text-decoration: none; 
  color: white;
}

/* profile sections: */
#personData {
  background-color: #e3f0fc;
}
#knowledge {
  background-color:#d7e5fc;
}
#projects {
  background-color:#b5d1eb;
}

.profileTable th {
  font-size: 12pt;
  padding-bottom: 8px;
  font-weight: bold;
}

.profileTableSubj {
  width: 110px;
  padding-right: 20px;
  font-weight: bold;
  text-align: right;
  vertical-align: top;
  padding-bottom: 5px;
}

.profileTableVal {
  /*width: 440px;*/
  /*width: 100%;*/
  text-align: left;
  vertical-align: top;
  padding-bottom: 5px;
}

.profileTableProj {
  /*width: 580px;*/
  /*width: 100%;*/
  font-weight: bold;
  text-align: left;
  vertical-align: top;
  padding-top: 10px;
  padding-bottom: 5px;
}

.profileTableProjSubj {
  width: 50px;
  padding-right: 20px;
  font-weight: bold;
  text-align: right;
  vertical-align: top;
  padding-bottom: 5px;
}

.profileTableProjVal {
  /*width: 530px;*/
  /*width: 100%;*/
  text-align: left;
  vertical-align: top;
  padding-bottom: 5px;
}

/* for small screen sizes: */
@media only screen and (max-width: 870px) {
  .layout-body {
	  flex-direction: column;
  }

  nav {
    flex: 0 0 68px;  /*10vw auto*/ 
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .navcontainer {
    flex-direction: row;
    align-items: center; /* align vertical does not work? */
    flex-wrap: wrap;
  }

  .navitem {
  	width: 110px;
	  margin: 2px;
/*	padding-top: 4px;
	padding-bottom: 4px;*/	
	  text-align: center;
  }

  #logo {
    margin-right: 25px;
  }

  #deco {
    right: 0px;
    top: 0px;
    position: absolute;
  }
  #deco img {
    margin-top: 0px;
    /*height: 95px;*/
    height: 170px;
    transition: height 0.5s linear;
  }
}

@media only screen and (max-width: 610px) {
  #profileMain { padding: 0em; }

  header {
	  padding-right: 95px;
  }

  nav {
    flex: 0 0 48px;  /*10vw auto*/ 
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .navcontainer {
    flex-direction: column;
  }

  .navcontainer:last-child {
    border-bottom: 1px solid darkcyan;
  }

  .navitem {
    margin: 0px;
  	width: 220px;
    text-align: left;
    border-top: 1px solid darkcyan;
  }
  .navitem:hover { 
    box-shadow: none;
  }

  /* --------------------------------------------- */

  /* Hamburger Menu */

  #hamburger {
    display: block;
    float: left;
    cursor: pointer;

    background-size: 40px 41px;
    background-repeat: no-repeat;
    background-image: url("http://www.mathies.net/pictures/hamburger_1_transparent.png");
    height: 41px;
    width: 40px;
  }
  /* change image to hamburger close icon */
  input[type="checkbox"]:checked ~ .sidebarIconToggle > #hamburger {
    background-image: url("http://www.mathies.net/pictures/close_1_transparent.png");
  }

  @media (hover: hover) {
    #hamburger:hover {
/*      opacity: 0.5;*/
      background-image: url("http://www.mathies.net/pictures/hamburgerinv_1_transparent.png");
    }
    input[type="checkbox"]:checked ~ .sidebarIconToggle > #hamburger:hover {
      background-image: url("http://www.mathies.net/pictures/closeinv_1_transparent.png");
    }
  }

  #sidebarMenu {
    margin-top: 45px;
    visibility: hidden;
    /*transform: translateX(-240px);*/
    /*transition: transform 200ms ease-in-out;*/
    opacity: 0;
  }

  #sidebarMenu label {
    display: block;
  }

  #deco img {
    height: 137px;
    transition: height 0.5s linear;
  }

  input[type="checkbox"]:checked ~ #sidebarMenu {
    /*transform: translateX(0px);*/
    visibility: visible;
    -webkit-transition: opacity 0.5s linear;
    -moz-transition: opacity 0.5s linear;
    -o-transition: opacity 0.5s linear;
    transition: opacity 0.5s linear;
    opacity: 1;
  }
  /*
  input[type=checkbox] {
    transition: all 0.3s;
    box-sizing: border-box;
  }*/
/*
  .sidebarIconToggle {
    cursor: pointer;
  }*/

/* --------------------------------------------- */

}

@media only screen and (max-width: 380px) {
  header { 
   font-size: 0.9em;
  }
  #logo {
    margin-right: 10px;
  }
}
@media only screen and (max-width: 250px) {
  header { 
   font-size: 0.6em;
  }
}
@media only screen and (max-width: 200px) {
  header { 
   font-size: 5px;
  }
  #logo {
    margin-right: 2px;
  }
}
