:root {
  --primary-color: #8a691a;
  --hover-color: #6a4f14;
  --text-color: #ffffff;
  --link-color: #6a4f14;
}

.install-buttons {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0 1rem;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  scrollbar-width: none;
  color: var(--text-color);
}

.install-buttons::-webkit-scrollbar {
  display: none;
}

.install-btn {
  flex: 1 1 0;
  background-color: var(--primary-color);
  color: var(--text-color);
  border: none;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  max-width: 100%;
  height: 3.2rem;
  overflow: hidden; 
  text-overflow: ellipsis;
}

/* Hover effect only on install buttons */
.install-btn:hover,
.install-btn:focus {
  background-color: var(--hover-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  color: var(--text-color);
}

.install-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Ensure links inside install buttons do not get affected by hover */
.install-btn a {
  text-decoration: none;
  color: var(--text-color); 
}

.install-btn a:hover,
.install-btn a:focus {
  color: var(--text-color);
}

/* General anchor styling - prevents hover effect on links outside buttons */
a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--link-color);
  text-decoration: none;
}

.license-section a {
  font-weight: bold;
}

/* Style for the header navigation menu or any other links */
header a {
  color: var(--link-color); /* Ensures header links have normal color */
}

header a:hover,
header a:focus {
  color: var(--link-color); /* Prevent hover effect on header links */
}

@media (max-width: 400px) {
  .install-buttons {
    flex-direction: column;
  }

  .install-btn {
    width: 100%;
  }
}
