* {
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 5.6rem;
    width: 800px;
    border: 1px solid var(--color-primary);
    margin: 5rem 1rem 1rem 1rem;
    border-radius: 6px 6px 0 0;
}

.row {
    display: flex;
}

.page-header {
    display: flex;
    text-align: center;
    margin-top: 1em;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    font-weight: lighter;
}

.post-entry{
    border-radius: 5px;
    background-color: var(--color-card); 
}

.post-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-top: 0.5rem;
}

#searchbox {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--color-primary);
    margin: 0 !important;
}


.search-wrapper {
    position: relative;
    width: 100%;
}

#searchInput {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--color-text);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

#searchInput::placeholder {
    color: #888;
    font-size: 1.1em;
}

.scroll-here{
    overflow-y: auto !important;
    max-height: 600px;    
}

#searchResults {
    padding: 0;
    list-style: none;
  
}



#searchResults li {

    padding: 1rem;
    margin: 1rem 0 1rem 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#searchResults li:hover {
    background-color: var(--color-codeCard); 
    
}

#searchResults li a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.highlight-match {
    background-color: var(--color-primary);
    color: #000;
    font-weight: bold;
    padding: 0.1rem 0.15rem;
    border-radius: 2px;
}

.entry-content,
.entry-description {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.entry-header {
    font-size: 1.2rem;
    color: var(--color-text);
}

/* .entry-header::after {
    content: '➜';
    color: var(--color-primary);
    margin-left: auto;
    position: relative;
    top: 1px;
} */

#searchResults .focus {
    background-color: #3a3a3a;
    border: 2px solid var(--color-primary);
}

#regexToggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: color 0.3s ease;
}

#regexToggle:hover {
    color: var(--color-text);
}

#regexToggle.active {
    color: var(--color-primary);
}

#regexToggle svg {
    width: 23px;
    height: 23px;
}



#regexToggle:hover::after,
#regexToggle:hover::before {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {

    .search-container {
        margin: 1rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    #searchInput {
        font-size: 1.1rem;
    }

    .page-header h1 {
        font-size: 2.3rem;

    }

    .entry-header {
        font-size: 1rem;
    }

    #searchResults li {
        padding: 0.8rem;
    }

    #searchbox {
        margin: 0.2rem 0 0.5rem 0;
    }
}