* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #222222;
    color: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Changed to allow some space from the top */
    min-height: 100vh;
    padding: 40px 20px; /* Added padding for spacing */
    margin: 0;
    overflow-y: auto; /* Allow vertical scrolling */
  }
  
  h1 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
  }
  
  textarea {
    width: 100%;
    max-width: 600px;
    padding: 15px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    background: #333333;
    color: #f1f1f1;
    resize: none;
    margin-bottom: 15px;
    transition: background 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  textarea:focus {
    background: #444444;
    outline: none;
  }
  
  button {
    padding: 12px 25px;
    background-color: #6200ea;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease-in-out;
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  button:hover {
    background-color: #3700b3;
  }
  
  .result-container {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
  }
  
  .sentiment {
    margin-bottom: 15px;
  }
  
  #sentimentValue {
    font-size: 22px;
    color: #ff4081;
  }
  
  #confidenceValue {
    font-size: 20px;
    color: #03dac5;
  }
  
  #sentimentChart {
    margin-top: 20px;
    width: 100%;
    max-height: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  #threejs-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  