body {
    font-family: 'Roboto', sans-serif;
    background-color: #141414;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    color: #ffffff;
}

.container {
    width: 100%;
    height: 100%;
    background-color: #1c1c1c;
    padding: 20px;
    box-sizing: border-box;
}

.header {
    color: #ffffff;
    padding: 20px;
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 2px;
    background-color: #228B22; /* Orman Yeşili (Forest Green) */
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.parite-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    height: calc(100% - 160px); /* Header ve price bar'ı hesaba katın */
    overflow-y: hidden;
    justify-content: space-around;
}

.parite-item {
    background-color: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    max-height: 200px;
    overflow: hidden;
    flex: 1 1 250px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.parite-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.parite-item .pair {
    font-weight: bold;
    font-size: 1.8em;
    color: #3498db;
    margin-bottom: 10px;
}

.parite-item .price {
    font-size: 2.5em;
    font-weight: bold;
    color: #ecf0f1;
}

.parite-item .change {
    margin-top: 4px;
    font-size: 1.5em;
    font-weight: bold;
}

.parite-item .change.positive {
    color: #2ecc71;
}

.parite-item .change.negative {
    color: #e74c3c;
}

.price {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.price-text {
    margin-bottom: 4px;
}

.price-arrow {
    font-size: 0.7em;
}

.price-arrow.positive {
    color: #2ecc71; /* Yeşil */
}

.price-arrow.negative {
    color: #e74c3c; /* Kırmızı */
}

.price-bar-container {
    width: 100%;
    background-color: #000000; /* Siyah arka plan */
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    position: fixed; /* Sabit pozisyon */
    bottom: 0; /* Ekranın alt kısmına yerleştir */
    left: 0;
    z-index: 1000; /* Üstte görünmesi için yüksek z-index */
}

.price-bar {
    display: inline-block;
    white-space: nowrap;
    color: #f1c40f; /* Sarı yazı rengi */
    font-size: 1.5em;
    font-weight: bold;
    position: relative;
    left: 100%; /* Fiyat barı başlangıçta ekranın sağından gelir */
}

.price-bar-item {
    display: inline-block;
    padding: 0 40px; /* Fiyatlar arasında boşluk bırakalım */
}

.price-bar-item.positive::before {
    content: "▲ "; /* Yukarı ok simgesi */
    color: #2ecc71; /* Yeşil renk */
}

.price-bar-item.negative::before {
    content: "▼ "; /* Aşağı ok simgesi */
    color: #e74c3c; /* Kırmızı renk */
}
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes priceBlink {
    0% { background-color: inherit; }
    50% { background-color: rgba(46, 204, 113, 0.3); } /* Daha yumuşak yeşil arka plan */
    100% { background-color: inherit; }
}

@keyframes priceBlinkNegative {
    0% { background-color: inherit; }
    50% { background-color: rgba(231, 76, 60, 0.3); } /* Daha yumuşak kırmızı arka plan */
    100% { background-color: inherit; }
}

.blink {
    animation: blink 1s ease-in-out 1; /* 1 saniyede yavaşça yanıp sönme efekti */
}

.price-blink-positive {
    animation: priceBlink 1s ease-in-out 1; /* 1 saniyede yavaşça yeşil yanıp sönme */
}

.price-blink-negative {
    animation: priceBlinkNegative 1s ease-in-out 1; /* 1 saniyede yavaşça kırmızı yanıp sönme */
}

.last-update {
    font-size: 1em;
    font-weight: bold;
    color: #bdc3c7; /* Gri renkte */
    margin-top: 5px;
}


.error-message {
    position: fixed;
    bottom: 40px; /* Fiyat barının hemen üstüne yerleştir */
    left: 50%;
    transform: translateX(-50%);
    background-color: #e74c3c; /* Kırmızı arka plan */
    color: #ffffff; /* Beyaz yazı */
    padding: 10px 20px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1100; /* Fiyat barından daha yukarıda olması için */
    display: none; /* Başlangıçta gizli */
}