/* =========================
   Reset and Base Styles
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body setup for full-screen flex centering */
html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: 'Catamaran', sans-serif;
  background-image: url('images/Hair Hub Background-2.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 20px;
}




button, input, textarea {
  max-width: 100%;
  font-family: 'Catamaran', sans-serif;
}

/* ========================= 
    Braid Estimator 
========================= */

/* Optional: style the option text */
/* All dropdowns inside .question */
.question select {
  font-size: 16px; /* adjust as needed */
  width: 150px;
  text-align: center;
}
#estimatebutton{
  margin-top: 10px;
}


/* =========================
   Typography
========================= */
h1, h2 {
  font-family: 'Paytone One', sans-serif;
  color: #EF5B9C;
  text-align: center;
  margin-bottom: 10px;
}

h1 { font-size: 26px; margin-top: 40px; }
h2 { font-size: 18px; }

p, .description-text, .directions {
  font-size: 14px;
  color: #344354;
  margin-bottom: 10px;
  text-align: center;
}

.directions{
  margin-top: 10px;
}

#results {
  display: none;
  font-family: 'Paytone One', sans-serif;
  font-size: 18px;
  color: #EF5B9C;
  text-align: center;
  margin-bottom: 10px;
}

.question input {
  font-size: 15px;
  width: 175px;
  text-align: center;
}

.notes, .question {
  margin-bottom: 10px;
}

h1 { margin-top: 0; }
/* =========================
   Card Styles
========================= */
.card {
  margin: 0 auto;
}

/* Cards consistent sizing and spacing */
.card,
.card2,
.maincard{
  background-color: #FFFFFF;
  color: #344354;
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 420px;         /* slightly larger than 350 so forms don't wrap oddly */
  margin: 0 auto 20px auto; /* center & space underneath for results */
  box-sizing: border-box;
}

/* Container */
.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;   /* horizontal centering */
  justify-content: center; /* natural top alignment like other cards */
  padding: 20px;
}



#budgetcalcard{
  margin-top: 10%;
}

.calculator-wrapper {
  min-height: 100vh;                /* fills viewport */
  display: flex;
  flex-direction: column;
  align-items: center;              /* horizontal center */
  justify-content: center;          /* vertical center */
  padding: 20px;
  box-sizing: border-box;
  transition: padding-top 300ms ease, justify-content 300ms ease;
}

/* When results are shown, add .results-open to allow space at top */
.calculator-wrapper.results-open {
  justify-content: flex-start;      /* push content toward top so results sit below */
  padding-top: 6vh;                 /* small gap from top; tweak if needed */
}





/* =========================
   Buttons
========================= */
button {
  padding: 12px 24px;
  margin-top: 20px;
  font-size: 12px;
  font-weight: bold;
  color: #FFFFFF;
  background-color: #6E9AC4;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #FFE865;
}

.start-over-button {
  display: block;
  margin: 20px auto;
  font-size: 12px;
  background-color: #344354;
}

.start-over-button:hover {
  background-color: #EF5B9C;
}

.start-over-link {
  color: #FF5B9C;      /* Text color */
  text-decoration: underline; /* optional underline */
  cursor: pointer;     /* shows hand on hover */
  font-size: 10px;
  font-family: 'Catamaran', sans-serif;
}


.addgoalbutton {
  margin-top: 20px;
  font-size: 12px;
  font-weight: bold;
  color: #FFFFFF;
  background-color: #6E9AC4;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.addgoalbutton:hover {
  background-color: #FFE865;
}

/* =========================
   Inputs / Selects
========================= */
#growthRate {
  font-size: 20px;
  margin-bottom: 15px;
}

input, textarea {
  font-size: 14px;
}
/* PSC Modal */
/* Modal backdrop */
.modal {
  display: none; /* Hidden by default */
  position: fixed; 
  z-index: 1000; /* Above everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Scroll if needed */
  background-color: rgba(0,0,0,0.5); /* semi-transparent black */
}

/*Tracker*/
.opentracker{
  padding: 1px;
 

}

.tracker-tabs {
  margin-top: 0;      /* remove space above tabs */
  margin-bottom: 15px; /* optional: space below tabs */
}

#trackedStylesSection h1 {
  margin-bottom: 0px; /* shrink space below the title */
}

#trackedStylesSection {
  transition: height 0.3s ease, min-height 0.3s ease;
  overflow: hidden; /* hide anything that collapses */
}

#trackedStylesSection.compressed {
  height: auto; /* will adjust dynamically */
  min-height: 80px; /* adjust based on title + tabs height */
}

/* Optionally, hide lists when collapsed */
#trackedStylesSection.compressed #currentStylesContainer,
#trackedStylesSection.compressed #historyStylesContainer {
  display: none;
}

/* Modal content box */
.modal-content {
  background-color: #fff;
  margin: 10% auto; /* Center vertically and horizontally */
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.close-btn:hover {
  color: #FF5B9C;
}


/* =========================
   Results Boxes
========================= */

/* Results boxes */
/* Results sit below the card in document flow (no fixed positioning) */


#displayInfo, #calculationResult, #displayInfo2, #calculationResult2 {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 6px auto;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
  position: relative !important;

  /* Remove visibility trickery */
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 250ms ease, transform 250ms ease;
}
#calculationResult {
margin-bottom: 80px;
}

#displayInfo {
  margin-top: -10px;
  

}



.show-results {
  opacity: 1 !important;
  transform: translateY(0) !important;
}


#displayInfo, #displayInfo2 { background-color: #F1CEFF; color: #344354; }
#calculationResult, #calculationResult2 { background-color: #FFE865; color: #344354; }

/* visible state */
.show-results {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  transition-delay: 0s;
}

.scroll-callout {
  display: none;               /* hide by default */
  text-align: center;
  font-size: 14px;
  color: #EF5B9C;
  font-weight: bold;
  margin-top: 10px;
  animation: bounce 1s infinite alternate;
}

/* Bounce animation to draw attention */
@keyframes bounce {
  0% { transform: translateY(0px); }
  100% { transform: translateY(5px); }
}




/* =========================
   Footer / Links
========================= */
.footer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #F1CEFF;
  text-align: center;
  color: #344354;
  font-size: 14px;
}

.logo { width: 150px; height: auto; }

.app-links { margin-top: 10px; font-weight: bold; }
.app-link {
  display: inline-block;
  margin: 5px 10px;
  padding: 8px 16px;
  font-size: 14px;
  color: #FFFFFF;
  background-color: #EF5B9C;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.app-link:hover { background-color: #6E9AC4; }

.disclaimer, .disclaimer2 {
  color: #000;
  text-align: center;
  padding: 2px 4px;
  background-color: #F1CEFF;
  border-radius: 5px;
  font-family: 'Catamaran', sans-serif;
}

.disclaimer { font-size: 9px; margin-top: 40px; }
.disclaimer2 { font-size: 10px; margin-top: 10px; }

.feedback{
  margin-top: 20px;
}

/* =========================
   Tabs & Goals
========================= */
.styleTracker{
  margin-bottom:5px;
}

.tabs {
  display: flex;
  gap: 12px;
  margin: 20px 0 30px 0;
  justify-content: center;
}

.tab {
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 6px;
}

.tab:hover { background-color: #FFE865; color: #fff; }
.active { background: #EF5B9C; color: white; }
.hidden { display: none; }

.goal-card, .entry {
  background: white;
  padding: 16px;
  margin: 8px auto;
  border-radius: 8px;
  text-align: center;
}

.entry { background: #f3f3f3; }
.entry:last-child { margin-bottom: 0; }

.yourcurrentgoals { font-size: 20px; color: #6E9AC4; text-align: center; }
.goal-tracker { font-size: 32px; margin-bottom: 10px; }

/* =========================
  Progress Bar
========================= */
.progress-container{
width: 70%;
height:10px;
background:#e6e6e6;
border-radius:10px;
overflow:hidden;

margin: 0 auto;   /* centers it */
}

.progress-bar{
height:100%;
background:#6E9AC4;
transition:width .3s ease;
}

.progress-text{
font-size:13px;
margin-bottom:8px;
}

/* =========================
  New Style Popup Box
========================= */






.modal-content .focus-button {
  display: block;
  margin: 15px auto 0 auto;
}
/* =========================
 PSCT Image Thumbnail
========================= */

.style-thumb{
width:100px;
height:100px;
object-fit:cover;
border-radius:8px;
margin-bottom:8px;
cursor:pointer;
}

/* =========================
 Hairstyle Title
========================= */

.style-title {
  font-size: 18px;       /* bigger text */
  font-weight: 600;      /* semi-bold */
  margin-bottom: 8px;    /* space below */
  text-align: center;    /* optional: center it */
  color: #344354;        /* matches your palette */
  margin-top: 10px;
}

/* Add a border and some spacing around each tracked style */
.tracked-style {
  border: 2px solid #EF5B9C;       /* blue border; pick your color */
  border-radius: 10px;             /* rounded corners */
  padding: 15px; 
  margin-top: 30px;                  /* space inside the card */
  margin-bottom: 15px;             /* space between cards */
  background-color: #ffffff;       /* optional: white background */
  box-shadow: 0 3px 6px rgba(0,0,0,0.1); /* subtle shadow for depth */
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* smooth hover */
}

/* Optional hover effect for interactivity */
.tracked-style:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Slightly different styling for history styles */
.tracked-style.history-style {
  border-color: #6E9AC4;           /* lighter blue for history */
  background-color: #ffffff;
}


/* =========================
Toggle
========================= */

.card2 {
  position: relative; /* so the toggle can be positioned inside the card */
}

.tracked-header {
  text-align: center; /* centers the title */
  padding: 10px 0;    /* vertical spacing */
}

.tracked-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

/* Toggle button in top-right of card */
.toggle-arrow {
  position: absolute;
  top: 0px;      /* distance from top of card */
  right: 20px;    /* distance from right of card */
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
  color: #EF5B9C;
  width: 20px;       /* optional, makes clickable area bigger */
  height: 40px;      /* optional, makes clickable area bigger */
  cursor: pointer;
  transition: color 0.2s, transform 0.3s;

  /* center the arrow inside the button */
  width: 40px;        /* clickable area width */
  height: 40px;       /* clickable area height */
  display: flex;      /* use flex to center */
  align-items: center; /* vertical center */
  justify-content: center; /* horizontal center */
}
.toggle-arrow:hover {
  color: #EF5B9C;   /* change to whatever color you like on hover */
}

/* Collapsed state */
.tracked-collapsed #currentStylesContainer,
.tracked-collapsed #historyStylesContainer {
  display: none;
}

.tracked-collapsed #toggleTrackedCard {
  transform: rotate(0deg); /* arrow points down */
}

/* Expanded state */
.tracked-expanded #toggleTrackedCard {
  transform: rotate(180deg); /* arrow points up */
}

/* =========================
   Home Icon
========================= */

.home-icon {
  position: fixed;  /* fixed keeps it in the corner, not relative to card */
  top: 15px;
  right: 15px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-svg {
  width: 25px;
  height: 25px;
  fill: #EF5B9C;
  cursor: pointer;
  transition: fill 0.2s ease;
}

.home-svg:hover { fill: #FFE865; }

/* =========================
   PSCT Action Links
========================= */
/* Tracker action links */
.tracker-link {
  display: inline-block;        /* keeps them inline but allows margin */
  padding: 0px 7px;            /* space inside the link */
  color: #EF5B9C;               /* change text color */
  text-decoration: underline;    /* adds underline */
  font-size: 12px;               /* adjust size */
  cursor: pointer;               /* pointer cursor on hover */
  margin-top: 0;
}

/* Optional: hover effect */
.tracker-link:hover {
  color: #6E9AC4;               /* change color on hover */
  text-decoration: none;        /* remove underline on hover */
}

#installDate,
#keepWeeks,
#styleDescription,
#styleImage {
  width: 90%;         /* Adjust as needed */
  max-width: 400px;   /* Optional */
  padding: 8px;
  margin-bottom: 10px;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#trackedstylesheader{
  margin-bottom: 0px;

}

#trackedStylesSection {
margin-top: 20px; /* 👈 add this */
transition: height 0.3s ease, min-height 0.3s ease;
overflow: hidden;
}

.close-results {
  position: absolute;
  top: 8px;
  right: 20px;
  font-size: 23px;
  font-weight: bold;
  color: #EF5B9C;
  cursor: pointer;
  z-index: 10;
}

.close-results:hover {
  color: #EF5B9C;
}

/* =========================
   Media Queries (Mobile First)
========================= */

@media (max-width: 768px) {

  /* Make card flow naturally on mobile */
  @media (max-width: 768px) {
  .card,
  .card2,
  .maincard{
    width: 90%;           /* matches other cards */
    max-width: 420px;     /* same as other cards */
    margin: 20px auto;    /* horizontal centering */
    padding-top: 20px;    /* reduce vertical padding */
    padding-bottom: 20px;
    box-sizing: border-box;
  }

  .question input {
  font-size: 12px;
  width: 150px;
  text-align: center;
}
.question{
  font-size: 14px;
}
.question select {
  font-size: 12px; /* adjust as needed */
  text-align: center;
}

}

 body{ background-size: cover; background-position: 80% 50%;}


  /* Make results boxes appear below the card */
  #displayInfo, #calculationResult,
  #displayInfo2, #calculationResult2 {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 90%;
    margin: 5px auto;   /* spacing below the card */
    visibility: hidden;
  }

  /* Adjust fonts and buttons */
  h1 { font-size: 22px; margin-top: 20px; }
  h2 { font-size: 18px; }
  p, .description-text { font-size: 14px; }
  button { font-size: 14px; padding: 10px 20px; }
  #growthRate, #desiredGrowth {font-size: 14px;} 
}

@media (max-width: 430px) {
  .home-icon { transform: scale(0.85); right: 6px; }
}


@media (max-width: 768px) {
  .calculator-wrapper {
    width: 100%;
    padding-top: 10px;
  }
}

@media (max-width: 768px) {
  .card {
    width: 90%;
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  .container {
    justify-content: flex-start;
    padding-top: 40px;
    min-height: 100vh;
  }
}


/* Desktop layout stabilizer */
@media (min-width: 769px) {
  .container {
    justify-content: center;   /* keep card centered vertically */
    min-height: 100vh;         /* stop layout jump */
    padding-top: 0;
  }
}

body::after {
  content: "";
  display: block;
  height: 120px; /* increase this to control bottom space */
}

/* =========================
   Toggle - Mobile Adjustments
========================= */
@media (max-width: 768px) {
  .toggle-arrow {
    font-size: 14px;      /* arrow size */
    width: 25px;           /* square size */
    height: 25px;          /* square size */
    top: -10px;              /* adjust inside card */
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
 
  }}

 /* =========================
   Mobile Tabs Adjustment
========================= */
@media (max-width: 768px) {
  .tracker-tabs {
    display: flex;
    flex-direction: row;      /* keep tabs inline */
    justify-content: center;  /* center horizontally */
    gap: 8px;                 /* spacing between buttons */
    flex-wrap: wrap;          /* wrap if screen is too small */
    margin: 0px 0 15px 0;
  }

  .tab-button {
    flex: 1 1 auto;           /* let buttons share width equally */
    font-size: 12px;          /* smaller text on mobile */
    padding: 6px 10px;        /* smaller padding */
    border-radius: 6px;
    text-align: center;
  }

  .tab-button.active {
    font-size: 12px;
    padding: 6px 10px;
  }

  .focus-button{
     font-size: 12px;
    padding: 6px 10px;
    gap: 8px;  
  }
}

