:root {
    --color-pink: #ff299b;
    --color-rose: #d191b3;
    --color-yellow: #ffc94e;
    --color-black: #000;
    --color-white: #fff;
    --color-dirtwhite: #dcdcdc;
    --color-grey: #ccc;
    --color-darkgrey: #555;
}

* {
    padding: 0;
    margin: 0;
    outline: none;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "header""main""footer";
    height: 100%;
    background: radial-gradient(circle at bottom right, #2a0517, #110c01);
    position: relative;
}

header {
    grid-area: header;
    background: rgba(255, 41, 155, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

header #menu {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 4rem;
    padding: 0.4rem 1rem 0.6rem 1rem;
}

header #menu-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    display: none;
    ;
}

header #menu li a {
    font-family: 'Kensington', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    color: #000;
}

header #menu li:first-child a {
    text-transform: uppercase;
    color: var(--color-white);
}

header img {
    width: 60px;
    height: 60px;
}

header #logo {
    margin-left: 60px;
}

main {
    grid-area: main;
    margin: 0 auto;
    width: 100%;
    max-width: 1920px;
    background: #fff;
    box-shadow: -10px 0 100px rgba(0, 0, 0, 0.5), 10px 0 100px rgba(0, 0, 0, 0.5);
    bottom: 0;
    padding-top: 60px;
}

#banner {
    position: relative;
    background: radial-gradient(circle at bottom right, #2a0517, #110c01);
    padding: 7rem 0rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

#banner .image {
    display: block;
    width: 500px;
}

#banner .parallax-element {
    position: absolute;
    width: 400px;
}

#flor-esquerda {
    left: 0;
    top: 20rem;
}

#flor-direita {
    right: 0;
    top: 0;
}

#banner h2 {
    font-family: 'Kensington', sans-serif;
    text-transform: lowercase;
    color: var(--color-yellow);
    font-size: 3.1rem;
    font-weight: 500;
    margin-top: -0.8rem;
}

#banner h3 {
    font-family: 'Kensington', sans-serif;
    text-transform: lowercase;
    color: var(--color-pink);
    font-size: 2rem;
    font-weight: 500;
    margin-top: -0.4rem;
}

#banner h4 {
    font-family: 'Encode Sans', sans-serif;
    color: var(--color-yellow);
    font-size: 1rem;
    padding-top: 1.4rem;
    font-weight: 700;
    text-align: center;
}

#banner h5 {
    font-family: 'Encode Sans', sans-serif;
    color: var(--color-white);
    font-size: 1rem;
    padding-top: 0.2rem;
    font-weight: 200;
    text-align: center;
}

#banner p {
    font-family: 'Encode Sans', sans-serif;
    color: var(--color-white);
    font-size: 1rem;
    padding-top: 1.2rem;
    font-weight: 400;
    text-align: center;
}

#banner a {
    font-family: 'Kensington', sans-serif;
    background: var(--color-grey);
    font-size: 3rem;
    text-decoration: none;
    color: var(--color-black);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0rem 4rem 0.3rem 4rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

#banner a:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: -0.2rem;
    left: 0.2rem;
    background: var(--color-yellow);
    z-index: -1;
}

#inscricoes {
    position: relative;
    background-color: var(--color-yellow);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding-top: 3rem;
    padding-bottom: 5rem;
}

#inscricoes .text {
    width: 100%;
    max-width: 580px;
}

#inscricoes h2 {
    font-family: 'Kensington', sans-serif;
    text-transform: uppercase;
    color: var(--color-black);
    font-size: 6.3rem;
    font-weight: 700;
    margin-top: 1rem;
}

#inscricoes p {
    font-family: 'Encode Sans', sans-serif;
    color: var(--color-black);
    font-size: 1rem;
    padding-top: 1.2rem;
    font-weight: 400;
}

#inscricoes .buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

#inscricoes button, #inscricoes .button {
    border: none;
    font-family: 'Kensington', sans-serif;
    background: var(--color-darkgrey);
    font-size: 2.6rem;
    text-decoration: none;
    color: var(--color-black);
    font-weight: 700;
    text-transform: uppercase;
    padding: 0rem 4rem 0.3rem 4rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

#inscricoes button:after, #inscricoes .button:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: -0.2rem;
    left: 0.2rem;
    background: var(--color-pink);
    z-index: -1;
}

#inscricoes .parallax-element {
    position: absolute;
}

#folha-esquerda {
    left: 0;
    top: 20rem;
    width: 300px;
    z-index: 1;
}

#pedra-esquerda {
    left: 0;
    top: 40rem;
    width: 300px;
}

#folha-direita {
    right: 0;
    top: 22rem;
    width: 300px;
}

#pedra-direita {
    right: 0;
    top: 5rem;
    width: 220px;
}

#programacao {
    position: relative;
    background-color: var(--color-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at bottom right, #2a0517, #110c01);
    padding: 0.9rem 0rem 8rem 0rem;
}

#programacao .text {
    width: 100%;
    max-width: 580px;
}

#programacao hr {
    border: none;
    width: 100%;
}

#programacao hr.yellow {
    background-color: var(--color-yellow);
    height: 0.6rem;
}

#programacao hr.rose {
    background-color: var(--color-rose);
    height: 0.6rem;
}

#programacao hr.white {
    background-color: var(--color-dirtwhite);
    height: 0.5rem;
}

#programacao hr.darkgrey {
    background-color: var(--color-darkgrey);
    height: 0.6rem;
}

#programacao h2 {
    font-family: 'Kensington', sans-serif;
    text-transform: uppercase;
    color: var(--color-pink);
    font-size: 6.3rem;
    font-weight: 700;
    margin-top: 6rem;
    margin-bottom: 3rem;
    text-align: center;
}

#programacao p {
    font-family: 'Encode Sans', sans-serif;
    color: var(--color-white);
    font-size: 1rem;
    padding-top: 1.2rem;
    font-weight: 400;
}

#programacao ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0rem;
    padding-top: 2rem;
}

#programacao ul li {
    font-family: 'Encode Sans', sans-serif;
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

#historico {
    position: relative;
    background-color: var(--color-darkgrey);
    background-image: url(img/pedra.jpg);
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 12rem;
    mask: conic-gradient(from calc(90deg/-2) at bottom, #000 90deg, #0000 0) 50%/80px;
    z-index: 1;
}

#historico h2 {
    font-family: 'Kensington', sans-serif;
    text-transform: uppercase;
    color: var(--color-yellow);
    font-size: 6.3rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

#historico p {
    font-family: 'Encode Sans', sans-serif;
    color: var(--color-white);
    font-size: 1rem;
    padding-top: 1.2rem;
    font-weight: 400;
}

#historico #galeria {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

#historico #galeria h3 {
    font-family: 'Kensington', sans-serif;
    text-transform: uppercase;
    color: var(--color-yellow);
    font-size: 4rem;
    font-weight: 700;
    margin-top: 3rem;
    text-align: center;
}

#historico #galeria ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem 4rem;
}

#historico #galeria ul li a {
    font-family: 'Encode Sans', sans-serif;
    color: var(--color-white);
    font-size: 0.6rem;
    font-weight: 700;
    margin-top: 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
    height: 150px;
}

#historico #galeria ul li a p {
    font-size: 0.6rem;
    padding: 0.4rem 0rem 0rem 0rem;
}

#historico #galeria ul li img {
    width: 110px;
}

#historico .text {
    width: 100%;
    max-width: 580px;
}

#festival {
    position: relative;
    background-color: var(--color-pink);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 0 12rem 0rem;
    margin-top: -3rem;
    z-index: 0;
}

#festival .text {
    width: 100%;
    max-width: 580px;
}

#festival h2 {
    font-family: 'Kensington', sans-serif;
    text-transform: uppercase;
    color: var(--color-white);
    font-size: 6.3rem;
    font-weight: 700;
    margin-top: 1rem;
    text-align: center;
}

#festival h3 {
    font-family: 'Kensington', sans-serif;
    text-transform: uppercase;
    color: var(--color-black);
    font-size: 4rem;
    font-weight: 700;
    margin-top: 3rem;
}

#festival h4 {
    font-family: 'Kensington', sans-serif;
    text-transform: uppercase;
    color: var(--color-black);
    font-size: 2.4rem;
    font-weight: 700;
    margin-top: 4rem;
}

#festival p {
    font-family: 'Encode Sans', sans-serif;
    color: var(--color-black);
    font-size: 1rem;
    padding-top: 1.2rem;
    font-weight: 500;
}

#festival #equipe {
    margin-top: 3rem;
}

#festival #equipe h3 {
    font-family: 'Kensington', sans-serif;
    text-transform: uppercase;
    color: var(--color-black);
    font-size: 2.4rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

#festival #equipe p {
    font-family: 'Encode Sans', sans-serif;
    color: var(--color-black);
    font-size: 1rem;
    padding-top: 0.1rem;
    font-weight: 500;
}

#festival .parallax-element {
    position: absolute;
    width: 300px;
}

#galho-esquerdo {
    left: 0;
    top: 50rem;
}

#galho-direito {
    right: 0;
    top: 90rem;
}

footer {
    grid-area: footer;
    background: radial-gradient(circle at bottom right, #2a0517, #110c01);
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.6rem 1rem;
    margin-bottom: 1rem;
}

footer ul li a {
    font-family: 'Encode Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
}

footer ul li a img {
    width: 50px;
    margin-right: 14px;
}

#gallery-overlay {
    position: fixed;
    font-family: 'Encode Sans', sans-serif;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition-property: display, opacity;
    transition-duration: 0.25s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
}

#gallery-overlay.show {
    display: flex;
    opacity: 1;
    @starting-style {
        opacity: 0;
    }
} 


#gallery {
    position: relative;
    width: 90dvw;
    max-width: 700px;
    height: auto;
    max-height: 90dvh;
    overflow-y: auto;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

#gallery h1 {
    font-family: 'Kensington', sans-serif;
    text-transform: uppercase;
    color: var(--color-black);
    font-size: 2rem;
    font-weight: 700;
    margin-top: 1rem;
    text-align: center;
}

#gallery-close {
    background: rgba(0,0,0,0.4);
    border-radius: 100%;
    width:50px;
    height:50px;
    border: none;
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 101;
    cursor: pointer;
    padding:10px;
}
#gallery-close img{
    width: 100%;
    height: 100%;
}

#album {
    display: grid;
    list-style: none;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    align-items: start;
    padding: 2rem 0;
}

#album img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#regua, #regua2 {
    width:100%;
    max-width:1200px;
}
#regua2 {
    display:none;
}

@media (max-width: 768px) {

    header #logo {
        margin-left: 0;
    }

    #regua {
       display:none;
    }
    #regua2 {
       display:block;
    }

    header #logo-link {
        background: var(--color-pink);
        width: 100dvw;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    header #menu {
        position: fixed;
        top: 60px;
        left: 0;
        height: calc(100dvh - 60px);
        width: 100dvw;
        background: var(--color-pink);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 5rem;
        gap: 2rem;
        display: none;
        transform: translateY(-100%);
        transition-property: display, transform;
        transition-duration: 0.25s;
        transition-timing-function: ease-in-out;
        transition-behavior: allow-discrete;
        z-index: -1;
    }

    header #menu.show {
        display: flex;
        transform: translateY(0%);

        @starting-style {
            transform: translateY(-100%);
        }
    }

    header #menu-button {
        display: block;
        position: fixed;
        top: 8px;
        right: 20px;
    }

    header #menu-button img {
        width: 50px;
        height: 50px;
    }

    #banner {
        padding: 3rem 2rem;
    }

    #banner .image {
        width: 280px;
    }

    #banner h2 {
        text-align: center;
        font-size: 2.3rem;
        margin-top: 0.4rem;
    }

    #banner h4 {
        font-size: 0.9rem;
    }

    #banner h5 {
        font-size: 0.8rem;
    }

    .parallax-element {
        display: none;
    }

    #inscricoes {
        padding: 3rem 2rem;
    }

    #inscricoes h2 {
        font-size: 3rem;
        text-align: center;
    }

    #inscricoes .buttons {
        flex-direction: column;
        gap: 0rem;
    }

    #programacao .text {
        padding: 0rem 2rem 3rem 2rem;
    }

    #programacao h2 {
        font-size: 3rem;
        text-align: center;
        margin-top: 3rem;
    }

    #historico {
        padding: 1rem 2rem 6rem 2rem;
    }

    #historico h2 {
        font-size: 3rem;
        text-align: center;
        margin-top: 3rem;
    }


    #festival {
        padding: 3rem 2rem 6rem 2rem;
    }

    #festival h2 {
        font-size: 3rem;
        text-align: center;
        margin-top: 3rem;
    }

    #festival h3 {
        font-size: 3rem;
        text-align: center;
        margin-top: 3rem;
    }

    #festival h4 {
        font-size: 1.5rem;
        text-align: center;

    }

    footer span {
        display: none;
    }

    footer img {
        width: 100%;
    }

    #gallery-close {
        top: 50px;
        right: 40px;
        z-index: 101;
        cursor: pointer;
        padding:10px;
    }

}