.quiz-page {
    min-height: 100vh;
    background: url('../assets/images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.stats-table th,
.stats-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.stats-table th {
    background-color: #1DA1F2;
    color: white;
    font-weight: bold;
}
.leaderboard-title {
    color: #fff;
    font-size: 28px;
    margin-top: 40px;
    text-align: center;
    text-shadow: 0 0 10px #ffcc00;
}

.leaderboard-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-card {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid gold;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    color: white;
    box-shadow: 0 0 20px #ffcc00aa;
}
.top-heroes-container {
    margin-top: 60px;
    text-align: center;
    color: white;
}
.top-heroes-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.top-hero-card {
    background: rgba(0,0,0,0.5);
    border: 2px solid gold;
    border-radius: 15px;
    padding: 10px;
    width: 160px;
    transition: transform 0.3s;
}
.top-hero-card:hover {
    transform: scale(1.05);
}
.top-hero-card img {
    width: 100%;
    border-radius: 10px;
}
.top-hero-card h3 {
    color: gold;
    margin: 10px 0 5px;
}




.hero-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.hero-rank {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 6px;
}

.hero-name {
    font-size: 18px;
    font-weight: bold;
    margin-top: 8px;
}

.hero-count {
    font-size: 14px;
    opacity: 0.8;
}


.quiz-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.quiz-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    margin: 80px auto 0;
}

.quiz-container {
    position: relative;
    z-index: 2;
    background: rgba(128, 0, 32, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.quiz-screen {
    display: none !important;
}

.quiz-screen.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quiz-intro {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.quiz-button {
    background: linear-gradient(45deg, #ff0000, #ff6b6b);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 1rem;
}

.quiz-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.quiz-button:active {
    transform: scale(0.95);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.option-button {
    background: rgba(128, 0, 32, 0.95);
    color: white;
    padding: 1rem 2rem;
    border: 2px solid #ffd700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-button:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.02);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #ff0000, #ffd700);
    width: 0;
    transition: width 0.3s ease;
}

.result-content {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    display: inline-block;
    vertical-align: middle;
}

#character-image {
    width: 300px;
    height: auto;
    margin: 1rem auto;
    display: block;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.character-name {
    color: #ffd700;
    font-size: 2.5rem;
    margin: 1rem 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.character-description {
    color: white;
    font-size: 1.2rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.trait-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.trait-tag {
    background: rgba(255, 215, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #ffd700;
    font-size: 1rem;
}

.character-quote {
    font-style: italic;
    color: #ffd700;
    margin: 1rem 0;
    font-size: 1.2rem;
}

.fun-fact {
    background: rgba(255, 215, 0, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    color: #ffd700;
}

.nickname-input {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #FFD700;
    border-radius: 8px;
    outline: none;
    margin-top: 15px;
    text-align: center;
}
.quiz-container {
    background: linear-gradient(135deg, #1b1b1b, #292929);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 0, 100, 0.3);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    animation: fadeIn 1s ease-in-out;
}

.option-button {
    display: block;
    margin: 10px auto;
    padding: 15px 25px;
    background-color: #222;
    color: #fff;
    border: 2px solid #555;
    border-radius: 10px;
    transition: 0.3s ease;
    cursor: pointer;
}

.option-button:hover {
    background-color: #ff0066;
    color: #fff;
    transform: scale(1.05);
}

.progress-bar {
    background-color: #444;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress {
    height: 12px;
    background: linear-gradient(to right, #ff0066, #ffcc00);
    width: 0%;
    transition: width 0.3s ease-in-out;
}

.character-name {
    font-size: 32px;
    color: #ffcc00;
    margin-top: 20px;
}

@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #111;
    color: #0f0;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 0 10px #0f0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.toast.show {
    opacity: 1;
}
.toast.hidden {
    opacity: 0;
}


.quiz-actions {
  flex-direction: column; /* Mobil için */
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .quiz-actions {
    flex-direction: column;
  }
}

.quiz-button, .home-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(128, 0, 32, 0.95);
    color: white;
    border: 2px solid #ffd700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    white-space: nowrap;
}

.quiz-button:hover, .home-button:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .quiz-container {
        padding: 1rem;
        margin: 1rem;
        width: 95%;
    }

    .quiz-content {
        margin: 60px auto 0;
    }

    .quiz-button, .home-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        min-width: 120px;
    }

    .options-container {
        gap: 0.8rem;
    }

    .option-button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    #character-image {
        width: 180px;
        height: auto;
    }

    .character-name {
        font-size: 1.6rem;
    }

    .character-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .trait-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    #question-text {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .quiz-page {
        padding: 1rem;
    }
    
    .quiz-actions {
        position: static;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
    }

    .quiz-button, .home-button {
        min-width: 140px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    #result-screen {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .result-content {
        width: 95%;
        margin-bottom: 1rem;
    }

    #start-screen h1 {
        font-size: 2rem;
    }

    .quiz-intro {
        font-size: 1.1rem;
    }

    .start-button {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .quiz-page {
        padding: 0.5rem;
    }

    .quiz-container {
        padding: 0.8rem;
        margin: 0.5rem;
        width: 98%;
    }

    .quiz-content {
        margin: 50px auto 0;
    }

    .quiz-button, .home-button {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        min-width: 100px;
    }

    .option-button {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    #character-image {
        width: 150px;
    }

    .character-name {
        font-size: 1.4rem;
    }

    .quiz-intro {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }

    .progress-bar {
        height: 8px;
    }


    .home-button.fixed {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .trait-tags {
        gap: 0.3rem;
    }
#question-screen.quiz-screen.active {
    display: flex !important;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

    .trait-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    #start-screen h1 {
        font-size: 1.5rem;
    }

    .start-button {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

/* Yatay ekranlar için ek düzenleme */
@media (max-height: 600px) and (orientation: landscape) {
    .quiz-content {
        margin: 20px auto;
    }

    .quiz-container {
        padding: 0.8rem;
    }

    #character-image {
        width: 120px;
    }

    .options-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quiz-section {
    display: none;
}

.quiz-section.active {
    display: block;
}

.start-btn {
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #ffd700;
    color: #ffd700;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.start-btn:hover {
    background: rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

.question-container {
    text-align: center;
}

.answer-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.answer-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: translateX(10px);
}

.result-container {
    text-align: center;
}

.character-match {
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 15px;
    background: rgba(255, 215, 0, 0.1);
}

.character-match img {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    margin-bottom: 1rem;
    object-fit: cover;
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.character-traits {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.character-traits li {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 5px;
}

.knowledge-quiz {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../assets/images/bg-dc.jpg') no-repeat center center fixed;
    background-size: cover;
}

.result-animation {
    animation: powerUp 1s ease-out;
}

@keyframes powerUp {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.home-button-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.home-button.fixed {
    display: inline-block;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    color: #ffd700;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid #ffd700;
    transition: all 0.3s ease;
}

.home-button.fixed:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.05);
}

#question-text {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.score-text {
    font-size: 2rem;
    color: #ffd700;
    margin: 1rem 0;
}

.result-message {
    font-size: 1.5rem;
    color: white;
    margin: 2rem 0;
}

/* Scroll çubuğunu tüm sayfa için güzelleştirelim */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

body::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 5px;
}

#result-screen {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
}

/* Başlangıç ekranı stilleri */
#start-screen.active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

#start-screen h1 {
    color: #ffd700;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.quiz-intro {
    color: white;
    font-size: 1.3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.start-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #e62429, #ff7f50);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(230, 36, 41, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 5;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px black;
}

.start-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 100, 100, 0.6);
    background: linear-gradient(135deg, #ff3c3c, #ff9966);
}


.start-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}


/* Quiz ekranlarının görünürlük kontrolü */
.quiz-screen {
    position: relative;
    z-index: 2;
}

.quiz-screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Sonuç ekranı butonları için stil */
.quiz-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

#question-screen {
    display: none;
    flex-direction: column;
    gap: 2rem;
}

/* Soru ekranı için özel stil */
#question-screen.active {
    display: flex !important;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

/* Soru ekranı stilleri */
#question-screen {
    text-align: center;
    padding: 2rem;
}

#question-text {
    color: #ffd700;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.progress-container {
    width: 100%;
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #800020, #ffd700);
    transition: width 0.3s ease;
}

.options-container {
    display: grid;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.option-button {
    background: rgba(128, 0, 32, 0.95);
    color: white;
    padding: 1.2rem;
    border: 2px solid #ffd700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-align: left;
    display: flex;
    align-items: center;
}

.option-button:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: translateX(10px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.option-button i {
    margin-right: 10px;
    font-size: 1.2rem;
} 

.twitter-share-button {
    background-color: #1DA1F2; /* Twitter mavisi */
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.twitter-share-button:hover {
    background-color: #0d8ddb;
    transform: scale(1.05);
}
.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: rgba(0,0,0,0.8);
  color: white;
}



.leaderboard-container {
    margin-top: 3rem;
    text-align: center;
}

.leaderboard-title {
    color: #ffd700;
    font-size: 2rem;
    text-align: center;
    margin-top: 3rem;
    text-shadow: 0 0 10px black;
}

.stats-table {
    width: 100%;
    margin: auto;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
}

.stats-table th, .stats-table td {
    padding: 1rem;
    border: 1px solid #ffd700;
    color: white;
}

.stats-table th {
    background: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}

@media (max-width: 600px) {
    .stats-table th, .stats-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .leaderboard-title {
        font-size: 1.3rem;
    }
}

#start-screen.active ~ .home-button-container {
    display: none;
}
.total-counter {
    text-align: center;
    font-size: 1.2rem;
    color: #ffd700;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px black;
}
#start-screen {
    position: relative;
    z-index: 2;
}
@media (max-width: 480px) {
    .quiz-content {
      margin: 40px auto 0;
    }
  }
  @media (max-width: 380px) {
    .start-button {
      font-size: 1rem;
      padding: 0.8rem 1.2rem;
    }
  }
    