* { box-sizing: border-box; }
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 24px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #0b1020;
}








/* ------------------------------------------------------------------------------------ */

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  width: 97%;
  background: #000; /* siyah */
  color: #fff;
  border-radius: 30px;
  align-items: center;
  text-align: center;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-left .logo {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.nav-left .site-desc {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  align-items: center;
   background: linear-gradient(135deg, #5a25d4, #a8edea);
   width: 220px;
  height: 30px;
  border-radius: 50px;
}


.nav-left .site-desc:hover {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  align-items: center;
   background: rgb(18, 18, 143);
   color: yellow;
   width: 220px;
  height: 30px;
  border-radius: 50px;
}



.nav-right a {
  background: linear-gradient(135deg, #5a25d4, #a8edea);
  color: white;
  padding: 10px 16px;
  margin: 0 5px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.nav-right a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
   background: rgb(18, 18, 143);
   color: yellow;
}






/* Hamburger buton */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* Mobil görünüm */
@media (max-width: 768px) {
  .nav-right {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #5a25d4;
    text-align: center;
    margin-top: 10px;
    border-radius: 8px;
  }

  .nav-right a {
    display: block;
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
  }

  .nav-right.active {
    display: flex;
  }
}



/* ------------------------------------------------------------------------------------ */










.quiz-container { max-width: 960px; margin: 0 auto; }

.screen.hidden { display: none; }

.card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  color: #fff;
}

h1, h2 { text-align: center; color: #fff; margin-top: 0; }



p2 {

   color: white;
    background-color: red;

   text-align: center;
    border: 6px;
    border-color: rgb(161, 26, 26);
  border-radius: 8px;
}

p2:hover {

   color: yellow;
   background-color: blue;
   text-align: center;
    border: 6px;
    border-color: rgb(161, 26, 26);
  border-radius: 8px;
}






.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 12px 0 6px;
}
input[type="text"], input[type="number"], input, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.15);
  color: #fff;
  outline: none;
}
input::placeholder { color: rgba(255,255,255,0.85); }

button {
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transition: transform .06s ease, filter .2s ease;
}
button:hover { filter: brightness(1.05); }
button:active { transform: translateY(1px); }
.actions { display: flex; gap: 10px; justify-content: center; margin: 16px 0 6px; }

.paragraph { margin-bottom: 16px; }
.paragraph-note { margin: 8px 0 0; }

.question {
  margin: 16px 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform .2s ease;
}
.question:hover { transform: scale(1.03); }

.question-title { margin: 0 0 8px; color: #fff; font-weight: bold; }
.q-image {
  display: block;
  max-width: 320px;
  width: 100%;
  border-radius: 45px;
  margin: 6px 0 10px 0; 
  transform-origin: left top;
  transition: transform .2s ease;
}
.question:hover .q-image { transform: scale(1.03); }

.option {
  display: block;
  margin: 6px 0;
  color: #fff;
}

#result {
  text-align: center;
  font-weight: bold;
  color: #fff;
  margin: 8px 0 0;
}

/* Kutlama bandı */
#congrats {
  margin: 14px auto 0;
  max-width: 960px;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: center;
  font-weight: bold;
  color: #0b1020;
  background: rgba(255,255,255,0.85);
  display: none;
}

/* sonuçlar tablosu */
#resultsTable table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  color: #fff;
}
#resultsTable th, #resultsTable td {
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  text-align: left;
}
#resultsTable th { background: rgba(255,255,255,0.14); }
#resultsTable tr:hover { background: rgba(255,255,255,0.08); }