:root {
    --base-clr: #f2f2f2;
    --side-bar-clr: #ffd1d1;
    --line-clr: #c8c9ce;
    --hover-clr: #c5cdf1;
    --text-clr: #0b0b0f;
    --accent-color: #d30101;
    --secondary-accent-color: #007bff;
    --secondary-text-clr: #848588;
    --nav-text-clr: #fff;
    --secondary-nav-text-clr: #fff;
    --nav-background-clr: black;

}

/*Get rid of default padding*/
*{
    margin: 0;
    padding: 0;
}

/*navbar at top of page*/
#top-navbar {
    background-color: var(--nav-background-clr);
    color: var(--text-clr);
    border-bottom: 1px solid var(--line-clr);
    position: sticky;
}

/*the big link in the left of the nav bar. Usually the home button*/
.navbar-main-link {
    display: inline-block;
    padding-top: .3125rem;
    padding-bottom: .3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    line-height: inherit;
    white-space: nowrap;
    color: var(--nav-text-clr);
}

.navbar-main-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}


/*Small links in the nav bar*/
.navbar-sub-link {
    display: block;
    padding: .5rem 1rem;
    color: var(--secondary-nav-text-clr);
}

.navbar-sub-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/*container for the feed and side bar*/
.workspace{
    border-style: dashed;
    border-width: 0px;
    border-color: var(--line-clr);
    margin-left: 5%;
    margin-right: 10%;

    display: grid;
    grid-template-columns: 20% 1fr;
}

/*sidebar properties*/
.sidebar {
    border-style: solid;
    border-width: 0px;
    border-color: var(--line-clr);
    width: 100%;
}

.sidebar ul{
    list-style: none;
}

.sidebar h1 {
    font-size: 20px;
    color: var(--secondary-text-clr);
}
/*the sidebar is comprised of li tags of class filter-element*/
.filter-element {
   
    border: var(--line-clr);
    border-right-width: 1px;
    border-right-style: solid;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    padding-bottom: 5px;
    padding-top: 5px;

    ul {
        transition: 300ms ease;
        
    }
    
}
/*This will hide a tag. it is applied to the filter containers when the dropdown buttons are placed.*/
.hide {
    
    display: none;
    transition: max-height 300ms;
}

/*define behavior for the drop down buttons next to the filter names*/
.dropdown-btn {
    border-style: none;
    background: none;

    svg {
        transition: 300ms;
        fill: var(--secondary-text-clr);
    }
}
.dropdown-btn:focus {
    outline: none;
}
.rotate svg{
    rotate: 180deg;
}


/*each filter like land sale price, building value, zoning goes in a filter container*/
.filter-container {
    width: 100%;
    border-style: solid;
    border-width: 0px;
    border-color: var(--line-clr);
    color: var(--secondary-text-clr);
    padding-left: 10px;
    /*
    display: grid;
    grid-template-columns: auto 1fr;
    */
}



/*Define behaivior for the left and right divs stored in the filter container. The right side is the checkbox*/
.filter-container-line-item {
    
    margin-top: 0px;
    display: flex
}
.filter-container-line-item-right {
    margin-left: 50px;
    margin-right: 10px;
    
}
.filter-container-line-item-left {
    flex: 1;
    margin-bottom: 0;
}


/*Filter label and drop down button appearance*/
.filter-container-label {
    padding-left: 0px;
    margin-top: 0px;
    display: flex;
}
.filter-container-label-right {
    margin-left: auto;
    margin-right: 5px;
    
}
.filter-container-label-left {
    flex: 1;
    margin-bottom: 0;
}


/*custom filter range input at the bottom of numerical filters. */
.custom-filter-container {
    width: 95%;
    display: flex;
    gap: 10%;
    /*
    input {
        width: 100%;
    }
    */
}

.custom-filter-min {
    border: 0px solid black;
    input {
        width: 100%;
    }
}
.custom-filter-max {
    border: 0px solid black;
    input {
        width: 100%;
    }
}
.custom-filter-button {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0);
    border: 0px solid black;
}
.custom-filter-button:focus {
    outline: none;
    background-color: var(--line-clr);

}

.lone-clear-button {
    margin-right: 10px;
    text-align: right;
}


/*timeframe of last filter change. */
.timeframe-div {
    margin-right: 10px;
}
.change-time-input {
    width: 100%;
}

/*info bar at the top of the feed*/
.feed-bar {
    display: flex;
    gap: 5%;
}
/*Search button in feed-bar*/
.search-button {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    height: 30px;
    padding-left: 2px;
    padding-right: 2px;

}
.search-button:focus {
    color: var(--base-clr);
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    
}


.page-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3%;
    margin-top: 10px;
}

/*Next Page and Previous Page buttons*/
.page-button {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    height: 30px;
    display: none;

}
.page-button:focus {
    color: var(--base-clr);
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

/*Dropdown for order by selector*/
.dropdown-selector {
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    height: 30px;
}


/*These next classes are for the query results*/
.single-query-result {
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    border: 1px solid var(--line-clr);
    border-radius: 5px;
    
}
.street-address {
        font-weight: bold;
        display: flex;
        justify-content: space-between;
    }
.follow-indicator {
  
    margin-right: 10px;
}
/*
.land-sale-info, .total-sale-info {
    display: flex;
    gap: 5%;
    margin-left: 10px;
    color: var(--secondary-text-clr);
}
    */
.property-fields {
    display: flex;
    gap: 5%;
    margin-left: 10px;
    color: var(--secondary-text-clr);
}

.loading-screen {
    font-size: large;
    text-align: center;
    font-weight: bold;
    animation: color-change 2s infinite alternate;
}
@keyframes color-change {
    0% {color: var(--accent-color);}
    50% {color: var(--secondary-text-clr);}
    100% {color: var(--accent-color);}
}







/*attribute display on lead_page.html*/
.attribute-container {
    display: flex;
    
    margin-left: 40px;
    margin-top: 20px;
}
.attribute-name {
    font-weight: bold;
    margin-top: 20px;
    border-bottom: var(--line-clr);
    border-bottom-width: 1px;
    border-bottom-style: solid;
}
.attribute-value {
    margin-top: 20px;
    border-bottom: var(--line-clr);
    border-bottom-width: 1px;
    border-bottom-style: solid;
}



.lead-input-field-container {
    display: flex;
    margin-left: 40px;
    margin-top: 20px;
    font-weight: bold;
    textarea {
        width: 50%; 
        padding-bottom: 100px; 
        padding-left: 2px;
    }
}
.lead-page-input {
    margin-right: 10px;
}
.disappearing-message {
    animation: fade 6s 1;
    opacity: 0%;
    font-size: 0%;
}
@keyframes fade {
    0% {opacity: 100%;
    color: var(--accent-color);
    font-size: 100%;}
    50% {opacity: 100%;}
    99% {font-size: 100%;}
    100% {opacity: 0%;
    color: #0b0b0f;
    font-size: 0%;}
}

.save-lead-button {
    color: var(--secondary-accent-color);
    background-color: var(--line-clr);
    border: 2px solid var(--secondary-accent-color);
    border-radius: 6px;
    height: 30px;
    padding-left: 2px;
    padding-right: 2px;
    width: auto;
}

.pagination-nav {
    margin: 10px;
    padding: 10px;
    text-align: center;
}

.page-heading {
    font-weight: bold;
    font-size: large;
    display: flex;
    justify-content: space-between;
}