/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    color: #333333;
    line-height: 1.6;
    background: #F5F5F5;
  }
  
  header {
    background-color: #00796B;
    padding: 1.5rem;
    color: white;
    text-align: center;
  }
  
  header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  #search {
    padding: 0.5rem;
    width: 80%;
    max-width: 300px;
    border-radius: 5px;
    border: none;
  }
  
  /* Layout Styling */
  main {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
  }
  
  /* Formula List Styling */
  #formula-list {
    flex: 1;
    min-width: 200px;
  }
  
  #formula-list h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  #formula-list button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: #009688;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  #formula-list button:hover {
    background: #00796B;
  }
  
  /* Formula Display Section */
  #formula-display {
    flex: 3;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  #formula-display h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  /* Code Section Styling */
  #code-section {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    background: #E0F2F1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  #code-section h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  .code-language button {
    padding: 10px 15px;
    margin: 0 5px 10px 0;
    border: none;
    border-radius: 5px;
    background: #FFC107; /* Accent color */
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  .code-language button:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  }
  
  #copy-code-button {
    margin-top: 10px;
    padding: 10px 20px;
    background: #FFC107;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  #copy-code-button:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  }
  
  /* Apply styles to the CodeMirror container */
  .CodeMirror {
    max-height: 300px; 
    overflow-y: auto;
    width: 100%;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  /* Calculator Section Styling */
  #calculator-section {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    background: #E0F7FA;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  #calculator-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  #calculator label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
  }
  
  #calculator input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  #calculator button {
    padding: 10px 20px;
    background: #00796B;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  
  #calculator button:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  }
  
  /* Footer Styling */
  footer {
    text-align: center;
    padding: 1rem;
    background-color: #00796B;
    color: white;
    margin-top: 20px;
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    main {
      flex-direction: column;
    }
    
    #formula-display, #formula-list {
      width: 100%;
    }
  }