/*
Theme Name: FreePixel
Theme URI: http://wordpressakademia.hu/
Author: Szak Eniko
Author URI: http://szakdesign.hu/
Description: Wordpress Akademia gyakorlo sablon
Version: 1.0 
*/


html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
  background: #51c8d4;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
}

a {
  color: #c4a15e;
  transition: all .3s ease;
}

a:hover {
  color: #9f791d;
  text-decoration: underline;
}

.main {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

header, footer, section, article, aside {
  float: left;
  width: 100%;
}

header h1 {
  float: left;
  font-size: 60px;
  font-family: 'Yeseva One', serif;
  text-transform: uppercase;
  font-weight: normal;
  margin: 60px 0 50px 0;
}

  header h1 a, header h1 a:hover {
    text-decoration: none;
    color: #fff;
  }

  header h1 a:hover {
    color: #eeeeee;
  }

header nav {
  width: 100%;
  float: left;
  background: #274aa3;
}

  header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  header nav ul li {float: left;}

  header nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    display: block;
    float: left;
    font-size: 18px;
    text-transform: uppercase;
    padding: 13px 25px;
    transition: all .3s ease;
  }

  header nav ul li.active a {
    background: #c4a15e;
  }

  header nav ul li a:hover {
    color: #eeeeee;
    text-decoration: none;
    background: #435ea3;
  }

.searchform {
  width: auto;
  float: right;
  margin-top: 85px;
}
  .searchform input[type="text"] {
    display: block;
    float: left;
    background: #8ccdd4;
    color: #efefef;
    border: none;
    font-size: 14px;
    width: 240px;
    height: 40px;
    box-sizing: border-box;
    margin: 0;
  }

  .searchform input[type="submit"] {
    display: block;
    float: left;
    background: #51c8d4;
    border: 1px solid #8dcdd4;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 26px;
  }

.content {
  background: #fff;
  float: left;
  width: 100%;
  padding: 30px 0;
}


footer {
  background: #274aa3;
  box-sizing: border-box;
  padding: 20px 0 10px;
  text-align: center;
  color: #fff;
}

footer .footmenu {
  list-style: none;
  margin: 0;
  padding: 0;

}

  footer .footmenu li {display: inline-block;}

  footer .footmenu li a {
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 0 10px;
  }

  footer .by {
    font-family: 'Yeseva One', serif;
    margin-top: 30px;
    text-transform: uppercase;
    color: #51c8d4;
    font-size: 18px;
  }

.leftcol, .rightcol {
  float: left;
}

.leftcol {
  width: 750px;
  padding: 0 30px 0 30px;
  box-sizing: border-box;
}

.rightcol {
  width: 220px;
}


.list article {
  width: 360px;
  box-sizing: border-box;
  padding-right: 30px;
  margin-bottom: 30px;
}

.list article:nth-child(even) {
  padding-right: 0;
  width: 330px;
}

  .leftcol img {
    max-width: 100%;
  }
  .list article img {
    transition: transform .3s ease;
  }
  .list article img:hover {
    transform: scale(1.05);
  }

  .list article h1 {
    font-size: 22px;
    text-transform: uppercase;
    color: #51c8d4;
    margin:5px 0;
  }

  .list article h1 a {
    color: #51c8d4;
    text-decoration: none;
    transition: color .3s ease;
  }

    .list article h1 a:hover {
      color: #274AA3;
    }

  .meta {
    font-size: 12px;
    color: #c4a15e;
    text-transform: uppercase;
  }

  .list article p {
    font-size: 14px;
    margin: 5px 0 0 0;
  }

  .pagenav {
    margin: 40px 0 20px;
    float: left;
    width: 100%;
  }

  .pagenav a {
    font-family: 'Yeseva One', serif;
    font-size: 18px;
    color: #274aa3;
    text-decoration: none;
    text-transform: uppercase;
  }

  .pagenav a:hover {
    color: #51c8d4;
  }

  .pagenav .leftnav {float: left;}
  .pagenav .rightnav {float: right;}

.rightcol aside {
  float: left;
  width: 100%;
  margin-bottom: 30px;
}

  .rightcol aside h3 {
    font-size: 18px;
    color: #51c8d4;
    text-transform: uppercase;
  }

  .rightcol aside ul {
    margin: 0;
    padding: 0;
    list-style: square;
    list-style-position: inside;
  }

h1.pagetitle {
  font-family: "Yeseva One", serif;
  color: #274aa3;
  font-size: 24px;
  font-weight: normal;
}




/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
        white-space: nowrap;
	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. */
}


/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (max-width: 1020px) {
  .main {
    width: 760px;
  }

  .leftcol, .rightcol {
    width: 100%;
    margin: 0;
    padding: 0 30px;
    box-sizing: border-box;
  }

  .list article {
    width: 50%;
    padding-right: 0;
    padding-right: 15px;
  }

  .list article:nth-child(even) {
    padding-right: 0;
    float: right;
    width: 50%;
    padding-left: 15px;
  }
  .rightcol aside {
    width: 50%;
  }
}

@media only screen and (max-width: 770px) {
  .main {
    width: 320px;
  }
  header h1 {
    font-size: 40px;
    margin: 30px 0;
    text-align: center;
    width: 100%;
  }

  .searchform {
    display: none;
  }
  .list article {
    width: 100%;
    padding-right: 0;
    padding-right: 0;
  }
  .list article:nth-child(even) {
    padding-right: 0;
    float: right;
    width: 100%;
    padding-left: 0;
  }

  .pagenav .leftnav {
    margin-bottom: 30px;
  }
  .pagenav .leftnav, .pagenav .rightnav {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
