* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f0f0f0;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.header {
  background-color: transparent;
  color: #000000;
  padding: 1.5rem 0;
  text-align: center;
}

.header-title {
  font-size: 2.5rem;
}

.search-section,
.results-section {
  margin-bottom: 2rem;
  padding: 2rem;
  background-color: transparent;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.label {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #777;
}

.input,
.select {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 4px;
  background-color: #f5f5f5;
  color: #333;
}

.input:focus,
.select:focus {
  outline: none;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.button {
  background-color: #9c4dff;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.button:hover {
  background-color: #d32f2f;
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.results-section {
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer {
  color: #000000;
  text-align: center;
  padding: 1rem 0;
}

.dark-mode-button {
  background-color: #9c4dff;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.dark-mode-button:hover {
  background-color: #d32f2f;
  transform: translateY(-3px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

body.dark-mode {
  background-color: #1a1a1a;
  color: #ffffff;
}

.container.dark-mode {
  background-color: #333;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.header.dark-mode {
  background-color: #222;
  color: #fff;
}

.search-section.dark-mode {
  background-color: #222;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.form-group.dark-mode,
.results-section.dark-mode {
  background-color: #222;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.footer.dark-mode {
  color: #fff;
}

.dark-mode-button::before {
  content: '\1F319';
  font-size: 1.5rem;
  margin-right: 0.5rem;
  transition: transform 0.3s;
}

body.dark-mode .dark-mode-button::before {
  content: '\2600';
  transform: rotate(180deg);
}

#results {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.script-card {
  background-color: #333;
  width: calc(25% - 20px);
  margin: 10px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  color: white;
}

.script-card:hover {
  transform: scale(1.03);
}

.script-title {
  color: #3498db;
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
  margin-bottom: 10px;
}

.script-title:hover {
  color: #2980b9;
}

.link-text {
  color: #3498db;
  text-decoration: underline;
  cursor: pointer;
}

.link-text:hover {
  color: #2980b9;
}

.script-content-container {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.script-text-container {
  margin-top: 10px;
}

.script-text-container p {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  background-color: #9c4dff;
  color: #fff;
  border: none;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.copy-button:hover {
  background-color: #d32f2f;
}

@media only screen and (max-width: 600px) {
  .script-card {
    width: calc(100% - 20px);
  }
}
