body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    overflow: hidden;
    color: #ffffff;
    position: relative;
}
#sahneContainer {
    opacity: 1;
    transition: opacity 1s ease; /* Geçiş süresi */
}
#themeControl {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 10px;
    background-color: transparent;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}
#diagramScene {
    display: flex;
    position: fixed;
    left:0px;
    justify-content: center;
    align-items: center;
    z-index: 1;
    width: 90vw; /* Ekranın %90 genişliğini kaplayacak */
    height: 75vh; /* Ekranın %75 yüksekliğini kaplayacak */
    margin: 0 auto; /* Ortalanmış konum */
    background-color: transparent; /* Koyu arka plan rengi */
    pointer-events: none;
    /* İçerik taşması için kaydırma  overflow: clip;*/
}

/* Daha küçük ekranlarda yapı duyarlı kalacak */
@media (max-width: 768px) {
    #diagramScene {
        width: 95vw;
        height: 70vh;
        font-size: 0.8rem; /* Yazıları küçült */
    }
}

#iframeContainer {
    display: none; /* İlk başta gizle */

    overflow: hidden;
    width: 100%;
    height: 100%;
    border: 1px solid #ccc;
    z-index: 9999;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.particle-label {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    border-radius: 4px;
    pointer-events: none;
}

#micButton {
    cursor: pointer; /* Fare ile üzerine gelindiğinde işaretçi değişimi */
    border-radius: 5px; /* Kenar yuvarlama (isteğe bağlı) */
 z-index: 9999;
    border: 1px solid white; /* Başlangıç kenar rengi */
    transition: border-color 0.3s; /* Kenar renginin geçiş efekti */
    color: white; /* Yazı rengi */
}


.tooltip {
    position: absolute;
    pointer-events: none; /* Tooltip'e tıklanamaz */
    z-index: 1000; /* Diğer öğelerin üstünde */
    background-color: white; /* Arka plan rengi */
    border: 1px solid #ccc; /* Kenar rengi */
    padding: 5px; /* İç boşluk */
    border-radius: 5px; /* Kenar yuvarlama */
    opacity: 0; /* Başlangıçta görünmez */
    transition: opacity 0.2s; /* Opasite geçiş süresi */
}

/* Responsive styles */
@media (max-width: 768px) {


    .tooltip {
        font-size: 10px;
        max-width: 150px;
    }
}
        #cards-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-parent, .card-child, .card-custom {
    position: absolute;
    background: #3a3a3a;
    border: 1px solid #ff5722;
    color: #ffffff;

    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transform: translate(-50%, -50%);
}

.visible {
    opacity: 1;
}

#form-container {
    position: fixed;
	padding:10px;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
   
    padding: 1px;
    border-radius: 10px 10px 10px 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#message-input {
    flex-grow: 1;
    border: none;
	
    border-radius: 20px;
    padding: 10px 20px;
    color: #black;
    background: #ffffff;
}


.btn-icon {
               background: none;
            border: none;
			margin-right:5px;
			margin-left:5px;
			color:rgba(255, 255, 255, 0.9);
			padding:5px;
            border-radius: 15px;
            cursor: pointer;
             font-size: 1.5em;
          
        }

        .listening {
            background-color: green; /* Dinleme sırasında yeşil */
        }



.serbest-kart {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 80%;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transition: opacity 0.3s ease-in-out;
    resize: both;
    overflow: auto;
    display: block;
 

}

    /* Scrollbar başlangıçta şeffaf */
    .serbest-kart::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .serbest-kart::-webkit-scrollbar-track {
        background: transparent;
    }

    .serbest-kart::-webkit-scrollbar-thumb {
        background: transparent; /* Şeffaf */
        border-radius: 10px;
        transition: background 0.3s ease-in-out;
    }

        /* Üzerine gelindiğinde neon rengi */
        .serbest-kart::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 255, 200, 0.8); /* Neon mavi-yeşil */
            box-shadow: 0 0 5px rgba(0, 255, 200, 0.8);
        }

.kontrol-satir {
    display: block; /* Her satırı blok seviyesinde yaparak alt alta dizilmesini sağlıyoruz */
    margin-bottom: 10px; /* Satırlar arasında boşluk */
}

.kontrol-yazi {
    font-size: 14px; /* Daha küçük yazı boyutu */
    margin-bottom: 5px; /* Yazı ile sonuç arasında boşluk */
    font-family: 'Arial', sans-serif; /* Tane tane ve okunabilir bir yazı tipi */
}

.kontrol-sonuc {
    font-size: 16px; /* Daha küçük yazı boyutu */
    margin-bottom: 5px; /* Sonuç ile bir sonraki satır arasında boşluk */
    font-weight: bold; /* Kalın yazı */
    font-family: 'Arial', sans-serif; /* Tane tane ve okunabilir bir yazı tipi */
}




.chart-container {
    text-align: center;
   
}
#circleChart {
margin:10px 25px 0px 25px;

}
.neon {
    fill: none;
    stroke-width: 8; /* Çevre çizgisi kalınlığını küçültüyoruz */
    stroke-linecap: round;
    stroke-dasharray: 565.48; /* Çevre uzunluğu */
    stroke-dashoffset: 565.48; /* Başlangıçta çevre tamamlanmamış */
}

.text {
    font-family: Arial, sans-serif;
    font-size: 20px; /* Metin boyutunu küçültüyoruz */
    text-anchor: middle;
    fill: white;
    font-weight: bold;

}

.subtext {
    font-family: Arial, sans-serif;
    font-size: 11px; /* Alt yazı boyutunu küçültüyoruz */
    text-align:center;
    margin-bottom:5px;
    text-anchor: middle;
    color: white;
    fill: white;
    margin-top: 10px; /* Daha az boşluk bırakıyoruz */
}



.sonuc {
    font-size: 18px;
    font-weight: bold;
}
.fade-in {
    opacity: 1;
    animation: fadeIn 0.1s forwards;
}
.fade-in-tip2 {
    animation: fade-in-tip2 5s ease-in forwards; /* forwars eklenerek son durumu koru */
    opacity: 0; /* Başlangıçta görünmez */
}

@keyframes fade-in-tip2 {
    from {
        opacity: 0; /* Başlangıçta tamamen görünmez */
    }

    to {
        opacity: 1; /* Son durumda tamamen görünür */
    }
}
.combined-bar-chart {
    position: absolute;
    font-family: 'Arial', sans-serif;
    background: rgba(0, 0, 50, 0.7);
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 8px;
    color: white; /* Yazı rengini beyaz yapar */
}



@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.bar:hover {
    transform: scaleX(1.05);
    transition: transform 0.3s;
}

rect {
    cursor: pointer;
}
.toros {
    border-width:thin;
    font-family: 'Arial', sans-serif;
    background: rgba(0, 0, 50, 0.7);
    border: 1px solid #ccc;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    padding: 5px;
    color: #fff;
    position: relative;
    transition: background 0.3s;
}

    .toros:hover {
        cursor: pointer;
        background: rgba(0, 0, 50, 0.8);
    }

    .toros i {
        display: none;
        position: absolute;
        top: 10px;
        right: 10px;
        color: #fff;
        font-size: 20px;
    }

    .toros:hover i {
        display: block;
    }

    .toros h2 {
        font-size: 12px;
        color: #00ffff;
    }

    .toros p {
        font-size: 7px;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .toros .card-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }



.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px;
    cursor: pointer;
}
.konsol {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 35%;
    height: 0;
    background-color: none;
    color: #fff;
    display: none;
    overflow-y: auto;
    transition: height 0.5s ease-in-out;
    z-index: 1000;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 2px;

    /* Scrollbar'ı gizlemek için aşağıdaki stiller eklendi */
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* Internet Explorer ve Edge */
}

.konsol::-webkit-scrollbar {
    display: none;               /* Chrome, Safari, Opera */
}


/* Animasyon tanımı */
@keyframes slide-up {
    from {
        opacity: 0; /* Başlangıçta görünmez */
        transform: translate(-50%, 50%); /* Kutuyu sayfanın altına it */
    }

    to {
        opacity: 1; /* Görünür hale getir */
        transform: translate(-50%, 0); /* Normal pozisyona getir */
    }
}

/* Suggestion kutusu */
#suggestion-box {
    display: none;
    border: 1px solid #ccc;
    z-index: 9999;
    position: fixed;
    padding: 10px;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    font-family: 'Arial', sans-serif;
    background: rgba(0, 0, 50, 0.7);
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: #fff;
    opacity: 0; /* Başlangıçta görünmez */
    transition: background 0.3s;
}

    /* Açıldığında animasyon uygula */
    #suggestion-box.show {
        display: block; /* Görünür yap */
        animation: slide-up 0.5s ease-out forwards; /* 0.5 saniyede yukarı kaydır ve kalıcı yap */
    }

.konsol-acik {
    height: 30vh;
}

.log-entry {
    margin: 0;
    background: none;
    padding: 1px 0;
    color: inherit;
    font-family: monospace;
    font-size: 14px;
    white-space: nowrap; /* Tek satır görünüm */
    overflow: hidden;
    text-overflow: ellipsis; /* Metin taşarsa "..." ekle */
}

.log-hata {
    color: #ffcccc; /* Hata metni için kırmızı ton */
}

.log-bilgi {
    color: #ffffff; /* Bilgi metni için beyaz */
}
