:root
{
    /* max width for scaling */
    --max-width: 1100px;
}

body
{
    font-size: 22px;
    background-color: #F0F8FF;
}


#main-header
{
    background-color: red;
    padding: 0.6em 0.8em 0.6em;
    color: white;
}
#main-header div
{
    max-width: var(--max-width);
    margin: 0 auto;
}
#main-header div h1
{
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: calc(2rem + 1.75vw);
    display: inline-block;

}
h1 a
{
    color: white;
    text-decoration: none;
}
#open-search-bar-btn {
    float: right;
    text-align: center;
    font-size: 1.7em;
    background-color: white;
    border-radius: 50%;
    border: none;
    padding: 0px 10px 0px 10px;
    color: black;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}
#open-search-bar-btn:hover
{
    background-color: #ddd;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}
#sub-header
{
    background-color: white;
    padding: 0.5em;
    margin-bottom: 0.7em;
    box-shadow: 0px 3px 9px rgba(0,0,0,0.2);
    position: relative;
}
#sub-header #content-header
{
    max-width: var(--max-width);
    margin: 0 auto;
}
#content-header h2
{
    font-size: calc(1.75rem + .9vw);
}

#sub-header-search-bar
{
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    background-color: white;
    height: 100%;
    width: 100%;
    display: none;
}
#sub-header-search-bar div
{
    max-width: var(--max-width);
    margin: 0 auto;
}
#sub-header-search-bar form
{
    margin: 0 auto;
    padding: 10px;
    text-align: center;
    display: flex;
    width: 100%;
}
#search-form .search-bar
{
    border-radius: 10px 0px 0px 10px;
    margin: 0 auto;
    padding: 7px;
    flex-grow: 100;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-right: none;
}
.search-btn
{
    border-radius: 0px 10px 10px 0px;
    background-color: #ccc;
    color: black;
    border: none;
    padding: 9px;
    margin-left: -7px;
}
.search-btn:hover
{
    background-color: #aaa;
}
#filter-container
{
    border-style: solid none none;
    border-width: 1px;
    border-color: #ccc;
    padding: 10px 5px 0px;
    margin-top: 10px;
}

footer
{
    background-color: red;
    margin-top: 0.7em;
    box-shadow: 0px -3px 9px rgba(0,0,0,0.3);
}
#footer-content
{
    padding: 0.5em;
    position: relative;
    font-weight: bold;
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto;
}
#footer-content div ul li a
{
    color: white;
    text-decoration: none;
}
.footer-search
{
    padding: 10px;
}
ul
{
    list-style-type: none;
}





#content .container
{
    max-width: var(--max-width);
    margin: 0 auto;
}


.aisle-select .row .col-6
{
    text-align: center;
}
.aisle-select .row .col-6:first-child
{
    text-align: right;
}
.aisle-select .row .col-6:nth-child(2)
{
    text-align:left;
}

.aisle-select-btn
{
    background-color: white;
    padding-top: 6%;
    max-width: 95%;
    display: inline-block;
    width: 400px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.3);
    min-height: 100px;
    vertical-align: middle;
    font-size: 1.3em;
    font-weight: bold;
    color: black;
    text-decoration: none;
    text-transform: capitalize;
}
.aisle-select-btn:hover
{
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    background-color: white;
}
#content-header a 
{
    margin-right: 0.7em;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    padding: 3px 4px 5px 0px;
    width: 50px;
    height: 50px;
    text-align: center;
    vertical-align: middle;
    color: black;
    font-size: xx-large;
}
#content-header a:hover 
{
    background-color: #ddd;
}
#aisle-title
{
    display: inline;
    vertical-align: middle;
    margin-bottom: 0;
}

#filter-container
{
    display: none;
}



#brands-select {
    margin-top: 1em;
}
.brand {
    min-height: 175px;

    display: flex;
    align-items: center;
    background-color: white;
    width: 90%;
    margin: auto;
  
    margin-bottom: 0.7em;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 0 0.7em;
}
.brand-logo {
    max-width: 150px;
    max-height: 95%;
    margin-right: 10px;
    object-fit: scale-down;
    padding: 0.2em;
}
.brand-info {
    display: flex;
    flex-direction: column;
    font-weight: bold;
    font-size: 25px;
    margin: 0 auto;
    text-align: center;
    width: 75%;
}
.brand-tags {
    margin: 0 auto;
    margin-top: 5px;
}
.tag {
    background-color: #e0e0e0;
    padding: 3px 7px;
    margin: 3px;
    border-radius: 10px;
    display: inline-block;
    font-weight: normal;
}
.tag:hover {
    background-color: #bbb;
    cursor: pointer;
}
.tag-row {
    border: 1px solid silver;
    margin-bottom: 7px;
}
#tag-filters {
    padding: 5px;
}
.tag a
{
    color: black;
    text-decoration: none;
}

.brand-info-btn
{
    background-color: #e0e0e0;
    font-size: 2.5em;
    min-height: 175px;
    margin: -0.3em;
    border-radius: 0px 10px 10px 0px;
    width: 100px;
    color: black;
    border: none;
}

.brand-info-btn:hover
{
    background-color: red;
    color: white;
}

.associated-aisles
{
    border-style: solid none none;
    border-width: 1px;
    border-color: #ccc;
}
.associated-aisles-header
{
    font-size: 23px;
    font-weight: normal;
    display: block;
}

#brand-modal
{
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    overflow: auto;
}
.modal-content
{
    background-color: white;
    margin: 15% auto;
    width: 80%;
    max-width: 900px;
    padding: 25px;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.45);
    border-radius: 15px;
    animation-name: animate-from-top;
    animation-duration: 0.5s;
}

@keyframes animate-from-top {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.modal-head
{
    margin-top: -0.75em;
}


.close-modal-btn
{
    background-color: white;
    color: rgb(100, 100, 100);
    border: none;
    font-size: 1.5em;
    float: right;
}
.close-modal-btn:focus, .close-modal-btn:hover
{
    color: black;
}

.modal-logo-container
{
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-brand-logo
{
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
}
#modal-brand-name
{
    margin-top: 1em;
}


.suggest-content, .about-content
{
    background-color: white;
    padding: 1em;
    border-radius: 10px;
    box-shadow: 0px 3px 9px rgba(0,0,0,0.2);
    margin: 1em;
}

.suggest-content div:nth-child(2) div:nth-child(2)
{
    border-color: #aaa;
    border-width: 1px;
}
#brand-submission-form
{
    margin: 0 auto;
}
#brand-submission-form label
{
    display: block;
}
#brand-submission-form button
{
    display: block;
    margin-top: 0.8em;
    background-color: #ccc;
    color: black;
}
#brand-submission-form button:hover 
{
    background-color: #aaa;
}
#bnotif
{
    width: 20px;
    height: 20px;
}

textarea
{
    resize: none;
}
.required-field-indicator
{
    color: red;
}

#form-user-feedback
{
    display: none;
    text-align: center;
}
#form-user-feedback p
{
    border-style: solid;
    border-color: red;
    border-width: 1px;
    border-radius: 10px;
    text-align: center;
    max-width: 550px;
    margin: 0 auto;
    margin-bottom: 10px;
    padding: 5px;
}

@media (min-width: 992px)
{ 
    .suggest-content div:nth-child(2) div:nth-child(2) 
    {
        border-style: none none none solid;
    }
}
@media (max-width: 991px)
{
    .suggest-content div:nth-child(2) div:nth-child(2) 
    {
        border-style: solid none none none;
    }
    body 
    {
        font-size: 42px;
    }
    #open-search-bar-btn
    {
        font-size: 1.1em;
    }
    .aisle-select-btn
    {
        font-size: 0.7em;
    }
    .brand-info-btn
    {
        font-size: 1.3em;
        margin: -0.53em;
    }
}