/* Genel stil */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #121212;
  color: #fff;
}

/* Navbar */
.navbar {
  background-color: #1f1f1f;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-size:large ;
  font-style: oblique;
  font-weight: bolder;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  margin-right: 20px;
}

.navbar h2 a {
  color: #00adb5;
  text-decoration: none;
}

.dropdown {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.dropbtn {
  cursor: pointer;
  padding: 0 10px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #2c2c2c;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 173, 181, 0.2);
  z-index: 1;
  border-radius: 6px;
  text-decoration: none;

}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #3a3a3a;
}

.dropdown:hover .dropdown-content {
  display: block;
}


/* RGB geçişli bağlantılar */
a.rgb-link {
  background: linear-gradient(45deg, #ff0000, #00ff00, #0000ff, #ff0000);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rgbMove 5s infinite linear;
  text-decoration: none;
  font-weight: bold;
}

a.rgb-link:hover {
  color: white;
  text-decoration: underline;
}

/* RGB animasyonu */
@keyframes rgbMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}


.navbar nav a {
  color: rgb(233, 2, 67);
  margin-right: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar nav a:hover {
  color: #00adb5;
}

/* Giriş bölümü (ana sayfa için) */
section.hero {
  color: white;
  padding: 40px;
  text-align: center;
}

section.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

section.hero p {
  margin-top: 10px;
  color: #ccc;
  font-size: 1.1rem;
}

button#Page {
  margin-top: 20px;
  padding: 12px 28px;
  border: 2px solid black;
  border-radius: 100px;
  color: black;
  background-color: #f8f8f8;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

button#Page:hover {
  background-color: #00adb5;
  color: white;
  border-color: #00adb5;
}

/* Kart yapısı (örnek kodlar için) */
.code-section {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

.code-section h1 {
  font-size: 2.5rem;
  color: #00adb5;
  text-align: center;
  margin-bottom: 40px;
}

.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.code-card {
  background-color: #1f1f1f;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 173, 181, 0.15);
  transition: transform 0.2s ease;
}

.code-card:hover {
  transform: translateY(-5px);
}

.code-card h3 {
  color: #00adb5;
  margin-bottom: 10px;
}

.code-card p {
  color: #ccc;
  font-size: 0.95rem;
}

.code-card a {
  text-decoration: none;
}

/* Footer */
.footer {
  background-color: #1f1f1f;
  color: #888;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Mobil uyum */
@media (max-width: 600px) {
  .code-section h1 {
    font-size: 2rem;
  }

  .navbar nav a {
    margin-right: 10px;
    font-size: 0.9rem;
  }
}

.contact-section {
  max-width: 700px;
  margin: 60px auto;
  padding: 30px;
  background-color: #1f1f1f;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 173, 181, 0.2);
  text-align: center;
}

.contact-section h1 {
  font-size: 2rem;
  color: #00adb5;
  margin-bottom: 10px;
}

.contact-section p {
  color: #ccc;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #2a2a2a;
  color: white;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #00adb5;
}

.contact-form button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #00adb5;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #008d99;
}

pre {
  background-color: #1e1e1e;
  color: #00ffea;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Courier New', monospace;
}

.btn {
  margin-top: 20px;
  display: inline-block;
  background: #00adb5;
  padding: 10px 20px;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}

.btn:hover {
  background-color: #0197a3;
}

.demo-dropdown a {
  text-decoration: none;
  /* Link default gelen alt çizgi kaldırıldı */
  font-weight: 600;
  font-size: 16px;
  display: block;
  /* a elemanları Block-Level Düzeyine getirilerek alt alta gelmesi sağlandı */
}

.demo-dropdown>li {
  position: relative;
  /* içerisinde ul position:absolute değerine sahip olduğu için kapsayıcı li relative olmalı */
  display: inline-block;
}

.demo-dropdown>li>a {
  color: #fff;

}

.demo-dropdown>li ul {
  position: absolute;
  /* Açılır menü mouse üzerine gelerek açıldığında aşağıdaki öğeleri kaydırması istenmiyor. Bu yüzden absolute. */
  display: none;
  /* Açılır menü li:hover olmadığı sürece gizlencektir */
  top: 100%;
  /* Top 100% değeri parent li'ye göre hesaplanır ve li'nin bittiği noktayı göstermektedir. */
  left: 0;
  /* left:0 değeri li'nin sol başlangıç değerini referans alır ve ul'yi aynı hizda konumlandırı. */
  width: 250px;

}

.demo-dropdown>li ul li a {
  color: #333;
  padding: 10px 15px;
  border-bottom: 1px solid #e2e2e2;
}


.demo-dropdown>li:hover ul {
  display: block;
  /* Açılır menü li'nin üzerine mouse ile gelindiğinde görünür olacaktır. */
}