/* Genel Stil */
:root {
  --primary-color: #03a9f4; /* Ana renk */
  --secondary-color: #fff; /* İkincil renk */
  --button-hover-color: #2196f3; /* Buton hover rengi */
  --text-color: #fff; /* Metin rengi */
  --input-border-color: ; /* Giriş alanı çerçeve rengi */
}

a[href^="http://"],
a[href^="https://"] {
  color: #0478ff;
  text-decoration: none;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-color);
  background-color: #000;
}

.navbar {
  display: flex;
  justify-content: center;
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: transparent; /* Başlangıçta şeffaf arka plan */
  transition: background-color 0.3s ease; /* Renk geçişini yumuşatır */
}

.navbar .menu-left {
  padding: 3px;
  position: absolute;
  left: 10px;
  width: 60px;
  height: 16px;
  border-radius: 10px;
  border: 1px dotted #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar .menu-center {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.navbar .nav-item {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  padding: 10px 10px;
  border-radius: 25px;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.navbar .nav-item:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Aşağı kaydırıldığında menünün siyah olmasını sağlayacak sınıf */
.navbar.scrolled {
  background-color: black; /* Aşağı kaydırıldığında siyah arka plan */
}

.content {
  max-width: 1200px;
  text-align: center;
  display: flex;
  justify-content: center; /* Yatayda ortalama */
  align-items: center; /* Dikeyde ortalama */
  margin: 0 auto; /* Yatay ortalama için */
  padding: 120px;
}

.content h1,
.content h2,
.content h3 {
  color: #03a9f4;
}

.card {
  margin: 30px auto;
  padding: 15px;
  max-width: 250px;
  border-radius: 5px;
  border: 1px solid #fff;
}

.card form input {
  display: block;
  width: calc(100% - 20px);
  margin: 15px auto;
  padding: 8px;
  border: 1px solid var(--input-border-color); /* Giriş alanı çerçeve rengi */
  border-radius: 5px;
  text-align: center;
}

.card form button {
  background: var(--primary-color); /* Buton arka plan rengi */
  color: white;
  border: none;
  width: calc(100% - 0px);
  margin: 10px auto;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.card form button:hover {
  background: var(--button-hover-color); /* Hover durumunda buton rengi */
}

.result {
  margin-top: 15px;
  color: var(--text-color); /* Sonuç metni rengi */
}

.products {
  width: 100%; /* Konteynerin tamamını kullanmak için %100 genişlik verildi */
  display: flex;
  flex-wrap: wrap; /* Ürünlerin sayfaya sığmayınca alt satıra geçmesini sağlar */
  justify-content: space-around; /* Ürünleri yatayda ortalamak için */
  gap: 15px; /* Ürünler arasındaki boşluk */
}

.products div {
  padding: 0 10px;
  border-radius: 5px;
  line-height: 1.4;
  border: 1px solid #fff;
  box-sizing: border-box; /* Kenarlık dahil genişlik hesaplaması için */
  flex: 1 1 calc(25% - 30px); /* Her bir ürünün genişliği %25 olacak şekilde hesaplanır ve boşluklar çıkarılır */
  max-width: calc(25% - 30px); /* Genişlik sınırlaması */
}

.id {
  text-align: center;
  color: red;
}

.name {
  text-align: justify;
  color: var(--text-color);
}

.oldPriceLabel,
.oldPriceValue,
.newPriceLabel,
.newPriceValue,
.discountLabel,
.discountValue,
.dateLabel,
.dateValue {
  display: table-cell;
  vertical-align: middle;
  padding: 2px 5px;
}

.oldPriceLabel,
.newPriceLabel,
.discountLabel,
.dateLabel {
  text-align: left;
}

.oldPriceValue,
.newPriceValue,
.discountValue,
.dateValue {
  text-align: right;
}

.oldPriceLabel,
.oldPriceValue {
  color: red;
}

.newPriceLabel,
.newPriceValue {
  color: greenyellow;
}

.discountLabel,
.discountValue {
  color: orange;
}

table {
  border-collapse: collapse;
  border: none;
  width: 100%;
}

table th {
  text-align: center; /* Ortala */
  color: red;
  padding: 5px 5px;
}

table th,
table td {
  border: none;
  padding: 5px 5px;
}
