/* !Format (Author: mail@jandousek.cz) */

.format.color-white {
  color: #6a5f5e;
}

/*
  titles
  ***
 */

.format h1, .format h2, .format h3, .format h4 {
  margin: 40px 0 20px 0;
  line-height: 1.5 !important;
  font-weight: 300;
  color: #fff;
}
.format.color-white h1, .format.color-white h2, .format.color-white h3, .format.color-white h4 {
  color: #392a26;
}
.format h1:first-child, .format h2:first-child, .format h3:first-child, .format h4:first-child {
  margin-top: 0;
}
.format h1 {
  font-size: 38px;
  color: #fff;
}
.format h2 {
  font-size: 28px;
  color: #ec968b;
}
.format h3 {
  font-size: 22px;
}
.format h4 {
  margin-bottom: 17px;
  text-transform: uppercase;
  font-weight: 500;
}

/*
  em
  ---
*/

.format h1 em, .format h2 em, .format h3 em, .format h4 em {
  font-size: 70%;
  color: #edd0cc;
}

/*
  blocks
  ***
 */

.format p, .format address {
  margin-bottom: 20px;
  line-height: 1.7;
}
.format address {
  font-style: normal;
}

/*
  size
  ---
*/

.format p.size-large {
  font-size: 110%;
  color: #e3bbab;
}

/*
  blockquote
  ***
*/

.format blockquote {
  font-size: 24px;
}

/*
  lists
  ***
 */

.format ul, .format ol {
  margin: 10px 0 20px 0;
  font-size: 15px;
}
.format ol {
  margin-left: 0;
  counter-reset: item;
}
.format li {
  position: relative;
  margin-bottom: 15px;
  padding-left: 30px;
  line-height: 1.7;
}
.format ul > li:before {
  content: '';
  width: 10px;
  height: 10px;
  position: absolute;
  left: 5px;
  top: 8px;
  background-color: #e15540;
  border-radius: 100%;
}

/*
  counter
  ---
 */

.format ol > li:before {
  content: counter(item) '';
  counter-increment: item;
  width: 20px;
  position: absolute;
  left: 0;
  top: 2px;
  padding: 4px 0;
  background-color: #e15540;
  border-radius: 100%;
  line-height: 1 !important;
  text-align: center;
  font: bold 12px 'Roboto Slab', 'Roboto', Helvetica, Arial, sans-serif;
  color: #fff;
}

/*
  next levels
  ---
 */

.format li > ul, .format li > ol {
  margin-top: 15px;
}

/*
  strong
  ---
 */

.format li > strong:first-child {
  display: inline-block;
  padding-bottom: 6px;
  line-height: 1.5;
  font-size: 16px;
}

/*
  table
  ***
 */

.format table {
  width: 100%;
  margin: 15px 0 25px 0;
  font-size: 15px;
}
.format table th, .format table td {
  padding: 13px 25px;
  background-color: rgba(0,0,0,0.1);
  line-height: 1.6;
}

/*
  thead
  ---
 */

.format table thead th, .format table thead td {
  background-color: #e15540;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 14px;
  color: #fff;
}

/*
  tbody
  ---
 */

.format table tbody tr:nth-child(even) th, .format table tbody tr:nth-child(even) td {
  background-color: rgba(0,0,0,0.2);
}
.format table tbody th {
  font-weight: normal;
}

/*
  table
  ---
 */

.format .table {
  width: 100%;
  overflow-x: auto;
  position: relative;
  margin-bottom: 35px;
}
.format .table table {
  min-width: 500px;
  margin-bottom: 10px;
}

/*
  img
  ***
 */

.format img.align-center {
  display: block;
  margin: 30px auto;
}
.format img.align-left, .format img.align-right {
  max-width: 40%;
}
.format img.align-left {
  float: left;
  margin: 7px 40px 25px 0;
}
.format img.align-right {
  float: left;
  margin: 7px 0 25px 40px;
}

/*
  iframes
  ***
 */

.format iframe {
  width: 100%;
  display: block;
}

/*
  inline
  ***
*/

.format strong, .format b {
  font-weight: 500;
  color: #fff;
}
.format.color-white strong, .format.color-white b {
  color: #584e4d;
}

/*
  adjust link
  ***
 */

.format .link {
  margin: 0 20px 20px 0;
}

/*
  adjust letter
  ***
 */

.format .letter {
  margin: 60px -50px;
}

/*
  adjust separator
  ***
 */

.format .separator {
  margin: 50px 0 60px 0;
}

/*
  adjust gallery
  ***
 */

.format .gallery {
  margin: 35px 0 30px 0;
}
