@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Hind+Madurai:wght@300;400;500;600;700&display=swap');

html, body {
    height: 100%; 
    margin: 0;
    padding: 0;
}

body {
  font-family: "Hind Madurai", sans-serif;
  background-color: #FEF4EA;
  color: #3B2E40;
  font-size: 18px;
  font-weight: 200;
}

h1, h2, h3 {
  font-family: "Crimson Text", serif;
}

h1, h2 {
  font-size: 24px;  
  text-align: start; 
}

h3 {
  text-align: start;
  font-size: 20px;
}

section {
  display: none;
  justify-content: center;
  align-items: center;
  min-height: 100vh; 
  padding: 20px 0;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  display: none; 
}

.card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    width: 80%;       
    margin: 0 15px;  
    padding: 30px;   
}

.next-btn {
    background-color: #3B2E40;
    border-radius: 30px;
    font-weight: 600;
    font-family: "Hind Madurai", sans-serif;
    color: #FFFFFF;
    display: flex;
    cursor: pointer;
    font-size: 16px;
    padding: 0.8rem 1.5rem;
}

.next-btn:hover {
    background-color: #FFFFFF;
    border: 1px solid #3B2E40;
    color: #3B2E40;
}

.error-message {
  color: #CB2F58;
  font-weight: 600;
  margin-bottom: 1rem;
  display: none;
}

/* home */

#home {
    display: flex;
}

/* Q1 stars question 1 */

.stars {
  display: inline-flex;
  gap: .5rem;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.stars input {
  position: absolute;
  left: -9999px; /* hide btn radios */
}

.stars label {
  cursor: pointer;
  color: #d4c9d9;
  transition: color 0.1s ease;
}

.stars input:checked ~ label {
  color: #CB2F58; 
}

/* Q2 question 2 */

#recommendation-options label {
  display: block;        
  margin-bottom: 0.5rem; 
}

#recommendation-options input {
  margin-right: 0.5rem;
  cursor: pointer;
}

#recommendation-options, #favorite-functionalities{
  margin-bottom: 2rem;
}

/* Q3 functionalities question 3 */

#favorite-functionalities label {
  display: flex;          
  align-items: center;    
  gap: 0.5rem;            
  margin-bottom: 5px;    
}

#favorite-functionalities input {  
  cursor: pointer;
}

/* graphs */

#q1Chart {
  max-width: 300px;     
  max-height: 200px;    
  width: 100%;           
  height: auto;
}

#q2Chart {
  max-width: 160px;     
  max-height: 160px;    
  width: 100%;           
  height: auto;
}

#q3Chart {
  height: 160px; 
  max-height: 200px;
}

#chart1-chart2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
  align-items: center;
}

#chart1-chart2 > div {
  width: 100%;
  text-align: center;
}

#chart3 {
  margin: 15px 0 0 0;
  text-align: center;
}

#results-list {
  display: none;
}


@media (min-width: 600px) {
  .card {
    width: 100%;    
    margin: 0 auto;  
    padding: 40px;   
    max-width: 600px;  
  }

  h1, h2 {
    font-size: 32px; 
  }

  .next-btn {
    font-size: 18px;
    padding: 1rem 2rem;
  }

  .card {  
    margin: 0 auto;  
    padding: 20px;
  }

  #q1Chart, #q2Chart {
  max-width: 250px;
  max-height: 150px;
  }
  
  #q3Chart {
    height: 120px;
    max-height: 150px;
  }

  #chart1-chart2 {
    flex-direction: row; 
    justify-content: center;
    gap: 5px;
  }
  
  #chart1-chart2 > div {
    flex: 1;
    max-width: 300px; 
  }
}