/* Genel ayarlar */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
}

header {
  /*
  background-color: #007bff;
  color: #fff;
  */
  background-color: #003366; /* daha koyu mavi */
  color: #ffffff; /* beyaz yazı */
  /*padding: 30px 20px;*/
  padding: 0 0 0 0.5rem;
  text-align: center;
}

header p {
  color: #f0f0f0; /* Açık gri-beyaz karışımı */
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  margin-top: 20px;
}

/* Faktöriyel hesaplama bölümü */
.calculator input[type="number"] {
  width: auto;
  padding: 12px;
  font-size: 18px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.calculator button {

  padding: 12px 18px;
  /*
  background-color: #007bff;
  color: #fff;
  */
  background-color: #006400; /* koyu yeşil */
  color: #ffffff;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 5px 0;
  transition: background-color 0.3s ease;
}

.calculator button:hover {
  background-color: #004d00;
}


.result {
	width:90%;
  font-size: 20px;
  font-weight: bold;
  margin-top: 15px;
  word-break: break-all;
  padding: 20px;
}

canvas {
  margin-top: 20px;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* Aksiyon butonları */
.actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions button {
  flex: 1;
  min-width: 150px;
}

.actions input[type="text"] {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Konu anlatımı */
.konu-anlatimi {
  margin-top: 40px;
}

.konu-anlatimi h2 {
  color: #007bff;
}

.konu-anlatimi ul {
  padding-left: 20px;
}

.konu-anlatimi li {
  margin-bottom: 8px;
}

/* FAQ - Accordion */
.faq-section {
  margin-top: 40px;
}

.accordion-item {
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 3px rgba(0,0,0,0.1);
}

.accordion-button {
  width: 100%;
  padding: 15px;
  background-color: #1d3557; /* koyu mavi */
  color: #ffffff;
  border: none;
  text-align: left;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.accordion-button:hover {
  background-color: #e63946; /* canlı kırmızı */
  color: #ffffff;
}


.accordion-content {
  padding: 15px;
  background-color: #fff;
  display: none;
  border-top: 1px solid #ccc;
}

.accordion-content.active {
  display: block;
}

/* Footer */
footer {
  background: #343a40;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
  font-size: 14px;
}



/*AYRI*/


body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f8;
  color: #333;
}

header {
  /*
  background-color: #007bff;
  color: white;
  */
  background-color: #003366; /* daha koyu mavi */
  color: #ffffff; /* beyaz yazı */
  text-align: center;
  padding: 10px 10px;
}

.container {
  max-width: 960px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

input[type="number"],/*
button */{
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

button {
  background-color: #28a745;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #218838;
}

.result {
  font-weight: bold;
  margin: 15px 0;
  background: #f1f3f5;
  padding: 20px;
  border-radius: 6px;
}

#txtPreview {
  font-family: 'Segoe UI', sans-serif;
  padding: 20px;
  color: #000;
  background: white;
  margin-top: 40px;
}

.txt-wrapper {
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;
}

#pdfChart {
  margin-top: 20px;
}


.faktoriyel-tablo {
  margin-top: 40px;
}

.faktoriyel-tablo h2 {
  color: #007bff;
  margin-bottom: 15px;
}

.responsive-table {
  overflow-x: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 360px;
}

.responsive-table th,
.responsive-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.responsive-table tr:hover {
  background-color: #f1f1f1;
}





/* Responsive */
@media (max-width: 768px) {
  .actions {
    flex-direction: column;
  }

  .actions button,
  .actions input[type="text"] {
    width: 100%;
  }
  
.txt-wrapper {
  padding: 10px;
}
  
  #txtPreview {
  padding: /*20*/0px;
  margin-top: 40px;
}


/* Faktöriyel hesaplama bölümü */
.calculator input[type="number"] {
  width: 50%;
}

.calculator button {
	width: 50%;
}


.calculator {
    display: flex
;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.result {
	width:100%;
	padding: 20px;
}

header {
  /*
  background-color: #007bff;
  color: white;
  */
  background-color: #003366; /* daha koyu mavi */
  color: #ffffff; /* beyaz yazı */
  text-align: center;
  padding-top: 0;
  padding-bottom:0.5em;
}

h1{margin-block-start: 0em;
margin-block-end: 0em;
}

.container {
    margin-top: 0;
}

}

@media (max-width: 600px) {
  .responsive-table table {
    font-size: 14px;
  }

  .responsive-table th,
  .responsive-table td {
    padding: 10px;
  }
}
