html {
  scroll-behavior: smooth;
}

/* Central Item Styles */
.central-item {
  width: 66.66%;
  margin: 0 auto;
  padding: 20px;
}

.central-item img {
  max-width: 100%;
  height: auto;
  width: 100%;
}

/* Typography Styles */
h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
}

h4 {
  font-size: 1.2em;
  margin-bottom: 10px;
}

p, ul, ol {
  font-size: 20px;
  margin-bottom: 20px;
  line-height: 1.5;
}

ul {
  list-style-type: disc;
  margin-left: 20px;
}

ul, li, ul, li {
  font-size: 20px;
  line-height: 1.5;
}

.title {
  text-align: center;
}

/* Product Styles */
.product {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  max-width: 1200px;
  margin-left: 100px;
  margin-right: 100px;
}

.product img {
  max-width: 160px;
  margin-right: 20px;
}

.product-content {
  display: flex;
  flex-direction: column;
}

.product h3 {
  margin-bottom: 4px;
  font-family: 'Cinzel', serif;
  color: #8B4513;
  font-size: 24px;
}

.product p {
  margin-bottom: 10px;
  font-size: 16px;
  font-family: 'Arial', sans-serif;
}

.best-products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.best-products h2 {
  width: 100%;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 34px;
  color: #8B4513;
  margin-bottom: 20px;
  margin-top: 0px;
}
.product-card {
  background-color: #FFFFFF;
  border: 1px solid #8B4513;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: calc(22% - 40px);
  text-align: center;
}
.product-card img {
  max-width: 100%;
  height: auto;
  border-bottom: 1px solid #8B4513;
  margin-bottom: 10px;
}
.product-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  color: #8B4513;
  margin: 10px 0;
}
.product-card p {
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
}
.product-card .button {
  display: inline-block;
  padding: 10px 20px;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  color: #F0E68C;
  background-color: #8B4513;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.product-card .button:hover {
  background-color: #6A350A;
}

/* Button Styles */
.button {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #8B4513;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background 0.3s ease;
  align-items: center;
}

.button:hover {
  background: #bd6222;
}

.learn-more-button {
  display: block;
  padding: 10px 20px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #F0E68C;
  background-color: #8B4513;
  border: none;
  border-radius: 5px;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: auto;
}

.learn-more-button:hover {
  background-color: #6A350A;
}

.comparison-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #F0E68C;
  background-color: #8B4513;
  border: none;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: auto;
}

.comparison-button:hover {
  background-color: #6A350A;
}

/* Accordion Styles */
.accordion {
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 18px;
  transition: 0.4s;
  background-color: #8B4513;
  color: #F0E68C;
  margin-top: 10px;
}

.active, .accordion:hover {
  background-color: #77390c;
}

.panel {
  padding: 0 10px;
  display: none;
  background-color: white;
  overflow: hidden;
}

/* Icon Navigation Styles */
.icon-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.icon-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 1rem;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  transition: box-shadow 0.3s;
}

.nav-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.nav-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.nav-item span {
  font-size: 1.1rem;
}

.nav-item.active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hidden {
  display: none;
}

/* Tree Section Styles */
#tree-section {
  display: flex;
  justify-content: center;
  margin: 40px auto;
  width: 90%;
  box-sizing: border-box;
}

#tree-container {
  width: 40%;
}

#tree-content {
  width: 60%;
  padding: 20px;
  border-left: 1px solid #ccc;
}

#tree-content h3 {
  font-size: 24px;
  margin-top: 0;
}

#tree-content button {
  background-color: #333;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}

#tree-content button:hover {
  background-color: #555;
}

/* Tree Diagram Styles */
.node circle {
  fill: #fff;
  stroke: steelblue;
  stroke-width: 3px;
}

.node.types-of-rockhounding circle {
  fill: #ff9999;
  stroke: #cc6666;
}

.node.essential-gear circle {
  fill: #99ff99;
  stroke: #66cc66;
}

.node.techniques circle {
  fill: #9999ff;
  stroke: #6666cc;
}

.node text {
  font-size: 16px;
  font-weight: bold;
}

.link {
  fill: none;
  stroke: #ccc;
  stroke-width: 2px;
}

/* Checklist Styles */
.checklist-title {
  text-align: center;
  font-size: 3.5rem;
  font-weight: bold;
  color: #8B4513;
  margin: 40px 0 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#beginners-checklist {
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.checklist-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 20px 0;
}

.checklist-item {
  width: 30%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 10px;
}

.checklist-item img {
  width: 256px;
  height: auto;
  border-radius: 10px;
}

.checklist-item h3 {
  font-size: 18px;
  margin: 10px 0;
}

.checklist-item p {
  font-size: 14px;
  margin: 10px 0;
}

/* Main Navigation Styles */
.main-nav {
  padding: 10px 0;
  margin-top: 10px;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  flex-direction: row;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.main-nav ul li {
  display: inline;
}

.main-nav ul li a {
  color: #F0E68C;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.main-nav ul li a:hover {
  background-color: #6A350A;
  color: #F0E68C;
}

/* Mobile Styles */
@media (max-width: 768px) {
  
  .title {
    font-size: 18px !important;
    text-align: center;
  }
  
  #tree-section {
    flex-direction: column;
    width: fit-content;
    display: flex;
    justify-content: center;
    margin: 40px auto;
    width: 90%; /* Adjust as needed */
    box-sizing: border-box;
  }

  #tree-container, #tree-content {
    width: fit-content;
  }

  #tree-container {
    width: 100%;
    height: auto; /* Adjust height as needed */
    overflow: hidden; /* Prevent overflow if necessary */
  }


  .central-item {
    width: 90%;
    padding: 10px;
  }

  .central-item h2 {
    font-size: 24px;
  }

  .central-item img {
    max-width: 100%;
    margin-bottom: 10px;
  }

  .central-item p {
    font-size: 18px;
  }

  .product {
    flex-direction: column;
    align-items: flex-start;
  }

  .product img {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .product-content {
    flex-direction: column;
  }

  .product h3 {
    font-size: 1.5rem;
  }

  .product p {
    font-size: 1rem;
  }

  .icon-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-item {
    padding: 0.5rem;
  }

  .nav-item i {
    font-size: 1.5rem;
  }

  .nav-item span {
    font-size: 1.2rem;
  }

  .checklist-row {
    flex-direction: column;
    align-items: center;
  }

  .checklist-item {
    width: 80%;
    margin-bottom: 20px;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 10px;
  }

  .main-nav ul li a {
    font-size: 16px;
    text-decoration: underline;
    padding: 8px 12px;
  }

  .checklist-title {
    font-size: 30px;
  }

  .product {
    margin-left: 22px;
    margin-right: 40px;
  }

  h2 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
  }

  svg {
    width: fit-content !important;
    height: auto !important; 
    display: block !important;
  }

}
