main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
div.search-container{
    width: clamp(250px, 90vw, 600px);
    margin-top: 100px;
    display: flex;
    flex-direction: row;
    gap: 4px;
    flex-wrap: wrap;
}
input{
    width: clamp(250px, 90vw, 600px);
    height: 45px;
    padding: 0 90px 0 45px;
    border-radius: 24px;
    border: 2px solid dimgrey;
    background-color: transparent;
    font-size: 18px;
}
input:hover{
    border: 2px solid var(--theme-color);
}
input:focus{
    outline: none;
    border: 2px solid var(--theme-color);
}
div.input-container {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
}
div.input-container label {
    position: absolute;
    margin: 0;
    top: 55%;
    transform: translateY(-55%);
    left: 10px;
    font-size: 24px;
    color: dimgrey;
}
button.search-btn{
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 5px;
    width: 80px;
    height: 35px;
    border-radius: 28px;
    border: 1px solid var(--theme-color);
    background-color: var(--theme-color);
    color: var(--text-color-light);
    font-size: 14px;
    font-weight: bold;
}
div.search-tools-container{
    width: clamp(250px, 90vw, 600px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-left: 10px;
    padding-right: 10px;
}
div.topics-container{
    display: flex;
    flex-direction: row;
    gap: 5px;
    overflow: scroll;
    scrollbar-width: none;
    border-radius: 6px;
}
div.topics-container a{
    cursor: pointer;
    text-decoration: none;
    padding: 4px 8px;
    background-color: var(--bg-color);
    border: 1px solid dimgrey;
    border-radius: 6px;
    text-align: center;
    align-content: center;
    text-wrap: nowrap;
    font-size: 12px;
    color: var(--text-color-dark);
    height: 25px;
    font-style: italic;
}
div.topics-container a:hover{
    background-color: var(--theme-color);
    color: var(--text-color-light);
    border-color: var(--theme-color);
}
select {
    appearance: none; /* Removes default OS styles */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bg-color);
    border: 2px solid dimgrey;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 12px;
    color: var(--text-color-dark);
    cursor: pointer;
    height: 25px;
}
select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 30px; /* Space for the arrow */
}
select:focus {
    border-color: var(--theme-color);
    outline: none;
}
select:hover {
    border-color: var(--theme-color);
}
div.blogs-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    width: var(--blogs-container-width);
    gap: 15px;
    color: var(--text-color-dark);
    font-family: var(--font-roboto), sans-serif;
}
div.empty-search-result{
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--blogs-container-width);
    height: 500px;
}
div.empty-search-result p{
    color: var(--text-color-dark);
    font-size: 16px;
    font-weight: bold;
}
p.new-post-indicator{
    color: lightgreen;
    border: 1px solid lightgreen;
    position: absolute;
    left: 15px;
    top: 15px;
    font-weight: bold;
    padding: 2px 10px;
    background-color: var(--text-color-dark);
    border-radius: 5px;
}
div.blog-preview{
    position: relative;
    cursor: pointer;
    max-width: 500px;
    min-width: 250px;
    padding: 5px;
    box-shadow: 0 0 1rem 0 rgba(0, 0, 0, 0.3);
    border: 2px dashed var(--bg-color);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    transition: 0.2s all ease-in-out;
    align-items: stretch;
    height: 100%;
}
div.blog-preview:hover{
    border: 2px dashed var(--secondary-color);
}
div.blog-preview img{
    aspect-ratio: 3 / 2;
    border-radius: 5px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 10px;
}
p.blog-preview-title{
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 2px;
}
p.blog-preview-subtitle{
    font-size: 16px;
    color: var(--dim-gray)
}
p.blog-preview-posted-date{
    position: absolute;
    bottom: 5px;
    left: 5px;
    font-size: 12px;
    color: dimgrey;
    font-weight: bold;
}
div.blog-preview-hashtags{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
p.hashtag{
    background-color: #22222200;
    border: 1px solid #22222200;
    border-radius: 5px;
    color: var(--secondary-color);
    font-size: 12px;
    font-style: italic;
    font-weight: bold;
}
div.pages{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 5px;
    color: var(--text-color-dark);
    width: clamp(250px, 85vw, 600px);
}
div.pages a:first-child, .pages a:last-child{
    cursor: pointer;
    width: 80px;
    height: 35px;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    font-size: 14px;
    font-weight: bold;
}
div.pages a{
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color-dark);
    padding: 2px;
    width: 35px;
    height: 35px;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s all ease-in-out;
}
div.pages a:hover{
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}
div.pages a.active{
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}
div.pages a.disabled{
    pointer-events: none;
}
p.alt-page-indication{
    display: none;
}
@media (max-width: 610px) {
    div.pages{
        gap: 25px;
    }
    div.pages a:not(:first-child):not(:last-child) {
        display: none;
    }
    p.alt-page-indication{
        display: flex;
    }
}