@media screen, projection, tv {
  html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
  }
  body {
    font-family: verdana, geneva, sans-serif;
    font-size: 14px;
    color: #444;
    background-color: #fff;
    margin: 0 0 0 0;
  }
  a,
  a:visited,
  a:active {
    color: #444;
  }
  a:hover {
    color: #000;
  }
  h1 {
    margin-top: 20px;
    line-height: 55px;
  }
  h1 a {
    text-decoration: none;
  }
  .print-name,
  .print-info {
    display: none;
  }
  .fb {
    float: right;
    width: 130px;
    margin-top: 10px;
    height: 25px;
  }
  .ranky_advert {
    display: block;
    float: right;
    border: 1px solid #c0c0c0;
    font-size: 9pt;
    margin-right: 10px;
    padding: 5px;
  }
  .ranky_advert a {
    font-weight: bold;
  }
  .ranky_advert p {
    padding: 0px;
    margin-top: 3px;
    margin-bottom: 0px;
  }
  .groups {
    clear: both;
  }
  .group:first-child {
    width: 111px;
  }
  .group {
    border: 1px solid #444;
    text-align: center;
    font-weight: bold;
    padding: 5px;
    float: left;
    width: 94px;
    border-right: none;
  }
  .group:last-child {
    border: 1px solid #444;
    width: 95px;
  }
  .elements {
    position: relative;
  }
  .ptable-container {
    margin-top: 20px;
    width: 1710px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
  }
  a.element:hover {
    text-decoration: none;
  }
  .element {
    border: 1px solid #444;
    display: block;
    color: #444;
    text-decoration: none;
    width: 95px;
    height: 86px;
    line-height: 16px;
    overflow: hidden;
    text-align: center;
    font-size: 10px;
    padding: 2px;
    float: left;
    margin-left: -1px;
    margin-top: -1px;
    margin-bottom: -1px;
    border-bottom: 1px solid transparent;
  }
  .element.laAc {
    width: 95px;
    padding-right: 19px;
  }
  .s {
    background-color: #9bd7fa;
  }
  .s:hover {
    background-color: #8ac6f8;
  }
  .d {
    background-color: #fefeca;
  }
  .d:hover {
    background-color: #f9f8aa;
  }
  .p {
    background-color: #febfbc;
  }
  .p:hover {
    background-color: #faacaa;
  }
  .lanacts {
    margin-left: 16px;
  }
  .lanacts .element {
    background-color: #febcff;
  }
  .lanacts .element:hover {
    background-color: #faacfC;
  }
  #magnifier_container {
    display: block;
    position: absolute;
    left: 206px;
    top: 160px;
    width: 939px;
    font-size: 12px;
    text-align: center;
    line-height: 60px;
  }
  #magnifier {
    display: none;
  }
  .advert_728_90 {
    /*border: 1px solid red;*/
  
    width: 728px;
    height: 90px;
    margin-left: auto;
    margin-right: auto;
    right: 0;
    z-index: 9000;
  }
  .lanacts .element.empty {
    background-color: transparent;
  }
  .laAcGap {
    width: 19px;
    height: 86px;
    float: left;
    margin-left: -19px;
    background: #98B;
    margin-bottom: -2px;
  }
  .layer {
    clear: both;
    margin: 1px 0 0;
  }
  .layer:first-child {
    margin-top: 0px;
  }
  .layer:first-child .element {
    margin-top: 0px;
    border-bottom: none;
  }
  .layer:last-of-type .element {
    border-bottom: 1px solid #444;
  }
  .layer:last-of-type .element.empty {
    border-bottom: none;
  }
  .layer:last-of-type .laAcGap {
    background: #87A;
    height: 85px;
  }
  .layer:last-of-type .layer_number {
    padding-bottom: 1px;
  }
  .layer_number {
    border: 1px solid #444;
    border-top: none;
    width: 18px;
    height: 85px;
    line-height: 82px;
    text-align: center;
    font-weight: bold;
    float: left;
    clear: left;
  }
  .atom_weight {
    height: 16px;
  }
  .lanacts .layer:last-of-type .element {
    background-color: #eeacdf;
  }
  .lanacts .layer:last-of-type .element:hover {
    background-color: #de9ccf;
  }
  .lanacts .layer:last-of-type .element.empty {
    background: none;
  }
  .lanacts {
    margin-top: 30px;
  }
  .clear {
    clear: both;
  }
  .empty {
    border: 1px solid transparent;
  }
  .element:first-child {
    margin-left: 0px;
  }
  .element:hover {
    color: #000;
  }
  .element:last-child {
    border-right: 1px solid #444;
  }
  .atom_weight {
    text-align: right;
  }
  .number_sign {
    position: relative;
    text-align: center;
  }
  .czech_name {
    text-transform: uppercase;
    font-weight: bold;
    height: 15px;
  }
  .sign {
    font-weight: bold;
    font-size: 17px;
  }
  .number {
    position: absolute;
    top: 2px;
    font-size: 10px;
  }
  .latin_name {
    font-style: italic;
  }
  #smallTable {
    margin-bottom: 10px;
    width: 100%;
    height: 380px;
    overflow-y: hidden;
    overflow-x: auto;
  }
  #smallTable > .ptable-container {
    overflow-x: hidden;
    overflow-y: hidden;
    width: 450px;
    height: 100%;
    margin-top: 30px;
  }
  #smallTable #magnifier_container {
    display: none;
  }
  #smallTable .atom_weight,
  #smallTable .latin_name,
  #smallTable .electronegativity,
  #smallTable .czech_name {
    display: none;
  }
  #smallTable .number_sign {
    margin-top: 0px;
  }
  #smallTable .number {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    font-size: 10px;
    top: -2px;
  }
  #smallTable .sign {
    display: block;
    font-size: 10px;
    text-align: center;
    padding: 0 0 0 0;
    position: relative;
  }
  #smallTable .layer {
    clear: both;
  }
  #smallTable .group {
    width: 24px;
    padding: 2px;
  }
  #smallTable .group:first-child {
    width: 41px;
  }
  #smallTable .group:last-child {
    width: 25px;
  }
  #smallTable .element {
    line-height: 12px;
    width: 25px;
    height: 33px;
    padding: 1px;
  }
  #smallTable .layer {
    width: 768px;
  }
  #smallTable .layer_number {
    width: 18px;
    height: 33px;
    line-height: 33px;
  }
  #smallTable .layer:last-child .layer_number {
    height: 32px;
  }
  #smallTable .lanacts {
    margin-top: 5px;
    margin-left: 17px;
  }
  #smallTable .laAcGap {
    width: 3px;
    margin-left: -3px;
    height: 32px;
  }
}
@media screen and (max-width: 1800px), projection and (max-width: 1800px), tv and (max-width: 1800px) {
  .ptable-container {
    width: 1215px;
  }
  .advert_728_90 {
    display: none;
  }
  .advert_320_100 {
    /*border: 1px solid red;*/
  
    width: 320px;
    height: 100px;
    display: inline-block;
    z-index: 9000;
  }
  #magnifier_container {
    display: block;
    position: absolute;
    left: 159px;
    top: 85px;
    width: 660px;
    line-height: 100px;
    font-size: 12px;
    text-align: center;
  }
  #magnifier {
    position: relative;
    display: inline-block;
    border: 1px solid #444;
    width: 95px;
    height: 100px;
    margin-left: 20px;
    margin-right: 20px;
  }
  #magnifier .sign,
  #magnifier .number,
  #magnifier .latin_name,
  #magnifier .czech_name,
  #magnifier .electronegativity,
  #magnifier .atom_weight {
    display: block;
    line-height: 25px;
    position: absolute;
    width: 100%;
  }
  #magnifier .atom_weight {
    padding-right: 2px;
  }
  #magnifier .number {
    top: 25px;
    text-align: left;
  }
  #magnifier .sign {
    top: 20px;
  }
  #magnifier .czech_name {
    top: 40px;
  }
  #magnifier .latin_name {
    top: 60px;
  }
  #magnifier .electronegativity {
    top: 75px;
  }
  #magnifier .longsign .sign {
    font-size: 16px;
  }
  #magnifier .latin_name.only {
    top: 50px;
    font-size: 12px;
  }
  .lanacts {
    margin-left: 26px;
  }
  .group {
    width: 66px;
  }
  .group:first-child {
    width: 92px;
  }
  .group:last-child {
    width: 67px;
  }
  .layer_number {
    width: 27px;
    height: 66px;
    line-height: 66px;
  }
  #advert {
    margin-top: 23px;
  }
  .latin_name {
    display: none;
  }
  .latin_name.only {
    display: block;
    position: relative;
    top: -15px;
    font-size: 8.5px;
  }
  .element {
    width: 67px;
    height: 67px;
    padding-left: 1px;
    padding-right: 1px;
    font-size: 9px;
  }
  .number_sign {
    height: 17px;
  }
  .element.laAc {
    width: 67px;
    padding-right: 9px;
  }
  .laAcGap {
    width: 9px;
    margin-left: -9px;
    height: 66px;
  }
  .layer:last-of-type .laAcGap {
    height: 66px;
  }
  .longname {
    font-size: 7px;
  }
  .longsign .sign,
  .longsign .number {
    display: inline;
    position: relative;
    top: 0px;
  }
}
@media screen and (max-width: 1230px), projection and (max-width: 1230px), tv and (max-width: 1230px) {
  h1 {
    font-size: 20px;
  }
  .ranky_advert {
    margin-top: -10px;
  }
  #magnifier {
    margin-left: 0;
    margin-right: 20px;
  }
  #magnifier_container {
    left: 120px;
    top: 50px;
    width: 499px;
  }
  #magnifier_container .number_sign {
    margin: 0;
  }
  #magnifier_container .sign {
    padding: 0;
  }
  .lanacts {
    margin-left: 19px;
  }
  .group {
    width: 50px;
  }
  .group:first-child {
    width: 69px;
  }
  .group:last-child {
    width: 51px;
  }
  .layer_number {
    width: 20px;
    height: 46px;
    line-height: 46px;
  }
  .ptable-container {
    width: 920px;
  }
  .element {
    width: 51px;
    height: 47px;
    padding-left: 1px;
    padding-right: 1px;
    font-size: 9px;
  }
  .electronegativity,
  .atom_weight,
  .czech_name,
  .latin_name.only {
    display: none;
  }
  .number_sign {
    margin-top: 12px;
  }
  .sign {
    padding-left: 15px;
  }
  .longsign .sign {
    font-size: 13px;
  }
  .longsign .sign,
  .longsign .number {
    display: block;
    position: absolute;
  }
  .longsign .number {
    font-size: 8px;
    top: 2px;
  }
  .element.laAc {
    width: 51px;
    padding-right: 5px;
  }
  .sign {
    font-size: 14px;
  }
  .laAcGap {
    width: 5px;
    margin-left: -5px;
    height: 48px;
  }
  .lanacts {
    margin-top: 10px;
  }
  .layer:last-of-type .laAcGap {
    height: 46px;
  }
}
@media screen and (max-width: 991px), projection and (max-width: 991px), tv and (max-width: 991px) {
  .advert_320_100 {
    display: none;
  }
  .advert_728_90 {
    display: block;
    position: fixed;
    bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    right: 0;
    left: 0;
  }
  h1 {
    font-size: 16px;
  }
  h2 {
    font-size: 14px;
  }
  .ranky_advert {
    display: none;
  }
  .group {
    padding-top: 2px;
    padding-bottom: 2px;
  }
  .ptable-container {
    width: 768px;
  }
  .element {
    width: 43px;
    height: 40px;
    padding-left: 1px;
    padding-right: 1px;
    font-size: 9px;
  }
  #magnifier_container {
    top: 35px;
    width: 419px;
    left: 96px;
  }
  .layer:last-child .layer_number {
    padding-bottom: 0;
  }
  .group {
    width: 42px;
  }
  .group:first-child {
    width: 53px;
  }
  .group:last-child {
    width: 43px;
  }
  .layer_number {
    width: 12px;
    height: 39px;
    line-height: 39px;
  }
  .electronegativity,
  .atom_weight,
  .czech_name,
  .latin_name.only {
    display: none;
  }
  .number_sign {
    margin-top: 8px;
  }
  .sign {
    padding-left: 15px;
  }
  .longsign .sign {
    font-size: 10px;
  }
  .longsign .sign,
  .longsign .number {
    display: block;
    position: absolute;
  }
  .longsign .number {
    font-size: 8px;
    top: 1px;
  }
  .lanacts {
    margin-top: 5px;
    margin-left: 11px;
  }
  .element.laAc {
    width: 43px;
    padding-right: 4px;
  }
  .sign {
    font-size: 14px;
  }
  .laAcGap {
    width: 5px;
    margin-left: -5px;
    height: 40px;
  }
  .layer:last-of-type .laAcGap {
    height: 39px;
  }
}
@media screen and (max-width: 768px), projection and (max-width: 768px), tv and (max-width: 768px) {
  body {
    min-width: 320px;
  }
  .navbar-brand {
    font-size: 1rem;
  }
  .advert_320_100 {
    display: block;
    position: fixed;
    bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    right: 0;
    left: 0;
  }
  .element {
    position: relative;
  }
  .number {
    position: absolute;
    bottom: 0;
    top: auto;
    font-size: 10px;
    width: 100%;
  }
  .number_sign {
    position: initial;
  }
  .sign {
    text-align: center;
    padding-left: 0;
  }
  .advert_728_90 {
    display: none;
  }
  .layer:last-of-type .laAcGap {
    height: 39px;
  }
  #smallTable {
    float: none;
    clear: both;
    width: 100%;
    padding-bottom: 10px;
    overflow-x: scroll;
  }
  .groups {
    width: 768px;
    margin-left: 5px;
  }
  .ptable-container {
    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    padding-bottom: 20px;
  }
  .laAcGap {
    position: relative;
  }
  h2 {
    margin-left: 5px;
  }
  #magnifier_container {
    height: 85px;
    left: 101px;
    text-align: left;
  }
  #magnifier {
    text-align: center;
    margin-left: 40px;
  }
  #smallTable .layer,
  .layer {
    width: 768px;
    margin-left: 5px;
  }
  .longsign .number {
    font-size: 10px;
    top: auto;
  }
  .longsign .sign {
    display: block;
    position: absolute;
    width: 100%;
    top: 10px;
    font-size: 12px;
  }
}
@media print {
  @page  {
    margin: 10mm 10mm 10mm 10mm;
    size: landscape;
  }
  html {
    margin: 0 0 0 0;
  }
  body {
    margin: 0 0 0 0;
    text-align: center;
  }
  a,
  a:visited,
  a:active {
    color: #444;
  }
  a:hover {
    color: #000;
  }
  .ranky_advert {
    display: none;
  }
  h1 {
    margin-top: 0px;
    text-align: center;
  }
  .print-name {
    margin-top: 5mm;
    font-weight: bold;
    font-size: 16pt;
  }
  h1 a {
    text-decoration: none;
  }
  #smallTable {
    display: none;
  }
  .groups {
    clear: both;
  }
  .group:first-child {
    width: 99px;
  }
  .group {
    height: 30px;
    line-height: 18px;
    border: 1px solid #444;
    text-align: center;
    font-weight: bold;
    padding: 5px;
    float: left;
    width: 83px;
    border-right: none;
  }
  .group:last-child {
    border: 1px solid #444;
  }
  .fb {
    display: none;
  }
  .elements {
    position: relative;
  }
  .ptable-container {
    width: 1168px;
    display: inline-block;
    margin: 5mm 10mm 10mm 10mm;
    position: relative;
  }
  .element {
    border: 1px solid #444;
    display: block;
    color: #444;
    text-decoration: none !important;
    width: 65px;
    height: 76px;
    line-height: 13px;
    overflow: hidden;
    text-align: center;
    font-size: 9px;
    padding: 2px;
    padding-left: 1px;
    padding-right: 1px;
    float: left;
    margin-left: -1px;
    margin-top: -1px;
    margin-bottom: -1px;
    border-bottom: 1px solid transparent;
  }
  .element.laAc {
    border-right: 9px solid #98B;
    width: 72px;
    padding-right: 2px;
  }
  .s {
    background-color: #9bd7fa;
  }
  .s:hover {
    background-color: #8ac6f8;
  }
  .d {
    background-color: #fefeca;
  }
  .d:hover {
    background-color: #f9f8aa;
  }
  .p {
    background-color: #febfbc;
  }
  .p:hover {
    background-color: #faacaa;
  }
  .lanacts {
    margin-left: 15px;
  }
  .lanacts .element {
    background-color: #febcff;
  }
  .lanacts .element:hover {
    background-color: #faacfC;
  }
  #magnifier_container {
    display: none;
    position: absolute;
    left: 159px;
    top: 95px;
    width: 603px;
    line-height: 26px;
    font-size: 12px;
    text-align: center;
  }
  #magnifier {
    display: none;
  }
  .print-info {
    position: absolute;
    left: 420px;
    top: 106px;
  }
  .print-info > .element {
    border-bottom: 1px solid #444 !important;
  }
  .number-info {
    position: absolute;
    left: -80px;
    top: 18px;
  }
  .weight-info {
    position: relative;
    left: 10px;
  }
  .sign-info {
    position: relative;
    left: 10px;
    top: 2px;
  }
  .czech-name-info {
    position: relative;
    left: 10px;
    top: 2px;
  }
  .latin-name-info {
    position: relative;
    left: 10px;
    top: 2px;
  }
  .electronegativity-info {
    position: relative;
    left: 10px;
  }
  .info {
    font-size: 10px;
    width: 200px;
    text-align: left;
  }
  .url-info {
    position: relative;
    top: 10px;
    left: -66px;
    font-size: 8pt;
  }
  #advert {
    display: none;
  }
  .lanacts .element.empty {
    background-color: transparent;
  }
  .laAcGap {
    float: left;
    border-right: 9px solid #98B;
    margin-bottom: -2px;
    width: 9px;
    margin-left: -9px;
    height: 77px;
  }
  .layer {
    margin: 1px 0 0;
  }
  .layer:first-child {
    margin-top: 0px;
  }
  .layer:first-child .element {
    margin-top: 0px;
    border-bottom: none;
  }
  .layer:last-of-type .element {
    border-bottom: 1px solid #444;
  }
  .layer:last-of-type .element.empty {
    border-bottom: none;
  }
  .layer:last-of-type .laAcGap {
    height: 75px;
    border-right: 9px solid #87A;
  }
  .layer:last-of-type .layer_number {
    height: 75px;
    padding-bottom: 1px;
  }
  .layer_number {
    border: 1px solid #444;
    border-top: none;
    width: 20px;
    height: 85px;
    line-height: 82px;
    text-align: center;
    font-weight: bold;
    float: left;
    clear: left;
  }
  .atom_weight {
    height: 16px;
  }
  .lanacts .layer:last-of-type .element {
    background-color: #eeacdf;
  }
  .lanacts .layer:last-of-type .element:hover {
    background-color: #de9ccf;
  }
  .lanacts .layer:last-of-type .element.empty {
    background: none;
  }
  .lanacts {
    margin-top: 30px;
  }
  .clear {
    clear: both;
  }
  .empty {
    border: 1px solid transparent;
  }
  .element:first-child {
    margin-left: 0px;
  }
  .element:hover {
    color: #000;
  }
  .element:last-child {
    border-right: 1px solid #444;
  }
  .atom_weight {
    text-align: right;
  }
  .number_sign {
    position: relative;
    text-align: center;
  }
  .czech_name {
    text-transform: uppercase;
    font-weight: bold;
    height: 15px;
  }
  .sign {
    font-weight: bold;
    font-size: 17px;
  }
  .number {
    position: absolute;
    top: 2px;
    font-size: 10px;
  }
  .latin_name {
    font-style: italic;
  }
  #magnifier {
    display: block;
    border: 1px solid #444;
    width: 100px;
    height: 105px;
  }
  #magnifier .sign,
  #magnifier .number,
  #magnifier .czech_name,
  #magnifier .electronegativity,
  #magnifier .atom_weight {
    display: block;
  }
  #magnifier .longsign .sign,
  #magnifier .longsign .number {
    display: inline;
  }
  #magnifier .longsign .sign {
    font-size: 14px;
  }
  #magnifier .latin_name.only {
    top: 10px;
    font-size: 12px;
  }
  .group {
    width: 64px;
  }
  .group:first-child {
    width: 78px;
  }
  .group:last-child {
    width: 65px;
  }
  .layer_number {
    width: 15px;
    line-height: 76px;
    height: 76px;
  }
  .latin_name.only {
    display: block;
    position: relative;
    top: -15px;
    font-size: 8.5px;
  }
  .number_sign {
    height: 17px;
  }
  .element.laAc {
    width: 65px;
    padding-right: 2px;
  }
  .longname {
    font-size: 7px;
  }
  .longsign .sign,
  .longsign .number {
    display: inline;
    position: relative;
    top: 0px;
  }
}
