/* main layout */
/* go to hell with Bootstrap---I do it by myself */

* {box-sizing: border-box;}
body {padding: 0; margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 300; font-size: 1.15em; line-height: 1.25}
main {background-color: white;  order: 0; width: 66%; padding-right: 15px;}
aside {width: 33%;  order: 1; background: #343434;  padding: 15px;}
footer {margin: auto; text-align: center; margin: 30px; font-size: 0.9em;}

h1, h2, h3, h4, nav {font-family: 'Exo 2', sans-serif; font-weight: 300;}
h1, h2, h3, h4 {font-weight: 600;}
h2 {text-transform: uppercase; font-size: 1.3em;}

body > div {width: 980px; margin: auto;  display: flex; overflow: hidden;}
#circle {width: 105px; height: 105px; border-radius: 50%; background-color: white; margin: auto; margin-top: 40px; opacity: 0.95;
  background: #eee url('../images/martin-trnecka.png') no-repeat center -0px; background-size: auto 120px;}
.wraper {text-align: center; width: 100%; color: white;}
.wraper span {font-size: 0.8em;}
main a {color: #006cca; text-decoration: none; font-weight: 400;}
main a:hover {text-decoration: underline;}

/* mobilni navigace */
#nav-icon {display: none;}
#nav-icon svg {width: 30px;}
button {background: none; width: 40px; height: 40px; border: none; vertical-align: middle; cursor: pointer; margin-top: -6px;}
button:focus {outline:0;}

/* sidebar */
h1 {color: white; text-align: center;}
aside ul {padding-left: 0; margin-left: -15px; margin-right: -15px;}
aside ul li {list-style-type: none; border-bottom: 1px solid rgba(146,146,146,.18); margin: 0}
aside ul li a {color: white; text-transform: uppercase; text-decoration: none; padding: 10px; padding-left: 20px; display: block; overflow: hidden; position: relative;}

/* contact info */
#contact div {float: left; width: 75%; padding-top: 5px; padding-bottom: 5px;}
#contact div:nth-child(2n) {width: 25%;}
#contact:after {content: ""; display: block; clear: both;}

/* timelines */
ul {padding: 0;}
ul.timeline li {margin-bottom: -5px; list-style-type: none; border-left: 7px solid #73beff; padding-left: 12px; padding-top: 0.1em;}
ul.timeline li p {font-size: 0.9em; margin-top: 0.1em;}

/* seznamy */
ul.item-list {padding-left: 0px; margin-left: 0px;}
ul.item-list li {list-style-type: none; border-left: 7px solid #73beff; ; padding-left: 12px; padding-top: 0.1em; margin-bottom: 10px; font-size: 0.9em;}

ol {padding-left: 20px; margin-left: 0px; font-size: 0.9em; margin-top: -10px; list-style: none; counter-reset: my-counter;}
ol li {margin-bottom: 7px; counter-increment: my-counter; position: relative; padding-left: 10px; counter-increment: my-counter -1;}
ol li::before {
  position: absolute;
  content: "" counter(my-counter);
  text-align: center;
  box-sizing: border-box;
  left: -20px;
  width: 20px;
  height: 20px;
  font-size: 0.7em;
  line-height: 1.6;
  background-color: #73beff;
  color: white;
  margin-right: 7px;
  font-family: 'Exo 2', sans-serif;
}

/* publikace */
#publications .label a {}
.publication-aditional {display: inline; font-size: 0.9em;}
.publication-aditional:before {content: "["}
.publication-aditional:after {content: "]"}

/* oznameni */
.announcement {float: none; width: 100%; border: 1px solid #0066ff; padding: 0px 20px; background-color: #0066ff; color: white;}
.announcement a {color: white;}

.table-row-description {vertical-align: top; text-align: right;}

/* responsive modification */
/* Normal Desktop */
@media (min-width: 980px) {
  /* sidebar hover animation */
  aside ul li a::after {
  content: "";
  position: absolute;
  top: 100px;
  left: -30px;
  width: 50px;
  height: 50px;
  background-color: rgba(146,146,146,.1);
  transition: all .1s ease;
  transform: scale(3) rotate(30deg);
  }

  aside ul li a:hover::after {
    width: 200px;
    height: 200px;
    background-color: rgba(255,255,255,0.1);
    transition: all .3s cubic-bezier(.55,.06,.68,.19);
    transition-property: all;
    transition-duration: 0.5s;
    transition-timing-function: cubic-bezier(0.55, 0.06, 0.68, 0.14);
    transition-delay: initial;
  }
}

/* Portrait tablet to landscape and desktop */
@media (max-width: 979px) {
  aside {position: relative; width: 100%; cursor: pointer;}
  nav {margin: auto; width: 70%; padding: 0; position: relative; z-index: 1000;}
  body > div {width: 100%; display: block;}
  main {padding: 20px; width: 100%;}
  aside span {display: none;}
  aside nav ul {width: 100%; margin: 0; display: none; position: relative; padding: 0; margin-top: 15px;}
  aside nav ul li {padding: 0;}
  aside:hover nav ul {display: block; background-color: #343434; position: absolute; z-index: 1000;}
  aside ul li a:active {background-color: rgba(255,255,255,0.1);}
  h1 {display: inline-block;}
  #nav-icon {display: inline;}
}

/* Landscape phone to portrait tablet */
@media (max-width: 767px) {
  #circle {display: none;}
  .wraper span {display: none;}
}

/* Landscape phones and down */
@media (max-width: 480px) {
  h1:after {content: "";}
}
