body {
    font-family: 'Quicksand', 'Segoe UI', sans-serif;
    background-color: #e0f7fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 2em;
    color: #333;
  }
  
  .box,
  #poem-box {
    background-color: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 2em;
    margin-bottom: 1.5em;
    width: 90%;
    max-width: 600px;
    box-sizing: border-box;
  }
  
  h1 {
    text-align: center;
    margin-top: 0;
    font-size: 2em;
    color: #34495e;
  }
  
  form {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 1.5em;
    flex-wrap: wrap;
  }
  
  input[type="text"] {
    flex: 1;
    padding: 0.6em;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    font-size: 1em;
    background-color: #fafafa;
    color: #2d3436;
  }
  
  input[type="submit"] {
    padding: 0.6em 1.2em;
    border-radius: 8px;
    border: none;
    background-color: #2980b9;
    color: white;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
  }
  
  #poem-box {
    white-space: pre-wrap;
    font-style: italic;
    min-height: 120px;
    background-color: #f4f6f9;
    border: 1px solid #dcdcdc;
    color: #2d3436;
  }

  .hidden {
    display: none;
  }

  #copy-poem {
    display: none;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #2980b9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  #copy-poem:hover {
    background-color: #2980b9;
    transform: scale(1.03);
  }
  
  #copy-poem:active {
    transform: scale(0.98);
  }
  
  #copy-poem.show {
    display: inline-block; 
  }
  
  footer {
    margin-top: auto;
    text-align: center;
    font-size: 0.9em;
    color: #888;
    padding: 1em;
    width: 90%;
    max-width: 600px;
  }
  