body {
    font-family: "Google Sans Display","Heebo",Arial,sans-serif;

    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    width: 100%;
    /*margin: 20px; */
    padding: 10px;
    background-color: #fff;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
    border-radius: 8px;
    overflow: hidden;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 2em;
}

#trends-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.trend-section {
    flex: 1 1 100%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.trend-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.twitter-trends-h{
    background-color: #262626;
    padding: 20px;
    margin: 0;
}

.twitter-trends-h h2, .youtube-trends-h h2, .google-trends-h h2{
    display:inline-block;
    font-size: 1.2em;
    color: #fff;
    margin: 0;
    padding-left:10px;
    vertical-align: middle;
}

.twitter-trends-icon{
    height:22px;
    fill:#fff;
    vertical-align: middle;
}

#youtube-trends{
    margin-top:50px;
    margin-bottom:50px;
}

.youtube-trends-h{
    background-color: #f2efef;
    padding: 20px;
    margin: 0;
}

.youtube-trends-h h2{
   color: #000; 
}

.youtube-trends-icon{
    height:22px;
    vertical-align: middle;
}

.google-trends-h{
    background-color: #e5e5e5;
    padding: 20px;
    margin: 0;
}

.google-trends-h h2{
   color: #000; 
}

.google-trends-icon{
    vertical-align: middle;
}

.trend-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
}

.trend-section ul li {
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s;
}

.trend-section ul li:last-child {
    border-bottom: none;
}

.trend-section ul li:hover {
    background-color: #f1f1f1;
}

.trend-section ul li a {
    text-decoration: none;
    display: block;
}

.trend-section ul li .meta {
    color: #777;
}

.error-message {
    color: red;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

.custom-scroll {
    overflow: auto; /* Enable scrolling */
}

/* For WebKit browsers (Chrome, Safari) */
.custom-scroll::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 6px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4af37, #b68c1a);
    border-radius: 6px;
    border: 3px solid #f0f0f0;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b68c1a, #a67c00);
}

/* For Firefox */
.custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #f0f0f0;
}

/* Optional: Smooth scrolling inside the custom-scroll div */
.custom-scroll {
    scroll-behavior: smooth;
}


@media (min-width: 768px) {
    #twitter-trends, #facebook-trends {
        flex: 1 1 calc(50% - 10px);
    }

    #youtube-trends, #google-trends {
        flex: 1 1 100%;
    }
}


.row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	border-bottom: 1px solid #ddd;
	padding: 10px 0;
}
.row:last-child {
	border-bottom: none;
}
.index-count {
	content: attr(data-number);
	width: 50px;
	text-align: center;
	vertical-align: top;
	align-self: flex-start;
	font-weight: 400;
	font-size: 21px;
	color: rgba(0,0,0,.54);
	line-height: 30px;
}
.details {
	flex-grow: 1;
	padding: 0 20px;
}
.details a {
	font-size: 21px;
	line-height: 30px;
	font-weight: 400;
	text-decoration: none;
	color: rgb(31, 31, 31);
}
.details-top {
	text-align: left;
	margin-bottom: 5px;
}
.details-bottom {
	text-align: left;
	color: #ababab;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	line-height: 20px;
}
.meta-count {
	text-align: center;
	width: 125px;
	overflow: hidden;
	align-self: flex-start;
}
.meta-count div {
	margin-bottom: 5px;
}
.meta-count-value{
	color: #474747;
	font-size: 22px;
	letter-spacing: -.5px;
	line-height: 30px;
	font-weight: 400;
}
.meta-count-title{
	color: #ababab;
	font-size: 11px;
	font-weight: 400;
}

@media (max-width: 600px) {
	.index-count {
		font-size: 17px;
	}
	.details a {
		font-size: 17px;
		line-height: 24px;
	}
	.details-bottom {
		font-size: 12px;
		line-height: 16px;
	}
}
