html,
body,
body div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
figure,
footer,
header,
menu,
nav,
section,
time,
mark,
audio,
video,
details,
summary {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font-weight: normal;
  vertical-align: baseline;
  background: transparent;
}

html {
  transition: all 1s ease;
  font-family: "Open Sans", "Roboto", "Lato", "Montserrat", sans-serif;
  font-size: 100%;
  color: #222222;
  background-color: #f8f8f8;
  padding: 0 40px;
  overflow-x: hidden;
}

body {
  padding: 20px 40px;
  opacity: 1;
  transition: 1s opacity;
  font-size: 18px;
  letter-spacing: 1px;
}

article,
footer {
  margin: 20px;
}

ul {
  margin: 0;
  padding: 0;
}

ul li {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", "Roboto", sans-serif;
  line-height: 100%;
  margin: 40px 0;
  display: inline-block;
}

h2 {
  font-family: "Montserrat", "Roboto", sans-serif;
  padding-bottom: 4px;
  border-bottom: solid 2px black;
  display: inline-block;
  letter-spacing: 0;
}

h3 {
  font-family: "Montserrat", "Roboto", sans-serif;
  padding-bottom: 4px;
  display: inline-block;
  letter-spacing: 0;
}

a {
  text-decoration: none;

  color: #0a0;
  font-weight: 300;
  transition: 0.5s;
}

a:hover {
  color: #000;
}

p {
  font-weight: 300;
  font-family: "Open Sans", "Roboto", "Lato", "Montserrat", sans-serif;
  font-size: 100%;
  line-height: 150%;
  margin-bottom: 20px;
}

small {
  font-size: 1rem;
}
blockquote p {
  font-size: 2rem;
  line-height: 2rem;
  margin-bottom: 40px;
  font-weight: 300;
}

img {
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

img[src$="#img-single"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-left: -15%;
  width: 130%;
  padding: 20px 0;
}

img[src$="#img-flow-s"] {
  display: inline;
  margin-left: auto;
  margin-right: auto;
  width: 18%;
  padding: 1%;
}

img[src$="#img-flow-m"] {
  display: inline;
  margin-left: auto;
  margin-right: auto;
  width: 31%;
  padding: 1%;
}

img[src$="#img-center"] {
  width: 60%;
  display: block;
  margin: 0 auto;
  margin-top: 2%;
  margin-bottom: 2%;
}

header {
  margin-bottom: 20px;
  font-family: "Montserrat", "Roboto", sans-serif;
}

ul.topnav {
  list-style-type: none;
}

ul.topnav li {
  display: inline-block;
  letter-spacing: 1px;
}

ul.topnav li:not(:first-child) {
  float: right;
}

ul.topnav li:first-child {
  padding-left: 20px;
}

ul.topnav li a {
  color: #222222;
  padding: 20px;
  padding-left: 0;
  display: inline-block;
  text-decoration: none;
  border: 0;
  transition: 0.5s;
}

ul.topnav li a:hover {
  color: #000;
}

ul.topnav li.icon {
  display: none;
}

/* About and libraries */

section.about,
section.libraries,
section.details,
section.quick-links {
  margin: 100px 20px;
  width: 67%;
}

section.about p,
section.libraries p {
  margin-bottom: 50px;
  font-size: 150%;
}

/* About */

section.my-image {
  margin: 80px 0;
  overflow: hidden;
}

section.my-image img {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Works */

section.works {
  margin: 20px;
}
section.works h2.works-headline {
  margin-bottom: 4rem;
}

h3.works-title {
  margin-left: 2rem;
  color: rgb(65, 0, 170);
}

div.work-samples {
  width: 100%;
  margin-bottom: 100px;
  overflow: hidden;
}

div.work-samples figure {
  margin-bottom: 50px;
  color: #999;
}

div.work-samples figcaption h2 {
  color: #111;
  margin: 20px 0 20px 0;
  display: inline-block;
}

div.work-samples figure img {
  width: 100%;
  margin: 0;
  padding: 0;
}

div.work-samples figure.linked img:hover {
  -moz-box-shadow: 0px 20px 30px rgb(0, 0, 0, 0.4);
  -webkit-box-shadow: 0px 20px 30px rgb(0, 0, 0, 0.4);
  box-shadow: 0px 20px 30px rgb(0, 0, 0, 0.4);
  transform: scale(0.95, 0.95);
}

div.work-samples figure.linked img {
  -moz-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  -webkit-transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Details (works) */

section.details dt {
  float: left;
  clear: left;
  width: 120px;
}

section.details dt,
dd {
  margin: 0 0 4px 0;
}

/* Contact */

section.contact {
  font-size: 24px;
  font-family: inherit;
}

/* Footer */

footer.footer-content {
  margin-top: 100px;
  margin-bottom: 100px;
  height: 40px;
  font-family: "Montserrat", "Roboto", sans-serif;
}

footer.footer-content div {
  display: inline-block;
  font-family: inherit;
  margin: 0;
  padding: 0;
  vertical-align: top;
}

footer.footer-content div p {
  font-family: inherit;
}

footer.footer-content div p a {
  color: #222222;
}

.info:before {
  font-weight: $font-weight;
  content: attr(data-a) "\0040"attr(data-b);
  unicode-bidi: bidi-override;
  direction: rtl;
}

@media screen and (max-width: 768px) {
  html {
    padding: 0px;
  }

  body {
    padding: 0px;
    transition: all 1s ease;
    overflow-x: hidden;
    font-size: 12px;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 20px 0;
  }

  ul.topnav li:not(:first-child) {
    display: none;
  }

  ul.topnav li.icon {
    display: inline-block;
  }

  ul.topnav.responsive {
    position: relative;
  }

  ul.topnav.responsive li.icon {
    position: absolute;
    right: 0;
    top: 0;
  }

  section {
    margin-bottom: 40px;
  }

  section.about,
  section.libraries {
    width: 90%;
  }

  div.work-samples figure img {
    width: 130%;
    margin-left: -15%;
  }

  div.work-samples figcaption h2 {
    color: #111;
    margin: 10px 0 10px 0;
  }

  section.contact ul li {
    margin-bottom: 10px;
  }

  section.my-image img {
    width: 480px;
  }
}
