/* Genel */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f8;
  color: #333;
}

header {
  background-color: #003366;
  color: #ffffff;
  text-align: center;
  padding: 20px;
}

h1 {
    margin-top: 0px;
    margin-bottom: 0px;
}

header p {
  color: #ccc;
  font-size: 16px;
}

/* Ana içerik */
.container {
  max-width: 960px;
  margin: 30px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.container-s {
    /* max-width: 960px; */
    margin: 20px auto;
    padding: 10px;
    /* background: #ffffff; */
    border-radius: 10px;
    box-shadow: 0 2px 12px rgb(0 0 0 / 25%);
}

/* Hesaplama Alanı */
.calculator {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

/*
.calculator input[type="number"] {
  flex: 1 1 200px;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.calculator button {
  padding: 12px 24px;
  background-color: #006400;
  color: white;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.calculator button:hover {
  background-color: #004d00;
}



.result {
  font-weight: bold;
  background: #f1f3f5;
  padding: 20px;
  margin-top: 15px;
  text-align: center;
  border-radius: 6px;
  font-size: 18px;
  word-break: break-word;
}
*/
/* Aksiyonlar */
.actions {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.actions button {
  padding: 10px 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

.actions button:hover {
  background: #0056b3;
}

.actions input[type="text"] {
  flex: 1 1 300px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

/* Konu anlatımı */
.konu-anlatimi {
  margin-top: 40px;
}

.konu-anlatimi h2 {
  color: #007bff;
  margin-bottom: 10px;
}

/* Tablo */
.faktoriyel-tablo {
  margin-top: 40px;
}

.responsive-table {
  overflow-x: auto;
  margin-top: 10px;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  font-size: 15px;
}

.responsive-table th,
.responsive-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.responsive-table tr:hover {
  background-color: #f1f1f1;
}

/* Accordion */
.faq-section {
  margin-top: 40px;
}

.accordion-item {
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border-radius: 6px;
  overflow: hidden;
}

.accordion-button {
  width: 100%;
  padding: 15px;
  background-color: #1d3557;
  color: #ffffff;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.accordion-button:hover {
  background-color: #e63946;
}

.accordion-content {
  padding: 15px;
  display: none;
  background: white;
  border-top: 1px solid #ccc;
}

.accordion-content.active {
  display: block;
}

/* Footer */
footer {
  background: #343a40;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  font-size: 14px;
}



/* Responsive */
@media (max-width: 768px) {
  .calculator {
    flex-direction: column;
  }

  .actions {
    flex-direction: column;
  }

  .actions input[type="text"] {
    width: 100%;
  }
}



body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f8;
  color: #333;
}

header {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 20px;
}

.container {
  max-width: 960px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.calculator {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.calculator input,
.calculator button {
  flex: 1 1 200px;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.calculator button {
  background-color: #006400;
  color: white;
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

.calculator button:hover {
  background-color: #004d00;
}

.result {
  margin-top: 20px;
  font-weight: bold;
  text-align: center;
  background: #f1f3f5;
  padding: 20px;
  border-radius: 6px;
}

.konu-anlatimi {
  margin-top: 40px;
}

.konu-anlatimi h2 {
  color: #007bff;
}

.responsive-table {
  overflow-x: auto;
  margin-top: 10px;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.faq-section {
  margin-top: 40px;
}

.accordion-item {
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.accordion-button {
  width: 100%;
  background: #1d3557;
  color: white;
  padding: 15px;
  text-align: left;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.accordion-button:hover {
  background: #457b9d;
}

.accordion-content {
  padding: 15px;
  background: white;
  display: none;
}

.accordion-content.active {
  display: block;
}



/* Code & Pre */
pre, code {
  background-color: #f6f8fa;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

pre {
  padding: 1em;
  margin: 1em 0;
  overflow-x: auto;
  white-space: pre-wrap; /* Satır sonlarında otomatik sarma */
  word-wrap: break-word;
}

code {
  padding: 0.2em 0.4em;
  font-size: 0.95em;
}


footer {
  background: #343a40;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
  font-size: 14px;
}


@media (max-width: 768px) {
  .calculator input,
  .calculator button {
    flex: 1 1 100%;
  }
}

