body {
  margin: 0;
  padding: 0;
  font-family: "Quicksand", sans-serif;
}

ul.reser, ol.reset {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.hide {
  display: none;
}

.pointer {
  cursor: pointer;
}

header {
  padding-top: 15px;
}

header div {
  width: 94%;
  position: relative;
  margin: auto;

}

header a {
  display: inline-block;
  width: auto;
  height: 65px;
  vertical-align: middle;
  text-decoration: none;
}

header a h3 {
  display: inline-block;
  vertical-align: middle;
  color: #333;
  margin: 0 0 0 5px;
}

header a h3 span {
  font-size: 12px;
  font-weight: 300;
}

header a img {
  display: inline-block;
  width: auto;
  height: 100%;
  vertical-align: middle;
}

header img#menu {
  width: 30px;
  height: 30px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

main {
  width: 94%;
  margin: 35px auto auto auto;
}

main h1.title {
  width: fit-content;
  margin: 25px 0 20px 0;
  color: #333;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
}

main h1.title::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50%;
  height: 3px;
  background-color: #333;
}

main div#my_section_1, main div#my_section_2 {
  width: 100%;
  height: 240px;
  background-color: red;
}

main div#my_section_2 {
  margin-top: 25px;
}

main ul.list {

}

main ul.list li {
  width: 22.5%;
  height: 320px;
  display: inline-block;
  vertical-align: top;
  border-bottom: 1px solid #ddd;
}

main ul.list li.advert {
  background-color: red;
}

main ul.list li + li {
  margin-left: 3.33%;
}

main ul.list li:nth-child(4n+1) {
  margin-left: 0;
}

main ul.list li:nth-child(n+5) {
  margin-top: 3.33%;
}

main ul.list li a {
  text-decoration: none;
}

main ul.list li picture {
  display: block;
  width: 100%;
  height: 170px;
  position: relative;
  background-color: transparent;
  overflow: hidden;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
  text-align: left;
}

main ul.list li picture img {
  width: 100%;
  height: auto;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

main ul.list li h3 {
  margin: 15px 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .8px;
  color: #333;
}

main ul.list li p {
  margin: 0;
  font-size: 13px;
  line-height: 1.3em;
  letter-spacing: .7px;
  font-weight: 300;
  color: #333;
}

main ul.list li span.date {
  display: block;
  text-align:right;
  padding-right: 5px;
  color: #333;
  font-weight: 300;
  font-size: 12px;
  margin-top: 10px;
}

@media screen and (max-width: 1279px) {
  main ul.list li {
    width: 100%;
    height: 300px;
    display: block;
  }

  main ul.list li + li {
    margin: 15px 0 0 0;
    padding-top: 15px;
  }
  main ul.list li:nth-child(4n+1) {
    margin-left: 0;
  }

  main ul.list li:nth-child(n+5) {
    margin-top: 0;
  }

  main ul.list li span.date {
    margin-top: 10px;
  }
}

section.content {

}

section.content article {

}

section.content article picture {
  display: block;
  width: 60%;
  height: 400px;
  position: relative;
  background-color: transparent;
  overflow: hidden;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  transform-style: preserve-3d;
  text-align: left;
  margin: 20px auto;
}

section.content article picture img {
  width: 100%;
  height: auto;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

section.content article h2 {
  font-weight: 600;
  font-size: 22px;
  line-height: 1.5em;
  margin: 0;
  color: #333;
}

section.content article h3 {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5em;
  margin: 0;
  color: #333;
}

section.content article p {
  margin: 0;
  line-height: 1.6em;
  font-weight: 300;
  color: #333;
}

.code-example {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    overflow-x: auto;
}

.code-example pre {
    margin: 0;
}

.code-example code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #333;
}

.tab-1 {
  margin-left: 10px !important;
}

ul.nth-demo-n-4 li:nth-child(4) {
  background-color: grey;
}

ul.nth-demo-2n li:nth-child(2n) {
  color: red;
}

ul.nth-demo-n3 li:nth-child(n+3) {
  color: green;
}


ul.nth-demo-odd li:nth-child(odd) {
  font-weight: bold;
}

ul.nth-demo-even li:nth-child(even) {
  font-weight: bold;
}

footer {
  width: 100%;
  margin-top: 30px;
  background-color: #fffafa;
  text-align: center;
}

footer p {
  margin: 0;
  padding: 20px 0;
  color: #333;
  font-weight: 300;
  font-size: 14px;
}

nav.menu {
  width: 22%;
  height: 100%;
  position: fixed;
  right: -22%;
  top: 0;
  background-color: #fffafa;
  padding: 20px 25px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

nav.menu img#close {
  width: 30px;
  height: 30px;
  float: right;
  cursor: pointer;
}

nav.menu ul {
  position: absolute;
  top: 20%;
  margin: 0;
}

nav.menu ul li {

}

nav.menu ul li + li {
  margin-top: 15px;
}

nav.menu ul li a {
  color: #333;
  text-decoration: none;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 1px;
  transition-duration: .4s;
}

nav.menu ul li a:hover {
  font-weight: 500;
  transition-duration: .4s;
}

@media screen and (max-width: 1279px) {
  nav.menu {
    width: 100%;
    right: -100%;
  }
}
