/*Main styles*/
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: white;
    background: #0d0d0d;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;

}

h1 {
    font-size: 6.5em;
    font-weight: 700;
    margin: 50px auto 0px;

}

p {
    font-size: 14px;
    padding: 0 15px 0;
    line-height: 1.6em;
    margin: 0;
}

a {
    color: #ffffff;
    text-decoration: none;
}

a.close {
    position: relative;
    display: block;
   
    width: 21px;
    height: 21px;
    margin: 0 0 0 15px;
    border: 1px solid #ffffff;
    border-radius: 16px;
}

a.close::before {
    content: "";
    height: 1px;
    width: 13px;
    position: absolute;
    display: block;
    transform: rotate(-45deg);
    left: 4px;
    top: 10px;
    background: #ffffff;
}

a.close::after {
    content: "";
    height: 1px;
    width: 13px;
    position: absolute;
    display: block;
    transform: rotate(45deg);
    left: 4px;
    top: 10px;
    background: #ffffff;
}

.unselectable {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Chrome/Safari/Opera */
    -khtml-user-select: none;    /* Konqueror */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently
                                    not supported by any browser */
  }
  

/*/Main styles*/


/*Table style*/
.periodic {
    display: inline-block;
    width: 1700px;
  }

.periodic > a {
    float: left;
    margin: 2px 0 0 2px;
}

.element {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 76px;
    height: 76px;
    padding: 4px 7px 12px;
    margin: 0 auto;
    color: white;
    text-decoration: none;
    border-radius: 7px;
}

.element-void {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 90px;
    height: 92px;
}

.element:hover {
    box-shadow: 0 0 20px #00000026;
    border-radius: 7px;
    transform: scale3d(1.099, 1.099, 1.099);
    transition-duration: 200ms;
}

.sml-cell {
    height: 30px;
}

.groups.periodic {
    grid-template-columns: repeat(19, 1fr);
    background: #00000024;
    margin: 0 auto;
    padding: 0;
}

.group {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 90px;
    height: 82px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    padding-bottom: 10px;
}


.group.void {
    width: 34px;
    height: 20px;
}


.periods {
    width: 30px;
    float: left;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 1px;
    background: #00000024;
}

.period {
    width: 34px;
    height: 92px;
    font-size: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    font-weight: 600;
}


/*Category colors*/
.alkali-metal {
    /* background: #E73C3E; */
    background-image: linear-gradient(#171717 95%, #E73C3E 5%);
}

.alkaline-earth-metal {
    /* background: #f56f27; */
    background-image: linear-gradient(#171717 95%, #f56f27 5%);
}

.transition-metal {
    /* background: #2346bf; */
    background-image: linear-gradient(#171717 95%, #2346bf 5%);
}

.reactive-nonmetal {
    /* background: #a8e733; */
    background-image: linear-gradient(#171717 95%, #a8e733 5%);

}

.post-​transition-metal {
    /* background: #0085ff; */
    background-image: linear-gradient(#171717 95%, #0085ff 5%);

}

.metalloid {
    /* background: #54ccee; */
    background-image: linear-gradient(#171717 95%, #54ccee 5%);
}

.halogens {
    /* background: #fec234; */
    background-image: linear-gradient(#171717 95%, #fec234 5%);
}

.noble-gas {
    /* background: #b034fe; */
    background-image: linear-gradient(#171717 95%, #b034fe 5%);
}

.lan­thanide {
    /* background: #56c07a; */
    background-image: linear-gradient(#171717 95%, #56c07a 5%);
}

.actinide {
    /* background: #29712c; */
    background-image: linear-gradient(#171717 95%, #29712c 5%);
}



.chemical-element {
    width: 75%;
    height: 30px;
    font-size: 2.6em;
    font-weight: 800;
    line-height: normal;
    margin: 0px 0 15px 0;
}

.atomic-number {
    width: 25%;
    text-align: right;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.atomic-number.lanthanides,
.atomic-number.actinides {
    width: 75%;
}

.chemical-element.lanthanides, 
.chemical-element.actinides {
    font-size: 17px;
}

.standard-atomic-weight {
    width: 50%;
}

.oxidation-state {
    width: 50%;
    text-align: right;
}

.name {
    width: 50%;
}

.atomic-radius {
    width: 50%;
    text-align: right;
}
  
  .lantan {
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    grid-auto-rows: 1fr;
    grid-gap: 1px;
  }


  .atomic-number-detail {
    width: 27px;
    height: 27px;
    display: flex;
    border-radius: 50%;
    color: #171717;
    margin: 0 5px 0 0;
    justify-content: center;
    align-items: center;
  }




  /* Filter*/

.header {
    background: #0d0d0d;
    border-bottom: 1px solid #070707;
    width: 100%;
    height: 50px;
    position: fixed;
    z-index: 900;
    top: 0;
    opacity: 1 !important;
    filter: grayscale(0) !important;
    display: flex;
    min-width: 1200px;
}

.button-on {
    width: auto;
    position: initial;
    display: block;
    z-index: 1001;
    right: 0;
    transition-duration: 300ms;
    border-radius: 4px;
    padding: 5px 15px;
    cursor: pointer;
    font-weight: 600;
    margin: 0 4px;
    background: #171717;
}

.main-menu  {
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-menu-icon {
    display: flex;
    width: 24px;
    height: 24px;
}

.main-menu-line-one {
    height: 2px;
    width: 24px;
    background: #333;
    position: absolute;
    top: 15px;
}

.main-menu-line-two {
    height: 2px;
    width: 18px;
    background: #333;
    position: absolute;
    top: 23px;
}

.main-menu-line-three {
    height: 2px;
    width: 10px;
    background: #333;
    position: absolute;
    top: 31px;
}

.main-menu-icon:hover > .main-menu-line-one,
.main-menu-icon:hover > .main-menu-line-two,
.main-menu-icon:hover > .main-menu-line-three {
    background: rgb(255, 255, 255);
    transition-duration: 300ms;
}

.main-menu-hide > .main-menu > .main-menu-icon > .main-menu-line-one,
.main-menu-hide > .main-menu > .main-menu-icon > .main-menu-line-two,
.main-menu-hide > .main-menu > .main-menu-icon > .main-menu-line-three {
    background: rgb(255, 255, 255);
    width: 24px;
    transition-duration: 300ms;
}

.main-menu-popup {
    position: absolute;
    width: 220px;
    height: auto;
    background: #171717;
    top: 50px;
    box-shadow: 3px 4px 3px #080808;
}

ul.menu-items {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

li.menu-item {
    display: flex;
    font-size: 1.3em;
    padding: 10px 0 10px 12px; 
    border-top: 1px solid #070707;
    
}

label.main-menu-hide:hover {
    background: #171717;
    transition-duration: 300ms;
}

label.main-menu-hide {
    background: #0d0d0d;
}

.filter-tag,
.filter-blocks {
    width: auto;
    height: 25px;
    position: relative;
    display: flex;
    z-index: 1000;
    margin: 12px 5px;
}


/*Details*/

.alkali-metal-label {
    background: #E73C3E;
}

.alkaline-earth-metal-label {
    background: #f56f27;
}

.transition-metal-label {
    background: #2346bf;
}

.reactive-nonmetal-label {
    background: #a8e733;
}

.post-​transition-metal-label {
    background: #0085ff;
}

.metalloid-label {
    background: #54ccee;
}

.halogens-label {
    background: #fec234;
}

.noble-gas-label {
    background: #b034fe;
}

.lan­thanide-label {
    background: #56c07a;
}

.actinide-label {
    background: #29712c;
}





header.header-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 30%;
    height: 50px;
    justify-content: space-between;
    background: #0d0d0d;

}



.main-info {
    text-align: center;
}

.element-detail-header {
    font-weight: 900;
}

.info-block {
    padding: 60px 0 0;
}


.table-details {
    display: flex;
    flex-direction: column;
    width: auto;
    margin: 0 0 50px 0;
    
}

.table-row:nth-child(even) {
    background-color: #171717;
}



.table-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3em;
    height: 40px;
    padding: 0 15px;
}

.element-detail-name {
    color: #888;
}

.element-detail-value {
    color: #888;
}

.detail-name {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atomic-number-detail {
    width: 24px;
    height: 24px;
    display: flex;
    border-radius: 50%;
    color: #07070a;
    margin: 0 5px 0 0;
    justify-content: center;
    align-items: center;
    font-size: 17px;
}

.detail-atomic-weight {
    font-size: 11px;
    line-height: 28px;
}






/*Slider*/

.card--content {
    background: none;
    width: 98%;
    height: 230px;
    margin: 5px;
    display: flex;
    justify-content: center;
}
  
  .card {
    flex-direction: column;
    display: flex;
    overflow-x: auto;
    background: none;
    min-width: 100%;
    min-height: 200px;
  }


@media screen and (min-width: 800px) {

    .mobile {
        display: none !important;
    }

    .desktop {
        display: block;
    }


}

@media screen and (max-width: 800px) {

    .card {
        flex-direction: row;
        margin: 0 0 100px;
      }

      .card--content {
        background: none;
        width: auto;
        margin: 5px;
      }
    


    .mobile {
        display: block;
    }

    .desktop {
        display: none !important;
    }

    .overlay:target {
        width: 100%;
        height: auto;
        padding: 0;
        position: absolute;
        overflow: unset;
    }

    .overlay:target ~ div {
        display: none;
    }

    .overlay {
        display: none;
    }


    header.fixed {
        width: 100%;
    }


    
    a.close.mobile::after,
    a.close.mobile::before {
        content: "";
        height: 1px;
        width: 18px;
        position: absolute;
        display: block;
        transform: rotate(45deg);
        left: 10px;
        top: 18px;
        background: #07070a;
    }

    a.close.mobile::before {
        transform: rotate(-45deg);
    }

    a.close.mobile {
        position: fixed;
        display: block;
        width: 38px;
        height: 38px;
        margin: 0 auto;
        background: #ffffff;
        border-radius: 50%;
        left: 44%;
        bottom: 30px;
    }

    .info-block {
        padding: 0;
    }

    p {
        font-size: 18px;
        font-weight: 300;
        padding: 0 15px 40px;
        line-height: 1.6em;
        margin: 0;
    }

  }



/*Atomic*/

.fixed {
    position: fixed;
}