/* ==================================================================

*   Sparrow Media Queries
*   url: styleshout.com
*   03-05-2014

/* ================================================================== */

@media only screen and ( max-width: 1024px) {

  #journal .blog-entries article {
    flex: 1 1 40%;
    }

  .search-box:hover > .search-txt{
   width: 190px;
   padding: 0 6px;
  }
}

/* small screens
--------------------------------------------------------------------- */
@media only screen and (max-width: 900px) {
  .fake_search{
   display: block;
  }
  .menu_search{
    display: none;
    margin-right: -52px;
  }
  .search-txt{
    width: 190px;
  }
   .search-box:hover > .search-txt{
    width: 190px;
    padding: 0;
  }  
/*  .search-box:hover > .search-btn{
    color: #80231e!important;
  }*/
   #info h1{
      font-size: 18px;
   }
   #journal h1{
      font:  18px 'Roboto', sans-serif;
   }
   .columns_main {
    width: 100%;
    flex: none;
   }
   ul#nav li a {
    padding: 9px 11px; 
   }
   .menu_search {
    padding: 9px 0; 
   }
   .h_menu {
    height: 50px;
    padding: 0 10%;
    background-color: #80231e;
   }
   #nav-wrap {
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    z-index: 99999;
   }

   .footer_t h2, h4, h5, hr {
    font-size: 13px;
    color: white;
   }
   #journal h3 {
    font: 20px 'Roboto', sans-serif;
}
/* mobile wide/smaller tablets
---------------------------------------------------------------------- */

@media only screen and (max-width: 767px) {
  .h_menu {
    padding: 0 5%;
  }
  .content-outer {
    padding: 0 5%;
  }
    .flex-try .post {
      margin-bottom: 0;
    }
    .flex-vert{
      height: 425px;
    }
    #info{
      padding: 0 0;
    }
    .flex-item:nth-child(1),.flex-item:nth-child(2){
    flex: 0 1 100%;
    }
    .uplan_logo {
    width: 64% !important;
    margin: 2% 18%;
    }
   #journal h3 {
    font: 20px 'Roboto', sans-serif;
   }
   /* mobile navigation
   -------------------------------------------------------------------- */
   ul#nav ul li a{
      font-size: 14px;
   }
   

   /* page title
   -------------------------------------------------------------------- */
   #page-title {
    padding-top: 50px;
    padding-bottom: 30px;
  }
   #page-title h1 { font: 38px/48px 'Roboto', sans-serif; }
   #page-title p { font: 16px/30px notosans-regular, sans-serif; }

   /* page content
   -------------------------------------------------------------------- */
   #page-content {
      /*width: 480px;*/
      padding-top: 30px;
   }
   #sidebar a {
    font-size: 18px;
  }

   /* page
   -------------------------------------------------------------------- */
   .page h1,
   .title-heading  { font: 32px/42px raleway-semibold, sans-serif; }
   .page h1, .page p.lead { text-align: center; }


   /* journal section - main page
   --------------------------------------------------------------------- */
   #journal {
      padding-top: 24px;
      padding-bottom: 36px;
   }
   #journal h1 { margin-bottom: 0; }
   #journal .blog-entries { margin-top: 0; }
   #journal .entry-header .permalink {
      display: none;
      z-index: 1;
   }
   #journal .entry-header .entry-title {
      padding: 0 30px;
      margin-bottom: 6px;
      right: 0;
      text-align: center;
      z-index: 3;
   }
   #journal .entry .post-content {
      padding: 0 30px;
      margin-top: 18px;
      margin-left: 0;
   }
   #journal .entry .post-meta { text-align: center; }
   #journal .entry .post-meta time,
   #journal .entry .post-meta .dauthor {
      display: inline;
   }
   #journal .entry .post-meta .dauthor:before {
      content: "/";
      padding-left: 5px;
      padding-right: 5px;
   }

   /* Call To Action Section
   /* ----------------------------------------------------------------- */
   #call-to-action { text-align: center; }
   #call-to-action h1 {
     font-size: 32px;
     margin-bottom: 6px;
   }

   /* Blog Post
   ------------------------------------------------------------------ */
   .post .entry-header h1 { font: 32px/42px raleway-semibold, sans-serif; }

    /* bio */
   .post .bio { padding-top: 18px; }
   .post .bio .gravatar {
      float: none;
      width: 72px;
      margin: 0 auto 18px auto;
   }
   .post .bio .about {
      width: 100%;
      float: none;
      padding-left: 0;
      text-align: center;
   }

   /* post-nav */
   .post-nav { margin-top: 18px; }
   .post-nav li {
      display: block;
      margin: 0 0 18px 0;
      width: 100%;
   }
   .post-nav li.next {
      float: none;
      text-align: center;
   }
   .post-nav li.prev {
      float: none;
      text-align: center;
   }

   /* Comments*/
   #comments h3 {
      text-align: center;
      margin-left: 0;
   }

   /* Comments List */
   ol.commentlist {
      width: 100%;
      margin-left: 0;
   }
   .commentlist  li .avatar { display: none; }

   /* comment form */
   #comments form { margin-left: 0; }
   #comments form input,
   #comments form textarea,
   #comments form select,
   #comments form label {
      width: 100%;
      float: none;
   }
   #comments form label { padding-left: 0; }
   #comments form div { margin-bottom: 0; }
   #comments form input { margin-bottom: 0; }
   #comments form .message label { display: block; }


   /* contact
   ----------------------------------------------------------------------- */
   #contact-form div, #contact-form .half  {
      width: 100%;
      float: none !important;
   }
   #contact-form .half { padding: 0; }
   #contact-form label {
      display: block;
      float: none;
      width: auto;
   }
   #contact-form input,
   #contact-form textarea,
   #contact-form select {
      margin-bottom: 18px;
   }

   /* footer
   ------------------------------------------------------------------------ */
   footer .copyright li:before { content: none; }
   footer .copyright li { margin-right: 10px; }
   footer .copyright, footer .social-links {
      text-align: center;
      float: none;
   }

   /* footer nav */
   footer .footer-nav {
      font: 15px/42px raleway-bold, sans-serif;
      margin: 0;
      padding: 0 0 18px 0;
      text-align: center;
   }
   footer .footer-nav li {
      display: inline;
      margin-right: 12px;
      margin-left: 12px;
   }

   /* social links */
   footer .footer-social {
     margin: 30px 0 12px 0;
     font-size: 23px;
     line-height: 36px;
   }
   footer .footer-social li {
      margin-left: 12px;
      margin-right: 12px;
   }

}

@media only screen and ( max-width: 600px) {
  
    .footer_t h2, h4, h5, hr {
    font-size: 10px;
    color: white;
    }

    .thub-test{
      overflow: hidden;
      margin: 0 auto;
      width: 300px;
      overflow: hidden;
      }
}

@media only screen and (max-width: 680px){
    .search-txt{
       font-size: 14px;
    }
    #info{
      padding: 0 0;
    }
    .flex-item:nth-child(1),.flex-item:nth-child(2){
    flex: 0 1 100%;
    }
   .logo img {
    height: auto;
   }
   .logo{
      padding: 2% 0% 0% 4%;
   }
   ul#nav li a{
      font-size: 14px;
   }
   ul#nav ul li a{
      font-size: 12px;
   }
}

@media only screen and (max-width: 580px){
  .h_menu {
    padding: 0 3%;
  }
}

@media only screen and (max-width: 529px){
/*  .h_menu {
    padding: 0 7%;
  }*/
  .fake_search{
    display: none;
  }
  .m_hide{
    display: none!important;
  }
  #hiden{
    z-index: 1;
  }
/*  #page-title{
    margin-top: 50px;
  }*/
  .menu_search{
    display: block;
    width: 100%;
    margin-right: 0;
  }
}
/* mobile narrow
  -------------------------------------------------------------------------- */

@media only screen and (max-width: 480px) {
  .m_hide {
    display: block!important;
  }
  /*ul#nav li:first-child{
    margin-top: 50px!important;
  }*/
  #page-title{
    margin-top: 0;
  }
  .search-txt{
   width: 190px;
 }
/*  .search-txt{
    width: 90%;
    padding: 0;
    transition: 0;
  }
  .search-box:hover > .search-txt{
    width: 70%;
    padding: 0;
  }  
  .search-box:hover > .search-btn{
   color: #80231e!important;
  }*/
  .search-box:hover > .search-txt{
   width: 190px;
   padding: 0;
}

.search-box:hover > .search-btn{
   color: black!important;
}
  #hiden{
    display: none;
  }
  ul#nav  li:last-child {
      color: red;
   }

  .slider_img img{
    height: 210px;
  }
  .slider_container{
  height: 300px;
}
  .slider_item_into{
    height: 300px;
  }

  .slider_info{
    display: flex;
    padding: 0 1%;
  }
  .slider_info h3{
    margin: auto;
    font-size: 17px;
  }
  #slider_category{
    display: none;
  }
  .flex-item:nth-child(1),.flex-item:nth-child(2){
    flex: 0 1 100%;
    max-width: 100%;
  }

   header .logo { z-index: 99999; }


   .h_menu {
    background-color: transparent;
   }
   #nav-wrap {
      width: auto;
      margin: 0;

      position: absolute;
      top: 0;
      right: 0;
   }
   #nav-wrap > a {
      width: 100%;
      height: 45px;
      text-align: left;
      background-color: #80231e;

      border: none;
      float: right;

      font: 0/0 a;
      text-shadow: none;
      color: transparent;

      position: absolute;
      top: 92px;
      
   }

   #nav-wrap > a:before,
   #nav-wrap > a:after {
      position: absolute;
      border: 2px solid #fff;
      top: 35%;
      left: 40%;
      right: 40%;
      content: '';
   }
   #nav-wrap > a:after { top: 60%; }

   /* toggle buttons */
   #nav-wrap:not( :target ) > a:first-of-type,
   #nav-wrap:target > a:last-of-type  {
      display: block;
   }

   /* hide menu panel */
   #nav-wrap ul#nav {
      height: auto;
      display: none;
      clear: both;

      width: auto;

      position: relative;
      top: 48px;
      right: 0px;
   }

   /* display menu panels */
   #nav-wrap:target > ul#nav  {
      display: block;
      padding: 30px 20px 30px 20px;
      background: #1f2024;
      clear: both;
      border-radius: 3px;
   }

   ul#nav li {
      width: 92%;
      display: block;
      height: auto;
      margin: 0 auto;
      text-align: left;
   }
   ul#nav  li {
      border-bottom: 1px solid #2D2E34;
      border-bottom-style: dotted;
   }
   ul#nav li a {
      background-image: none;
      margin: 0;
      padding: 0;
      font-size: 14px;
      margin: 12px 0;
      line-height: 14px; /* reset line-height from 48px */
      border: none;
   }
   ul#nav span:after {
      left: 5px;
   }

   /* Sub Menu */
   ul#nav ul {
      position: static;
      background: none;
      width: 100%;
      padding-left: 15px !important;

      /* for transition */
      opacity: 0;
   }
   ul#nav ul li {
      width: 100%;
      padding: 0;
      display: list-item;
      border: none;

      /* for transition */
      height: 0px;
      overflow: hidden;
      border-bottom: 1px dotted #595B6A;
   }

   /*On Hover  */
   #nav li:hover > ul li { height: 30px; }
   #nav li:hover > ul li:last-child { margin-bottom: 9px; }

   /* Sub Menu Anchor links */
   #nav ul li a {
      white-space: normal;
      padding-left: 0px !important;
      color:#C0C0C0;
      font-weight: bold;
      font-size: 13px;
      font: 13px/27px raleway-regular, sans-serif;
      line-height: 30px; /* should be the same with li's height */
   }

   #info{
      padding: 0 0;
   }
   #info h1{
      font-size: 20px;
   }
   #journal h1{
      font:  20px 'Roboto', sans-serif;
   }

   #journal .blog-entries article {
    text-align: center;
   	width:100%;
    flex-direction: column;
    flex: none;
    margin: 0 auto;
    margin-top: 10px;
    margin-bottom: 40px;
    padding: 0;
   }
   /* page content
   -------------------------------------------------------------------- */
   #page-content {
      width: auto;
   }

   /* primary navigation */
   #nav-wrap { width: 100%; }
   #nav-wrap ul#nav {
      top: 115px;
      right: 0px;
   }

   .flex-try .post {
      flex-flow: row wrap;
    }
   .post .post-thumb {
    margin: 0 auto;
    width: 100%;
    height: auto;
  }
  .post-thumb img {
    /* margin: 0 auto; */
    
  }
    .post-content {
      width: 100% ;
      margin-left: 0px!important;
    }

    /* journal section - main page
   ------------------------------------------------------------------------- */
   
   #journal h3 {
    font: 20px 'Roboto', sans-serif;
   }

   footer { margin-top: 48px; }

   .footer_t {
    text-align: center;
    flex: none;
    width: 100%;
    margin: 0% auto 2%;
    margin-bottom: 50px;
    padding: 0;
   }

   .footer_t h2, h4, h5, hr {
    font-size: 12px;
    color: white;
    text-align: center!important;
   }
   .logo img {
    height: auto;
   }
   .logo{
      padding: 2% 0% 0% 4%;
   }
   .menu-item-has-children:after{
      position: absolute;
      top: 17px;
      left: 95%;
   }
  }
  
  @media only screen and (max-width: 375px) {
    #nav-wrap > a {
        top: 75px;   
    }
    #page-content {
      padding-top: 20px;
      padding-bottom: 0; 
    }

    .column, .columns {
      padding: 0; 
    }
}

}



