/*
Theme Name: Fortune
Description: Used to style the TinyMCE editor.
*/

/**
 * Table of Contents:
 *
 * 1.0 - Body
 * 2.0 - Typography
 * 3.0 - Alignment
 * 4.0 - Caption
 * 5.0 - Galleries
 * 6.0 - RTL
 */

/**
 * 1.0 Body
 */

body {
	color: #5a5b5c;
	font-size: 14px;
	line-height: 1.65;
	font-family: 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
	margin: 20px 40px;
	max-width: 720px;
	vertical-align: baseline;
	-webkit-font-smoothing: subpixel-antialiased !important;
}

/**
 * 2.0 Typography
 */
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.1;
	color: inherit;
	font-family: inherit;
}

h1, h2, h3 {
	margin-top: 20px;
	margin-bottom: 10px;
}

h4, h5, h6 {
	margin-top: 10px;
	margin-bottom: 10px;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

p, ul, ol, dd, dl, address, pre,
blockquote, table, .table,
.jetpack-video-wrapper,
.mejs-container,
.gallery,
.tiled-gallery,
.post-password-form {
	margin-bottom: 25px;
}

img {
	border: 0;
	height: auto;
	max-width: 720px;
	vertical-align: middle;
}

a {
	color: #0da4d3;
	border-bottom: 2px solid #cbeefa;
}

a,
a:hover,
a:active {
	text-decoration: none;
}

blockquote {
	padding: 10px 20px;
	margin-left: 0;
	margin-right: 0;
	font-size: 1.1em;
	border-left:3px solid #0da4d3;
	color: #232425;
	line-height: 1.5;
	font-style: italic;
}

blockquote p { margin-top: 0; }
blockquote p:last-child { margin: 0; }

pre:not(.line-pre):before {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	content: "";
	background: rgba(0,0,0,0.05);
	color: #fff;
	padding: 0 7px;
	z-index: 5;
}

pre:not(.line-pre) {
	position: relative;
	background: #EBEAE2;
	color: #3F4551;
	line-height: 1.65;
	padding: 4% 7%;
	overflow: auto;
	max-width: 100%;
	border: none;
	border-radius: 0;
	font-size: inherit;
}

table {
  background-color: transparent;
}
th {
  text-align: left;
}

.table {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  padding: 8px;
  line-height: 1.42857143;
  vertical-align: top;
  border-top: 1px solid #ddd;
}

.table > thead > tr > th {
  vertical-align: bottom;
  border-bottom: 2px solid #ddd;
}

.table > caption + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > td {
  border-top: 0;
}

.table > tbody + tbody {
  border-top: 2px solid #ddd;
}

.table .table {
  background-color: #fff;
}

/**
 * 3.0 Alignment
 */
#tinymce .alignleft {
	display: inline;
	float: left;
	margin-right: 27px;
}

#tinymce .alignright {
	display: inline;
	float: right;
	margin-left: 27px;
}

#tinymce .aligncenter {
	clear: both;
	display: block;
	margin: 0 auto;
}

/**
 * 4.0 Caption
 */
 .wp-caption {
	max-width: 720px;
	margin-bottom: 25px;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin: 0 auto;
}

.wp-caption-text {
	text-align: center;
	color: #929394;
	font-size: 14px;
	font-style: italic;
}

.entry-thumb .wp-caption-text,
.wp-caption .wp-caption-text {
	margin: 0.7em 0.8em 0;
}

/**
 * 5.0 Galleries
 */
#tinymce .gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
}

#tinymce .gallery {
	margin-bottom: 30px;
	overflow: hidden;
}

#tinymce .gallery-item {
	float: left;
	margin: 0 1px 1px 0;
	padding: 0;
	overflow: hidden;
	position: relative;
}

#tinymce .gallery-columns-1 .gallery-item {
	max-width: 100%;
}

#tinymce .gallery-columns-2 .gallery-item {
	max-width: 49.5%;
	max-width: -webkit-calc(50% - 1px);
	max-width: calc(50% - 1px);
}

#tinymce .gallery-columns-3 .gallery-item {
	max-width: 33%;
	max-width: -webkit-calc(33.3% - 1px);
	max-width: calc(33.3% - 1px);
}

#tinymce .gallery-columns-4 .gallery-item {
	max-width: 24.5%;
	max-width: -webkit-calc(25% - 1px);
	max-width: calc(25% - 1px);
}

#tinymce .gallery-columns-5 .gallery-item {
	max-width: 19.5%;
	max-width: -webkit-calc(20% - 1px);
	max-width: calc(20% - 1px);
}

#tinymce .gallery-columns-6 .gallery-item {
	max-width: 16%;
	max-width: -webkit-calc(16.66% - 1px);
	max-width: calc(16.66% - 1px);
}

#tinymce .gallery-columns-7 .gallery-item {
	max-width: 13.5%;
	max-width: -webkit-calc(14.285% - 1px);
	max-width: calc(14.285% - 1px);
}

#tinymce .gallery-columns-8 .gallery-item {
	max-width: 12%;
	max-width: -webkit-calc(12.5% - 1px);
	max-width: calc(12.5% - 1px);
}

#tinymce .gallery-columns-9 .gallery-item {
	max-width: 10%;
	max-width: -webkit-calc(11.11% - 1px);
	max-width: calc(11.11% - 1px);
}

#tinymce .gallery-columns-1 .gallery-item:nth-of-type(1n),
#tinymce .gallery-columns-2 .gallery-item:nth-of-type(2n),
#tinymce .gallery-columns-3 .gallery-item:nth-of-type(3n),
#tinymce .gallery-columns-4 .gallery-item:nth-of-type(4n),
#tinymce .gallery-columns-5 .gallery-item:nth-of-type(5n),
#tinymce .gallery-columns-6 .gallery-item:nth-of-type(6n),
#tinymce .gallery-columns-7 .gallery-item:nth-of-type(7n),
#tinymce .gallery-columns-8 .gallery-item:nth-of-type(8n),
#tinymce .gallery-columns-9 .gallery-item:nth-of-type(9n) {
	margin-right: 0;
}

#tinymce .gallery-caption {
	background: rgba(0, 0, 0, 0.4);
	background: -moz-linear-gradient(top,  rgba(0,0,0,0.26) 0%, rgba(0,0,0,0.59) 59%, rgba(0,0,0,0.65) 69%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.26)), color-stop(59%,rgba(0,0,0,0.59)), color-stop(69%,rgba(0,0,0,0.65)));
	background: -webkit-linear-gradient(top,  rgba(0,0,0,0.26) 0%,rgba(0,0,0,0.59) 59%,rgba(0,0,0,0.65) 69%);
	background: -o-linear-gradient(top,  rgba(0,0,0,0.26) 0%,rgba(0,0,0,0.59) 59%,rgba(0,0,0,0.65) 69%);
	background: -ms-linear-gradient(top,  rgba(0,0,0,0.26) 0%,rgba(0,0,0,0.59) 59%,rgba(0,0,0,0.65) 69%);
	background: linear-gradient(to bottom,  rgba(0,0,0,0.26) 0%,rgba(0,0,0,0.59) 59%,rgba(0,0,0,0.65) 69%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#42000000', endColorstr='#a6000000',GradientType=0 );

	color: #fff;
	font-size: 11px;
	line-height: 1.2;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 0;
	padding: 10px;
	margin: 0;
	visibility:hidden;
	opacity: 0;
}

#tinymce .gallery-item:hover .gallery-caption {
	visibility:visible;
	opacity: 1;
	height: 30%;
}

#tinymce .gallery-columns-7 .gallery-caption,
#tinymce .gallery-columns-8 .gallery-caption,
#tinymce .gallery-columns-9 .gallery-caption {
	display: none;
}

/**
 * 6.0 RTL
 */

.rtl blockquote {
	border-left: none;
	border-right:3px solid #0da4d3;
}

.rtl pre:not(.line-pre):before {
	left: auto;
	right: 0;
}