h1 {
    font-size: 2.1rem;
    margin-top: 10px;
}

.trending-tags-div {
    overflow: hidden;
    white-space: wrap;
    scrollbar-width: none;
    /* Hides scrollbar for Firefox */
    -ms-overflow-style: none;
    /* Hides scrollbar for IE/Edge */
    max-width: fit-content;
    max-height: 36px;
}

/* Hide scrollbar for WebKit-based browsers */
.trending-tags-div::-webkit-scrollbar {
    display: none;
}

.trending-tags-div a {
    color: #ccc;
}

.trending-tag {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 15px;
    background-color: #333;
    color: #ccc;
    font-size: .9em;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .3s ease;
}

.trending-tag:hover {
    background-color: #444;
    text-decoration: none;
}

#intro {
    position: relative;
    text-align: center;
    height: 250px;
}

#intro .background-text {
    top: -30px;
    overflow: hidden;
    font-size: 3.2em;
    line-height: 1em;
    opacity: 0.3;
}

.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    width: 50%;
    padding: 10px;
    background-color: rgb(255, 255, 255, .5);
    border-radius: 15px;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.typing-container {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    width: fit-content;
    border-right: 0.15em solid #ccc;
    /* Cursor effect */
    animation: typing 4s steps(30, end), blink-caret 1.5s step-end 20;
}

.typing-container.mobile {
    animation: typing-mobile 4s steps(30, end), blink-caret 1.5s step-end 20;
}

.typing-effect {
    display: inline-block;
    font-family: monospace;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 41ch;
    }
}

@keyframes typing-mobile {
    from {
        width: 0;
    }

    to {
        width: 24ch;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #ccc;
    }
}

.intro-btn {
    min-width: 120px;
    width: fit-content;
    color: #ccc;
}

.rank-article-container {
    position: relative;
    min-width: calc(35vh + 65px);
    height: calc(47vh + 110px);
    margin-bottom: 10px;
}

.article-rank, .rank-article {
    position: absolute;
}

.article-rank {
    line-height: 47vh;
    font-size: 12em;
    left: 0;
    opacity: 0.5;
}

.rank-article {
    left: 90px;
    width: 33vh;
}

/* iPad Screen */
@media only screen and (max-width: 1200px) {
    .trending-tags-div {
        overflow-x: auto;
        white-space: nowrap;
        max-width: fit-content;
        touch-action: pan-x;
        margin-left: 10px;
    }

    .intro-content {
        width: 70%;
        min-width: 50ch;
    }
}

/* Mobile Screens */
@media only screen and (max-width: 600px) {
    #intro .background-text {
        height: 350px;
        font-size: 2em;
        line-height: unset;
    }

    .intro-content {
        width: 90%;
        min-width: unset;
        padding: 6px;
        border-radius: 10px;
    }

    .rank-article-container {
        min-width: 100vw;
        height: 100%;
    }
    
    .rank-article {
        position: relative;
        width: 100vw;
        left: 0;
    }

    .rank-article .row-cover-container, .rank-article .thoxt-row-article {
        width: inherit;
    }

    .article-rank {
        top: -5%;
        line-height: 1em;
        font-size: 15em;
        opacity: 0.8;
        text-shadow: 2px 2px #000;
        z-index: 100;
    }
}