/* Variables for consistent brand colors */
:root {
  --purple-color: #703D92;
  --purple-hover: #703D92;
  --orange-color: #F2B830;
  --text-color: #333;
  --background-color: #FFFFFF;
  --font-family: 'Telex', sans-serif;
}

/* Include Telex Font */
@font-face {
  font-family: 'Telex';
  src: url('Telex.ttf.eot'); /* IE9 Compat Modes */
  src: url('Telex.ttf.eot?#iefix') format('embedded-opentype'),
       url('Telex.ttf.woff') format('woff'),
       url('Telex.ttf.ttf') format('truetype'),
       url('Telex.ttf.svg#Telex') format('svg');
  font-weight: normal;
  font-style: normal;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styles */
body {
  font-family: 'Telex', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

/* Make sure main content doesn't hide behind the fixed header */
main {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Fixed Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 66px;
  background-color: #703D92;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Nav Bar */
header nav {
  display: flex;
  align-items: center;
}

/* Center Section: "Home"/"Wallet" + Pi Logo */
.nav-center {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px; /* Adjust text size as desired */
  color: #fff;     /* White text */
  font-family: var(--font-family);
}

/* Pi Logo in the header */
.nav-logo {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px; /* Leaves space for fixed header */
  text-align: center;
}

/* Button in the Hero Section (logo + text) */
.hero-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  font-family: var(--font-family);
  padding: 0; /* remove default button padding */
}

/* On press, the text changes color to #703D92 */
.hero-button:active h1 {
  color: #703D92;
}

/* On press, the logo uses a filter effect to hint at color change */
.hero-button:active .hero-logo {
  filter: hue-rotate(180deg);
  transition: filter 0.2s;
}

.hero-logo {
  margin-top: -15px;
  width: 35vw; /* 35% of the viewport width */
  height: auto;
}

.hero h1 {
  margin-top: 20px;
  font-size: 22px;
  color: #000;
  text-align: center;
  font-family: var(--font-family);
}

/* Icon Grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
  justify-items: center;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--purple-color);
  transition: transform 0.2s;
}

.icon-item:hover {
  transform: scale(1.05);
}

.icon-item img {
  width: 70px;
  height: 70px;
  margin-bottom: 10px;
}

/* Icon Button Text (Not Bold, Black Text) */
.icon-item p {
  margin: 0;
  text-align: center;
  font-size: 18px;
  color: #000;
}

/* Bottom Button Section */
.bottom-button {
  text-align: center;
  margin-bottom: 40px;
}

.explore-btn {
  background-color: var(--purple-color);
  color: #fff;  /* White text for the bottom button */
  padding: 3vw 6vw;
  text-decoration: none;
  border-radius: 6px;
  font-size: 4vw;
  transition: background-color 0.2s;
}

.explore-btn:hover {
  background-color: var(--purple-hover);
}

/* ----------------------------- */
/* Wallet Form & Buttons (New)   */
/* ----------------------------- */

/* Wallet Form Spacing */
.wallet-form textarea {
  margin-bottom: 25px; /* Extra space between textarea and error/message/buttons */
}

.wallet-form p {
  margin-bottom: 25px; /* Extra space below error/success message */
}

.wallet-form {
  margin-bottom: 40px; /* Space between form (including buttons) and footer paragraphs */
}

/* When the user focuses on the textarea, give it a purple border */
.wallet-form textarea:focus {
  border: 2px solid #703D92;
  outline: none;
}

/* Set the textarea input text to Arial and 110% larger than the base size */
.wallet-form textarea {
  font-family: Arial, sans-serif;
  font-size: 22px;
}

/* Outlined Button (white background, purple text & border) */
.wallet-btn-outlined {
  background: #fff;
  color: #703D92;
  border: 1px solid #703D92;
  border-radius: 10px;
  padding: 12px 20px;
  font-family: var(--Telex);
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

/* Filled Button (purple background, white text) */
.wallet-btn-filled {
  background: #703D92;
  color: #fff;
  border: 1px solid #703D92;
  border-radius: 10px;
  padding: 12px 20px;
  font-family: var(--Telex);
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

/* Hover states for wallet buttons (optional) */
.wallet-btn-outlined:hover {
  background: #703D92;
  color: #fff;
}

.wallet-btn-filled:hover {
  background: #5a2f76; /* Slightly darker purple for hover effect */
}

/* Footer Paragraphs for Wallet Page - Left Aligned */
.wallet-footer {
  max-width: 500px;
  margin: 20px auto 40px;
  text-align: left !important;
  font-size: 18px !important;
  font-family: var(--font-family);
  line-height: 1.5;
}