﻿.myheader {
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color:white;
}
.header-top {
    display: flex;
    flex-direction: row;
    margin-left: 15%;
    margin-right: 15%;
}

.header-container {
    display: flex;
    flex-direction: row;
    justify-content: right;
    flex-wrap:wrap;
}

.header-container-item {
    padding: 0px 20px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.header-picture-container {
    height: auto;
    width: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor:pointer;
}

.header-picture {
    width: 80%;
    height: auto;
    display: block;
}

.header-link-label {
    font-size: 0.6rem;
    line-height: 1;
}
.preapproval-button {
    text-decoration:none;
    width: 200px;
    color: #d62929;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 0.7rem;
    text-align: center;
    background-color: transparent;
    border: 1px solid #d62929;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: pointer;
    margin:15px;
}

    .preapproval-button:hover {
        color: black;
        border: 1px solid black;
    }


.mynavbar {
    padding-left: 14%;
    padding-right: 14%;
    display: flex;
    flex-direction: row;
    background-color: black;
    justify-content: center;
}

.navbar-item {
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: row;
    font-size:0.8rem;
    font-weight:600;
    
}

    .navbar-item:hover {
        background-color: rgb(214,41,41);
    }

.navbar-sub-item-container {
    position: absolute;
    left: 0;
    top: 100%;
    background-color: white;
    width: 170px;
    display: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Add shadow */
}

.navbar-item:hover .navbar-sub-item-container {
    display: block;
}

.nvabar-sub-item {
    text-decoration:none;
    padding: 4px 10px;
    color: black;
    font-size: 0.6rem;
    display:block;
}

    .nvabar-sub-item:hover {
        color: rgb(214,41,41);
    }

.phone-navbar-control {
    display: none;
}
.navbar-search-container {
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: row;
    font-size: 0.8rem;
    font-weight: 600;
}
.navbar-search-items-container {
    position: absolute;
    left: 20px;
    top: 100%;
    background-color: gray;
    width: 250px;
    display: block;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
}
.navbar-search-item {
    text-decoration: none;
    background-color:white;
    padding: 4px 10px;
    color: black;
    font-size: 0.9rem;
    margin:5px 0;
    display: block;
}

@media screen and (max-width: 1000px) {

    .phone-navbar-control-icon {
        color: red;
        font-size: 2.4rem;
        padding:5px;
    }
    .phone-navbar-control-opened {
        background-color: black;
        color:white;
    }
    .mynavbar {
        flex-direction: column;
        display: none;
        max-height:400px;
        overflow-y:auto;
    }
    .navbar-item:hover {
        background-color: black;
    }

    .navbar-item {
        margin-left: 5%;
        margin-right: auto;
        display: block;
        padding-bottom:5px;
    }


    .navbar-sub-item-container {
        position: relative;
        left: 0;
        top: 0;
        background-color: white;
        width: 170px;
        display: none;
        background-color: black;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }

    .navbar-item:hover .navbar-sub-item-container {
        display: block;
    }


    .nvabar-sub-item {
        color: white;
    }

    .phone-navbar-control {
        display: block;
        position: fixed;
        top: 5px;
        right: 10px;
        min-height: 45px;
        min-width: 45px;
        background-color: white;
    }

    .header-container {
        justify-content:left;
    }
    .header-container-item {
        padding: 5px 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        max-width:50%;
    }

    .header-top {
        flex-direction: column;
        margin-left: 0%;
        margin-right: 0%;
    }
    .navbar-search-container {
        margin-left: auto;
        margin-right: 5%;
        display: block;
        padding-bottom: 5px;
    }
    .navbar-search-items-container {
        position: relative;
        left: 0;
        top: 0;
        background-color: white;
        width: 250px;
        display: block;
        background-color: gray;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }
}
