/**
* Theme Name: Clean Word
* Theme URI: http://htxuankhoa.com/announcement-new-theme-for-my-blog/
* Author: Hoàng Thái Xuân Khoa (a.k.a: htxuankhoa)
* Author URI: http://htxuankhoa.com/
* Description: This theme is created to serve as my personal blog theme at http://htxuankhoa.com. It's also support responsive design.
* Version: 1.0.2
* License: GNU General Public License v2.0
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Tags: two-columns, responsive-layout
* Text Domain: clean-word
*/

/*------------------------------------------------------------------
 * Common styles
 *---------------------------------------------------------------- */
body {
    font-family: "Open Sans", sans-serif;
    background-color: #f1f1f1;
    padding: 0 2em;
    line-height: 1;
}

a {
    cursor: pointer;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.required {
    color: red;
    font-size: larger;
}

.wp-caption, .wp-caption-text {
    margin-right: 10px;
    color: #757575;
    text-align: center;
}

.page img[class*="wp-image-"] {
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

img .alignright {
    float: right;
    margin: 0 0 1em 1em;
}

img .alignleft {
    float: left;
    margin: 0 1em 1em 0;
}

img .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignright {
    float: right;
}

.alignleft {
    float: left;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

pre {
    background: #f5f5f5;
    border: 1px solid #fff;
    padding: 10px;
    font-family: Consolas, Monaco, "Courier New", Courier, monospace;
    font-size: smaller;
    overflow-x: auto;
    
    box-sizing: border-box;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.33);
    -moz-box-shadow: inset 0 2px 10px rgba(0,0,0,0.33);
    -webkit-box-shadow: inset 0 2px 10px rgba(0,0,0,0.33);
}

.divider {
    border-bottom: 1px dashed #e3e3e3;
}

blockquote {
    display: block;
    font-size: large;
    font-style: italic;
    position: relative;
    padding: 1em;
}

blockquote p {
    color: #777;
    position: relative;
    left: 2em;
}

blockquote::before {
    color: #777;
    content: "\201C";
    font-size: 60px;
    font-family: Georgia, serif;
    font-weight: bold;
    position: absolute;
}

blockquote::after {
    content: "";
}

table { 
    width: 90%;
    border-collapse: collapse;
    
    box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16);
    -moz-box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16);
    -webkit-box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16);
}

tr:nth-of-type(odd) { 
    background: #f9f9f9;
}

td, th { 
    border: 1px solid #ccc;
    padding: 0.5em;
    text-align: center;
}

#wp-calendar caption {
    background-color: #373737;
    text-align: center;
    color: #fff;
    font-weight: bold;
    padding: 1em;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    
    box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16);
    -moz-box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16);
    -webkit-box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16);
}

.sticky {
    background: #FAFAFA;
    border: 1px dashed black;
    padding: 10px;
}

.gallery-caption {
    font: 10pt normal Arial, sans-serif;
}

/* >>> Code from WordPress Codex start - Thank you!!! */
/* Text meant only for screen readers */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}
/* <<< Code from WordPress Codex end */

/*------------------------------------------------------------------
 * Header & footer styles
 *---------------------------------------------------------------- */
.header {
    border-top: 5px solid #0073aa;
    padding: 0 3em;
    
    box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16);
    -moz-box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16);
    -webkit-box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16);
}

.header hgroup {
    float: left;
}

.header nav {
    float: right;
    margin: 1em 0;
    padding: 1em;
}

.site-title {
    color: #000;
}

.site-desc, .meta {
    font-size: smaller;
    color: #777;
}

.header nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: center;
}

.header nav ul ul {
    display: none; // not support multi level menu now
}

.header nav li {
    display: inline;
    padding: 10px;
}

.header nav a {
    color: #000;
}

#custom-header img {
    width: 100%;
    height: auto;
    display: block;
}

footer {
    background-color: #373737;
    margin-top: 1em;
    padding: 0.5em;
    font-size: smaller;
    text-align: center;
}

footer a {
    color: #fff;
}

/*------------------------------------------------------------------
 * Pagination styles
 *---------------------------------------------------------------- */
.pagination {
    margin-top: 10px;
    text-align: center;
    padding: 5px;
}

.pagination .page-numbers {
    padding: 3px 6px;
    text-decoration: none;
}

.pagination .current {
    font-size: 25px;
    text-decoration: underline;
}

/*------------------------------------------------------------------
 * Main styles
 *---------------------------------------------------------------- */
#page-wrap {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    margin: 1em auto;
    max-width: 1024px;
    
    box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16);
    -moz-box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16);
    -webkit-box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16);
}

.wrapper {
    padding: 0 3em;
    float: left;
    width: 58%;
    min-height: 768px;
}

.sidebar {
    float: right;
    width: 30%;
    margin: 1.5em 0;
    line-height: normal;
}

#full-page {
    padding: 0 3em;
    min-height: 768px;
}

article {
    margin: 2em 0;
    line-height: normal;
}

.article-title {
    font-size: x-large;
}

/*------------------------------------------------------------------
 * Post thumbnail styles
 *---------------------------------------------------------------- */
img.attachment-post-thumbnail,
img.wp-post-image {
    border: 1px solid #e3e3e3;
    float: left;
    margin-right: 10px;
    padding: 5px;
}
.post-excerpt {
    float: none;
}

/*------------------------------------------------------------------
 * Comment styles
 *---------------------------------------------------------------- */
.post-comment {
    padding-start: 0;
    -webkit-padding-start: 0;
    -moz-padding-start: 0;
}

.post-comment li {
    list-style: none;
}

.comment-wrapper {
    border: 1px dashed #e5e5e5;
    margin-bottom: 1em;
    padding: 1em;
}

.comment-wrapper .avatar {
    float: left;
    border: 1px solid #eee;
    margin-right: 1em;
    
    box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16);
    -moz-box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16);
    -webkit-box-shadow: 0 2px 3px 0px rgba(0, 0, 0, 0.16);
}

.form-allowed-tags {
    font-size: smaller;
    background-color: #FDFCC0;
    padding: 1em;
    border: 1px dashed #B8B8B8;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

.is-admin {
    font-size: 10px;
    background-color: #2ABA40;
    color: #fff;
    margin: 5px;
    padding: 3px;
    
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
}

.bypostauthor {
    font-style: italic;
    border-top: 5px solid #74C4E8;
}

/*------------------------------------------------------------------
 * Widget & form styles
 *---------------------------------------------------------------- */
aside h3 {
    color: #BF1C1C;
}

.widget_search .search-form input[type='search'] {
    border: 0;
    font-size: 10pt;
    width: 120px;
}

.widget_search .search-form input[type='search']::-webkit-input-placeholder {
   color: #999;
   font-weight: normal;
   font-style: italic;
}
 
.widget_search .search-form input[type='search']:-moz-placeholder {
    color: #999;
    font-weight: normal;
    font-style: italic;
}

.submit-button,
.wpcf7-submit,
.widget_search .search-form button {
    background-color: #EA1818;
    color: #fff;
    border: 0;
    cursor: pointer;
    height: 40px;
    width: 100px;
    
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    text-shadow: 0 -1px 0 rgba(0, 0 ,0, .3);
}

/*------------------------------------------------------------------
 * Archive page template styles
 *---------------------------------------------------------------- */
#nav-area {
    margin-top: 1em;
}

.col {
    width: 33.33%;
    float: left;
}

/*------------------------------------------------------------------
 * Contact form 7 & comment form styles
 *---------------------------------------------------------------- */
.wpcf7 input[type='text'], 
.wpcf7 input[type='email'], 
.wpcf7 input[type='url'], 
.wpcf7 textarea, 
.search-form input, 
#commentform input[type='text'], 
#commentform textarea {
    background: #f5f5f5;
    border: 3px solid #fff;
    box-sizing: border-box;
    padding: 0.5em;
    width: 100%;
    
    box-shadow: inset 0 0 5px rgba(0,0,0,0.25);
    -moz-box-shadow: inset 0 0 5px rgba(0,0,0,0.25);
    -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.25);
}

/*------------------------------------------------------------------
 * Smartphone styles
 *---------------------------------------------------------------- */
@media screen and (min-width : 320px) and (max-width : 800px) {
    body {
        padding: 0;
    }
    
    .header {
        padding: 0 1em;
    }
    
    .wrapper,
    .sidebar {
        padding: 0 1em;
        float: left;
        width: 90%;
    }
    
    #full-page {
        padding: 0 1em;
    }
    
    .header nav {
        float: right;
        padding: 0;
        margin-top: 35px;
    }
    
    .header nav ul {
        text-align: left;
    }
    
    .header nav ul li {
        padding: 5px;
    }
    
    .col {
        width: 100%;
    }

    .alignleft, .alignright, .aligncenter {
        display:block;
        margin-left: auto;
        margin-right: auto;
        float: none;
    }
}

/*------------------------------------------------------------------
 * Printing styles
 *---------------------------------------------------------------- */
@media print {
    body {
        background-color: #fff;
    }
    
    #page-wrap {
        border: none;
    }
    
    .wrapper {
        width: 100%;
    }

    header, footer, nav, .aside, .comment-respond, .form-allowed-tags, #custom-header, .sidebar {
        display: none;
    }

    thead {
        display: table-header-group;
    }

    tr, img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }
}
