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

body {
  font-family: 'Arial', sans-serif;
  min-height: 100vh;
  padding: 40px;
  background: linear-gradient(-45deg, #74ebd5, #ACB6E5, #FF9A9E, #FBD786);
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
  align-items: center;
  color: #fff;
}

h1 {
  text-align: center;
  font-size: 3em;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}
.container{
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 50px;
  max-width: 1300px;
  margin: auto;

}

.box {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  width: 100%;
  min-height: 220px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  transition: transform 0.3s;
}

h2 {
  font-size: 2em;
  margin-bottom: 15px;
  text-align: center;
  color: #fff;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 12px 15px;
  margin-top: 10px;
  margin-bottom: 25px;
  border: none;
  border-radius: 20px;
  font-size: 1.4em;
  outline: auto;
  background: rgba(255,255,255,0.2);
  color: #fff;
  transition: 0.3s;
}
textarea{
  height: 50px;
  resize: none;

}

input[type="text"]:focus,
textarea:focus {
  background: rgba(255,255,255,0.3);
}

button {
  padding: 12px 25px;
  background-color: #fff;
  color: #333;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2rem;
  transition: background-color 0.3s, transform 0.2s;
  margin-top: 20px;
  margin-bottom: 20px;
  margin: 10px auto;

}

button:hover {
  background-color: #eee;
  transform: scale(1.05);
}

#answer,
#summary,
#ideas,
#defination {
  margin-top: 15px;
  padding: 15px;
  background: rgba(255,255,255,0.2);
  border-radius: 15px;
  min-height: 50px;
  font-size: 1.1em;
  color: #fff;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
  transition: 0.3s;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


@media (max-width: 1024px) {
  .container {
    grid-template-columns: 1fr; /* 2 se 1 column */
    gap: 30px;
    padding: 0 20px;
  }

  h1 {
    font-size: 2.2em;
  }

  h2 {
    font-size: 1.6em;
  }

  input[type="text"],
  textarea {
    font-size: 1.1em;
  }

  button {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  body {
    padding: 20px;
  }

  h1 {
    font-size: 1.8em;
  }

  .box {
    padding: 20px;
    border-radius: 15px;
  }

  h2 {
    font-size: 1.4em;
  }

  input[type="text"],
  textarea {
    font-size: 1em;
    padding: 10px;
  }

  textarea {
    height: 80px;
  }

  button {
    width: 100%; 
    font-size: 1rem;
  }

  #answer,
  #summary,
  #ideas,
  #defination {
    font-size: 0.95em;
  }
}