/* bilgi.css */
body {
    font-family: Arial, sans-serif;
    background-color: #006699;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}






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

/* === 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;
  }
}



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













.container {
    background-color: #b3004d;
    width: 90%;
    max-width: 760px;
    margin: 36px auto;
    padding: 22px 22px 56px 22px;
    border-radius: 8px;
    color: white;
    position: relative;
    box-sizing: border-box;
    min-height: 320px;
}


h2 {
    text-align: center;
    color: white;
    background-color: #b3004d;
    
}

.question {
    background-color: #006699;
    padding: 14px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
}

.options {
    margin-top: 16px;
}

.options button {
    display: block;
    width: 100%;
    background-color: black;
    color: white;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    border: 2px solid white;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
}

.options button:hover { background-color: #b3004d; }

.options button.correct {
    background-color: #2ecc71;
    border-color: #1e7a3a;
}

.options button.wrong {
    background-color: #e74c3c;
    border-color: #8b1f1f;
}

.options button.selected {
    outline: 4px solid #ffd54f;
}

.buttons {
    margin-top: 12px;
    text-align: center;
}

#next-btn, #finish-btn, #restart-btn, #restart-btn2, #start-btn {
    padding: 10px 14px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

#start-btn { background-color: #2f8fef; color: #fff; }
#next-btn { background-color: green; color: white; }
#finish-btn { background-color: dodgerblue; color: white; }
#restart-btn, #restart-btn2 { background-color: orange; color: white; }

#next-btn[disabled] { opacity: 0.5; cursor: default; }

label { display:block; margin-top:10px; color:white; font-weight:bold; }
#username {
    width: 70%;
    padding: 8px;
    border: 4px solid #0e0c0c;
    color: #5c0606;
    background-color: #c9f1b4;
    border-radius: 6px;
    margin-top: 6px;
    font-size: 15px;
}

/* Sayaç - alt orta */
.counter {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 12px;
    background: rgba(0,0,0,0.12);
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

#score {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

#fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

#creator {
    position: absolute;
    bottom: 6px;
    right: 12px;
    font-size: 12px;
    font-style: italic;
    color: white;
}

@media (max-width:480px){
    .container { padding-bottom:70px; }
    #username { width: 100%; }
    .question { font-size:18px; }
}
/* Container giriş animasyonu */
@keyframes rainbowBounce {
    0% { transform: scale(0.5) rotate(0deg); background-color: #ff4d4d; }
    20% { transform: scale(1.2) rotate(10deg); background-color: #ff9933; }
    40% { transform: scale(0.9) rotate(-10deg); background-color: #ffff66; }
    60% { transform: scale(1.1) rotate(10deg); background-color: #66ff66; }
    80% { transform: scale(0.95) rotate(-10deg); background-color: #66ccff; }
    100% { transform: scale(1) rotate(0deg); background-color: #b3004d; }
}

.container {
    animation: rainbowBounce 2s ease-out;
    animation-fill-mode: forwards;
}
