@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #000;
    color: #f8f9fa;
}

header {
    background-color: rgba(20, 20, 20, 0.9) !important;
    backdrop-filter: blur(10px);
    padding: 0.3rem 0.6rem; /* Reduced vertical padding */  
}
.slider-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6); /* yar覺 saydam siyah arka plan */
  color: #fff;
  padding: 10px 10px;
  border-radius: 8px;
  font-size: 0.9rem; /* Font boyutunu küçült */
  max-width: 90%;
  text-align: center;
  z-index: 10;
  line-height: 1.3em; /* Satır yüksekliğini ayarla */
  max-height: 3.9em; /* 3 satır için (1.3em * 3) */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Metni 3 satırla sınırla */
  -webkit-box-orient: vertical;
}
.slider-title {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem; /* Font boyutunu daha da küçült */
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  letter-spacing: 1px; /* Harf aralığını biraz küçült */
  background: linear-gradient(90deg, #00f0ff, #ff00c8, #00f0ff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowFlow 3s ease-in-out infinite, flicker 2s infinite;
  filter: drop-shadow(0 0 10px #00f0ff);
  z-index: 10;
  white-space: normal; /* Çok satırlı başlıklar için */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Başlığı 3 satırla sınırla */
  -webkit-box-orient: vertical;
  line-height: 1.3em; /* Satır yüksekliğini ayarla */
  max-height: 3.9em; /* 3 satır için (1.3em * 3) */
}
.article-date {                                                                   
    color: #fff !important; /* Black color */                                     
}
@keyframes glowFlow {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.8; }
  50% { opacity: 0.4; }
  55% { opacity: 0.9; }
  60% { opacity: 0.5; }
  70% { opacity: 1; }
}


header h1 {
    color: #fff !important;
}

header .nav-link {
    color: #fff !important;
    font-weight: 500;
}

.card {
    background-color: transparent;
    color: #f8f9fa;
    border: 1px solid #333;
    margin-bottom: 1.5rem;
    flex-direction: row;
    height: 130px; /* Fixed height for smaller cards */
    overflow: hidden;
}

.card:hover {
    border-color: #555;
}
.logo {
    width: 150px;
    height: 40px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
  }
.card-img-left {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-top: 20px;
    border-radius: 0.5rem;
    align-self: center; /* Vertically center the image */
    margin-left: 0.8rem; /* Add some margin to the left */
}
.source-logo {
    width: 110px;
    height: 110px;
    margin-top: 20px;
    border-radius: 0.5rem;
    align-self: center; /* Vertically center the image */
    margin-left: 0.8rem; /* Add some margin to the left */
}
.card-body {
    padding: 1rem;
    flex-grow: 0.1; /* Allow card body to take remaining space */
}
.content-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-top: 10px;
    border-radius: 0.5rem;
    align-self: center; /* Vertically center the image */
    margin-left: 0.8rem; /* Add some margin to the left */
}
.card-title {
    font-size: 0.9rem; /* Reset font size slightly */
    font-weight: bold;
    line-height: 1.4em;
    margin-bottom: 0.5rem; /* Space between title and meta */
}

.card-text {
    font-size: 0.8rem;
}

.card-body h3.text-white span {
    white-space: normal; /* Allow text to wrap */
}


.card-meta {
    font-size: 0.7rem;
    color: #aaa !important;
}

/* Animated Underline */
.animated-underline {
    position: relative;
    text-decoration: none;
}

.animated-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #0d6efd;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.animated-underline:hover::after,
.animated-underline:focus::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.bg-dark {
    background-color: #1a1a1a !important;
}

.sidebar-widget {
    padding: 1rem;
    margin-bottom: 1.5rem;
    background-color: #1a1a1a;
    border-radius: 0.25rem;
}

.sidebar-widget h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.sidebar-widget .list-unstyled li a {
    text-decoration: none;
    color: #f8f9fa;
}

.sidebar-widget .list-unstyled li a:hover {
    color: #0d6efd;
}

.footer {
    background-color: #1a1a1a;
    color: white;
}

a {
    color: #0d6efd;
}

.text-muted {
    color: #aaa !important;
}

.text-muted a {
    color: #aaa !important;
    text-decoration: none;
}

.text-muted a:hover {
    color: #fff !important;
}

.border-bottom {
    border-bottom: 1px solid #333 !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(100%); /* Beyaz ikonları siyaha çevir */
}
#featuredSlider .carousel-item img {
    max-height: 350px;
    object-fit: cover;
    object-position: top; /* Added to make the image show from the top */
    border-radius: 1rem;
}
.slider-frame {
  position: absolute;
  bottom: 0; /* Stick to the bottom */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #00f0ff;
  z-index: 10;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  max-width: 130%; /* Allow full width */
  width: 200%; /* 10% left and 10% right margin */
}

.slider-frame span {
  display: inline-block;
  color: #ffffff;
  animation: riseUp 0.4s ease-out forwards;
  opacity: 0;
  transform: translateY(100%);
  animation-delay: calc(var(--i) * 0.01s);
}

.slider-frame .space {
  width: 0.5em; /* boşluk genişliği */
  animation: none;
  opacity: 1;
  transform: none;
}

@keyframes riseUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-card {
    background-color: transparent;
    color: #f8f9fa;
    border: 1px solid #333;
    margin-bottom: 1.5rem;
    flex-direction: column; /* Vertical layout */
    height: 100%; /* Let the content define the height */
    overflow: hidden;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: scale(1.05);
    border-color: #555;
}

.game-card .card-img-top {
    width: 100%;
    height: 200px; /* Fixed height for the image */
    object-fit: cover;
}

.game-card .card-body {
    padding: 1rem;
    text-align: center;
}

.game-card .card-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0;
}

.game-card .card-title a {
    color: #f8f9fa;
    text-decoration: none;
}

.game-card .card-title a:hover {
    color: #0d6efd;
}

.guide-image-left {
    float: left;
    max-width: 300px;
    margin-right: 20px;
    margin-bottom: 10px;
}
.guide-card {
    background-color: transparent;
    color: #f8f9fa;
    border: 1px solid #333;
    margin-bottom: 1.5rem;
    flex-direction: column; /* Vertical layout */
    height: 100%; /* Let the content define the height */
    overflow: hidden;
    transition: transform 0.2s;
    aspect-ratio: 1 / 1; /* Make it square */
}

.guide-card:hover {
    transform: scale(1.05);
    border-color: #555;
}

.guide-card .card-img-top {
    width: 100%;
    height: 70%; /* Adjust height to leave space for text */
    object-fit: cover;
}

.guide-card .card-body {
    padding: 1rem;
    text-align: center;
    height: 30%; /* Take remaining height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-card .card-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0;
}

.cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #212529;
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 1050;
}

.cookie-consent-banner p {
    margin: 0;
    display: inline;
}

.cookie-consent-banner a {
    color: #0d6efd;
    text-decoration: underline;
}

.cookie-consent-banner .btn {
    margin-left: 15px;
}

.grid-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    margin-bottom: 1.5rem;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.grid-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.grid-card .card-body {
    padding: 1rem;
    flex-grow: 1;
}

.grid-card .card-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    max-height: 3.6em; /* 2 lines with 1.8em line-height */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.fixed-height-card {
    height: 250px; /* You can adjust this value */
    display: flex;
    flex-direction: column;
    position: relative; /* Add relative positioning */
}

.fixed-height-card .card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Ensure image is in the background */
}

.fixed-height-card .card-body {
    position: relative; /* Changed from absolute to relative */
    z-index: 2; /* Ensure body is on top of the image */
    color: white;
    /* background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); */ /* Moved to .slider-frame */
    /* margin-top: auto; */ /* No longer needed */
    width: 100%;
    padding: 0; /* Remove padding, .slider-frame will have it */
    pointer-events: none; /* Allow clicks to pass through */
    -ms-overflow-style: none;  /* for Internet Explorer and Edge */
    scrollbar-width: none;  /* for Firefox */
}

.fixed-height-card .card-body::-webkit-scrollbar {
    display: none; /* for Chrome, Safari, and Opera */
}

.card-type-label {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(0, 128, 0, 0.8); /* Green-like background */
    color: white;
    padding: 3px 8px;
    border-radius: 0 0 0 0.25rem; /* Apply radius only to bottom-left */
    font-size: 0.7em;
    font-weight: bold;
    z-index: 100; /* Increased z-index */
}

.fixed-height-slider .carousel-item,
.fixed-height-slider .carousel-item img {
    height: 250px !important; /* Same as .fixed-height-card */
    width: 100% !important;
    object-fit: cover;
}

.fixed-height-card .slider-frame {
    position: absolute; /* Position it over the image */
    bottom: 0; /* Stick to the bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for centering */
    width: calc(100% - 2rem); /* Take full width with some padding */
    max-width: 100%;
    white-space: normal;
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%); /* Stronger gradient */
    border-top: 1px solid #00f0ff;
    padding: 1rem;
    padding-top: 2rem; /* More padding at the top to push text down */
    border-radius: 0;
    text-align: center;
    user-select: none; /* Prevent text selection */
    pointer-events: auto; /* Re-enable pointer events for the text block */
    /* Remove all height and clamping restrictions from the container */
}

/* Adjust the meta text below the new title frame */
.fixed-height-card .card-text {
    font-size: 0.7rem;
    text-align: center; /* Center the meta text */
}

.grid-card.aideas-card {
    background-image: url('/images/aideaslogo.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: transparent !important; /* Override .grid-card's background-color */
}

.aideas-card .slider-frame {
    background: transparent;
    border: none;
}

.fixed-height-card .card-body pre,
.fixed-height-card .card-body code {
    overflow-x: auto;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
}

.fixed-height-card .card-body pre::-webkit-scrollbar,
.fixed-height-card .card-body code::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 10px 0;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 120s linear infinite;
}

.marquee-item {
    display: inline-block;
    margin-right: 50px;
    font-size: 1.1em;
    color: #f8f9fa;
}

.marquee-item .type {
    font-weight: bold;
    color: #0d6efd;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.crypto-marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: #28a745; /* Green background for crypto */
    color: #fff;
    padding: 5px 0;
    font-size: 0.9em;
    white-space: nowrap;
    box-sizing: border-box;
}

.crypto-marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: cryptoMarquee 40s linear infinite; /* Adjust speed as needed */
}

.crypto-marquee-item {
    display: inline-block;
    margin-right: 30px;
    font-weight: bold;
}

@keyframes cryptoMarquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.game-ad-slider {
    width: 90px;
    height: 40px;
    margin: 0 5px; /* Reduced margin to move it closer to the logo */
    overflow: hidden;
    border-radius: 5px; /* Optional: rounded corners */
    flex-shrink: 0; /* Prevent it from shrinking */
}

.game-ad-slider .carousel-item,
.game-ad-slider .carousel-item img {
    width: 90px;
    height: 40px;
    object-fit: cover; /* Ensure images cover the area */
}
.list-item-small-font {
    font-size: 0.65em; /* Slightly smaller than default */
    padding: 0.5rem 1rem; /* Adjust padding if needed */
}
/* Styles for Tool Pages */
/* Styles for Tool Pages */
.tool-card {
    background-color: #1a1a1a !important;
    color: #f8f9fa !important;
    border: 1px solid #333;
    flex-direction: column; /* Override default row direction */
    height: auto; /* Override fixed height */
}
.tool-card .card-header, .tool-card .card-footer {
    background-color: transparent;
    color: #f8f9fa;
}
.tool-card .card-body {
    background-color: #000 !important; /* Explicitly set to black */
    color: #f8f9fa;
}
.tool-card .form-control {
    background-color: #333;
    color: #f8f9fa;
    border-color: #555;
}
.tool-card .form-control::placeholder {
    color: #888;
}
.tool-card .form-control:focus {
    background-color: #444;
    color: #f8f9fa;
    border-color: #0d6efd;
    box-shadow: none;
}
.tool-card .form-check-label {
    color: #f8f9fa;
}
.tool-card .form-range::-webkit-slider-thumb {
    background: #0d6efd;
}
.tool-card .form-range::-moz-range-thumb {
    background: #0d6efd;
}
.tool-card .input-group-text, .tool-card .btn-outline-secondary {
    background-color: #333;
    border-color: #555;
    color: #f8f9fa;
}
.tool-card .btn-outline-secondary:hover {
    background-color: #444;
}
.tool-card h1, .tool-card h2, .tool-card h5, .tool-card p, .tool-card label, .tool-card span {
    color: #f8f9fa;
}
.tool-card .text-muted {
    color: #aaa !important;
}
.tool-card .bg-light {
    background-color: #333 !important;
}
