/* Reset basic styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f7fc;
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    flex-direction: column;
  }
  
  /* Container styling */
  .container {
    background-color: #fff;
    max-width: 900px;
    width: 100%;  /* Ensure full width but prevent overflow */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }
  
  /* Ensure the output area and controls respect the container's width */
  #output, .controls {
    width: 100%;
    max-width: 900px;
    box-sizing: border-box;
  }
  
  /* Textarea styling */
  #textInput {
    width: 100%;
    height: 180px;
    padding: 15px;
    margin-top: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    margin-bottom: 20px;
    box-sizing: border-box;
  }
  
  #textInput:focus {
    border-color: #007BFF;
  }
  
  /* Output styling */
  #output {
    margin-top: 10px;
    padding: 20px;
    min-height: 180px;
    background-color: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
    font-size: 16px;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;  /* Prevent padding from adding to width */
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-bottom: 30px;
  }
  
  /* Control styling */
  .controls {
    margin-top: 20px;
    width: 100%;
  }
  
  /* Font Family and Font Size controls side by side */
  .control-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
  }
  
  .control-item {
    flex: 1;
    margin-right: 10px;
    min-width: 0;  /* Prevent the flex items from expanding beyond container */
  }
  
  .control-item:last-child {
    margin-right: 0;
  }
  
  /* Color controls styling */
  .color-controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  
  .color-picker {
    flex: 1;
    margin-right: 10px;
  }
  
  .color-picker:last-child {
    margin-right: 0;
  }
  
  /* Button styling */
  button {
    width: 100%;
    padding: 12px 20px;
    margin-top: 20px;
    background-color: #007BFF;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  button:hover {
    background-color: #0056b3;
    box-shadow: 0px 6px 12px rgba(0, 123, 255, 0.3);
  }
  
  /* Footer styling */
  footer {
    margin-top: 40px;
    text-align: center;
    font-size: 14px;
    color: #888;
    width: 100%;
  }
  
  /* Media Queries for responsiveness */
  @media (max-width: 768px) {
    h1 {
      font-size: 24px;
    }
  
    select, input[type="color"], input[type="range"], #textInput, button {
      font-size: 14px;
    }
  
    button {
      font-size: 16px;
    }
  
    .control-group, .color-controls {
      flex-direction: column;
    }
  
    .control-item, .color-picker {
      margin-right: 0;
      margin-bottom: 20px;
    }
  }
  
