/* 
 Theme Name:   genius-child
 Theme URI:    
 Description:  
 Author:       
 Author URI:   
 Template:     wp-genius12
 Version:      1.0

 /* == Add your own styles below this line ==
--------------------------------------------*/

/* ==================================================
   FORCE OLD WORDPRESS THEME TO BECOME RESPONSIVE
   ================================================== */

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

img,
video,
iframe,
embed,
object {
  max-width: 100% !important;
  height: auto !important;
}

/* ==================================================
   TABLET + MOBILE
   ================================================== */

@media only screen and (max-width: 1000px) {
  /* Kill old fixed-width wrappers */
  #page,
  #wrapper,
  #wrap,
  #container,
  #main,
  #main-wrapper,
  #content-wrapper,
  #content,
  #primary,
  #secondary,
  #sidebar,
  #header,
  #header-wrapper,
  #footer,
  #footer-wrapper,
  .page,
  .site,
  .wrapper,
  .wrap,
  .container,
  .main,
  .site-main,
  .site-content,
  .content,
  .content-area,
  .sidebar,
  .widget-area,
  .header,
  .site-header,
  .footer,
  .site-footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    float: none !important;

    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Main site spacing */

  #page,
  #wrapper,
  #container,
  .site,
  .wrapper,
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Remove fixed positioning that often breaks old themes */

  #content,
  #primary,
  #secondary,
  #sidebar,
  .content,
  .content-area,
  .sidebar,
  .widget-area {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
  }

  /* Columns */

  .column,
  .columns,
  .col,
  [class*="column"],
  [class*=" col-"],
  [class^="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Tables */

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

  /* Forms */

  input,
  textarea,
  select {
    max-width: 100% !important;
  }
}

/* ==================================================
   PHONE
   ================================================== */

@media only screen and (max-width: 700px) {
  /* Header */

  #header,
  .header,
  .site-header {
    height: auto !important;
    min-height: 0 !important;
  }

  #header img,
  .header img,
  .site-header img,
  .custom-logo {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Navigation */

  #nav,
  #navigation,
  #site-navigation,
  .navigation,
  .main-navigation {
    width: 100% !important;
    height: auto !important;
    float: none !important;
  }

  #nav ul,
  #navigation ul,
  #site-navigation ul,
  .navigation ul,
  .main-navigation ul {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #nav li,
  #navigation li,
  #site-navigation li,
  .navigation li,
  .main-navigation li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
  }

  #nav li a,
  #navigation li a,
  #site-navigation li a,
  .navigation li a,
  .main-navigation li a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 10px !important;
  }

  /* Posts/pages */

  .post,
  .page,
  .entry,
  .entry-content,
  .post-content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }

  /* Sidebar under main content */

  #sidebar,
  #secondary,
  .sidebar,
  .widget-area {
    clear: both !important;
    width: 100% !important;
    margin-top: 25px !important;
  }

  /* Prevent long content forcing page wider */

  p,
  a,
  span,
  div {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Responsive embedded content */

  iframe {
    width: 100% !important;
  }
}
@media only screen and (max-width: 1000px) {
  body,
  #page,
  #wrapper,
  #wrap,
  #container,
  #outer,
  #inner,
  .page,
  .wrapper,
  .wrap,
  .container {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
/* =========================================================
   SINCERE BASKETS - RESPONSIVE OVERRIDES
   Add AFTER the original theme CSS
   ========================================================= */

*,
*:before,
*:after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
iframe,
video,
embed,
object {
  max-width: 100% !important;
  height: auto;
}

/* =========================================================
   MAKE THE OLD 980PX LAYOUT FLUID
   ========================================================= */

#wrap,
#head-content,
#subhead,
#page,
#footer,
#footer .limit,
#topnav,
#home-top,
#more-feat {
  max-width: 980px;
  width: 100% !important;
}

/* header background */
#head-content {
  /* background-size: cover; */
  background-position: center top;
}

/* page padding is included inside the width */
#page {
  padding: 15px;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

#contentleft {
  width: 65% !important;
}

#content {
  width: 100% !important;
}

#contentright,
#sidebar {
  width: auto !important;
}

/* desktop: fixed sidebar column so wide widgets (e.g. 320px images) can't push it below the content */
@media only screen and (min-width: 1001px) {
  #contentright {
    width: calc(35% - 1px) !important;
  }

  #sidebar {
    width: 100% !important;
  }
}

/* =========================================================
   NAVIGATION
   ========================================================= */

#topnav {
  padding-left: 15px;
  padding-right: 15px;
}

#topnav > ul {
  width: calc(100% - 215px) !important;
}

/* =========================================================
   BOTTOM CATEGORY MENU
   ========================================================= */

#bottom-cats ul {
  width: 100% !important;
  max-width: 960px;
}

#bottom-cats li {
  width: 20%;
}

#bottom-cats a,
#bottom-cats a:link,
#bottom-cats a:visited {
  width: 100% !important;
}

/* =========================================================
   HOMEPAGE
   ========================================================= */

#home-top {
  padding-left: 15px;
  padding-right: 15px;
}

#slideshow {
  width: 100% !important;
}

#slideshow .slides,
#slideshow .slides ul,
#slideshow .slides li,
.js #slideshow .slides li {
  width: 58% !important;
}

.js #slideshow .slides li .entry {
  width: 100% !important;
}

#slideshow ul.slides-nav {
  width: 42% !important;
}

#slideshow .slides-nav li a {
  width: 100% !important;
}

/* featured boxes */

#more-feat .post {
  width: calc(25% - 8px) !important;
}

/* images inside posts */

.entry img {
  max-width: 100% !important;
  height: auto !important;
}

/* =========================================================
   FOOTER WIDGETS
   ========================================================= */

#footer-widgets ul.footer-widget1,
#footer-widgets ul.footer-widget2 {
  width: 28% !important;
  margin-right: 3% !important;
}

#footer-widgets ul.footer-widget3,
#footer-widgets ul.footer-widget4 {
  width: 18% !important;
}

/* =========================================================
   TABLET / PHONE
   ========================================================= */

@media only screen and (max-width: 760px) {
  body {
    font-size: 14px;
  }

  /* ----- header ----- */

  #head-content {
    height: auto !important;
    min-height: 99px !important;
  }

  #sitetitle {
    width: 100% !important;
    float: none !important;
  }

  #head-banner468 {
    display: none;
  }

  /* ----- main navigation ----- */

  #topnav {
    height: auto !important;
    padding: 0 !important;
  }

  #topnav > ul {
    width: 100% !important;
  }

  #topnav li {
    float: none !important;
    display: block !important;
    width: 100% !important;

    height: auto !important;
    line-height: normal !important;
  }

  #topnav li a,
  #topnav li a:link,
  #topnav li a:visited {
    display: block;
    padding: 12px 15px !important;
  }

  /* submenu */

  #topnav li ul,
  #topnav li ul ul,
  #topnav li.current_page_item ul ul {
    position: static !important;
    left: auto !important;

    width: 100% !important;

    margin: 0 !important;
    border: 0;
  }

  #topnav li ul a,
  #topnav li ul a:link,
  #topnav li ul a:visited,
  #topnav li.current_page_item ul a {
    width: 100% !important;
    padding-left: 30px !important;
  }

  /* Hide old desktop search box */
  #topnav #topsearch {
    display: none;
  }

  /* ----- MAIN CONTENT + SIDEBAR ----- */

  #contentleft,
  #content,
  #contentright,
  #sidebar {
    width: 100% !important;
    float: none !important;
    clear: both !important;
  }

  #contentright,
  #sidebar {
    margin-top: 25px;
  }

  /* ----- homepage columns ----- */

  ul.home-left,
  ul.home-right,
  ul.home-bottom {
    width: 100% !important;
    float: none !important;
  }

  /* ----- slideshow ----- */

  #slideshow {
    height: 250px;
  }

  #slideshow .slides,
  #slideshow .slides ul,
  #slideshow .slides li,
  .js #slideshow .slides li {
    width: 100% !important;
  }

  #slideshow ul.slides-nav {
    display: none;
  }

  /* ----- featured boxes ----- */

  #more-feat .post,
  #more-feat .right .post {
    width: 100% !important;
    float: none !important;

    margin: 0 0 10px !important;
  }

  /* ----- category links ----- */

  #bottom-cats li {
    width: 50% !important;
  }

  /* ----- footer ----- */

  #footer-widgets ul.footer-widget1,
  #footer-widgets ul.footer-widget2,
  #footer-widgets ul.footer-widget3,
  #footer-widgets ul.footer-widget4 {
    width: 100% !important;

    float: none !important;
    clear: both !important;

    margin: 0 0 20px !important;
  }

  /* ----- posts ----- */

  .singlepost .post {
    padding: 15px;
  }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media only screen and (max-width: 480px) {
  #page {
    padding: 10px;
  }

  #bottom-cats li {
    width: 100% !important;
  }

  img.alignleft,
  img.alignright,
  img.post-thum,
  img.thumbnail {
    max-width: 45% !important;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 21px;
  }

  h3 {
    font-size: 18px;
  }
}
#sidebar {
  float: none !important;
}
#topnav li.current_page_item a,
#topnav li.current_page_item a:link,
#topnav li.current_page_item a:visited {
  background: url(/wp-content/themes/wp-genius12/images/nav-rt.gif) top left repeat !important;
}

#page {
    clear: both;
    margin: 0 auto 0;
    padding: 15px 0 15px 15px;
    width: 965px;
    border-top: 1px solid #fff;
    background: white !important;
}
#contentright {
    float: left !important;
}