:root {
    --bg-top: #FFFDD6;
    --bg-bottom: #CCC5B4;
    --black: #000000;
    --white: #FFFFFF;
    --maroon: #760D17;

    --menu: 24px;
    --def: 16px;
    --h1: 32px;
    --h2: 24px;
}

::selection {
    background: var(--maroon);
    color: var(--bg-top);
}

::-moz-selection {
    background: var(--maroon);
    color: var(--bg-top);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--def);
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    background: linear-gradient(
        var(--bg-top) 0%,
        var(--bg-bottom) 100%
    );
    background-repeat: no-repeat;
    min-height: 100vh;
    margin: 0px;
    padding: 0px;
    font-family:
        "Montserrat",
        Arial,
        Helvetica,
        sans-serif;
    line-height: 1.6;
    background-attachment: fixed;
    background-size: cover;
}

body.nav-locked {
    overflow: hidden;
}

body.nav-locked #btn-mobile {
    border-radius: 25px;
    padding: 12px;
    margin-left: 9px;
    margin-bottom: 5px;
    color: var(--white);
    text-decoration: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-style: solid;
    border-color: #FFFFFF51;
    border-width: 3px;
    font-size: inherit;
    width: fit-content;
    height: fit-content;
}

body.nav-locked #btn-mobile > img {
    width: 32px;
    height: 32px;
}

body.nav-locked #btn-mobile {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1000;
}

p {
    color: var(--black);
    margin-bottom: 20px;
    font-size: var(--def);
    font-family:
        "Platypi",
        Calibri,
        'Open Sans',
        sans-serif;
}

h1 {
    color: var(--maroon);
    font-weight: bold;
    font-size: var(--h1);
}

h2 {
    color: var(--maroon);
    font-size: var(--h2);
}

h3 {
    color: black;
    font-style: italic;
}

h1, h2, h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

h4 {
    font-size: 45px;
    margin: 0px;
    padding: 0px;
    height: 50px;
}

header {
    position: relative;
    z-index: 800;
    background-color: var(--maroon);
    border-radius: 0px 0px 64px 64px;
    min-height: 175px;
    height: fit-content;
}

#logos {
    height: 0px;
    position: relative;
    z-index: 500;
}

#logo {
    width: 256px;
    margin-left: 32px;
    margin-top: 32px;
    margin-bottom: 32px;
}

#logo_small {
    width: 0px;
}

nav {
    float: right;
    margin-top: 55px;
    margin-right: 25px;
    display: flex;
    flex-direction: row;
    font-family:
        "Montserrat",
        Arial,
        Helvetica,
        sans-serif;
    font-size: var(--menu);
    font-weight: bold;
    position: relative;
    z-index: 999;
}

nav a {
    border-radius: 25px;
    padding: 12px;
    margin-left: 9px;
    margin-bottom: 5px;
    color: var(--white);
    text-decoration: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-style: solid;
    border-color: #FFFFFF00;
    border-width: 3px;
}

nav.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 12vh 0px 6vh 0px;
    background-color: #000000CC;
    overflow-y: auto;
}

nav.mobile-open a {
    display: flex;
    width: 80%;
    height: 10vh;
    max-width: none;
    box-sizing: border-box;

    border-radius: 0px;
    padding: 18px 20px; 
    margin-bottom: 0px;

    border: none;
    font-size: 20px;
}

nav.mobile-open #btn-home {
    background: linear-gradient(
        90deg,
        #FFF20000 0%,
        #E6C81699 50%,
        #CC9F2C00 100%
    );
}

nav.mobile-open #btn-contact {
    background: linear-gradient(
        90deg,
        #00FFC800 0%,
        #16E39E99 50%,
        #2CC77500 100%
    );
}

nav.mobile-open a img {
    width: 32px;
    height: 32px;
}

nav a:hover {text-decoration: underline;}

nav a img {
    width: 32px;
    height: 32px;
    margin-right: 9px;
}

#btn-mobile {
    width: 0px;
    height: 0px;
    font-size: 0px;
    padding: 0px;
    border-width: 0px;
    margin: 0px;
}

#btn-mobile img {
    width: 0px;
    height: 0px;
}

#btn-home:hover {
    border-color: #CC9F2C51;
    color: #FFF200;
}

#btn-contact:hover {
    border-color: #2CC77551;
    color: #00FFC8;
}

#btn-mobile:hover {
    border-color: #760D1751;
    color: var(--black);
    text-decoration: underline;
    cursor: pointer;
}

footer {
    position: relative;
    height: 10vh;
    background-color: var(--maroon);
    border-radius: 64px 64px 0px 0px;
    font-family:
        "Montserrat",
        Arial,
        Helvetica,
        sans-serif;
    font-size: var(--menu);
    font-weight: bold;
    color: var(--white);
    padding: 0px 64px 0px 64px;
    place-content: center;
}

#copyright {
    float: left;
    max-width: 64vw;
}

#law {
    float: right;
}

#law a {
    color: var(--white);
}

#law a:hover {
    color: var(--bg-bottom);
}

#home-top {
    position: relative;
    background: linear-gradient(
        #000000 5%,
        #00000000 20%
    ), url(../assets/brass/banner.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 95vh;
    border-radius: 0px 0px 64px 64px;
    font-family:
        "Montserrat",
        Arial,
        Helvetica,
        sans-serif;
    font-size: var(--menu);
    font-weight: bold;
}

#btn-news {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
}

#btn-news div {
    margin-bottom: 40px;
    padding: 5px;
    border-style: solid;
    border-radius: 25px;
    border-width: 3px;
    border-color: #FFFFFF51;
    color: var(--white);
}

#btn-news div span {
    font-size: 32px;
    margin: 5px;
}

#live {
    width: 25vw;
    min-width: 256px;
    height: inherit;
    background: linear-gradient(
        #531B1C 0%,
        #3C080C 100%
    );
    border-radius: 0px 0px 0px 64px;
    -webkit-mask-image: linear-gradient(90deg, var(--black) 95%, transparent 100%);
    mask-image: linear-gradient(90deg, var(--black) 95%, transparent 100%);
    padding-top: 30vh;
}

#live > img {
    width: 20vw;
    border-radius: 64px;
    display: block;
    margin: auto;
}

#live > div {
    display: flex;
    flex-direction: row;
    width: 22vw;
    justify-content: center;
    align-items: center;
    gap: 16px;
    position: absolute;
    bottom: 0;
    margin-bottom: 25px;
    margin-left: 25px;
}

#date {
    display: flex;
    width: 104px;
    height: 104px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border-radius: 24px;
    background: var(--bg-top);
    font-family:
        "Montserrat",
        Arial,
        Helvetica,
        sans-serif;
}

#date > h4 {
    color: var(--maroon);
    font-size: 45px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

#date > h5 {
    color: var(--maroon);
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

#perf-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex: 1 0 0;
}

#perf-info > h2 {
    color: var(--bg-top);
    font-size: var(--menu);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0px;
}

#perf-info > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

#perf-info > div > p {
    align-self: stretch;
    color: var(--bg-top);
    font-size: var(--def);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0px;
}

#news {
    width: 960px;
    margin: 64px auto 64px auto;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
    place-items: center;
    text-align: justify;
}

#news a {
    width: 100%;
    height: 100%;
}

main > h1, main > h2, main > h3, main > p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

main > img {
    width: min(50vw, 634px);
    margin-bottom: 2rem;
    display: block;
    margin: auto;
    margin-top: 24px;
}

@media (max-width: 1560px) {
    nav {
        margin-top: 25px;
        flex-direction: column;
        flex-wrap: wrap;
        height: 150px;
    }

    #home-top {
        background: linear-gradient(
            #000000 5%,
            #00000000 30%
        ), url(../assets/brass/banner.png);
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }

    #live > div {
        flex-direction: column;
    }

    #live > img {
        border-radius: 24px;
    }
}

@media (max-width: 1000px) {
    #logo {
        width: 0px;
        margin-left: 0px;
        margin-top: 0px;
    }

    #logo_small {
        width: 128px;
        margin-left: 16px;
        margin-top: 16px;
        margin-bottom: 16px;
    }

    #copyright {
        float: left;
        max-width: 55vw;
    }

    #news {
        grid-template-columns: repeat(1, 1fr);
        width: auto;
        margin: 64px 32px 64px 32px;
        gap: 16px;
    }

    #live > img {
        width: 0px;
        height: 0px;
    }
}

@media (max-width: 800px) {
    nav a {
        border-radius: 0px;
        padding: 0px;
        margin: 0px;
        border-style: solid;
        border-color: #FFFFFF00;
        border-width: 0px;
        height: 0px;
        width: 0px;
        font-size: 0px;
    }

    nav a img {
        height: 0px;
        width: 0px;
    }

    #btn-mobile {
        border-radius: 25px;
        padding: 12px;
        margin-left: 9px;
        margin-bottom: 5px;
        color: var(--white);
        text-decoration: none;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        border-style: solid;
        border-color: #FFFFFF51;
        border-width: 3px;
        font-size: inherit;
        width: fit-content;
        height: fit-content;
    }

    #btn-mobile img {
        width: 32px;
        height: 32px;
    }

    nav.mobile-open #btn-mobile {
        position: fixed;
        top: 25px;
        right: 25px;
        z-index: 1000;
    }

    footer {
        height: 20vh;
        text-align: center;
    }

    footer span {display: inline-block;}

    #copyright {
        float: none;
        max-width: 100vw;
    }

    #law {
        float: none;
        margin-top: 12px;
    }

    #home-top {
        height: 75vh;
    }

    #news {
        grid-template-columns: repeat(1, 1fr);
        width: auto;
        margin: 64px 32px 64px 32px;
        gap: 16px;
    }

    #live {
        height: 250px;
        width: inherit;
        background: linear-gradient(
            #531B1C 0%,
            #3C080C 100%
        );
        border-radius: 0px;
        -webkit-mask-image: linear-gradient(black 95%, transparent 100%);
        mask-image: linear-gradient(black 95%, transparent 100%);
        padding-top: 0px;
    }

    #live > div {
        display: flex;
        flex-direction: row-reverse;
        height: inherit;
        width: 50vw;
        gap: 16px;
        position: absolute;
        top: 0; 
        align-items: end;
        justify-content: start;
        margin-bottom: 0px;
        margin-left: 160px;
        margin-top: 0px;
        margin-right: 25px;
        padding-bottom: 24px;
    }

    #date {
        display: flex;
        width: 104px;
        height: 104px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        border-radius: 24px;
        background: var(--bg-top);
        font-family:
            "Montserrat",
            Arial,
            Helvetica,
            sans-serif;
    }

    #date > h4 {
        color: var(--maroon);
        font-size: 45px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }

    #date > h5 {
        color: var(--maroon);
        font-size: 20px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
    }

    #perf-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        flex: 1 0 0;
    }

    #perf-info > h2 {
        color: var(--bg-top);
        font-size: var(--menu);
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        margin: 0px;
    }

    #perf-info > div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        align-self: stretch;
    }

    #perf-info > div > p {
        align-self: stretch;
        color: var(--bg-top);
        font-size: var(--def);
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        margin: 0px;
    }
}

@media (max-height: 800px) {
    #live > img {
        width: 0px;
        height: 0px;
    }
}

/* --- Betöltési előtűnés animáció --- */
@keyframes brassFadeIn {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes brassFadeInSoft {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes brassMenuDropIn {
    from {
        opacity: 0;
        transform: translateY(-80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


body > header,
body > main,
body > footer {
    animation: brassFadeIn 700ms ease-out both;
}

body > header {
    animation-delay: 80ms;
}

body > main {
    animation-delay: 220ms;
}

body > footer {
    animation-delay: 360ms;
}

body > main > * {
    animation: brassFadeInSoft 600ms ease-out both;
    animation-delay: 320ms;
}

header #logos,
header nav {
    animation: brassMenuDropIn 650ms ease-out both;
}

header #logos {
    animation-delay: 180ms;
}

header nav {
    animation-delay: 280ms;
}

nav.mobile-open {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    body > header,
    body > main,
    body > footer,
    body > main > *,
    header #logos,
    header nav {
        animation: none;
    }
}

@keyframes saxMenuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-45px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header nav {
    animation: saxMenuSlideDown 650ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

nav.mobile-open {
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    header nav {
        animation: none;
    }
}
