/* Ortak kapsayıcı: Hem formu hem rastgele soruları aynı genişlikte tutar */
.main-content {
  max-width: 900px; /* Dilediğiniz genişlik */
  margin: 0 auto;   /* Ortala */
  padding: 20px;
  box-sizing: border-box;
}

/* SVG Başlık için örnek stil (isteğe bağlı) */
.custom-svg {
  display: block;
  margin: 0 auto;
  width: calc(100% - 20px);
  height: 100%;
  overflow: visible;
  padding: 0;
}
.custom-svg text {
  text-transform: uppercase;
  animation: stroke 5s infinite alternate;
  stroke-width: 2;
  stroke: #1999f7;
  font-size: 120px;
  dominant-baseline: central;
  text-anchor: middle;
}
@keyframes stroke {
  0% {
    fill: rgba(72, 138, 20, 0);
    stroke: #1999f7;
    stroke-dashoffset: 25%;
    stroke-dasharray: 0 50%;
    stroke-width: 2;
  }
  70% {
    fill: rgba(72, 138, 20, 0);
    stroke: #1999f7;
  }
  80% {
    fill: rgba(72, 138, 20, 0);
    stroke: #1999f7;
    stroke-width: 3;
  }
  100% {
    fill: #1999f7;
    stroke: #1999f7;
    stroke-dashoffset: -25%;
    stroke-dasharray: 50% 0;
    stroke-width: 0;
  }
}
/* Soru formu */
#chat-form {
  width: 100%;
  margin: 20px 0; /* Form ile üst başlık arasında boşluk */
  text-align: center;
}
#question {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  resize: none;
}
.custom-button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #1999f7;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}
.custom-button:hover {
  background-color: #1180d2;
}

/* Yükleme göstergesi */
#loading {
  font-size: 16px;
  color: #1999f7;
  text-align: center;
  display: none; /* Başlangıçta gizli */
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #1999f7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Cevap kutusu */
#answer {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

/* Rastgele Sorular */
.random-questions-section {
  width: 100%; /* .main-content içinde tam genişlik */
  margin: 30px auto;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* "Rastgele Sorular" başlığı */
.fancy-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  color: #1999f7;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  margin-bottom: 30px;
}
.fancy-heading::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 4px;
  bottom: 0;
  left: 25%;
  background: linear-gradient(to right, #1999f7, #057d5f);
  border-radius: 2px;
}
.fancy-heading {
  text-shadow: 2px 2px 4px rgba(25, 153, 247, 0.3);
}

/* İki sütun düzeni */
.questions-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.questions-column {
  width: 48%;
}
.questions-column ul {
  list-style: none;
  padding: 0;
}
.questions-column li {
  background: #f8f8f8;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
  border: 1px solid #e0e0e0;
}
.questions-column li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.questions-column li a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}
.questions-column li a:hover {
  text-decoration: underline;
}

/* Responsive düzen (Mobil görünüm) */
@media (max-width: 768px) {
  .questions-container {
    flex-direction: column;
    gap: 0;
  }
  .questions-column {
    width: 100%;
  }
}
/* Arama formu kapsayıcısı */
.search-form {
  max-width: 90%;
  margin: 2rem auto;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Input alanı */
.search-form input[type="text"] {
  flex-grow: 1;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: border-color 0.3s ease;
  outline: none;
}

.search-form input[type="text"]:focus {
  border-color: #1999f7;
}

/* Buton stili */
.search-form button {
  background-color: #1999f7;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;  /* Metnin tek satırda kalmasını sağlar */
}

.search-form button:hover {
  background-color: #1180d2;
}

/* Responsive: Dar ekranlarda form elemanlarının alt alta gelmesi */
@media (max-width: 480px) {
  .search-form {
    flex-direction: column;
    gap: 15px;
  }
  
  .search-form button {
    width: 100%;
  }
}
.all-questions-button-container {
  text-align: center; /* Butonun ortalanması için */
  margin: 20px 0;
}

/* Tüm sorular butonu*/

.all-questions-button {
  display: inline-block;
  background-color: #1999f7;
  color: #fff;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.all-questions-button:hover {
  background-color: #1180d2;
  color: #fff; /* Hover durumunda da yazı rengini beyaz yapıyoruz */
}