.header{
    position: sticky;
    top: 0;
    z-index: 2;
}

.topBarContainer{
    background-image: linear-gradient(rgba(0, 0, 0, 0.788), rgba(0, 0, 0, 0.699)) , url('/src/icons/texturebanner.png');
    color: var(--patternWhite);
}

.logo{
    width: calc(10dvw);
    flex-shrink: 1;
    position: relative;
    overflow: visible;
}

.topBarContent{
    margin: 0.4rem;
    flex-grow: 1;
    flex-shrink: 0;
    width: 50%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.topBarText{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.emergencyText{
    text-align: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--patternWhite);
    border-radius: 2px;
}

.navItemDropdown {
    position: relative;
}

.navListLink{
    cursor: pointer;
}

.dropdownMenu {
    margin-top: 0;
    position: absolute;
    top: 110%;
    left: -50%;
    background: var(--mainRed);
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s ease;
    z-index: 999;
}


.dropdownMenu li a {
    border-bottom: 2px solid transparent;
    display: block;
    padding: 0rem 0rem;
    color: var(--patternWhite);
    text-decoration: none;
    white-space: nowrap;
}

.dropdownMenu li a:hover {
    border-bottom: 2px solid var(--detailYellow);
}

.navItemDropdown:hover .dropdownMenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navItemDropdown:hover .navListLink {
    border-bottom: 2px solid var(--detailYellow);
}

/*<---------------------------  MOBILE ---------------------------------> */

@media (max-width: 430px){
    
.iconTel{
    display: none;
}
}

@media (max-width: 768px){

.topBar{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items:flex-start;
}

.topBarContent{
    margin: 0.4rem auto;
    flex-grow: 0;
    flex-shrink: 0;
    width: fit-content;
}

.logo img{
    position: absolute;
    top: 8px;
    left: 30px;
    width: 80%;
    max-width: 120px;
    min-width: 60px;
}

.icon{
    display: inline-block;
    font-size: 1.4rem;
}

.iconTel{
    font-size: 3rem;
    margin: 0 0.2rem;
}

.topBarButton{
    display: none;
    background-color: var(--mainRed);
    width: fit-content;
    white-space: nowrap;
    cursor: pointer;
    padding: 0.8rem;
    margin: 0.2rem;
    border-radius: 8px;
}

.topBarButton:hover{
    background-color: var(--hoverRed);
    transition-duration: 0.3s;
}

.donateButton{
    color: var(--patternWhite);
    text-decoration: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2%;
}

.hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 30px;
}
.headerNav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--mainRed);
    z-index: 10;
}

.headerNav.active {
    display: flex;
    justify-content: center;
}

.headerNavList {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
    list-style-type: none;
}

.headerNavList li {
    width: fit-content;
    max-width: 300px;
    margin: 0.5rem 0;
    text-align: center;
}

.navListLink {
    display: block;
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    border: 2px solid transparent;
}

.navListLink:hover{
    border-bottom: 2px solid var(--detailYellow);
}

.navListLink {
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0.4rem;
    color: var(--patternWhite);
    text-decoration: none;
    transition-duration: 0.1s;
}

.dropdownMenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.navItemDropdown.open .dropdownMenu {
    max-height: 200px;
}

.navItemDropdown:hover .navListLink {
    border-bottom: 2px solid transparent;
}

}

@media (min-width: 769px) {

.topBar{
    width: 96%;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items:flex-start;

}

.logo img{
    position: absolute;
    top: 8px;
    width: 80%;
    left: 10px;
    max-width: 120px;
    min-width: 60px;
}

.topBarText{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
}

.icon{
    display: inline-block;
    font-size: 1.4rem;
}

.iconTel{
    font-size: 2rem;
    margin: 0 0.5rem;
}

.topBarButton{
    background-color: var(--mainRed);
    width: fit-content;
    white-space: nowrap;
    cursor: pointer;
    padding: 0.8rem;
    margin: 0.2rem;
    border-radius: 8px;
}

.topBarButton:hover{
    background-color: var(--hoverRed);
    transition-duration: 0.3s;
}

.donateButton{
    color: var(--patternWhite);
    text-decoration: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2%;
}

.headerNav{
    background-color: var(--mainRed); 
}

.headerNavList{
    list-style: none;
    width: fit-content;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center; 
}

.headerNavList li {
    flex-shrink: 1;
    margin: 1rem calc(1dvw * 2);
}

.navListLink:hover{
    border-bottom: 2px solid var(--detailYellow);
}

.navListLink {
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
    padding: 0.4rem 0.3rem 0.1rem;
    color: var(--patternWhite);
}
}