/*
Theme Name: Dan
Description: Used to style Gutenberg Blocks in the editor.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# General Typography
# General Block Settings
# Blocks - Common Blocks
# Blocks - Formatting
# Blocks - Layout Elements
# Blocks - Widgets
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# General Typography
--------------------------------------------------------------*/

.edit-post-visual-editor .editor-block-list__block,
.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
	font-size: 14px;
}

.edit-post-visual-editor .editor-block-list__block,
.editor-post-title__block .editor-post-title__input {
	color: #424242;
	font-family: "Helvetica Neue", "Helvetica", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
}

.editor-styles-wrapper,
.editor-styles-wrapper p {
	line-height: 1.6;
}

.editor-block-list__block p {
	margin-bottom: 20px;
}

.edit-post-visual-editor .editor-block-list__block h1,
.edit-post-visual-editor .editor-block-list__block h2,
.edit-post-visual-editor .editor-block-list__block h3,
.edit-post-visual-editor .editor-block-list__block h4,
.edit-post-visual-editor .editor-block-list__block h5,
.edit-post-visual-editor .editor-block-list__block h6 {
	line-height: 1.4;
	clear: both;
}

.editor-post-title__block .editor-post-title__input,
.edit-post-visual-editor .editor-block-list__block h1 {
	font-size: 24px;
}

.edit-post-visual-editor .editor-block-list__block h2 {
	font-size: 20px;
}

.edit-post-visual-editor .editor-block-list__block h3 {
	font-size: 18px;
}

.edit-post-visual-editor .editor-block-list__block h4 {
	font-size: 16px;
}

.edit-post-visual-editor .editor-block-list__block h5 {
	font-size: 15px;
}

.edit-post-visual-editor .editor-block-list__block h6 {
	font-size: 14px;
}

@media screen and (min-width: 768px) {
	.edit-post-visual-editor .editor-block-list__block {
		font-size: 16px;
	}
	
	.editor-post-title__block .editor-post-title__input,
	.edit-post-visual-editor .editor-block-list__block h1 {
		font-size: 32px;
	}

	.edit-post-visual-editor .editor-block-list__block h2 {
		font-size: 28px;
	}

	.edit-post-visual-editor .editor-block-list__block h3 {
		font-size: 24px;
	}

	.edit-post-visual-editor .editor-block-list__block h4 {
		font-size: 20px;
	}

	.edit-post-visual-editor .editor-block-list__block h5 {
		font-size: 18px;
	}

	.edit-post-visual-editor .editor-block-list__block h6 {
		font-size: 16px;
	}
}

/*--------------------------------------------------------------
# General Block Settings
--------------------------------------------------------------*/
/* Main column width */
.wp-block {
	max-width: 720px;
}

/* Background color */
.gutenberg-editor-page .editor-block-list__block {
	background-color: transparent;
}

/* Alignments */
.edit-post-visual-editor .alignleft {
	margin-right: 20px;
}

.edit-post-visual-editor .alignright {
	margin-left: 20px;
}

/* Link styles */
.edit-post-visual-editor a,
.editor-block-list__block a,
.wp-block-freeform.block-library-rich-text__tinymce a {
	color: #1565c0;
}

/* List styles */
.edit-post-visual-editor ul:not(.wp-block-gallery),
.editor-block-list__block ul:not(.wp-block-gallery),
.block-library-list ul,
.edit-post-visual-editor ol,
.editor-block-list__block ol,
.block-library-list ol,
.block-library-list .editor-rich-text__tinymce {
	margin: 0 0 20px;
}

.edit-post-visual-editor li > ul:not(.wp-block-gallery),
.editor-block-list__block li > ul:not(.wp-block-gallery),
.block-library-list li > ul:not(.wp-block-gallery),
.edit-post-visual-editor li > ol,
.editor-block-list__block li > ol,
.block-library-list li > ol {
	margin-bottom: 0;
	margin-left: 20px;
}

.edit-post-visual-editor li,
.editor-block-list__block li,
.block-library-list li {
	margin: 0;
}

.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
.rtl .editor-block-list__block ul:not(.wp-block-gallery),
.rtl .block-library-list ul,
.rtl .edit-post-visual-editor ol,
.rtl .editor-block-list__block ol,
.rtl .block-library-list ol,
.rtl .block-library-list .editor-rich-text__tinymce,
.rtl .edit-post-visual-editor li > ul:not(.wp-block-gallery),
.rtl .editor-block-list__block li > ul:not(.wp-block-gallery),
.rtl .block-library-list li > ul:not(.wp-block-gallery),
.rtl .edit-post-visual-editor li > ol,
.rtl .editor-block-list__block li > ol,
.rtl .block-library-list li > ol {
	margin-left: 20px;
	margin-right: 20px;
}

/* Caption styles*/

[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
	text-align: center;
}

/* Code styles */

.wp-block-freeform.block-library-rich-text__tinymce code {
	background: transparent;
}

/*--------------------------------------------------------------
# Blocks - Common Blocks
--------------------------------------------------------------*/

/* Paragraph */
.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
	font-size: 3.375em;
	font-weight: 700;
	line-height: 1;
}

/* Verse */
.editor-styles-wrapper .wp-block-verse pre {
	font-family: "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;
	line-height: 1.75;
}

/* Quote */
.wp-block-quote:not(.is-large),
.wp-block-quote:not(.is-style-large) {
	padding: 10px 20px;
	border: 0;
}

.wp-block-quote p {
	font-size: 1em;
	font-style: normal;
	line-height: 1.5;
}

.wp-block-quote.alignleft p:last-of-type,
.wp-block-quote.alignright p:last-of-type {
	margin-bottom: 0;
}

.wp-block-quote .wp-block-quote__citation {
	margin-top: 10px;
	color: inherit;
	font-size: inherit;
}

.wp-block-quote.is-large p,
.wp-block-quote.is-style-large p {
	font-size: 1.5em;
	font-style: normal;
	line-height: 1.5;
}

/* Audio */
.wp-block-audio {
	width: 100%;
}

.wp-block-audio audio {
	display: block;
	width: 100%;
}

.wp-block-audio.alignleft audio,
.wp-block-audio.alignright audio {
	max-width: 200px;
}

@media only screen and (min-width: 768px) {
	.wp-block-audio.alignleft audio,
	.wp-block-audio.alignright audio {
		max-width: 350px;
	}
}

/*--------------------------------------------------------------
# Blocks - Formatting
--------------------------------------------------------------*/

/* Code */
.wp-block-code {
	background-color: #eee;
	border: 0;
	border-radius: 3px;
	color: inherit;
}

.wp-block-code .editor-plain-text {
	background-color: transparent;
}

/* Classic */
.wp-block-freeform.block-library-rich-text__tinymce li,
.wp-block-freeform.block-library-rich-text__tinymce p {
	line-height: 1.5;
}

.wp-block-freeform.block-library-rich-text__tinymce blockquote {
	border: 0;
	border-radius: 3px;
}

/* Table */
.wp-block-table td,
.wp-block-table th {
	border-color: #e0e0e0;
}

.wp-block-table__cell-content {
	padding: 0;
}

/*--------------------------------------------------------------
# Blocks - Layout Elements
--------------------------------------------------------------*/

/* Separators */
.edit-post-visual-editor .wp-block-separator {
	background-color: #e0e0e0;
	border: 0;
}

.edit-post-visual-editor .wp-block-separator.is-style-dots {
	background-color: transparent;
}

/* Buttons */
.wp-block-button .wp-block-button__link,
.wp-block-file .wp-block-file__button {
	display: inline-block;
	padding: 15px 20px;
	text-decoration: none;
	text-shadow: none;
	line-height: 1;
	cursor: pointer;
	outline: none;
}

/* Media & Text */
.wp-block-media-text *:last-child {
	margin-bottom: 0;
}

/*--------------------------------------------------------------
# Blocks - Widgets
--------------------------------------------------------------*/

/* Latest Comments */
.wp-block-latest-comments {
	padding: 0;
}

.wp-block-latest-comments article {
	margin-bottom: 20px;
}

.wp-block-latest-comments .avatar,
.wp-block-latest-comments__comment-avatar {
	border-radius: 0;
}

.wp-block-latest-comments .wp-block-latest-comments__comment-meta {
	font-weight: 700;
}

.editor-styles-wrapper .wp-block-latest-comments__comment-author,
.editor-styles-wrapper .wp-block-latest-comments__comment-link {
	color: inherit;
	font-weight: 700;
	text-decoration: none;
}

.wp-block-latest-comments .wp-block-latest-comments__comment-meta .wp-block-latest-comments__comment-date {
	font-weight: normal;
}

.wp-block-latest-comments .wp-block-latest-comments__comment,
.wp-block-latest-comments .wp-block-latest-comments__comment-excerpt p {
	font-size: inherit;
}

.wp-block-latest-comments .wp-block-latest-comments__comment-date {
	color: #767676;
	font-size: 13px;
}

/* Latest Posts, Archives, Categories */
.wp-block-archives li,
.wp-block-categories li,
.wp-block-latest-posts li,
.wp-block-rss li a {
	margin-top: 10px;
	margin-bottom: 10px;
}

.wp-block-archives li a,
.wp-block-categories li a,
.wp-block-latest-posts li a,
.wp-block-rss li a {
	color: inherit;
	text-decoration: none;
}

[data-align="center"] .wp-block-archives ul,
[data-align="center"] .wp-block-categories ul,
[data-align="center"] .wp-block-latest-posts ul,
[data-align="center"] .wp-block-rss ul {
	list-style-position: inside;
}

/* Latest Posts */
.edit-post-visual-editor .wp-block-latest-posts.is-grid {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
}

/* Search */
.wp-block-search .wp-block-search__label {
	display: block;
	margin-bottom: 10px;
	color: #616161;
	font-size: 13px;
}

.wp-block-search .wp-block-search__input {
	flex: 1;
	padding: 5px 10px;
	border: solid 1px #e0e0e0;
	border-radius: 3px;
	color: #616161;
	width: 100%;
}

.wp-block-search .wp-block-search__button {
	display: inline-block;
	padding: 10px;
	background-color: #e0e0e0;
	border: 0;
	border-radius: 3px;
	color: #424242;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	line-height: 1;
	cursor: pointer;
}