* {
  box-sizing: border-box;
}

body {
  width: 100%;
  margin: auto;
  line-height: 1.8em;
  color: #456990;
  background-color: #E8E9EB;
}

/* Backgroud image in navigation */
/* nav {
  background-image: url('../img/bg/warsaw_skyline.svg');
  background-size: auto;
  background-position: bottom;
  background-repeat: repeat-x;
  width: 100%;
}

@media screen and (max-width: 966px) {
  nav {
    background-size: 966px;
  }
} */

/* @media screen and (max-width: 768px) {
  nav {
    background-size: 0px;
  }
} */

nav {
  width: 100%;
  margin-left: 0px;
  padding-left: 0px;
  padding-bottom: 0px;
  margin: auto;
}

/* Links */
a {
  color: #456990;
  text-decoration: underline #F09D51;
}

a:hover {
  color: #F09D51;
  text-decoration: underline #456990;
}

/* Menu and footer */
.menu {
  padding-top: 20px;
  padding-bottom: 0px;
  padding-left: 0px;
  padding-right: 0px;
  width: 100%;
  margin: auto;
  text-align: center;
}

.menu li {
  display: inline-flex;
  vertical-align: top;
  padding-left: 10px;
  padding-right: 10px;
  margin: auto
}

.menu a {
  text-decoration: none;
  /* background: #E0DFD5; */
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 5px;
  color: #456990;
  font-weight: bold;
  font-size: larger;
  max-lines: 1;
  transition: background-color 0.3s ease;
}

.menu a:hover {
  color: #F09D51;
  background: #E0DFD5;
}

.logos-social {
  width: 100%;
  margin: auto;
  text-align: center;
  /* font-size: 10px; */
  /* margin-bottom: -20px; */
}

.logos-social li {
  display: inline-flex;
  vertical-align: center;
  padding-left: 10px;
  padding-right: 10px;
  margin: auto;
}

.logos-social a {
  text-decoration: none;
  color: #456990;
  transition: color 0.3s ease;
  font-size: 40px;
}

.logos-social a:hover {
  color: #F09D51;
}

@media screen and (max-width: 768px) {
  .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    width: 90%;
  }

  .menu li {
    display: inline-block;
    width: 45%;
    box-sizing: border-box;
    padding: 5px;
  }

  .menu a {
    display: block;
    width: 100%;
    padding: 10px 20px;
  }
}

footer {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
  margin: auto;
}

footer a {
  text-decoration: none;
  padding: 0;
}

/* My photo */
.img-right {
  /* max-width: 10%;
  min-width: 50px; */
  width: 30%;
  float: right;
  padding: 10px;
  margin: 0 auto;
  display: block;
  border-radius: 40%;
}

li {
  padding-bottom: 10px;
}

/* Line */
hr {
  display: block;
  height: 0px;
  border: 0;
  border-top: 2px solid #F06543;
  margin: 2em 0em 2em 0em;
  padding: 0;
}

.hr-menu {
  display: block;
  height: 0px;
  border: 0;
  border-top: 3px solid #F06543;
  margin: 0em 0em 0em 0em;
  padding: 0px;
}

.hr-blog {
  display: block;
  height: 0px;
  border: 0;
  border-top: 2px solid #F09D51;
  padding: 0px;
  width: 70%;
  margin: auto;
  margin-top: 2em;
  margin-bottom: 2em;
}

/* Headers */
h1 {
  line-height: 1.2;
  font-size: 180%;
  text-align: left;
  margin-bottom: 30px;
}

h2 {
  line-height: 1.2;
  font-size: 120%;
  text-align: left;
}

h3 {
  line-height: 1.2;
  font-size: 110%;
  text-align: left;
}

strong {
  line-height: 1.2;
  font-size: large;
  /* text-align: left; */
}

/* Images */
img {
  display: block;
  margin: auto;
}

/* Main text */
.main-text {
  width: 705px;
  padding: 10px;
  margin: auto;
  line-height: 1.5;
  font-size: 110%;
  text-align: justify;
  text-justify: inter-word;
}

@media screen and (max-width: 768px) {
  .main-text {
    width: 90%;
  }
}

/* Grid of logos in footer */
footer {
  padding: 10px 0;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 705px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-social {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin: 0 10px;
  padding: 0;
  display: block;
}

.footer-text {
  font-size: 14px;
  color: #333;
  text-align: center;
  flex-grow: 1;
}

@media (max-width: 700px) {
  .footer-content {
    flex-direction: column;
  }

  .footer-logos {
    margin-bottom: 10px;
    display: none;
  }

  .left-logos {
    order: 1;
  }

  .footer-text {
    order: 2;
    margin: 10px 0;
  }

  .right-logos {
    order: 1;
  }
}

.date {
  float: right;
  font-weight: normal;
  font-size: 80%;
}

.img-blog {
  width: 95%;
  margin-top: 40px;
  margin-bottom: 40px;
}

.github-blog {
  float: right;
}

.github-blog a {
  float: right;
  font-size: x-large;
  transition: color 0.3s ease;
}

.compact {
    margin: 0;
    padding-left: 1.2em;
}

.compact li {
    margin: 0;
    line-height: 1.2;
}

.footnote-ref {
  text-decoration: none;
  font-size: 0.8em;
  vertical-align: super;
}

.footnotes {
  font-size: 0.9em;
  margin-top: 2em;
  border-top: 1px solid #ccc;
}

.footnote-back {
  text-decoration: none;
  margin-left: 0.5em;
}