:root {
    --wood-color: #4CAF50;
    --fire-color: #FF5722;
    --earth-color: #795548;
    --metal-color: #9E9E9E;
    --water-color: #2196F3;
    --primary-bg: #f5f5f5;
    --text-color: #333;
    --transition: all 0.3s ease;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .screen {
    display: none;
    text-align: center;
  }
  
  .screen.active {
    display: block;
    animation: fadeIn 0.5s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
  }
  
  .elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
  }
  
  .element {
    padding: 1rem;
    border-radius: 15px;
    transition: var(--transition);
    cursor: pointer;
  }
  
  .element:hover {
    transform: translateY(-5px);
  }
  
  .element img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
  }
  
  .element h3 {
    font-size: 1.2rem;
    color: #2c3e50;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    margin: 1rem 0;
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .progress-bar {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    margin: 2rem 0;
    overflow: hidden;
  }
  
  #progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #4CAF50, #2196F3);
    transition: var(--transition);
  }
  
  .question {
    margin: 2rem 0;
    font-size: 1.3rem;
    color: #2c3e50;
  }
  
  .options {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
  }
  
  .option {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .option:hover {
    background: #e9ecef;
    transform: translateX(5px);
  }
  
  .option.selected {
    background: #4CAF50;
    color: white;
  }
  
  #result-content {
    margin: 2rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
  }
  
  #result-content h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  #result-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .characteristics {
    text-align: left;
    margin-top: 2rem;
  }
  
  .characteristics h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
  }
  
  .characteristics ul {
    list-style: none;
    padding: 0;
  }
  
  .characteristics li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
  }
  
  #element-chart {
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    height: 400px;
    cursor: pointer;
    
  }
  
  .element-details {
    margin-top: 2rem;
    padding: 1rem;
  }
  
  .element-detail-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
    animation: slideIn 0.3s ease;
  }
  
  @keyframes slideIn {
    from { 
      opacity: 0;
      transform: translateY(10px);
    }
    to { 
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .element-detail-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
  }
  
  .element-detail-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
  }
  
  @media (max-width: 768px) {
    .container {
      padding: 1rem;
    }
  
    .elements-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    h1 {
      font-size: 2rem;
    }
  
    .question {
      font-size: 1.2rem;
    }
  
    #element-chart {
      height: 300px;
    }
  }