/*
Theme Name: Ohsik
Theme URI: http://wp.ohsikpark.com
Author: Ohsik Park
Author URI: http://www.ohsikpark.com
Description: Simple pure CSS responsive light weight theme for WordPress. Great starting point for your custom theme. 
Version: 1.8
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: responsive-layout, light, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fluid-layout, custom-menu, featured-images, microformats, post-formats, sticky-post
Text Domain: Ohsik
*/

html, body{
    margin: 0;
}
*{
    box-sizing: border-box;
    -moz-box-sizing: border-box;    
}

/*Responsive Grid System Setup
------------------------------------------------------------*/
.row [class*="grid"] {
    display: inline-block;
    float: left;
    margin: 0.5% 1% 0.5% 0;
    background: #fff; /*------------------------------------- Adding default background color on grids */
}
.row [class*="grid"]:first-child { 
	margin-left: 0; 
}
.row [class*="grid"]:last-child { 
	margin-right: 0; 
}
.group{
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}
.group:before, .group:after{
    content: "";
    display:table;
}
.group:after {
	clear:both;
}
@media only screen and (min-width:769px){
	.bodywrap {
        max-width: 1200px;    /*------------------------------------- Set width of your site */
        margin: 0 auto;
	}
	.grid1 { /* After margin right 1%, 89/12 = 7.416 */
        width: 7.416%;
	}
	.grid2 { /* 95/6 = 15.833 */
        width: 15.833%;
	}
	.grid3 { /* 97/4 = 24.25 */
        width: 24.25%; 
	}
	.grid4 { /* 98/3 = 32.666 */
        width: 32.666%; 
	}
	.grid5 { /* (100-2-15.833)/2 = 41.0835 */
        width: 41.0835%;
	}
	.grid6 { /* 99/2 = 49.5 */
        width: 49.5%;
	}
	.grid7 { /* (100-1-41.0835) = 57.9165 */
        width: 57.9165%;
	}
	.grid8{  /* (100-1-32.666) = 66.334 */
        width: 66.334%;
	}
	.grid9{  /* (100-1-24.25) = 74.75 */
        width: 74.75%;
	}
	.grid10{ /* (100-1-15.833) = 83.167 */
        width: 83.167%;
	}
	.grid11{ /* (100-1-7.416) = 91.584 */
        width: 91.584%;
	}
	.grid12 { /* 100/1 = 100 */
        width: 100%;
	}
}
@media only screen and (max-width:768px){
    .bodywrap {
        padding: 0 10px;    
    }
    .row [class*="grid"] {
		width:100%; 
		padding: 0; 
		margin: 1% auto;
		float: none;
	}
	.row [class*="grid"]:first-child, .row [class*="grid"]:last-child{ 
		margin-left: auto;
        margin-right: auto;
	}
}

/*Responsive Navigation Setup Pure CSS
------------------------------------------------------------*/
nav ul{
    margin: 0;
    padding: 0; 
    list-style: none;  
}
nav li{
    display: inline-block;    
}
nav li a{
    display: inline-block;
    padding: 10px;   
}
#onav, .onav-btn{
    display: none;   
}
.side-nav{
    margin-bottom: 10px;
}
.side-nav .menu li{
    width: 100%;
}

/* =Hamburger icon animation on main navigation
-------------------------------------------------------------- */
.onav-btn { 
    cursor: pointer;
    float: right;
    padding: 5px 0 5px 5px;
}
.onav-btn span, .onav-btn span:before, .onav-btn span:after {
    cursor: pointer;
    height: 1px;
    width: 30px;
    background: #444;
    display: inline-block;
    content: '';
    position: relative;
}
.onav-btn span:before {
    position: absolute;
    top: -5px; 
}
.onav-btn span:after {
    position: absolute;
    bottom: -5px;
}
.onav-btn, .onav-btn span, .onav-btn span:before, .onav-btn span:after {
    transition: all 100ms ease-in-out;
    -webkit-transition: all 100ms ease-in-out;
}
#onav:checked ~ .onav-btn{
    margin-top: -4px;
}
#onav:checked ~ .onav-btn span {
    background-color: transparent;
}
#onav:checked ~ .onav-btn span:before, .onav-btn.active span:after {
    top: 5px;
}
#onav:checked ~ .onav-btn span:before {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}
#onav:checked ~ .onav-btn span:after {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

/*Sub Menu Setup
------------------------------------------------------------*/
.menu-item-has-children, .page_item_has_children{
    position: relative;
}
.menu-item-has-children > ul, .page_item_has_children > ul{
    position: absolute;
    display: none;
    top: 38px;
    left: 0;
    z-index: 9999;
}
.menu-item-has-children ul .menu-item-has-children ul, .page_item_has_children ul .page_item_has_children ul{
    position: static;
    display: block;
}
.menu-item-has-children ul a, .page_item_has_children ul a{
    width: 180px;
}
.menu-item-has-children:hover > ul, .page_item_has_children:hover > ul{
    display: block;
}

/*Header Setup
------------------------------------------------------------*/
.logo, nav{
    width: auto;
}
.logo{
    float: left;
    font-size: 20px;
    padding-top: 8px;  
}
nav{
    float: right;    
}
.side-nav{
    width: 100%;
    display: inline-block;    
}

@media only screen and (max-width:768px){
    .onav-btn{
        display: block;
    }
    nav{
        float: none;    
    }
    nav ul{
        display: none;
    }
    nav li, nav li a{
        width: 100%;     
    }
    #onav:checked ~ .nav-menu,
    #onav:checked ~ .nav-menu ul,
    .side-nav ul{
        display: inline-block;
        width: 100%;  
    }
    .menu-item-has-children > ul,
    .page_item_has_children > ul{
        display: block;
        position: static;
    }
}

/*Wordpress required Classes
------------------------------------------------------------*/
.wp-caption{
}
.wp-caption-text{ 
}
.sticky{
}
.gallery-caption{
}
.bypostauthor{ 
}
.alignright{
}
.alignleft{
}
.aligncenter{
}
/* 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. */
}
.row [class*="grid"] div{ 
    max-width: 100%; /*To Prevent layout breaking for inline fixed width*/ 
}

/*Things you probably want on your site
------------------------------------------------------------*/
a > img{
    border: 0 !important;
}
iframe, embed, img{
	max-width: 100%;
	height: auto;	
}
.comments-area ol.comment-list{
    padding: 0;
    list-style: none;    
}
pre{
    word-break: break-word;    
}

/*------------------------------------------------------------
--------------------------------------------------------------
          
      Below code is for Display Purpose only.
      Feel free to delete CSS code below and
      add your own custom CSS.
      
      Using a child theme is definitely a better idea!
      So you don't have to worry about updating theme :)
      
      https://codex.wordpress.org/Child_Themes
            
--------------------------------------------------------------
------------------------------------------------------------*/
html,body{
    font-family: Verdana;
    font-size: 14px;
}
header{
    border-bottom: 1px solid #ddd;    
}
footer{
    border-top: 1px solid #ddd;    
}
.row [class*="grid"]{
    padding: 10px;    
}
.row [class*="grid"] article{
    margin: 0 0 10px 0;
    border-bottom: 1px solid #ddd;    
}
.row [class*="grid"] article footer{
    padding: 20px 0;
}
footer.bodywrap, ul.children{
    background: #ddd; 
}
nav ul li > ul{
    background: #eee;    
}