*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', Courier, monospace;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    background: aliceblue;
}
.heading{
    text-align: center;
    display: flex;
    position: absolute;
    font-size: 35px;
    font-family: cursive;
    font-weight: 600;
    left: 25%;
    text-decoration: underline rgb(252, 23, 141);
}
.periodic{
    position: relative;
    height: 200px;
    margin-right: 1px;
    text-shadow: none;
}
.periodic-table{
    clear: both;
    height: 10%;
}
.box{
    position: relative;
    float: left;
    width: 5.55%;
    height: 100%;
}
.element{
    position:absolute;
    text-align: center;
    cursor: default;
    pointer-events: none;
    top: 0;
    left: 0;
    bottom: 1px;
    right: 1px;
    box-sizing: border-box;
    box-shadow: 0px  0px 5px rgba(39, 39, 39, 0.5);
    border: 1px dashed grey;
    -webkit-transition: all 200ms ease;
    transition: all 200ms ease ;
    background-color: rgba(5, 94, 94, 0.9);
    border-radius: 5px;
}
.box:hover .element{
    border-color: rgba(0,0, 0, 0.1);
    -webkit-transform: scale(3,3);
    -ms-transform: scale(3,3);
    transform: scale(3,3);
    z-index: 1;

}
.atomic-num, .atomic-details{
position: absolute;
font-size: 4px;
color: rgba(255, 255, 255, 0.5);
opacity: 0;
}
.atomic-num{
    top:4px;
    right: 5px;

}
.symbol{
    position: absolute;
    top: 50%;
    left: 0px;
    right: 0px;
    margin-top: -4px;
    font-size: 10px;
    line-height: 1;
    height: 9px;
    color: rgba(255, 255, 255, 0.5);
}
.atomic-details{
    bottom: 4px;
    left: 0;
    right: 0;
}

.box:nth-child(n+2) .element,
.box:nth-child(n+13) .element{
    background-color: rgba(0, 160, 96, 0.6);

}
.box:nth-child(1) .element,
.periodic-table:nth-child(2) .box:nth-child(n+14) .element,
.periodic-teble:nth-child(3) .box:nth-child(n+15) .element,
.periodic-table:nth-child(4) .box:nth-child(n+16) .element,
.periodic-table:nth-child(5) .box:nth-child(n+17) .element {
    background-color: rgba(0, 96, 160, 0.6);
}
.periodic-table:nth-child(-n+6) .box:nth-child(18) .element {
    background-color: rgba(253, 87, 120, 0.899);
    color: red;
}
.periodic-table:nth-child(n+9) .element {
    background-color: rgba(255, 123, 0, 0.944);}
.box:nth-child(-n+2):hover .element,
.box:nth-child(n+13):hover .element {
    background-color: rgba(4, 183, 111, 0.678);
}
.box:nth-child(1):hover .element,
.periodic-table:nth-child(2) .box:nth-child(n+14):hover .element,
.periodic-table:nth-child(3) .box:nth-child(n+15):hover .element,
.periodic-table:nth-child(4) .box:nth-child(n+16):hover .element,
.periodic-table:nth-child(5) .box:nth-child(n+17):hover .element {
    background-color: rgba(0, 96, 160, 0.9);
}
.periodic-table:nth-child(-n+6) .box:nth-child(18):hover .element {
    background-color: rgba(255, 3, 53, 0.899);
}
.periodic-table:nth-child(n+9) .box:hover .element {
    background-color: rgba(242, 155, 74, 0.944);}
.box:nth-child(1) .element {
  -webkit-transform-origin: 0 50%;
  -ms-transform-origin: 0 50%;
  transform-origin: 0 50%;
}
.box:nth-child(18) .element {
  -webkit-transform-origin: 100% 50%;
  -ms-transform-origin: 100% 50%;
  transform-origin: 100% 50%;
}
.periodic-table:nth-child(10) .box .element {
  -webkit-transform-origin: 50% 100%;
  -ms-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
}
.periodic-table:nth-child(1) .box:nth-child(1) .element {
  -webkit-transform-origin: 0 0;
  -ms-transform-origin: 0 0;
  transform-origin: 0 0;
}
.periodic-table:nth-child(1) .box:nth-child(18) .element {
  -webkit-transform-origin: 100% 0;
  -ms-transform-origin: 100% 0;
  transform-origin: 100% 0;
}
.periodic-table:nth-child(10) .box:nth-child(18) .element {
  -webkit-transform-origin: 100% 100%;
  -ms-transform-origin: 100% 100%;
  transform-origin: 100% 100%;
}

@media (min-width: 600px) {
    .periodic{
        height: 460px;
        margin-right: -2px;
    }
    .element{
        right: 2px;
        bottom: 2px;
    }
    .atomic-num, .atomic-details{
    font-size: 4px;
    opacity: 1;
    }
    .symbol{
        margin-top: -17px;
        font-size: 16px;
        font-weight: bold;
        line-height: 30px;
        height: 30px;
        color: rgba(255, 255, 255, 0.75);
        text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
    }
}

@media (min-width: 800px) {
    .periodic{
        height: 540px;
    }
    .symbol{
        font-size: 20px;
    }
}

@media (min-width:992px) {
    .periodic{
        height: 680px;
    }
    .atomic-num, .atomic-details{
        font-size: 5px;
    }
    .symbol{
        font-size: 24px;
    }
}
@media (max-width: 1200px) {
    .periodic{
        height: 800px;
    }
    .atomic-num , .atomic-details{
        font-size: 6px;
    }
    .symbol{
        font-size: 30px;
    }
}
.credit{
left: 45%; 
   text-align: center;
    position: absolute;
    font-size: 22px;
    font-family: cursive;
    font-weight: 500;
}