body {
  background-color: black;
  overflow: hidden;
  font-family: "Philosopher", sans-serif;
}
* {
  box-sizing: border-box;
}
/* main page */
#mainPage {
  display: none;
  height: 100vh;
}
h1 {
  font-size: 40px;
  color: gray;
  text-align: center;
  margin-top: 35px;
  margin-bottom: 0;
}
.periodic-table {
  width: 85%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
}
.periodic-column {
  width: calc(100% / 18);
  height: 100%;
  border-left: 0.5px solid black;
}
.lastGroups {
  width: 70.8%;
  margin-top: 25px;
  margin-left: 17%;
  position: relative;
}
.group19,
.group20 {
  width: 100%;
  display: flex;
  flex-direction: row;
}
.group19 .element,
.group20 .element {
  width: calc(100% / 15);
}
.titles {
  color: grey;
  text-align: right;
  position: absolute;
  left: -110px;
  top: 17px;
}
.titles > h6 {
  margin-bottom: 35px;
}
/* karticki so elementi */
.element {
  height: 57px;
  color: black;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  display: block;
  border-left: 0.5px solid gray;
  border-right: 0.5px solid gray;
  position: relative;
}
.symbol {
  font-size: 20px;
  margin-bottom: 0;
  padding-top: 12px;
  font-weight: 700;
}
.name {
  font-size: 10px;
  font-weight: 700;
  margin-top: 0;
}
.number {
  position: absolute;
  top: 0;
  left: 2px;
  font-size: 11px;
  font-weight: 700;
}
.shells {
  margin: 0;
  list-style-type: none;
  font-size: 5px;
  font-weight: 700;
  position: absolute;
  top: 0;
  right: 2px;
}
.element:hover {
  color: white;
  background-color: black !important;
  border: 2px solid white;
  transform: scale(1.15);
  transition: 0.5s;
  z-index: 1000;
  text-decoration: none;
}
.element:hover .number,
.element:hover .shells {
  display: none;
}
.element:hover .symbol {
  padding-top: 6px;
  font-size: 22px;
}
.element:hover .name {
  font-size: 11px;
}
/* wikipedia modal */
.modal {
  display: none;
  position: absolute;
  width: 98%;
  height: 98%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 23px;
  background-color: black;
  border: 2px solid white;
  border-radius: 4px;
}

.frame {
  width: 100%;
  height: 100%;
}

#close-modal {
  position: absolute;
  top: 0;
  right: 0;
  color: white;
  background-color: transparent;
  border: none;
  font-size: 18px;
}
#close-modal:focus,
.closeAbout:focus,
.closeDetails:focus,
#close-input:focus {
  outline: none;
}

.arrow_box {
  position: relative;
  background: gray;
  border-radius: 2px;
  width: 28%;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 15px;
  margin-top: 22px;
  font-size: small;
  color: black;
  font-weight: bolder;
  cursor: pointer;
}
.arrow_box:after {
  top: 100%;
  left: 50%;
  border: solid transparent;
  content: "";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  border-color: rgba(112, 75, 75, 0);
  border-top-color: gray;
  border-width: 6px;
  margin-left: -6px;
}
.arrow_box:hover {
  color: white;
  opacity: 0.8;
  margin-bottom: 22px;
  margin-top: 0;
  transform: scale(1.2);
  transition: 0.3s;
  font-size: 14px;
}

.hoverRows {
  color: white;
  background-color: gray !important;
  transition: 0.5s;
  border-left: 1px solid white;
  border-right: 1px solid white;
}
/* legenda */
.legend-Div {
  width: 46%;
  height: 70px;
  border-top: 2px solid rgb(78, 78, 78);
  position: absolute;
  top: 25%;
  left: 17.5%;
  color: white;
}
.legend-labels {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-left: 15px;
  font-size: 6px;
}
.legend-labels li {
  list-style-type: none;
  color: gray;
  flex-basis: 20%;
  margin: 1px 0;
}
.legend-labels span {
  float: left;
  height: 14px;
  width: 14px;
  margin: 0 5px 4px 0;
  border-radius: 2px;
}
.legend-title {
  color: gray;
  position: absolute;
  top: 20%;
  left: 37%;
}

.legend-labels li small {
  font-size: 11px;
}
/* buttons */
.langBtn {
  font-weight: bold;
  font-size: 18px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  background-color: transparent;
  color: grey;
  border: 2px solid gray;
  margin-left: 10px;
}
.btnStyle {
  border-radius: 50%;
  width: 45px;
  height: 45px;
  background-color: transparent;
  color: grey;
  border: 2px solid gray;
}
.btnStyle:hover,
.about:hover {
  color: black;
  background-color: gray;
}
.btnStyle:focus {
  outline: none;
}
.flags {
  display: block;
  width: 100%;
}
.btnDiv {
  width: 100%;
  position: absolute;
  bottom: 10px;
  left: 5px;
}
.buttons {
  position: relative;
}
#en,
#mk {
  position: absolute;
  left: 10px;
  top: -48px;
  display: none;
  z-index: 1500;
}
#soundOn {
  display: none;
}
#soundOff,
#soundOn {
  position: absolute;
  left: 65px;
  top: 0;
}
.socialBtn {
  position: absolute;
  bottom: 10px;
  right: 15px;
}
.socialBtn a {
  border: 2px solid gray;
  border-radius: 50%;
  padding: 8px;
  margin-left: 5px;
  color: gray;
  text-decoration: none;
}
.socialBtn a i {
  padding: 3px;
  font-size: 20px;
}
.fb:hover {
  color: white;
  background-color: rgb(51, 51, 179);
}
.instagram:hover {
  color: white;
  background-image: linear-gradient(
    to right,
    rgb(231, 163, 16),
    rgb(138, 9, 95)
  );
}

/* page about */
#lastPage {
  width: 100%;
  height: 100vh;
  display: none;
}
#lastPage {
  width: 100%;
  height: 98vh;
  background-color: black;
  position: absolute;
  bottom: 8px;
  right: 0;
  display: none;
}
.popup {
  width: 99%;
  height: 100%;
  margin: 0 auto;
  border: 2px solid gray;
  border-radius: 4px;
  position: relative;
}
.pic1 {
  position: absolute;
  top: 5%;
  left: 10%;
  width: 15%;
}
.pic2 {
  width: 25%;
  border: 7px solid white;
  position: absolute;
  top: 55%;
  right: 35%;
  z-index: 1000;
  transform: rotate(-15deg);
}

.pic3 {
  width: 40%;
  border: 7px solid white;
  position: absolute;
  top: 5%;
  right: 15%;
}
.pic4 {
  width: 40%;
  border: 7px solid white;
  position: absolute;
  top: 35%;
  left: 55%;
  transform: rotate(5deg);
  right: 5deg;
}
.closeAbout {
  position: absolute;
  top: 2%;
  right: 3%;
  color: white;
  background-color: transparent;
  border: none;
  font-size: 25px;
}
.closeAbout:hover {
  color: #e3438b;
}
.paragraph {
  color: white;
  width: 30%;
  position: absolute;
  top: 45%;
  left: 5%;
}
.paragraph h2 {
  color: #e3438b;
  font-size: 45px;
  margin-bottom: 40px;
}
.paragraph p {
  color: white;
  font-size: 25px;
  margin-bottom: 0;
}
.paragraph a {
  color: white;
  text-decoration: none;
  margin-left: 10px;
}
/* 
/* details page */
#detailsPage {
  width: 94%;
  height: 90vh;
  background-color: black;
  position: absolute;
  top: 0;
  left: 60px;
  z-index: 1000;
  display: none;
}
.inner-details {
  width: 85%;
  height: 98%;
  margin-left: 70px;
  margin-top: 70px;
  position: relative;
}
.closeDetails {
  position: absolute;
  top: -50px;
  right: -130px;
  color: white;
  background-color: transparent;
  border: 1px solid white;
  border-radius: 4px;
  font-size: 20px;
  padding: 5px 10px;
}
.card-details {
  width: 100%;
  height: 100%;
  text-align: center !important;
  font-weight: bold;
  color: white !important;
  position: relative !important;
}
.element-card {
  width: 150px;
  height: 150px;
  border: 1px solid lightgray;
  border-radius: 3px;
}
.detailsSymbol {
  font-size: 55px;
  padding-top: 0;
  font-weight: 600;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.detailsNumber {
  font-size: 25px;
  margin-top: -5px;
  margin-left: 5px;
  font-weight: 600;
}
.detailsatomicMass {
  font-size: 15px;
  font-weight: 600;
  position: absolute;
  bottom: 3px;
  left: 5px;
  margin-bottom: 0;
}
.detailsShells {
  margin-top: 5px;
  margin-right: 3px;
  text-align: right;
  font-size: 15px;
  font-weight: 600;
  line-height: 15px;
}

.element-info {
  width: 250px;
  color: white;
  margin-top: 15px;
}
.element-info .list_01 li {
  flex-basis: 50%;
  font-size: 13px;
  line-height: 16px;
  margin: 5px 0;
  display: flex;
  justify-content: space-between;
}

.infoDetails,
.infoSpec,
.specNoInfo {
  flex-basis: 37%;
  text-align: start;
}
.fa-square {
  color: gray;
  font-size: 6px;
  margin-right: 10px;
}

.element-info ul {
  padding: 0;
  margin-bottom: 0;
}
.element-name {
  width: 120px;
}

.element-name p {
  color: white;
  font-size: 30px;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 80px;
  left: 170px;
}

.el-image_div {
  position: absolute;
  border: 1px solid gray;
  border-radius: 5px;
  width: 380px;
  height: 260px;
  left: 0;
  bottom: 0;
}
.carousel-div {
  position: absolute;
  border: 1px solid gray;
  border-radius: 5px;
  width: 380px;
  height: 260px;
  left: 34%;
  bottom: 0;
}
.carousel-div img {
  width: 100%;
  height: 100%;
  display: block;
}

.specification {
  position: absolute;
  border: 2px solid gray;
  border-radius: 5px;
  width: 385px;
  height: 100%;
  right: 0;
  top: 0;
  bottom: 0;
  color: white;
  overflow-y: scroll;
  overflow-x: hidden;
  padding-left: 10px;
  font-size: 13px;
}
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 black;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: white;
  border-radius: 10px;
}
.inner-box {
  width: 98%;
}
.inner-box h4 {
  border-bottom: 1px solid gray;
  font-size: 18px;
  padding: 5px 0;
}
.inner-box ul {
  padding-left: 0;
}

.inner-box ul li {
  width: 94%;
  margin: 0 auto;
  font-size: 15px;
  line-height: 27px;
  display: flex;
  justify-content: space-between;
}

.pdf-info_div {
  background-color: rgb(22, 20, 20);
  position: absolute;
  width: 380px;
  height: 170px;
  right: 35%;
  top: 0;
  padding: 10px;
}

.summary {
  text-align: justify;
  color: white;
  padding-top: 20px;
  margin-bottom: 0;
  font-size: 13px;
}
.pdfIcon {
  color: white;
  margin-left: 95%;
}

.static-image {
  width: 100%;
  height: 100%;
}
.search {
  color: white;
  width: 85%;
  background-color: transparent;
  border: none;
  margin: 10px auto;
}
.inner-box .fa-search {
  font-size: 16px;
}
.search::placeholder {
  font-size: 15px;
  position: absolute;
  top: 0;
  left: 5px;
}

/* search input main page */
.main-search-icon {
  position: absolute;
  top: 15px;
  right: 33px;
  color: gray;
  font-size: 30px;
  cursor: pointer;
}
.main-search-icon:hover {
  color: white;
}
.main-search {
  display: block;
  position: absolute;
  width: 89%;
  height: 63vh;
  border: 1px solid white;
  border-radius: 4px;
  top: 0;
  left: 5.5%;
  background-color: black;
  opacity: 0.9;
  overflow-y: hidden;
}
.main-close-search {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  background-color: transparent;
  border: none;
  font-size: 19px;
  z-index: 1;
}
.main-input_search {
  width: 98%;
  margin: 0 auto;
  margin-top: 35px;
  display: block;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid white;
  outline: none;
  color: white;
  padding-bottom: 6px;
}
#close-input {
  position: absolute;
  top: 0;
  right: 0;
  color: white;
  background-color: transparent;
  border: none;
  font-size: 22px;
}
.search-list {
  padding: 10px 0;
  margin: 0 12px;
  list-style-type: none;
  color: white;
  cursor: pointer;
  padding-left: 0;
}
.search-list li:hover {
  color: white !important;
  background-color: rgba(128, 128, 128, 0.3);
  border-radius: 4px;
}

::placeholder {
  font-size: 21px;
  color: gray;
}
#mobile {
  width: 100%;
  height: 100vh;
  z-index: 1000;
  position: absolute;
  top: 0;
  left: 0%;
  background-color: black;
  display: none;
}
#mobile img {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* media */
@media screen and (max-width: 1224px) {
  #mobile {
    display: block;
  }
}
@media screen and (max-width: 768px) {
  body {
    overflow-y: scroll;
    overflow-x: hidden;
  }
 
  h1 {
    font-size: 30px;
    margin-top: 20px;
  }
  .periodic-table {
    width: 95%;
    margin: 0 auto;
  }
  .lastGroups {
    width: 74%;
    margin-left: 18%;
  }
  .titles {
    top: 5px;
    left: -90px;
  }
  .titles > h6 {
    font-size: 13px;
  }
  .element {
    height: 40px;
  }
  .symbol {
    font-size: 12px;
    padding-top: 10px;
  }
  .name {
    font-size: 8px;
  }
  .number {
    left: 2px;
    font-size: 7px;
    font-weight: 700;
  }
  .shells {
    font-size: 4px;
    right: 0;
  }
  .arrow_box {
    margin-bottom: 10px;
    font-size: 10px;
  }
  .arrow_box:after {
    border-width: 3px;
    margin-left: -3px;
  }
  .legend-Div {
    width: 51%;
    height: 50px;
    top: 43%;
    left: 14%;
  }
  .legend-labels {
    margin-top: 5px;
  }
  .legend-labels span {
    height: 10px;
    width: 10px;
    border-radius: 2px;
  }
  .legend-title {
    top: 35%;
    left: 35%;
    font-size: 20px;
  }
  .legend-labels li small {
    font-size: 8px;
  }

  .btnDiv {
    bottom: -230px;
    left: 5px;
  }
  .pic1 {
    width: 20%;
  }
  .pic3 {
    width: 40%;
    top: 10%;
  }

  .paragraph {
    top: 30%;
  }
  .paragraph h2 {
    font-size: 35px;
  }
  .paragraph p {
    font-size: 16px;
  }
  #detailsPage {
    width: 100%;
    height: 90vh;
    background-color: black;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    display: none;
  }
  .inner-details {
    width: 85%;
    height: 98%;
  }
  .closeDetails {
    top: -50px;
    right: -30px;
    font-size: 15px;
  }

  .element-card {
    width: 80px;
    height: 80px;
  }
  .detailsSymbol {
    font-size: 25px;
  }
  .detailsNumber {
    font-size: 15px;
    margin-top: 3px;
    margin-left: 3px;
  }
  .detailsatomicMass {
    font-size: 10px;
  }
  .detailsShells {
    margin-top: 3px;
    margin-right: 3px;
    font-size: 8px;
    line-height: 10px;
  }

  .element-info {
    width: 190px;
  }
  .element-info .list_01 li {
    font-size: 9px;
    line-height: 10px;
  }

  .element-name p {
    font-size: 16px;
    top: 40px;
    left: 90px;
  }

  .el-image_div {
    width: 190px;
    height: 160px;
    left: 0;
    bottom: 70px;
  }
  .carousel-div {
    width: 190px;
    height: 160px;
    left: 31%;
    bottom: 70px;
  }
  .specification {
    width: 250px;
    height: 88%;
  }
  .inner-box h4 {
    font-size: 15px;
  }
  .inner-box ul {
    padding-left: 0;
  }

  .inner-box ul li {
    width: 98%;
    margin: 0 auto;
    font-size: 12px;
    line-height: 20px;
  }
  .pdf-info_div {
    width: 200px;
    height: 140px;
    left: 30%;
    top: 0;
  }
  .summary {
    margin: 0;
    font-size: 8px;
    padding-top: 0;
  }
  .inner-box .fa-search {
    font-size: 13px;
  }
  .search::placeholder {
    font-size: 12px;
  }
  .main-search-icon {
    position: absolute;
    top: 15px;
    right: 33px;
    color: gray;
    font-size: 20px;
    cursor: pointer;
  }
  .main-search-icon:hover {
    color: white;
  }
  .main-search {
    width: 98%;
    top: 0;
    left: 1%;
  }

  .main-input_search {
    margin-top: 25px;
  }
 
}
