/* Copyright (c) 2017 Roland Horváth. All Rights Reserved. */

/* Header */
#header {
    position: fixed;
    width: 100%;
    /*max-width: 1440px;*/
    /* margin-left: calc(50% - 720px); */
    margin: 0 auto;
    box-sizing: padding-box;
    z-index: 1;
    transition: 0.25s ease-out;

    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
}

/*#header.fade {
    transition: 0.5s ease-in-out;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(32, 37, 43, 0));
    background: linear-gradient(rgba(28, 37, 48, 0.6), rgba(28, 37, 48, 0));
}

/*#header.transparent {
    /*background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(32, 37, 43, 0.01));*/
    /*background: #374149;*/

    /*background: rgba(0, 0, 0, .5);
    background: rgba(55, 65, 73, .5);
    background: rgba(21, 25, 28, .5);
    background: rgba(32, 39, 43, 0.5);
    background: rgba(27, 36, 47, 0.5);
}*/

#header .background {
    background: linear-gradient(rgba(28, 37, 48, 0.6), rgba(28, 37, 48, 0));
    background: linear-gradient(rgba(23, 31, 40, 0.73), rgba(18, 24, 31, 0));
    background: linear-gradient(to bottom, hsla(214.74, 23.46%, 15.88%, 0.52) 0%, hsla(214.74, 23.46%, 15.88%, 0.502) 7.9%, hsla(214.74, 23.46%, 15.88%, 0.472) 14.2%, hsla(214.74, 23.46%, 15.88%, 0.438) 19.7%, hsla(214.74, 23.46%, 15.88%, 0.402) 24.8%, hsla(214.74, 23.46%, 15.88%, 0.365) 29.7%, hsla(214.74, 23.46%, 15.88%, 0.328) 34.5%, hsla(214.74, 23.46%, 15.88%, 0.291) 39.2%, hsla(214.74, 23.46%, 15.88%, 0.253) 44%, hsla(214.74, 23.46%, 15.88%, 0.216) 48.9%, hsla(214.74, 23.46%, 15.88%, 0.18) 53.9%, hsla(214.74, 23.46%, 15.88%, 0.144) 59.1%, hsla(214.74, 23.46%, 15.88%, 0.11) 64.6%, hsla(214.74, 23.46%, 15.88%, 0.078) 70.5%, hsla(214.74, 23.46%, 15.88%, 0.049) 76.9%, hsla(214.74, 23.46%, 15.88%, 0.024) 84%, hsla(214.74, 23.46%, 15.88%, 0.006) 91.9%, hsla(214.74, 23.46%, 15.88%, 0) 100%);
    /* opacity: 0; */

    position: absolute;
    top: 0; right: 0; bottom: -12px; left: 0;
    z-index: -1;

    transition: 0.25s linear
}

#header.fade .background {
    opacity: 1;
}

#header.blur {
    /*background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(32, 37, 43, 0.01));*/
    /*background: #374149;*/

    background: rgba(0, 0, 0, .5);
    background: rgba(55, 65, 73, .5);
    background: rgba(21, 25, 28, .5);
    background: rgba(32, 39, 43, 0.5);
    background: rgba(5, 19, 38, 0.4);
    -webkit-backdrop-filter: blur(8px);
}

#header .content {
    max-width: 1440px;
    height: 40px;
    margin: 0 auto;
    /*padding: 60px 72px;
    padding: 48px 64px;*/
    padding: 24px 64px;
    transition: 0.25s ease-out;
}

#header.blur .content {
    height: 52px;
}

#header .title {
    width: 324px;
    height: 54px;

    float: left;

    transition: 1s linear;

    animation: reveal-a 1s ease-in-out forwards;
}

#header .title .logo {
    width: 50px;
    height: 50px;

    background-image: url('https://cdn.rolandhorvath.hu/site/assets/images/logo/newer-logo-square-light.png');
    background-size: contain;
    background-repeat: no-repeat;

    margin-right: 20px;
    float: left;
}

#header .title .name.hidden,
#header .title .alt.hidden {
    transform: translateY(24px);
}

#header .title .name-container.hidden,
#header .title .alt-container.hidden {
    overflow: hidden;
}

#header .title .name,
#header .title .alt {
    transform: none;
    transition: .25s ease-out
}

#header .title .name-container {
    height: 28px;
    color: #fff;
    font-family: 'Rutan';
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -1px;
    /* margin-top: -1px; */
    float: left;
    overflow: hidden;
		padding-top: 10px;
}

#header .title .alt-container {
    height: 18px;
    color: #fff;
    font-family: 'Rutan';
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0px 0 0px 1px;
    float: left;
    overflow: hidden;
    opacity: 0.75
}

#header nav {
    float: right;
    height: 24px;
    margin: 13px 6px 0 0px;
    transition: 0.5s;
}

#header nav a {
    color: #fff;
    font-family: 'Rutan';
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    margin-left: 26px;
    transition: 0.5s;
    display: block;
    float: left;
    opacity: 1;
}

#header:not(.static) nav a {
    opacity: 0;
}

#header:not(.static) nav a:nth-child(1) {
    animation: reveal-a 1s 0.5s ease-in-out forwards;
}

#header:not(.static) nav a:nth-child(2) {
    animation: reveal-a 1s 0.7s ease-in-out forwards;
}

#header:not(.static) nav a:nth-child(3) {
    animation: reveal-a 1s 0.9s ease-in-out forwards;
}

#header:not(.static) nav a:nth-child(4) {
    animation: reveal-a 1s 1.1s ease-in-out forwards;
}

@keyframes reveal-a {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#header .toggle-button {
    width: 48px;
    height: 48px;
    float: right;
    margin: 3px;
    display: none;
    padding: 8px;
    box-sizing: border-box;

    background-image: url('https://cdn.rolandhorvath.hu/site/assets/images/icons/menu-icon.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    cursor: pointer;
}

#header .toggle-button.close {
    background-image: url('https://cdn.rolandhorvath.hu/site/assets/images/icons/close-icon.png');
}

/*#header .toggle-button .line {
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin-top: 6px;
}*/

#header.dark,
#header.dark .title,
/*#header.dark .title .name-container,
#header.dark .title .alt-container,*/
#header.dark nav a {
    color: #404040;
}

#header.dark .title .logo {
    background-image: url('https://cdn.rolandhorvath.hu/site/assets/images/logo/logo-square-dark.png');
}

#header.dark .toggle-button {
    background-image: url('https://cdn.rolandhorvath.hu/site/assets/images/icons/menu-icon-dark.png');
}


/*#header.medium .content {
    margin: 0 auto;
    padding: 40px 64px;
}
*/


@media (max-width: 900px) {

    #header .about {
        display: none;
    }

    #header .title {
        width: 50px;
    }

    #header nav a {
        margin-left: 24px;
    }
}


@media (max-width: 680px) {

    #header .content {
        padding: 30px;
    }

    #header .toggle-button {
        display: block;
    }

    #header.fade {
        background: rgba(32, 39, 43, 0.5);
        -webkit-backdrop-filter: blur(8px);
    }

    #header nav {
        position: fixed;
        display: block !important;
        top: 0; bottom: 0; left: 0; right: 0;
        width: 100vw; height: 0vh;
        margin: 0; padding: 0;
        padding-left: 24px;
        background: rgba(23, 31, 40, 0.75);
        color: #fff !important;
        transition: 0.5s ease-in-out;
        overflow-y: hidden;
        z-index: -2;

        -webkit-backdrop-filter: blur(8px);
    }

    #header .title {
        z-index: 99;
    }

    #header nav.open {
        height: 100vh;
        padding-top: calc(50vh - 144px);
    }

    #header nav a {
        color: #fff;
        display: block;
        width: 100%;
        height: 64px;
        font-size: 32px;
    }
}

@media (max-width: 420px) {

    #header .content {
        padding: 16px 24px;
        height: 42px !important;
    }

    #header .title,
    #header .title .logo {
        width: 42px;
        height: 42px;
    }

    #header .toggle-button {
        width: 34px;
        height: 34px;
        margin: 4px;
        margin-right: 0;
    }
}
