body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1f1f1f;
  color: #ffffff;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  width: 90%;
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background: #454545;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

h1 {
  margin-bottom: 20px;
}

textarea {
  width: 100%;
  height: 100px;
  margin-bottom: 10px;
  background-color: #efefef;
  color: black;
  resize: vertical;
  border-radius: 5px; /* Added border-radius to make it slightly rounded */
}

button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  margin: 10px 5px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  background: #393939;
  margin-bottom: 5px;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  transition: background-color 0.3s ease; /* Transition for hover effect */
}

li:hover {
  background-color: #333333; /* Slight darkening effect on hover */
}

li button {
  margin: 5px;
  visibility: hidden;
  opacity: 0; /* Initially hidden */
  transition: visibility 0s, opacity 0.4s ease-in-out; /* Smooth transition for visibility */
}

li:hover button {
  visibility: visible;
  opacity: 1; /* Make buttons visible with smooth transition */
}

li .collapsible-text {
  display: inline-block;
  max-width: 100%;
}

.read-more {
  background-color: #008CBA;
  border: none;
  cursor: pointer;
  font-weight: bold;
  color: white;
  margin-top: 10px;
}

.light-theme {
  background-color: #FAF9F6;
  color: #333;
}

.light-theme .container {
  background-color: #f9f9f9;
  color: #333;
}

.light-theme li:hover { 
  background-color: #f3f3f3;
}

.light-theme button {
  background-color: #4CAF50;
}

.light-theme button:hover {
  background-color: #45a049;
}

.light-theme textarea {
  background-color: #f9f9f9;
  color: #333;
}

@media (max-width: 600px) {
  .container {
    margin: 20px;
    padding: 10px;
  }

  h1 {
    font-size: 1.5rem;
  }

  textarea {
    height: 80px;
  }

  button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  li {
    flex-direction: column;
    text-align: left;
  }

  li button {
    width: 100%;
    margin-top: 5px;
  }
}
