h1 {
    text-align: center;
    color: #000;
}

#focus {
    position: relative;
    top: 0;
    left: 50%;
    width: 300px;
    margin-left: -150px;
    padding: 70px;
    border: solid 1px white;
}

#displayFocus {
    position: absolute;
    top: 90px;
}

#checkOptions,
#displayFocus {
    padding: 10px;
    background-color: black;
    color: white;
    font-family: 'Times';
}

#displayFocus {
    display: inline-block;
}

#checkOptions {
    padding: 10px;
    width: 500px;
    margin: 30px auto 0;
    text-align: center;
    background-color: #fff;
    color: #000;
    box-shadow: 0 5px 10px -7px #000;
}

#checkOptions input {
    margin-right: 20px;
    vertical-align: middle;
    transform: scale(1.5);
}

#tous,
#aucun {
    padding: 0px 5px 3px 5px;
    border-radius: 5px;
    margin: 0px 3px;
    font-family: 'Times New Roman';
}

#tous:hover,
#aucun:hover {
    background-color: white;
}

body {
    padding: 40px;
    font-family: 'Times New Roman';
    .transform(translateZ(0));
    background-color: #fff;
}

.periodic {
    position: relative;
    height: 200px;
    margin-right: -1px;
    text-shadow: none;
}

.periodic-row {
    clear: both;
    height: 10%;
}

.cell {
    float: left;
    position: relative;
    width: 5.55%;
    height: 100%;
}

.element {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 1px;
    right: 1px;
    box-sizing: border-box;
    text-align: center;
    cursor: default;
    pointer-events: none;
    .transition(all 200ms ease);
    border: 1px solid #adadad;
    box-shadow: 0px 0px 10px 0px rgba(48, 255, 172, 1);
}

.element:hover {
    transform: scale(11.6);
}

.cell:hover .element {
    border-color: rgba(0, 0, 0, 0.1);
    .transform(scale(3, 3));
    z-index: 1;
    background-color: rgba(48, 255, 172, 1);
}

.num,
.details {
    position: absolute;
    font-size: 10px;
    color: #000;
    opacity: 0;
}

.num {
    top: 4px;
    right: 5px;
}

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

.details {
    bottom: 4px;
    left: 0px;
    right: 0px;
}

.cell:nth-child(-n+2) .element,
.cell:nth-child(n+13) .element {
    box-shadow: 0px 0px 10px 0px rgba(5, 188, 255, 1);
}

.cell:nth-child(1) .element,
.periodic-row:nth-child(2) .cell:nth-child(n+14) .element,
.periodic-row:nth-child(3) .cell:nth-child(n+15) .element,
.periodic-row:nth-child(4) .cell:nth-child(n+16) .element,
.periodic-row:nth-child(5) .cell:nth-child(n+17) .element {
    box-shadow: 0px 0px 10px 0px rgba(203, 46, 255, 1);
}

.periodic-row:nth-child(-n+6) .cell:nth-child(18) .element {
    box-shadow: 0px 0px 10px 0px rgba(252, 3, 165, 1);
}

.periodic-row:nth-child(n+9) .element {
    box-shadow: 0px 0px 10px 0px rgba(48, 65, 255, 1);
}

.cell:nth-child(-n+2):hover .element,
.cell:nth-child(n+13):hover .element {
    background-color: rgba(5, 188, 255, 1);
}

.cell:nth-child(1):hover .element,
.periodic-row:nth-child(2) .cell:nth-child(n+14):hover .element,
.periodic-row:nth-child(3) .cell:nth-child(n+15):hover .element,
.periodic-row:nth-child(4) .cell:nth-child(n+16):hover .element,
.periodic-row:nth-child(5) .cell:nth-child(n+17):hover .element {
    background-color: rgba(203, 46, 255, 1);
}

.periodic-row:nth-child(-n+6) .cell:nth-child(18):hover .element {
    background-color: rgba(252, 3, 165, 1);
}

.periodic-row:nth-child(n+9) .cell:hover .element {
    background-color: rgba(48, 65, 255, 1);
}

.cell:nth-child(1) .element {
    .transform-origin(0 50%);
}

.cell:nth-child(18) .element {
    .transform-origin(100% 50%);
}

.periodic-row:nth-child(10) .cell .element {
    .transform-origin(50% 100%);
}

.periodic-row:nth-child(1) .cell:nth-child(1) .element {
    .transform-origin(0 0);
}

.periodic-row:nth-child(1) .cell:nth-child(18) .element {
    .transform-origin(100% 0);
}

.periodic-row:nth-child(10) .cell:nth-child(18) .element {
    .transform-origin(100% 100%);
}

@media (min-width: 600px) {
    .periodic {
        height: 460px;
        margin-right: -2px;
    }
    .element {
        right: 2px;
        bottom: 2px;
    }
    .num,
    .details {
        font-size: 5px;
        opacity: 1;
    }
    .symbol {
        margin-top: -17px;
        font-size: 16px;
        font-weight: bold;
        line-height: 30px;
        height: 30px;
        color: #000;
        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;
    }
    .num,
    .details {
        font-size: 5px;
    }
    .symbol {
        font-size: 24px;
    }
}

@media (min-width: 1200px) {
    .periodic {
        height: 800px;
    }
    .num,
    .details {
        font-size: 9px;
    }
    .symbol {
        font-size: 30px;
    }
}