body {
    padding: 0px;
    margin: 0;
    font-family: 'Roboto', sans-serif!important;
    background-color: #fff;
    transition: margin 0.5s;
}

@media (max-width: 480px) {
    body {
        margin: 200px 0 0 0;
    }
}

.period-clear {
    clear: both;
}

.period-alignleft {
    text-align: left;
}

.period-alignright {
    text-align: right;
    padding-right: 4px;
}

.period-aligncenter {
    text-align: center;
}

td.centerbottom {
    vertical-align: bottom;
    text-align: center;
}

#period-header {
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    top: 0;
    margin: 0 auto;
    background-color: #fff;
    padding-left: 10px;
}

div#plcholder {
    clear: both;
    background-color: #fff;
}

div#search {
    width: 180px;
    float: left;
    background-color: #fff;
}

div#colorcode {
    width: calc(100% - 230px);
    float: right;
    text-align: right;
    margin-right: 20px;
    font-size: 14px;
    background-color: #fff;
}

div#colorcode img {
    vertical-align: middle;
    cursor: pointer;
    width: 22px;
    height: auto;
}

div#colorcode span.termeszetes-elemek {
    display: inline-block;
    border: 1px solid #666;
    padding: 4px;
    margin-right: 12px;
}

div#colorcode span.stxt {
    margin: 0 12px 0 4px;
}

div#colorcode span:last-child {
    margin: 0 0 0 6px;
}

span.legend-line-elemek {
    margin-bottom: 4px;
}

form#searchform {
    margin: 0;
    padding: 0;
}

input#searchtext {
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/5/55/Magnifying_glass_icon.svg") ;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-color: #fff;
    border: 1px solid #666;
    width: 100%;
    display: block;
    padding: 5px 4px;
    font-size: 14px;
    margin: 5px 0 0 0;
}

.cellunion {
    background-color: #bbb;
    margin-top: -3px;
}

table.ptable-table tr, table.ptable-table td {
    margin: 0; padding: 0;
}

table.ptable-table {
    margin: 0 auto 0 auto;
    padding: 0;
    border-spacing: 2px;
}

.ptable-item {
    width: 52px;
    height: 57px;
    color: #333;
    cursor: pointer;
    border: 1px solid #aaa;
    background-color: #a8e8ff;
    transition: all 0.5s;
}

.ptable-item .item-nev {
    width: 52px;
}

.ptable-item.lantan, .ptable-item.aktinium, .c5871, .c90103 {
    border-right: 2px dashed #888;
    font-size: 14px;
}

.ptable-item.inactive-item {
    color: #aaa;
    background-color: #eee!important;
}

.ptable-item .elektronegativitas, .ptable-item .elektronszerkezet, .ptable-item .atomsugar, 
.ptable-item .ionizacios, .ptable-item .molaristomeg, .ptable-item .oxidaciosszam {
    display: none;
}

.ptable-item .item-rendszam {
    text-align: left;
    font-size: 12px;
    margin: 1px 0px -5px 2px;
}

.ptable-item .item-vegyjel {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: -2px;
}

.ptable-item .item-nev {
    font-family: 'Roboto-Condensed', sans-serif;
    text-align: center;
    margin-bottom: 1px;
    font-size: 8.5px;
}

.ptable-item .item-molaristomeg {
    text-align: center;
    font-size: 10px;
    margin-bottom: 1px;
}

.ptable-item-medium.nemfem {
    border: 2px solid #8f7938;
}

.ptable-item-medium.fem {
    border: 2px solid #3f7988;
}

.ptable-item-medium.felfem {
    border: 2px solid #7f8938;
}

.ptable-item-medium.nemesgaz {
    background-color: #ffe9a8!important;
    border: 2px solid #dfc988;
}

.ptable-item-medium.mesterseges {
    background-color: #fff!important;
    border: 2px solid #888;
}

.legend-td {
    position: relative;
}

.nemfem {
    background-color: #ffe9a8!important;
}

.fem {
    background-color: #a8e8ff!important;
}

.felfem {
    background-color: #e8ffa8!important;
}

.nemesgaz {
    background-color: #ffe9a8!important;
}

.mesterseges {
    background-color: #fff!important;
}

.legend-div {
    position: fixed;
    z-index: 100;
    background-color: #fff;
    border-radius: 5px;
}

.legend-left {
    float: left;
    text-align: right;
}

.legend-right {
    float: left;
    text-align: left;
}

span.legend-line {
    position: relative;
    z-index: 2;
    width: 6px;
    height: 0;
    border-top: 1px solid #666;
    display:inline-block;
}

.ptable-item-medium {
    position: relative;
    z-index: 1;
    float: left;
    background-color: #a8e8ff;
    border: 2px solid #3f7988;
}

table.ptable-table {
    margin-top: 50px;
}
#period-header {
    max-width: 1010px;
}

.legend-rendszam span, .legend-vegyjel span, .legend-atomsugar span, .legend-ionizacios span, .legend-molaristomeg span, 
.legend-elektronegativitas span, .legend-nev span, .legend-elektronszerkezet span, .legend-oxidaciosszam span {
}

@media (max-width: 850px) {
    table.ptable-table {
        margin-top: 30px;
    }

    .legend-div {
        top: 36px!important;
    }

    input#searchtext, div#colorcode {
        font-size: 12px;
    }

    div#search {
        width: 150px;
    }

    input#searchtext {
        margin: 0;
    }

    div#colorcode {
        margin-right: 10px;
        width: calc(100% - 170px);
    }

    div#colorcode span.stxt {
        margin: 0 4px 0 2px;
    }

    div#colorcode span.termeszetes-elemek {
        margin-right: 4px;
    }

    div#colorcode img {
        width: 16px;
    }
}

@media (min-width: 683px) { /*******************************************************************************/

    span.stxt.hidden-sm {
        display: none;
    }

    .legend-div {
        top: 50px;
        width: 280px;
    }

    .legend-left {
        font-size: 14px;
    }

    .legend-right {
        font-size: 14px;
    }

    .legend-rendszam, .legend-vegyjel, .legend-atomsugar, .legend-ionizacios, .legend-molaristomeg, 
     .legend-elektronegativitas, .legend-nev, .legend-elektronszerkezet, .legend-oxidaciosszam {
        display: inline-block;
        font-size: 12px;
        line-height: 10px;
    }

    .ptable-item-medium {
        width: 133px;
        height: 140px;
    }
    .ptable-item-medium .item-rendszam {
        float: left;
        width: calc(50% - 8px);
        text-align: left;
        font-size: 20px;
        margin: 0 0 -14px 4px;
    }

    .ptable-item-medium .item-elektronegativitas {
        float: right;
        width: calc(50% - 8px);
        text-align: right;
        font-size: 16px;
        margin: 2px 2px -14px 0;
    }

    .ptable-item-medium .item-vegyjel {
        clear: both;
        width: 100%;
        text-align: center;
        font-weight: bold;
        font-size: 40px;
        margin-bottom: -2px;
    }

    .ptable-item-medium .item-nev {
        font-family: 'Roboto-Condensed', sans-serif;
        text-align: center;
        font-size: 14px;
    }

    .ptable-item-medium .item-elektronszerkezet {
        text-align: center;
        font-size: 15px;
    }

    .ptable-item-medium .item-oxidaciosszam {
        float: right;
        width: calc(30% - 10px);
        text-align: right;
        font-size: 10px;
        line-height: 9px;
        padding: 0 2px 0 0;
    }

    .ptable-item-medium .item-atomsugar {
        float: left;
        width: 70%;
        text-align: left;
        padding: 2px 0 0 8px;
        font-size: 14px;
        line-height: 15px;
    }

    .ptable-item-medium .item-ionizacios {
        float: left;
        width: 70%;
        text-align: left;
        padding: 0 0 0 8px;
        font-size: 14px;
        line-height: 15px;
    }

    .ptable-item-medium .item-molaristomeg {
        float: left;
        width: calc(70% - 5px);
        text-align: right;
        padding: 0 5px 0 0;
        margin-top: -2px;
        font-size: 18px;
        line-height: 12px;
    }

    .legend-rendszam {
        margin: 8px 4px 0 0;
    }

    .legend-vegyjel {
        margin: 8px 2px 0 0;
    }

    .legend-atomsugar {
        margin: 32px -2px 0 0;
    }

    .legend-ionizacios {
        margin: 6px -1px 0 0;
    }

    .legend-molaristomeg {
        margin: 5px 2px 0 0;
    }
    .legend-elektronegativitas {
        margin: 4px 0 0 2px;
    }

    .legend-nev {
        margin: 34px 0 0 2px;
    }

    .legend-elektronszerkezet {
        margin: 3px 0 0 2px;
    }

    .legend-oxidaciosszam {
        margin: 8px 0 0 4px;
    }

    span.legend-line-atomsugar {
        margin: 0 0 2px 0;
        border: none;
        height: 26px;
        width: 13px;
        left: 7px;
        top: 24px;
        background: linear-gradient(to top right, transparent calc(50% - 1px), #555 , transparent calc(50% + 1px) )
    }

    span.legend-line-ionizacios {
        margin: 0 0 6px 0;
        border: none;
        height: 18px;
        width: 13px;
        left: 7px;
        top: 15px;
        background: linear-gradient(to top right, transparent calc(50% - 1px), #555 , transparent calc(50% + 1px) )
    }

    span.legend-line-molaris {
        width: 40px;
        margin: 0 -34px 6px 2px;
    }

    span.legend-line.line-vegyjel {
        width: 34px;
        margin: 3px -28px 3px 3px;
    }

    span.legend-line.line-nev {
        width: 24px;
        margin: 3px 3px 3px -20px;
    }

    span.legend-line.line-elektronszerkezet {
        width: 12px;
        margin: 3px 3px 8px -8px;
    }

}

@media (max-width: 682px) { /*******************************************************************************/

    div#search {
        float: none;
    }

    input#searchtext {
        padding: 2px 4px;
        background-size: 14px 14px;
    }

    div#colorcode {
        float: none;
        width: 100%;
        text-align: left;
    }

    div#colorcode span.stxt.hidden-lg {
        display: none;
    }

    div#colorcode span.stxt.hidden-sm {
        display: inline-block;
    }

    div#colorcode span.termeszetes-elemek {
        border: none;
    }

    span.legend-line-elemek {
        display: none;
    }
    div#period-header {
        padding: 0 0 0 10px;
    }
    div#colorcode img {
    }
    span.stxt.hidden-sm {
        display: none;
    }
    table.ptable-table {
        margin-top: 50px;
    }

    .legend-div {
        width: 250px;
        margin-top: 14px;
    }

    .legend-left {
    }

    .legend-right {
    }

    .legend-rendszam, .legend-vegyjel, .legend-atomsugar, .legend-ionizacios, .legend-molaristomeg, 
     .legend-elektronegativitas, .legend-nev, .legend-elektronszerkezet, .legend-oxidaciosszam {
        display: inline-block;
        font-size: 11px;
        line-height: 9px;
    }

    .ptable-item-medium {
        width: 116px;
        height: 123px;
    }
    .ptable-item-medium .item-rendszam {
        float: left;
        width: calc(50% - 8px);
        text-align: left;
        font-size: 17px;
        margin: 0 0 -14px 4px;
    }

    .ptable-item-medium .item-elektronegativitas {
        float: right;
        width: calc(50% - 8px);
        text-align: right;
        font-size: 14px;
        margin: 2px 2px -14px 0;
    }

    .ptable-item-medium .item-vegyjel {
        clear: both;
        width: 100%;
        text-align: center;
        font-weight: bold;
        font-size: 30px;
        margin-bottom: -2px;
    }

    .ptable-item-medium .item-nev {
        font-family: 'Roboto-Condensed', sans-serif;
        text-align: center;
        font-size: 12px;
    }

    .ptable-item-medium .item-elektronszerkezet {
        text-align: center;
        font-size: 13px;
    }

    .ptable-item-medium .item-oxidaciosszam {
        float: right;
        width: calc(30% - 8px);
        text-align: right;
        font-size: 10px;
        line-height: 9px;
        padding: 2px 2px 0 0;
    }

    .ptable-item-medium .item-atomsugar {
        float: left;
        width: 70%;
        text-align: left;
        padding: 7px 0 0 6px;
        font-size: 12px;
        line-height: 13px;
    }

    .ptable-item-medium .item-ionizacios {
        float: left;
        width: 70%;
        text-align: left;
        padding: 4px 0 0 6px;
        font-size: 12px;
        line-height: 13px;
    }

    .ptable-item-medium .item-molaristomeg {
        float: left;
        width: calc(70% - 5px);
        text-align: right;
        padding: 0 5px 0 0;
        font-size: 16px;
        line-height: 10px;
    }

    .legend-rendszam {
        margin: 6px 4px 0 0;
    }

    .legend-vegyjel {
        margin: 4px -2px 0 0;
    }

    .legend-atomsugar {
        margin: 26px -3px 0 0;
    }

    .legend-ionizacios {
        margin: 0 -2px 0 0;
    }

    .legend-molaristomeg {
        margin: 5px 2px 0 0;
    }
    .legend-elektronegativitas {
        margin: 4px 0 0 4px;
    }

    .legend-nev {
        margin: 20px 0 0 2px;
    }

    .legend-elektronszerkezet {
        margin: 3px 0 0 2px;
    }

    .legend-oxidaciosszam {
        margin: 10px 0 0 4px;
    }

    span.legend-line-atomsugar {
        margin: 0 0 2px 0;
        border: none;
        height: 18px;
        width: 12px;
        left: 6px;
        top: 17px;
        background: linear-gradient(to top right, transparent calc(50% - 1px), #555 , transparent calc(50% + 1px) )
    }

    span.legend-line-ionizacios {
        margin: 0 0 6px 0;
        border: none;
        height: 15px;
        width: 11px;
        left: 6px;
        top: 14px;
        background: linear-gradient(to top right, transparent calc(50% - 1px), #555 , transparent calc(50% + 1px) )
    }

    span.legend-line-molaris {
        width: 36px;
        margin: 0 -30px 6px 2px;
    }

    span.legend-line.line-vegyjel {
        width: 34px;
        margin: 3px -28px 3px 3px;
    }

    span.legend-line.line-nev {
        width: 24px;
        margin: 3px 3px 3px -18px;
    }

    span.legend-line.line-elektronszerkezet {
        width: 12px;
        margin: 3px 3px 8px -8px;
    }

}

@media (max-width: 500px) {

    div#colorcode {
        width: 400px;
    }

    table.ptable-table {
        margin-top: 70px;
    }

    div.legend-div {
        margin-top: 30px;
    }

    span.termeszetes-elemek {
        margin-left: 3px;
    }

}

@media (max-width: 480px) {
}

@media (max-width: 410px) {
}

@media (max-width: 370px) {
}

