@charset "UTF-8";
* {
  box-sizing: border-box;
  font-family: 'Cabin','Gill Sans'; /* Cabin b. podobna do Gill a w dodatku darmowa */
}

html,
body {
  background-color: white; /*#e8ebf3;*/
  height: 100%;
  overflow-x: hidden;
  margin-left: 4em;
  margin-right: -1em;
  /*padding-right: 8em;*/
}

.content {
    margin-right: 18em;
}

a {
    color: red;
    text-decoration: none;
}

h1, h2 {
    color: gray;
}

.nav-toggle {
  position: relative;
  margin: 2em 2em auto auto;
  line-height: 4em;
  text-align: center;
  width: 4em;
  height: 4em;
  cursor: pointer;
  z-index: 10;
}
.nav-toggle .icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 4em;
  height: 4em;
  background: #fff;
  z-index: 10;
  border-radius: 2em;
  box-shadow: 0 0.2em 1em rgba(0, 0, 0, 0.25);
  border: 1px solid #eee;
  transition: transform 0.5s;
}
.nav-toggle .icon span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5em;
  height: 4px;
  margin: 0 auto;
  display: block;
  background: #002a45;
  transition: transform 0.2s;
  transform-origin: 0% 0%;
}
.nav-toggle .icon span:first-child {
  transform: translate(-50%, -0.6em);
}
.nav-toggle .icon span:last-child {
  transform: translate(-50%, 0.3em);
}
.nav-toggle label {
  position: absolute;
  top: 0;
  right: 0;
  background: #fff;
  color: #e8ebf3;
  border-radius: 3em;
  height: 4em;
  min-width: 100%;
  padding: 0;
  text-align: center;
  transition: background 0.5s, transform 0.5s, padding 0.5s, height 0.5s;
}
.nav-toggle:hover .icon {
  transform: rotate(90deg);
}
.nav-toggle:hover label {
  background: #002a45;
  height: 5em;
  padding: 0.5em 6em 0.5em 1.5em;
  transform: translate(0.5em, -0.5em);
}
.navigation-active .nav-toggle .icon {
  transform: rotate(90deg);
}
.navigation-active .nav-toggle .icon span:first-child {
  transform: rotate(45deg) translate(-50%, -2px);
}
.navigation-active .nav-toggle .icon span:last-child {
  transform: rotate(-45deg) translate(-50%, -2px);
}

.main-navigation {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  min-width: 6em;
  padding: 2em 0.75em 0.5em 0.75em;
  background: #fff;
  color: #002a45;
  font-size: 2.5em;
  text-align: right;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s;
}
.main-navigation ul {
  list-style: none;
  padding: 0;
}
.main-navigation a {
  text-decoration: none;
  color: inherit;
}
.main-navigation a:after {
  content: "●";
  display: inline-block;
  width: 0;
  opacity: 0;
  transition: width 0.2s, opacity 0.2s;
}
.main-navigation a:hover:after {
  width: 1em;
  opacity: 1;
}
.navigation-active .main-navigation {
  transform: translateX(0%);
}
