body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #e8f1f8;
  color: #333;
  margin: 0;
  padding: 0;
}

  /* Font block hover effect */
  .font-block span {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s ease-in-out;
  }
  .font-block:hover span {
    visibility: visible;
    opacity: 1;
  }

  /* Copy notification box styles */
  .copy-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 100%; /* Set full width */
    max-width: 100%; /* Ensure it doesn't exceed 100% */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 8px; /* Add the padding as requested */
    border: none;
    color: #000;
    font-size: 2rem !important;
}

.copy-box.active {
    display: block;
}

/* Responsive design for copy box */
@media (max-width: 640px) {
    .copy-box {
        width: 90%; /* Make it 90% of the viewport width on small screens */
        padding: 15px;
    }
}

.container {
  width: 85%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 10px;
}

.header {
  background-color: #ffffff;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  width: 100%;
  max-width: 350px;
  height: auto;
}

/* Updated navigation styles */
.nav {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 15px;
  transition: all 0.3s ease;
}

.nav-button {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  padding: 10px 20px;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  margin: 5px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Hamburger menu styles */
.hamburger-menu {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger-icon {
  width: 100%;
  height: 100%;
  position: relative;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #007bff;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
  top: 0px;
}

.hamburger-icon span:nth-child(2) {
  top: 10px;
}

.hamburger-icon span:nth-child(3) {
  top: 20px;
}

.hamburger-menu.active .hamburger-icon span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.hamburger-menu.active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger-menu.active .hamburger-icon span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}

.nav .dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 10;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #007bff;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #e3f2fd;
}

.cool-fonts-button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.main-section {
  text-align: center;
  padding: 40px 0;
}

.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 16px;
  color: #0056b3;
}

.section-description {
  font-size: 18px;
  color: #555;
}

.symbol-board-controls {
  background-color: #ffffff;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.textarea-container {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.symbol-board-textarea {
  padding: 12px;
  font-size: 24px;
  border: 2px solid #007bff;
  border-radius: 8px;
  width: 100%;
  resize: vertical;
  box-sizing: border-box;
}

.textarea-buttons {
  position: absolute;
  right: 5px;
  top: 1%;
  transform: translateY(-50%);
  display: flex;
  gap: 5px;
}

.textarea-buttons button {
  background-color: #007bff;
  border-radius: 15px;
  box-shadow: 0 9px 15px rgba(0, 0, 0, 0.1);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.textarea-buttons button:hover {
  background-color: #0056b3;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.button {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  margin: 8px;
}

.symbols-container {
  text-align: center;
}

.symbols-title {
  font-size: 24px;
  margin-bottom: 16px;
  color: #0056b3;
}

.symbols {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-decoration: none;
}

.symbol {
  font-size: 24px;
  position: relative;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 60px;
  min-height: 60px;
  margin: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
  transition: transform 0.2s;
  text-decoration: none;
}
.related-symbols-container {
  text-align: center;
}

.my-related-symbol {
  font-size: 24px;
  position: relative;
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  margin: 8px;
  border-radius: 8px;
  transition: transform 0.2s;
  flex-wrap: wrap;
  text-decoration: none;
}
.related-symbol {
  --color: #55758e; /* Base color */
  --hover-color: #3b5c72; /* Hover color */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  margin:5px;
  padding: 3px 2px 1px 2px;
  background: var(--color);
  border-radius: 8px; /* Slightly rounded corners for a modern look */
  color: #fff !important;
  text-decoration: none !important;
  font-size: 18px;
  font-weight: bold;
  border: 2px solid #fff;
  box-shadow: 0px 2px 4px #ccc;
  transition: all 0.3s ease-in-out; /* Smooth transition */
}

.related-symbol:hover {
  background: var(--hover-color);
  transform: translateY(-3px); /* Lift effect on hover */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.related-symbol.disabled {
  color: #d3d3d3; 
  pointer-events: none;
  text-decoration: none;
}


.symbol:hover {
  transform: scale(1.1);
}

.additional-symbol-categories {
  margin-top: 50px;
  margin-bottom: 50px;
  text-align: center;
}

.symbol-categories-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.symbol-category {
 appearance: none;
 background-color: #FAFBFC;
 border: 1px solid rgba(27, 31, 35, 0.15);
 border-radius: 6px;
 box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
 box-sizing: border-box;
 color: #24292E;
 cursor: pointer;
 display: inline-block;
 font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
 font-size: 20px;
 margin: 5px;
 font-weight: 500;
 line-height: 20px;
 list-style: none;
 padding: 6px 16px;
 position: relative;
 transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
 user-select: none;
 -webkit-user-select: none;
 touch-action: manipulation;
 vertical-align: middle;
 white-space: nowrap;
 word-wrap: break-word;
}

.symbol-category:hover {
  background-color: #bbdefb;
}

.symbol-category a {
  text-decoration: none;
  color: inherit;
}

.symbol-category a:hover {
  color: #0056b3;
}

  /* Universal Table Styles */
  .thecoolsymbols-about-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto;
  }

  .thecoolsymbols-about-table th, .thecoolsymbols-about-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
  }

  .thecoolsymbols-about-table th {
    background-color: #f4f4f4;
    color: #333;
  }

  .thecoolsymbols-about-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
  }

  .thecoolsymbols-about-table tbody tr:hover {
    background-color: #f1f1f1;
  }

  .thecoolsymbols-about-table tbody tr td:first-child {
    background-color: #ffffff;
  }

  .thecoolsymbols-about-table tbody tr td:nth-child(2) {
    background-color: #f7f7f7;
  }

  .thecoolsymbols-about-table tbody tr td:last-child {
    background-color: #f0f0f0;
  }

  .about-box {
    width: calc(100% - 10px); /* Full width minus the margin */
    margin: 5px;
    background-color: #fafafa;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  @media (max-width: 768px) {
    .about-box {
      width: calc(100% - 10px); /* Full width for smaller screens */
    }
  }

  .section-title {
    color: #333;
    margin-bottom: 10px;
  }

  .section-description {
    text-align: center;
    color: #777;
    margin-bottom: 20px;
  }

  h4 {
    text-align: center;
    color: #333;
    margin-top: 20px;
  }

  p, ul {
    color: #555;
  }

  ul {
    list-style: none;
    padding: 0;
  }

  ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
  }

  ul li:before {
    content: "•";
    color: #333;
    position: absolute;
    left: 0;
  }

    /* Media Queries for Font Size Adjustment */
    @media (max-width: 1200px) {
      .thecoolsymbols-about-table th, .thecoolsymbols-about-table td {
        font-size: 14px;
      }
    }
  
    @media (max-width: 992px) {
      .thecoolsymbols-about-table th, .thecoolsymbols-about-table td {
        font-size: 12px;
      }
    }
  
    @media (max-width: 768px) {
      .thecoolsymbols-about-table th, .thecoolsymbols-about-table td {
        font-size: 10px;
      }
    }
  
    @media (max-width: 576px) {
      .thecoolsymbols-about-table th, .thecoolsymbols-about-table td {
        font-size: 8px;
      }
    }
  
  .faq-section {
    margin-top: 40px;
    background-color: #e3f2fd;
    padding: 32px;
    border-radius: 8px;
  }
  
  .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    text-align: left;
  }
  
  .faq-title {
    font-size: 20px;
    margin-bottom: 8px;
    color: #0056b3;
  }
  
  .footer {
    background-color: #ffffff;
    padding: 16px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  .footer-text {
    margin: 0;
    color: #555;
  }
  
  .footer-nav {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  
  .footer-link {
    color: #007bff;
    text-decoration: none;
    margin: 8px;
  }
  
  .footer-link:hover {
    color: #0056b3;
  }
  
  /* Enhanced responsive design for mobile */
  @media screen and (max-width: 768px) {
    .header .container {
      flex-direction: row;
      align-items: center;
    }
    
    .hamburger-menu {
      display: block;
    }
    
    .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      width: 250px;
      height: 100vh;
      background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding-top: 60px;
      transition: 0.5s;
      z-index: 1000;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
      right: 0;
    }
    
    .nav-button {
      margin: 10px 0;
      width: 80%;
      text-align: center;
      font-size: 18px;
    }
    
    .symbol-board-controls {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .symbol-board-textarea {
      width: 100%;
      margin-bottom: 16px;
    }
  
    .button-container {
      width: 100%;
      justify-content: space-between;
    }
  
    .symbol {
      min-width: 50px;
      min-height: 50px;
      font-size: 24px;
    }
  
    .faq-grid {
      grid-template-columns: 1fr;
    }
    
    .logo img {
      max-width: 250px;
    }
    
    .section-title {
      font-size: 26px;
    }
    
    .section-description {
      font-size: 16px;
    }
  }
  
  /* Small mobile devices */
  @media screen and (max-width: 480px) {
    .logo img {
      max-width: 200px;
    }
    
    .symbol {
      min-width: 45px;
      min-height: 45px;
      font-size: 20px;
    }
    
    .symbol-category {
      font-size: 16px;
      padding: 5px 12px;
    }
    
    .section-title {
      font-size: 22px;
    }
    
    .textarea-buttons {
      position: relative;
      right: auto;
      top: auto;
      transform: none;
      margin-top: 10px;
      justify-content: flex-end;
    }
    
    .symbol-board-textarea {
      font-size: 18px;
    }
  }
  
  /* Dark mode support */
  @media (prefers-color-scheme: dark) {
    body {
      background-color: #1a1a2e;
      color: #e6e6e6;
    }
    
    .header, .footer, .symbol-board-controls {
      background-color: #16213e;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .symbol, .about-box {
      background-color: #0f3460;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
      color: #e6e6e6;
    }
    
    .section-title {
      color: #4cc9f0;
    }
    
    .section-description, p, ul {
      color: #b8b8b8;
    }
    
    .symbol-category {
      background-color: #1f4068;
      color: #e6e6e6;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .symbol-category:hover {
      background-color: #2d5a88;
    }
    
    .nav-button {
      background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    }
    
    .nav-links.active {
      background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    }
    
    .hamburger-icon span {
      background: #4cc9f0;
    }
    
    .textarea-buttons button, .button {
      background-color: #4361ee;
    }
    
    .textarea-buttons button:hover, .button:hover {
      background-color: #3a0ca3;
    }
    
    .symbol-board-textarea {
      background-color: #1a1a2e;
      color: #e6e6e6;
      border: 2px solid #4361ee;
    }
  }