/*
Theme Name: OneYearOldBlog
Theme URI: http://OneYearOldBlog.com
Description: This theme is a basic layout and a cleared stylesheet to be configured anyway.
Version: 1.0
Tags: blank, clear
*/

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
  padding: 0;
  background: #e6ebee;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1, h2, h3, h4, h5, h6{
   margin: 0;
   padding: 0;
   font-family: 'Roboto Condensed', sans-serif;
}

h1{
  font-size: 28px;
}

h2{
  font-size: 21px;
}

h3{
  font-size: 18px;
}

h4{
  font-size: 16px;
}

h5{
  font-size: 14px;
}

h6{
  font-size: 12px;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  color: #c0392b;
  text-decoration: none;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

blockquote{
  border: 4px solid rgba(99, 110, 114, 1.0);
  background: rgba(214, 48, 49, 0.5);
  margin: 0 0 20px;
  padding: 30px;
}


/* mobile menu Icon */

#nav-icon4 {
  height: inherit;
  margin: 30px 30px;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
}

#nav-icon4 span {
  display: block;
  position: absolute;
  height: 3px;
  width: 30px;
  background: rgba(45, 52, 54,1.0);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
  cursor: pointer;
}

#nav-icon4 span:nth-child(1) {
  top: 0px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon4 span:nth-child(2) {
  top: 10px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon4 span:nth-child(3) {
  top: 20px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}

#nav-icon4.open span:nth-child(1) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  top: 3px;
  left: 8px;
}

#nav-icon4.open span:nth-child(2) {
  width: 0%;
  opacity: 0;
}

#nav-icon4.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 24px;
  left: 8px;
}

html{
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: #2d3436;
  background: #E6E9EE;
  font-family: 'Roboto', sans-serif;
  scroll-behavior: smooth;
}

/*------------------------------Site Structure--------------------------------*/

.container{
  max-width: 960px;
  margin: 0 auto;
}

.flex-row,
.flex-row-change{
  display: flex;
  flex-direction: row;
}

.flex-col{
  display: flex;
  flex-direction: column;
}

.flex-sb{
  justify-content: space-between;
}

.flex-ct{
  justify-content: center;
}

.flex-sa{
  justify-content: space-around;
}

.dis-non{
  display: none;
}

.align-con-ct{
  align-items: center;
}

.align-ct{
  text-align: center;
}

.align-js{
  text-align: justify;
}

.col-1{
  width: 100%;
}

.col-2{
  width: 40%;
}

.col-7{
  width: 70%;
  margin: 0 auto;
}

.hei-1{
  height: 100%;
}

.capitalise{
  text-transform: uppercase;
}

/*-------------------------------Site Header----------------------------------*/

header{
  background: #fff;
  border-bottom: 3px solid #c0392b;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,.2);
  position: relative;
  top: 0;
}

header .container{
  height: 80px;
  vertical-align: middle;
}

header .container .site-logo,{

}

header .container .site-logo,
header .container .primary-menu,
header .container .toggleMenu{
  height: inherit;
}

header .container .site-logo{
  width: 160px;
  height: inherit;
  display: flex;
  flex-direction: column;
  align-content: space-around;
}

header .container .site-logo a{
  width: inherit;
  display: flex;
  flex-direction: column;
  align-content: space-around;
}

header .container .site-logo a img{
  width: 100%;
  height: auto;
}

header .toggleMenu .bar{
  width: 30px;
  height: 3px;
  background: rgba(45, 52, 54,1.0);
  border-radius: 3px;
  margin: 4px 0;
}

header .container .toggleMenu,
header .mobile-menu{
  display: none;
}

header div ul{
  list-style: none;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
	display: flex;
}

header .primary-menu ul li{
  margin-left: 40px;
  color: rgba(45, 52, 54,1.0);
  font-weight: 700;
}

header .primary-menu ul li a:hover{
  color: rgba(99, 110, 114,1.0)
}

header .primary-menu ul li ul{
  display: flex;
  flex-direction: column;
}

header .header-cta{
  border: 2px solid #c0392b;
  border-radius: 30px;
  padding: 12px 30px;
  background: #c0392b;
  color: #fff;
}

header ul li a.header-cta:hover{
  background: #fff;
  color: #c0392b;
}

header .mobile-menu ul li:last-child{
  padding: 20px 0;
}
/* -----------------------------------Site Content--------------------------- */

.site-content{
  margin-top: 15px;
}

.content{
  width: calc(70% - 15px);
}

.content .page,
.content .post{
  background: #fff;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,.30);
  padding: 40px 40px;
  text-align: justify;
  margin-bottom: 20px;
}

.content .page .line,
.content .line{
  border-bottom: 1px solid rgba(99, 110, 114,1.0);
}

.content .tagline{
  padding: 5px 0 15px;
  margin: 0;
}

.content .post .post-meta-background{
  background: rgba(25, 27, 48, 0.7);
  padding: 25px 0;
  color: #fff;
}

.content .page a,
.content .post a{
  text-decoration: underline;
  font-weight: bold;
}

.content .page a:hover,
.content .post a:hover{
  text-decoration: none;
}

.content .page img,
.content .post img{
  width: calc(100% + 80px);
  margin-bottom: 10px;
  margin-left: -40px;
  margin-right: -40px;
}

.content .post .tab{
  background: rgba(99, 110, 114,1.0);
  width: 40px;
  margin: 0 10px;
  height: 4px;
  border-radius: 2px;
}

.content .post .category a{
  font-size: 14px;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  font-weight: 400;
}

.content .post .category a:hover{
  text-decoration: underline;
}

.content .post .post-meta{
  min-height: 400px;
  margin: -40px -40px 0px;
  background-position: center;
  background-size: cover;
  line-height: 2;
}

.content .post .post-meta .meta{
  font-size: 14px;
  font-weight: bold;
  color: rgba(99, 110, 114,1.0);
}

.content .post-loop{
  box-shadow: 0 1px 4px 0 rgba(0,0,0,.30);
  background: #fff;
  margin-bottom: 20px;
}

.content .post-loop .featured-image img{
  width: 100%;
  margin-bottom: 0;
}

.content .post-loop .featured-image a{
  padding-bottom: 0;
}

.content .post-loop .post-loop-meta{
  padding: 20px 40px;
  text-align: justify;
}

.content .post-loop .post-loop-meta h1 a{
  font-size: 24px;
  color: rgba(45, 52, 54,1.0);
}

.content .post-loop .post-loop-meta h1 a:hover{
  color: rgba(192, 57, 43,1.0);
}

.content .post-loop .post-loop-meta .meta{
  font-size: 14px;
  font-weight: bold;
  margin-top: 5px;
  color: rgba(99, 110, 114,1.0);
}

.content .post-loop .post-loop-meta .meta a:hover{
  text-decoration: underline;
}

.content .post-loop .author-profile{
  width: 54px;
  border-radius: 50%;
  float: right;
  margin-top: -54px;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,.1);
}

.content .post .post-meta-background a,
.content .post .post-meta-background .category a,
.content .post .post-meta-background .meta{
  color: #fff;
}

.content .post .post-meta-background .tab{
  background: #fff;
}

/* -----------------------------------Pagenation--------------------------- */

.pagenation a{
  background: #fff;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,.1);
  padding: 8px 15px;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pagenation a:hover{
  color: #fff;
  background: #191b30;
}

/* -----------------------------------Site SideBar--------------------------- */

.sidebar{
  width: 30%;
}

.sidebar .about-me{
  background: #191b30;
  padding: 20px 20px;
  text-align: center;
  color: #fff;
}

.sidebar .lessons{
  margin-bottom: 20px;
  background: #d2d9e2;
  padding: 20px 20px;
}

.sidebar .lessons .all-lessons{
  font-size: 14px;
  font-weight: bold;
}

.sidebar .lessons .each-lesson{
  padding: 10px 0;
  border-bottom: 1px solid #c0c8d3;
}

.sidebar .lesson-number{
  background: #c0392b;
  height: max-content;
  margin-right: 12px;
  padding: 5px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.sidebar .line{
  background: #c0392b;
  margin: 8px auto 0;
  width: 35px;
  height: 2px;
}

.sidebar .banner{
  background: #fff;
  font-size: 14px;
  text-align: justify;
  margin-bottom: 20px;
}

.sidebar .banner .banner-image img{
  width: 100%;
}

.sidebar .banner .banner-details{
  padding: 20px 20px;
}

.content .post .cta,
footer .newsletter .cta,
.sidebar .banner .banner-details .cta{
  background: #c0392b;
  display: block;
  width: calc(100% - 4.8px);
  color: #fff;
  font-size: 13px;
  padding: 10px 0px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 1px;
  border: 2.4px solid #c0392b;
  transition: all 300ms ease 0s;
  text-decoration: none;
}

.content .post .cta:hover,
footer .newsletter .cta:hover,
.sidebar .banner .banner-details .cta:hover{
  background: transparent;
  color: #c0392b;
  text-decoration: none;

}

footer .newsletter .cta{
  width: 200px;
  background: #fff;
  border: 2.4px solid #191b30;
  color: #191b30;
}

footer .newsletter .cta:hover{
  background: #191b30;
  border: 2.4px solid #fff;
  color: #fff;
}

/* -----------------------------------Site Footer--------------------------- */

footer{
  background: #191b30;
  padding: 40px 0 0;
  color: #fff;
  margin-top: 40px;
}

footer .bottom{
  padding: 30px 0;
  border-top: 1px solid #3c3c3c;
  line-height: 1;
  font-size: 14px;
}

footer .content{
  background-color: #d63031;
  color: #fff;
  margin-top: -80px;
}

footer .content .newsletter{
  width: calc(100% - 80px);
  padding: 40px 40px;
  text-align: justify;
}

footer .content .newsletter form{
  background: #fff;
  padding: 5px;
  border-radius: 3px;
}

form div{
  width: auto;
}

footer .content .newsletter input{
  border: none;
  outline:none;
  padding: 12px 15px;
  font-size: 14px;
  border-radius: 3px;
  width: auto;
  line-height: 1.5;
}

footer .content .newsletter input[type="email"]{
  border: 0;
  width: 78%;
}

footer .content .newsletter input[type="submit"]{
  background: #c0392b;
  width: auto;
  color: #fff;
  font-size: 13px;
  padding: 12px 20px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 3px;
  letter-spacing: 1px;
  border: 2.4px solid #c0392b;
  transition: all 300ms ease 0s;
}

footer .content .newsletter input[type="submit"]:hover{
  background: transparent;
  color: #c0392b;
  text-decoration: none;
  transition: all 300ms ease 0s;
}

footer ul{
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

footer a{
  color: inherit;

}

/* -----------------------------------Site Popup--------------------------- */

.popup{
  position: fixed;
  display: none;
  z-index: 999;
  top: 0;
  background: rgba(0, 0, 0, 0.7);
}

footer .popup .content{
  margin: 0 auto;
}

footer .popup .content .close{
  position: absolute;
  margin: 0 auto;
  background: #fff;
  color: #000;
  font-weight: bolder;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  top: 15px;
  right: 15px;
  cursor: pointer;
}

/* -----------------------------------Media Query--------------------------- */

@media (max-width: 768px) {

  .container{
    margin-left: 5%;
    margin-right: 5%;
  }

  header .primary-menu{
    display: none;
  }

  header .container .toggleMenu{
    display: flex;
  }

  header .mobile-menu{
    border-top: 1px solid rgba(178, 190, 195,1.0);
  }

  header .mobile-menu ul{
    margin: 0;
    padding: 0;
  }

  header .mobile-menu ul li{
    border-bottom: 1px solid rgba(178, 190, 195,1.0);
    padding: 12px 0;
  }

}

@media (max-width: 640px) {

  header{
    margin-bottom: 15px;
  }

  .container{
    margin-left: 3%;
    margin-right: 3%;
  }

  .flex-row-change{
    flex-direction: column;
  }

  .sidebar, .content{
    width: 100%;
  }

  .content .page,
  .content .post{
    padding: 40px 20px;
    text-align: justify;
    margin-bottom: 20px;
  }

  footer .sidebar{
    padding: 30px 20px;
    width: calc(100% - 40px);
  }

  footer .top .newsletter{
    padding: 30px 20px;
    width: auto;
  }

  footer .bottom{
    line-height: 1.8;
    padding: 20px 0;
  }

  footer input, footer .content .newsletter input[type="submit"] {
    width: 100%;
  }

  .site-content{
    margin-top: 15px;
  }

  .content h1{
    line-height: 1.5;
  }

  .content .page img,
  .content .post img{
    width: calc(100% + 40px);
    margin-bottom: 10px;
    margin-left: -20px;
    margin-right: -20px;
  }

  .content .post .post-meta{
    min-height: 300px;
    margin: -40px -20px 0px;
  }
}


/*--------------------comments------------------------*/
