* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tanha', sans-serif; 
}

body {
  background: #0f1220;
  color: #fff;
}

@font-face {
  font-family: Tanha;
  src: url(Farsi-Digits-Without-Latin/Tanha-FD-WOL.woff) format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  --alkali: #FF0000;
  --alkaline: #FF9900;
  --transition: #FFFF00;
  --postTransition: #99CC00;
  --metalloid: #009900;
  --nonmetal: #00CCFF;
  --halogen: #6600FF;
  --noble: #999999;
  --lanthanide: #FF00FF;
  --actinide: #CC00CC;
  --unknown: #CCCCCC;
  --nucleus-color: #cccccc;
  --electron-color: #485353;
  --line-color: rgba(255, 255, 255, 0.1);
}

header {
  background: #14172a;
  padding: 15px 30px;
  border-bottom: 1px solid #222;
}

.container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-header {
  display: flex;
  font-size: 22px;
  font-weight: bold;
}

.logo-header span {
  color: #4fc3f7;
  margin-left: 5px;
}

.header-option {
  display: flex;
  align-items: center;
  gap: 25px;
}

.search-box {
  position: relative;
}

.search-box input {
  padding: 8px 35px 8px 12px;
  border-radius: 20px;
  border: none;
  outline: none;
  background: #1e223a;
  color: #fff;
}

.search-box i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

.theme-toggle {
  background: #1e223a;
  border: none;
  color: #fff;
  font-size: 18px;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: 0.3s;
}

.theme-toggle:hover {
  background: #7077a8;
}

body.light {
  background: #f4f6fb;
  color: #111;
}

body.light header {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

body.light .row li {
  background-color: #fff;
  color: #111;
}

body.light .temp-control {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}

body.light .table-scroll::-webkit-scrollbar-track {
  background: #ddd;
}

body.light .table-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #42a5f5, #ab47bc);
}

.temp-control {
  background: #1e223a;
  padding: 15px 30px;
  border-bottom: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.temp-info {
  direction: rtl;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.temp-info span {
  font-family: Tanham,sans-serif;
  font-weight: 900;
}

#temp-slider {
  width: 100%;
  cursor: pointer;
  accent-color: #4fc3f7;
}

.row li.solid {
  background: rgba(79, 195, 247, 0.35);
  border-color: #4fc3f7;
  box-shadow: 0 0 12px rgba(79,195,247,0.6);
}

.row li.liquid {
  background: rgba(244, 67, 54, 0.35);
  border-color: #f44336;
  box-shadow: 0 0 12px rgba(244,67,54,0.6);
}

.row li.gas {
  background: rgba(200, 200, 200, 0.15);
  border-color: #bdbdbd;
  box-shadow: 0 0 15px rgba(97, 94, 94, 0.6);
}

.row li.unknown {
  opacity: 0.4;
  filter: grayscale(100%);
}

.table {
  padding: 40px 20px;
}

.container-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: calc(18 * 50px + 17 * 6px);
  padding: 10px;
}

.row {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 0.4vw;
}

.none {
  visibility: hidden;
}

.row li {
  list-style: none;
  font-family: Tanha;
  background: #1a1e33;
  border: 2px solid #555;
  border-radius: 8px;
  padding: 4px;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-width: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s;
}

.atomic-number {
  font-size: clamp(9px, 0.8vw, 12px);
  align-self: flex-start;
}

.symbol {
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: bold;
}

.name-element {
  font-size: clamp(8px, 0.7vw, 11px);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: Tanha;
}

.m-number {
  font-size: clamp(7px, 0.6vw, 10px);
}

.row li:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  z-index: 2;
}

.row li.solid {
  background: rgba(79, 195, 247, 0.35);
  border-color: #4fc3f7;
  box-shadow: 0 0 12px rgba(79,195,247,0.6);
}

.row li.liquid {
  background: rgba(244, 67, 54, 0.35);
  border-color: #f44336;
  box-shadow: 0 0 12px rgba(244,67,54,0.6);
}

.row li.gas {
  background: rgba(200, 200, 200, 0.25);
  border-color: #bdbdbd;
  box-shadow: 0 0 15px rgba(97, 94, 94, 0.6);
}


body.light .row li.solid {
  background: rgba(79, 195, 247, 0.45);  
  border-color: #2196f3;
  box-shadow: 0 0 16px rgba(33, 150, 243, 0.5);
}

body.light .row li.liquid {
  background: rgba(244, 67, 54, 0.45);    
  border-color: #f44336;
  box-shadow: 0 0 16px rgba(244, 67, 54, 0.5);
}

body.light .row li.gas {
  background: rgba(158, 158, 158, 0.45);  
  border-color: #757575;
  box-shadow: 0 0 16px rgba(117, 117, 117, 0.4);
}

body.light .row li.unknown {
  opacity: 0.35;
  filter: grayscale(90%);
}   
.mass-situation{
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  font-family: Tanha;
}
.mass-situation:nth-child(1){
  background: rgba(31, 168, 231, 0.959);  
}
.mass-situation:nth-child(2){
  background: rgba(244, 67, 54, 0.918);    
  border-color: #f44336;
}
.mass-situation:nth-child(3){
  background: rgba(158, 158, 158, 0.911);  
  border-color: #757575;
}
.category-filter {
  background: #1e223a;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  border-bottom: 1px solid #333;
  position: sticky;
  z-index: 99;
}

body.light .category-filter {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

.filter-btn {
  background: rgba(255,255,255,0.08);
  color: #aaa;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  font-family: Tanha;
}

body.light .filter-btn {
  background: rgba(0,0,0,0.06);
  color: #555;
}

.filter-btn:hover {
  background: rgba(79, 195, 247, 0.2);
  color: #fff;
}

body.light .filter-btn:hover {
  background: rgba(79, 195, 247, 0.15);
  color: #111;
}

.filter-btn.active {
  background: #4fc3f7;
  color: #000;
  font-weight: bold;
}


.row li {
  transition: all 0.4s ease;
}

.row li.dim,
.row li[style*="opacity: 0.18"] {
  opacity: 0.18 !important;
  filter: grayscale(80%) blur(0.5px) !important;
  pointer-events: none !important;
  transform: scale(0.92) !important;
}


body.light .row li[style*="opacity: 0.18"] {
  opacity: 0.22 !important;
  filter: grayscale(70%) brightness(1.1) !important;
}


.row li:not([style*="opacity"]) {
  box-shadow: 0 0 12px rgba(79, 195, 247, 0.3);
  border-width: 2px;
} 


.f-block-space {
  height: 35px;
  margin: 15px 0 25px;
  position: relative;
}

.f-block-space::before {
  font-family: Tanha;
  content: "لانتانیدها و اکتینیدها";
  position: absolute;
  left: 50%;
  top: -5px;
  transform: translateX(-50%);
  font-size: 15px;
  letter-spacing: 1px;
  color: #ce93d8;
  opacity: 0.8;
}

.f-block-space::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ce93d8, #4fc3f7, transparent);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
}

.container-table {
  min-width: 1300px;
}


.table-scroll::-webkit-scrollbar {
  height: 10px;
}

.table-scroll::-webkit-scrollbar-track {
  background: #1a1e33;
  border-radius: 10px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #4fc3f7, #ce93d8);
  border-radius: 10px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}


.info-card {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.info-card.active {
  display: flex;
}

.card-content {
  background: #14172a;
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 900px;
  color: #fff;
  position: relative;

}

.close-btn {
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 26px;
  cursor: pointer;
}

.title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
  direction: rtl;
}

.subtitle {
  color: #aaa;
  margin-bottom: 20px;
  font-size: 18px;
  direction: rtl;
}

.top-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 30px;
  padding: 0px 20px;
}

.description {
  max-width: 500px;
  line-height: 1.6;
  color: #ddd;
  font-size: 14px;
  max-height: 300px;
  overflow-y: auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 12px;
  margin-top: 20px;
  direction: ltr;
  font-family: Tanha,sans-serif;
}

.info-box {
  background: #1e223a;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #333;
  font-size: 14px;
  text-align: center;
}

.label {
  color: #aaa;
  font-size: 12px;
  margin-bottom: 6px;
}

.value {
  font-weight: 600;
  font-size: 16px;
}

  .atom {
    position: relative;
    transform-style: preserve-3d;
    width: 200px;
    height: 200px;
}
  
  .nucleus {
    position: absolute;
    top: 50%; left: 50%;
    width: 24px; height: 24px;
    background: var(--nucleus-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
  }
  

  .orbit {
    position: absolute;
    top: 50%; left: 50%;
    border-radius: 50% !important;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%) rotateX(var(--rx)) rotateY(var(--ry));
    animation: orbit-spin var(--speed) linear infinite;
  }
  

  .electron-cloud {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-orbit var(--speed) linear infinite;
  }
  
  .electron {
    position: absolute;
    width: 1.8px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateZ(var(--angle)) translateY(var(--radius)) rotateZ(calc(-1 * var(--angle)));
    box-shadow: 0 0 8px var(--electron-color);
  }  
  body.light .electron{
    background-color: #000000;
  }
  @keyframes rotate-orbit {
    from { transform: rotateZ(0deg); }
    to { transform: rotateZ(360deg); }
  }
  @keyframes orbit-spin {
    from { transform: translate(-50%, -50%) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(0deg); }
    to   { transform: translate(-50%, -50%) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(360deg); }
  }

  .l1 { --rx: 20deg; --ry: 30deg; --speed: 3s; --radius: 50%; width: 120px; height: 120px; }
  .l2 { --rx: 40deg; --ry: -20deg; --speed: 5s; --radius: 50%; width: 180px; height: 180px; }
  .l3 { --rx: -30deg; --ry: 50deg; --speed: 7s; --radius: 50%; width: 240px; height: 240px; }
  .l4 { --rx: 60deg; --ry: 10deg; --speed: 9s; --radius: 50%; width: 300px; height: 300px; }
  .l5 { --rx: -50deg; --ry: -40deg; --speed: 11s; --radius: 50%; width: 360px; height: 360px; }
  .l6 { --rx: 10deg; --ry: 70deg; --speed: 13s; --radius: 50%; width: 420px; height: 420px; }
  .l7 { --rx: 80deg; --ry: -10deg; --speed: 15s; --radius: 50%; width: 480px; height: 480px; }
  .l8 { --rx: 0deg; --ry: 90deg; --speed: 17s; --radius: 50%; width: 540px; height: 540px; }



.site-footer {
  background: #0a0d1a;
  color: #aaa;
  padding: 60px 20px 30px;
  margin-top: 80px;
  border-top: 1px solid #222;
}

body.light .site-footer {
  background: #e8ecf2;
  color: #555;
  border-top: 1px solid #ccc;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.social-section, .contact-section {
  flex: 1;
  min-width: 280px;
}

.social-section h3, .contact-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
}

body.light .social-section h3,
body.light .contact-section h3 {
  color: #111;
}

.social-icons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.social-icons a {
  color: #aaa;
  font-size: 28px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #4fc3f7;
  transform: translateY(-4px) scale(1.15);
}

.quick-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-form input,
.quick-form textarea {
  padding: 12px 16px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #1e223a;
  color: #ddd;
  font-family: Tanha;
  font-size: 15px;
}

body.light .quick-form input,
body.light .quick-form textarea {
  background: #f8f9fc;
  color: #333;
  border-color: #ccc;
}

.quick-form input:focus,
.quick-form textarea:focus {
  outline: none;
  border-color: #4fc3f7;
  box-shadow: 0 0 0 3px rgba(79,195,247,0.2);
}

.quick-form button {
  background: #4fc3f7;
  color: #000;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.3s;
}

.quick-form button:hover {
  background: #1e88e5;
  transform: translateY(-2px);
}

.info-card {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

.info-card.active {
  display: flex;
}

.card-content {
  background: #14172a;
  border-radius: 20px;
  padding: 30px 30px 40px;
  width: 90%;
  max-width: 900px;
  max-height: 92vh;          
  overflow-y: auto;         
  color: #fff;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: #4fc3f7 #1e223a;
}

.card-content::-webkit-scrollbar {
  width: 6px;
}

.card-content::-webkit-scrollbar-track {
  background: #1e223a;
  border-radius: 10px;
}

.card-content::-webkit-scrollbar-thumb {
  background: #4fc3f7;
  border-radius: 10px;
}

body.light .card-content {
  background: #ffffff;
  color: #111;
  scrollbar-color: #4fc3f7 #f0f0f0;
}

body.light .card-content::-webkit-scrollbar-thumb {
  background: #2196f3;
}

.close-btn {
  position: absolute;
  top: 18px;
  left: 22px;             
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 10;
  background: rgba(255,255,255,0.08);
}

.close-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.15);
  transform: rotate(90deg);
}


body.light .close-btn {
  color: #555;
  background: rgba(0,0,0,0.06);
}

body.light .close-btn:hover {
  color: #000;
  background: rgba(0,0,0,0.12);
}

.social-icons a[href*="linkedin"] i {
  color: #aaa;
}

.social-icons a[href*="linkedin"]:hover i {
  color: #4fc3f7;
}

.copyright {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #222;
  font-size: 13px;
  opacity: 0.7;
}

body.light .copyright {
  border-top: 1px solid #ccc;
}
.electron-config {
  direction: ltr !important;              
  unicode-bidi: embed !important;          
  font-variant-numeric: lining-nums !important; 
  font-feature-settings: "lnum" 1 !important;
  font-family: 'Courier New', 'Consolas', monospace, 'Tanha', sans-serif !important;
}


.electron-config * {
  font-variant-numeric: lining-nums !important;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}


@media screen and (max-width: 768px) {
  .container-header {
    flex-direction: column;
    gap: 15px;
  }

  .header-option {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .search-box input {
    width: 150px;
  }

  .card-content {
    padding: 30px 20px;
  }

  .top-section {
    flex-direction: column;
    gap: 20px;
  }

  .atom {
    width: 150px;
    height: 150px;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-content {
    padding: 24px 20px 36px;
    max-height: 95vh;
  }

  .close-btn {
    top: 14px;
    left: 16px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
} 
/*This Is The End
Director: AmirAli Esmaeli*/