
.stock-average-change {
  font-weight: 600;
  margin-top: 4px;
}

.stock-average-change.positive {
  color: #4CAF50; /* green */
}

.stock-average-change.negative {
  color: #F44336; /* red */
}
:root {
    --primary-color: #212121;
    --text-color: #F1DCB9;
    --secondary-color: #474747;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/Satoshi-Regular.woff') format('woff2'),
       url('/Satoshi-Regular.woff2') format('woff');
  font-weight: 400;
  font-style: normal;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: 'Satoshi', sans-serif;
    min-height: 100vh;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    margin: 0px;
    overflow-x: hidden;
}

.header {
    display: flex;
    justify-content: center;      /* Center navBar horizontally */
    align-items: center;          /* Center items vertically */
    position: relative;
    width: 100%;
    min-height: 4rem;
}

.headerLogoHolder {
    display: flex;
    align-items: center;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
}

.headerLogo {
    width: 2rem;
    height: 2rem;
    padding: 1rem;
}

.hamburger {
    display: hidden;
}

.mobileNav {  
    display: none;
}

.navBar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background-color: var(--secondary-color);
    padding: 0.5rem 2rem;
    border-radius: 2rem;
    height: 20px;
}

.navItem {
    color: var(--text-color);
    font-weight: 500;
    border-radius: 1rem;
    transition: background 0.5s;
    transition: padding 0.5s;
    cursor: pointer;
}

.navItem a {
  color: var(--text-color);
  text-decoration: none;
}

.navItem a:hover {
  background-color: var(--text-color);
  color: var(--secondary-color);
  border-radius: 1rem;
  padding: 0.25rem;
  height: 20px;
}

.navItem:hover {
    background-color: var(--text-color);
    color: var(--secondary-color);
    border-radius: 1rem;
    padding: 0.25rem;
    height: 20px;
}

.heroSection {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70vh;
    width: 100%;
    gap: 2.5rem;
    margin: 15px;
}

.heroText {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 40%;
}

.heroText h1 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 0.01rem; /* Reduce this value as needed */
}

.heroText p {
    font-size: 1.25rem;
    color: var(--text-color);
    opacity: 0.8;
}

.heroImagePlaceholder {
    border-radius: 2rem;
    display: flex;
    align-items: center;
    width: 30%;
}

.heroImagePlaceholder img {
    height: 600px;
}

.emailBox {
    width: 100%;
    max-width: 500px;
}

.emailForm {
    display: flex;
    width: 100%;
    height: 50px;
}

.emailInput {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 1rem 0 0 1rem;
    font-size: 1rem;
    outline: none;
    background-color: var(--secondary-color);
    border: 2px solid var(--text-color);
    color: var(--text-color);
}

.submitButton {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0 1rem 1rem 0;
    background: var(--text-color);
    color: var(--primary-color);
    font-weight: 400;
    cursor: pointer;
    font-size: 1rem;
    transition: font-size 0.5s;
}

.submitButton:hover {
    font-size: 1.1rem;
}

.mainContentWrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.socialIconsList {
    display: flex;
    gap: 1.5rem;
}


#stock-groups-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0rem 2rem;
  width: 100%;
  overflow-x: hidden;
}

.stock-category-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stock-category-section h2 {
  font-size: 1.5rem;
  color: var(--text-color);
  border-bottom: 2px solid var(--text-color);
  padding-bottom: 0.5rem;
}

.stock-category-section .row {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.stock-card {
  background-color: var(--secondary-color);
  color: var(--text-color);
  padding: 1rem;
  border-radius: 1rem;
  width: 350px;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.stock-card .stock-name {
  font-size: 1.3rem;
  font-weight: bold;
}

.stock-card .stock-price,
.stock-card .stock-change,
.stock-card .stock-category {
  opacity: 0.85;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-around;
  margin-top: 0.5rem;
}

.button-group button {
  flex: 1 1 calc(25% - 0.5rem); /* 4 buttons per row with gap */
  padding: 0.5rem 0;
  border: none;
  border-radius: 1rem;
  background-color: #7f733c;
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 60px;
}

.button-group button:hover,
.button-group button:focus {
  background-color: #a68a2d;
  outline: none;
}

@media (max-width: 768px) {
    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: white;
        position: relative;
      }
      
      .hamburger {
        display: block;
        cursor: pointer;
        margin-left: auto;
        margin-right: 15px;
        z-index: 9999; /* so it stays above dropdown */
      }
      
      .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 4px 0;
        transition: 0.3s;
      }

      .hamburgerColor span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--primary-color);
        margin: 4px 0;
        transition: 0.3s;
      }

      .mobileNav.open {
        background-color: var(--text-color);
        position: absolute;
        top: 0px;
        right: 0px;
        left: 0px;
        width: 100%;
        display: flex;
        margin: 0px;
        z-index: 999;
        border-radius: 10px;
      }

      .mobileNav ul {
        list-style: none;
        padding-top: 10%;
      }

      .mobileNavItem {
        text-decoration: none;
        color: var(--primary-color);
        font-size: 2rem;
      }

      .navBar {
        display: none;
      }

      .heroSection {
        display: flex;
        flex-direction: column;
        height: auto;
        align-items: flex-start;
        width: 100%;
      }

      .heroText {
        max-width: 100%;
      }

      .heroText h1 {
        font-size: 2rem;
      }

      .heroImagePlaceholder {
        display: flex;
        justify-content: center;
        width: 100%;
      }

      .heroImagePlaceholder img{
        max-width: fit-content;
      }
}
