:root {
    --text-dark: rgb(10, 10, 10);
    --text-light: #fbf2f2;
    --text-muted: #595959;

    --background-color: rgb(247, 247, 247);
    --background-color-brighter: rgb(255, 255, 255);
    --background-color-darker: rgb(238, 236, 236);
    --accent-colour: #f56565;
    --accent-colour-2: #3bb54a;
    --tag-colour: #e5e5e5;

    --border: 3px solid rgb(10, 10, 10);
    --border-thin: 1px solid rgb(10, 10, 10);

    --fcolor-1: #E6BC;
    --fcolor-2: #99a9bf;
    --fcolor-3: #99bf9a;
    --fcolor-4:	#bdbf99;
    --fcolor-5: #cecece;
    --fcolor-6: #ffbbda;
    --fcolor-7: #c0e4f6;
    --fcolor-8: #c1fba4;
    --fcolor-9:	#e6bc87;
    --fcolor-10: #e8cff8;    
    --fcolor-default: #99bf9a;
}


html {
    font-size: 14px;
}



body {
    /* Sets the shared font characteristics, so that that they can be inherited globally */
    
    font-family: "SF Pro Display","SF Pro Icons","Helvetica Neue","Public Sans", sans-serif;
    color: var(--text-dark);
    line-height: 1.45;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
}
 
.header,
.main{
    width: 100%;
    margin-top: 1rem;
    margin: 0 auto;
    max-width: 85rem;

}



.header{
    padding: 0 2rem;
    
}

.main{
    /*Give  right to grow  and take all available space*/
    flex-grow: 1;
    padding: 3rem 1.5rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;

}


.header__logo{
    display: flex;
    align-items: center;
    height: 4rem;
    color: inherit;
    text-decoration: none;
    
}

.header__logo:hover{
    color: var(--accent-colour);
}

.logo__icon{
    height: 3rem;
    width: 3rem;
}

.logo__name{
    font-size: 1.2rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.nav-container{
    
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    border-bottom: var(--border);
    
}

.nav{
    display: flex;
    flex-direction: row;
    justify-content: center;
    
    
}

.nav__link{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 0.5rem;
    text-decoration: none;
    color: inherit;
}

.nav__link:not(:last-child){
    margin-right: 1rem;
}

.nav__link:hover{
    color: var(--accent-colour);
    margin-bottom: -4px;
    
}

.nav__link--active{
    background: var(--accent-colour);
    color: var(--text-light);
}

.nav__link--active:hover{
    
    color: inherit;
}

.nav__item{
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}



.flash_messages{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    color: var(--accent-colour);
    font-weight: 600;
}



/* Button styles that we'll share across our site */
.button {
    /* In order to easily position our buttons, we're making them block level elements */
    display: block;

    /* Removes any outlines added when the button is in focus */
    outline: none;

    /* Setting the cursor to pointer indicates to a user that the button is a clickable element */
    cursor: pointer;

    /* Again, with buttons we have to be explicit about inheriting font properties */
    font-size: inherit;
    font-family: inherit;

    /* Slows the background colour change effect when we hover over the button, making
            it take 0.1s with an accelerating colour change */
    transition: background 0.1s ease-in;
}

/* Utility class to use on links within text. */
.link {
    text-decoration: none;
    color: var(--accent-colour);
    white-space: nowrap;
}

.link:hover {
    text-decoration: underline;
}


.user__logo{
    width: 3rem;
    

}

.logout_icon,
.user_icon{
    display: flex;
    height: 2rem;
    width: 2rem;
    min-width: 1rem;
    
}

.user_icon:hover{
    stroke: var(--accent-colour);
}


#preview {
    position: absolute;
    border: 1px solid var(--accent-colour-2);
    background: #ffffff;
    padding: 2px;
    display: none;
    color: var(--accent-colour)
  }