/* flex and container classes */
.container{
    max-width: 1200px;
    margin: 0 auto;
    overflow: auto;
}

.overflow-container{
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

.flex {
    display: flex;
    justify-content: space-around;
    align-items:flex-start;
}


/* Header and Navbar/menu */

.navbar {
    background-color: rgb(252, 252, 252);
    color: var(--theme-red-dark);
}

.navbar .overflow-container {
    height: 3.5em;
}

.text-logo{
    font-family: "Roboto Serif", serif !important;
    font-size: 1.5em;
    padding-left: 0.25em;
    color: var(--theme-red-dark);
}

/* Dropdown menu */
/* Menu Styles */

.third-level-menu
{
    text-align: left !important;
    position: absolute;
    top: 0;
    right: -220px;
    width: 220px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.third-level-menu > li
{
    height: fit-content;
    background: var(--theme-white);
}

.second-level-menu
{
    text-align: left !important;
    position: absolute;
    top: 3.5em;
    left: 0;
    width: 200px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.second-level-menu > li
{
    position: relative;
    height: fit-content;
    background: var(--theme-white);
}

.second-level-menu > li:last-child, .third-level-menu > li:last-child, .second-level-menu > li:last-child > a:hover, .third-level-menu > li:last-child > a:hover{
    border-radius: 0px 0px 10px 10px !important;
}

.third-level-menu > li:first-child, .third-level-menu > li:first-child > a:hover {
    border-radius: 0px 10px 0px 0px;
}

.second-level-menu > li:hover { 
    background-color:rgb(202, 184, 184) !important;
}

.second-level-menu a:hover { 
    color: white !important;
    background-color: var(--theme-red-dark) !important;
}

.top-level-menu
{
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-level-menu > li
{
    text-align: center;
    position: relative;
    float: left;
    height: 3.5em;
    width: 140px;
    background: transparent;
}

.top-level-menu li:hover > ul
{
    /* On hover, display the next level's menu */
    display: inline;
}

/* Menu Link Styles */

.top-level-menu a /* Apply to all links inside the multi-level menu */
{
    transition: 0.25s;
    font-family: "Roboto", sans-serif;
    font-weight: 600;
    color:rgb(60, 60, 60);
    text-decoration: none;
    padding: 0 5px 0 5px;
    
    /* Make the link cover the entire list item-container */
    display: block;
    line-height: 3.5em;
}

.top-level-menu a:hover { 
    background-color: var(--theme-red-dark);
    color: var(--theme-white);
}

ul.second-level-menu a{
    padding: 0.5em;
}

/* -------------- FOOTER ----------------- */

footer{
    background-color: var(--theme-black);
    color: var(--theme-white);
    font-family: "Roboto", sans-serif;
    padding: 20px 0;
    text-align: left;
}

.logo{
    width: 100px;
}

.footer-row1 {
    display: none;
}

.footer-row1 p{
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 0px;
    font-size: 14px !important;
}

ol.footer-menu {
    padding: 20px 0;
    list-style-type: none;
    font-size: 14px;
    width: 150px;
    line-height: 1.6;
}

ol.footer-menu li a{
    line-height: 1.8;
    color: var(--theme-white);
    text-decoration: none;
}

li.footer-menu-heading{
    padding-bottom: 10px;
}

.footer-icons{
    padding-top: 10px;
}

.social-media-icon{
    width: 25px;
}

.transparent-logo{
    /* background:rgb(216, 171, 155); */
    display: flex;
    padding: 0px;
    height: 100%;
}

.transparent-logo img{
    max-height: 3.5em;
    padding: 0.5em;
    width:auto;
}


 /* small devices (phones, 767px and down) */
 @media only screen and (max-width: 767px){

    .overflow-container{
        padding: 0px 0px !important;
    }

    .navbar .flex{
        justify-content: start !important; 
    }

    .navbar{
        height: 3.5em;
        text-align: left;
    }

    .text-logo{
        margin: 0;
        font-size: 1.2em;
        padding-left: 12px;
    }

    .transparent-logo{
        padding: 5px;
        height: 100%;
        align-items: center;
        justify-content: center;
        margin: auto;
    }
    
    .transparent-logo img{
        height: 100%;
        padding: 3px;
    }

    .footer-row2{
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.2em 0.5em;
    }

    ol.footer-menu{
        width: 50%;
        padding: 1.2em 0.5em;
        font-size: 1em;
    }

    .logo{
        width: 100%;
        padding-top: 0.5em;
    }
    
    
    
    li.footer-menu-heading{
        padding-bottom: 0.2em;
    }
    
    .footer-icons{
        padding-top: 0px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start !important;
    }
    
    .social-media-icon{
        width: 2.25em;
    }
    
    #footer-about{
        display: flex;
        justify-content: space-around;
        align-items: flex-start;
        width: 100%;
        padding-bottom: 1.5em;
    }
    
    #footer-about li{
        display: inline-block;
        width: 33%;
        padding: 0 0.3em;
    }

    #footer-about p.address{
        display: inline !important;
    }

    .navbar ul{
        display: none;
    }
   
    .app-footer-container{
        display: flex;
        flex-direction: column;
    }
   
    .app-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        flex-shrink: 0;
        background: #f4f4f4;
        color: #444;
        padding: 0.75em;
        font-size: 0.55em;
        margin-top: 0.55em;
    }
    
    .app-footer ul {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }
    
    .app-footer ul li {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .app-footer ul li i {
        font-size: 4em;
    }

    .footer-about{
        background-color: grey;
    }

}

@media (min-width: 767px){
    .navbar .flex{
        justify-content: space-between;
    }

    /*  
    Sticky Footer Solution
    by Steve Hatcher 
    http://stever.ca
    http://www.cssstickyfooter.com
    */

    html, body {height: 100%;}

    #wrap {min-height: 100%;}

    #main {
        overflow:auto;
        padding-bottom: 20em;
    }  /* must be same height as the footer */

    footer {
        height: 20em;
    }

    #footer {
        position: relative;
        margin-top: -20em; /* negative value of footer height */
        height: 20em;
        clear:both;
    } 

    /*Opera Fix*/
    body:before {/* thanks to Maleika (Kohoutec)*/
    content:"";
    height:100%;
    float:left;
    width:0;
    margin-top:-32767px;/* thank you Erik J - negate effect of float*/
    }
}