@import "src/assets/styles/responsive-base.scss";

:host{
    min-height: 48px;
    height: 48px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    box-sizing: border-box;
}

#header-content{
    position: relative;
    z-index: 102;
    display: flex;
    flex-grow: 1;
    height: 100%;
    align-items: center;
}

#logo{
    height: 20px;
    flex-basis: 252px;
    margin: 0 14px;
    box-sizing: border-box;
    @include screen('phone'){
        flex-basis: unset;
    }

    a{
        text-decoration: none;
    }
}

mat-icon{
    font-size: 20px;
    width: 20px;
    height: 20px;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
    cursor: pointer;
    margin: 0 10px;
}

#logo{
    img{
        height: 100%;
    }    

    #environment{
        font-weight: bold;
    }

    @include screen('phone'){
        display: none;
    }
} 
app-search-input{
    flex: 1 1 auto;
    margin: 0 22px;
}

#expander{
    flex: 1 1 0;
}

app-avatar{
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
}

#name{
    @include screen('phone'){
        display: none;
    }
}

#burger-icon{
    display: none;
    @include screen('phone'){
        display: block;
    }
}

#account-info{
    cursor: pointer;
    display: flex;
    align-items: center;
}

.mat-toolbar{
    position: absolute;
    top: -394px;
    z-index: 101;
    right: 0;
    width: auto;
    min-width: 200px;
    height: auto;
    padding: 8px 0;
    transition: top ease-in-out 0.25s;

    .navlink-container{
        display: flex;
        flex-direction: column;
        width: 100%;

        a{
            text-decoration: none;
            display: flex;
            padding: 2px 14px;
            cursor: pointer;
        }
    }

    mat-divider{
        margin: 8px 0;
    }

    .link-text{
        font-weight: normal;
        font-size: 14px;
        margin-left: 6px;
    }

    &.open{
        top: 100%;
    }
}

#download-button{
    font-size: 20px;
}

.pulse{
	border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse{
    0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(254, 159, 6, 0.9);
        background-color: rgba(254, 159, 6, 0.9);
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 10px rgba(254, 159, 6, 0);        
        background-color: rgba(254, 159, 6, 0);
	}

	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(254, 159, 6, 0);        
        background-color: rgba(254, 159, 6, 0);
	}
}

#header-login{
    text-decoration: none;
    margin: 0 12px;
    padding: 4px 8px;
    border-radius:4px;
}