@media only screen and (max-width: 768px) {
  #navButton {
    display: block;
  }
  img, iframe {
    max-width: 100% !important;
  }
  img {
    height: inherit;
  }
}

@media only screen and (min-width: 769px) {
  #navButton {
    display: none;
  }
}

@media only screen and (min-width: 220px) and (max-width: 768px) {
  html {
    padding: 0 10px;
    font-size: 28px;
    max-width: 100%;
  }

  /* Menu */
  #ja-mainnavwrap {
    margin-top: 0;
  }
  #ja-mainnavwrap > div:nth-of-type(1) {
    font-size: 0.7rem;
    position: absolute;
    top: 110px;
    right: 15px;
    transition: all .3s ease-in-out 0s;
    color: #666;
  }
  #ja-mainnavwrap > div:nth-of-type(1):hover {
    text-decoration: underline;
    color: #000;
  }
  #ja-cssmenu::before:hover {
    color: #fff;
    background: black;
  }
    #jazin-hlwrap {
    border: none !important;
  }
  #jazin-hlfirst,
  #jazin-hlnext {
    float: none;
    width: 95%;
    margin: 0 auto;
    background: none;
  }
    /* Main page */
  #ja-header {
    background: none;
    background-color: #8c0a06;
  }
  #ja-header h1.logo a {
    width: 100%;
    background: none;
  }
  #ja-header h1.logo a::after {
    font-family: sans-serif;
    font-size: 1rem;
    font-weight: bold;
    position: absolute;
    top: 30px;
    display: block;
    width: 100%;
    margin: 0 auto;
    content: 'shockmagazin.hu';
    text-align: center;
    color: #fff;
  }
  #ja-mainnav {
    border: none;
    border-right: none;
    border-left: none;
  }
  #ja-mainnavwrap {
    border: none;
  }
    #ja-cssmenu li {
    font-size: .5rem;
    line-height: 1rem;
    overflow: hidden;
    max-height: 0;
    transition: all .3s ease-in-out 0s;
    border: none !important;
  }
  #ja-cssmenu li:nth-of-type(3),
  #ja-cssmenu li:nth-of-type(7),
  #ja-cssmenu li:nth-of-type(10),
  #ja-cssmenu li:nth-of-type(12) {
    display: none !important;
  }
  #ja-cssmenu li.active,
  #ja-cssmenu li,
  #ja-cssmenu li a span,
  #ja-cssmenu li a {
    transition: all .3s ease-in-out 0s;
  }
  #ja-cssmenu {
    visibility: hidden;
    transition: all .3s ease-in-out 0s;
    transform: translateY(-3em);
    opacity: 0;
    background: rgba(140, 10, 6, .1);
  }
  #ja-header,
  #ja-mainnav,
  #ja-subnav,
  #ja-container,
  #ja-footer {
    width: initial;
  }
  #ja-content {
    width: 100% !important;
  }
  #ja-colwrap,
  .ja-cert,
  #ja-headtools {
    display: none;
    border: none;
  }
  #ja-container-inner,
  #ja-container {
    background: none;
  }
  #ja-header {
    height: 100px;
  }

  #ja-cssmenu {
    margin-top: 60px;
  }
  span a[rel='follow'] {
    display: none;
  }
  h2.jazin-title,
  h4.jazin-title {
    font-size: 0.7rem;
  }
  .jazin-content p {
    font-size: 0.7rem;
  }
  div.jazin-section a span {
    font-size: .6rem;
  }
  .jazin-more {
    font-size: 0.7rem;
  }
  .jazin-links {
    font-size: 0.6rem;
  }
  .jazin-links li {
    line-height: 0.6rem !important;
  }
  .jazin-left .jazin-more,
  .jazin-right .jazin-more {
    font-size: .6rem !important;
  }
  .jazin-left .jazin-links,
  .jazin-right .jazin-links {
    font-size: .7rem !important;
  }
  .jazin-left, .jazin-right {
    float: none !important;
    width: 100% !important;
  }

  .jazin-links li {
    line-height: 1rem;
    height: auto;
    padding-left: 15px !important;
    background-image: url(/templates/ja_teline_ii/images/bullet.gif);
    background-repeat: no-repeat;
    background-position: 0px 12px !important;
    background-size: 6px 6px;
    padding-bottom: 10px;
  }
  #ja-footer li a {
    line-height: 2rem !important;
    font-size: 0.5rem !important;
  }
  #ja-footer li {
    display: block;
    text-align: center;
    background: none;
  }
  #mainlevel-nav li:last-of-type, #mainlevel-nav img  {
    display: none;
  }

  #ja-footer small {
    display: block;
    text-align: center;
    font-size: 0.6rem;
    padding-top: 20px;
  }

  #ja-tabs, .ja-tab-panels {
    width: 100% !important;
  }

  div.moduletable_abc td {
    padding-right: 0.1em !important;
    white-space: nowrap;
  }

  #ja-footer li a {
    line-height: 1.2rem !important;
    font-size: 0.6rem !important;
  }

}

@media only screen and (min-width: 520px) and (max-width: 768px) {
  #ja-footer li {
    display: inline;
  }

  div.moduletable_abc td {
    padding-right: 0.4em !important;
    font-size: 0.5rem;
  }

  #ja-footer li a {
    line-height: normal !important;
    font-size: 0.7rem;
  }

  h2.jazin-title,
  h4.jazin-title {
    font-size: 0.7rem;
    padding-bottom: 15px;
  }
  .jazin-content p,
  .jazin-box strong,
  .jazin-box b {
    font-size: 0.6rem;
    padding-bottom: 0px;
    text-align: justify;
  }

  #jazin-hlfirst img {
    display: block;
    float: left;
    margin: 0 auto !important;
    padding-right: 20px !important;
    padding-bottom: 20px !important;
  }
  #jazin-hlnext {
    margin-top: 70px;
    padding-top: 30px;
    border-top: 5px solid #ababab;
  }
  div.jazin-section {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
  div.jazin-section a span {
    font-size: 0.6rem;
  }
  .jazin-content img {
    height: auto;
  }
  .jazin-content {
    margin-bottom: 50px !important;
  }
  .jazin-more {
    font-size: 0.7rem !important;
    margin-bottom: 15px !important;
  }
  .jazin-links {
    font-size: 0.5rem;
  }
  .jazin-links li {
    line-height: 1rem !important;
    height: auto;
    padding-left: 15px !important;
    background-image: url(/templates/ja_teline_ii/images/bullet.gif);
    background-repeat: no-repeat;
    background-position: 0px 10px !important;
    background-size: 8px 8px;
  }
  .jazin-left .jazin-more,
  .jazin-right .jazin-more {
    font-size: 0.6rem !important;
  }
  .jazin-left .jazin-links,
  .jazin-right .jazin-links {
    font-size: 0.6rem !important;
  }
  #ja-footer {
    border-top: none;
  }
  #mainlevel-nav {
    font-size: .5rem;
    margin-bottom: 20px!important;
    text-align: center;
  }
  #mainlevel-nav li:last-of-type {
    display: none;
  }
  .jazin-left .jazin-box {
    margin-left: 10px !important;
  }

  /* Article */
  .article-content p img {
    display: block;
    width: 95%;
    height: auto;
    margin: auto 20px !important;
    border: 1px solid #000;
  }
  .article-content p strong img {
    width: auto;
  }
  .article-content {
    font-size: .8rem;
  }
  #comments,
  #abc {
    font-size: 104%;
  }
  .article-meta {
    font-size: 130%;
  }
}
