:root{
    --color-yellow: #ebbe5b;
}

html {
  scroll-behavior: smooth;
}

body{
    background-color: #000;
    font-family: 'FormaDJRDisplay-Light';
    font-size: 1rem;
    color: #fff;
}

header{

    font-family: 'FormaDJRDisplay-Medium';

    display: flex;
    justify-content: space-between;
    padding: 20px 80px 20px 20px;
    align-items: center;
    font-size: 1.7rem;

    img{
        width: 240px;
    }

    ul{
        display: flex;
        gap: 11rem;
    }

    #mobilemenu{
        display: none;
    }
}

#banner{
    width: 100%;

    img{
        width: 100%;
    }
}

#descubre{
    font-family: 'FormaDJRDisplay-Medium';
    color: var(--color-yellow);
    font-size: 3.2rem;
    text-align: center;
    padding: 6rem 0;

    .arrows{
        display: flex;
        flex-direction: column;
        align-items: center;
        img{
            animation: arrowanim 2s ease-in-out infinite;
            &:last-child{
                animation-delay: 0.2s;
            }
        }
    }
}

@keyframes arrowanim {
    0%{
        transform: translateY(0);
    }
    50%{
        transform: translateY(20px);
    }
}

.gridarea1{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(10, minmax(40px, auto));
 
    gap: 1.5rem 2rem;
 
    grid-template-areas:
      "img1    quote1"
      "img1    img2"
      "img1    img2"
      "img1    img2"
      "quote2  img2"
      "img3    img2"
      "img3    img2"
      "img3    img4"
      "img3    img4"
      "quote3  img4";
 
    & > * { min-width: 0; }
    
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .item-img1  { 
        grid-area: img1; 
        padding-right: 10%;
    }
    .item-img2  { 
        grid-area: img2; 
        padding-left: 5%;
    }
    .item-img3  { 
        grid-area: img3;
        padding-right: 10%; 
    }
    .item-img4  { 
        grid-area: img4; 
        padding-top: 10%;
        padding-right: 5%;

        img{
            aspect-ratio: 2 / 1.1;
            height: auto;
        }
    }
    
    .item-quote1 { 
        grid-area: quote1; 
        padding-top: 16%;
    }
    .item-quote2 { 
        grid-area: quote2; 
        text-align: right;
        padding: 7% 0;
    }
    .item-quote3 { 
        grid-area: quote3; 
        text-align: right;
        padding: 7% 10% 7% 0;
    }
}

.gridarea2{
    padding-top: 8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, minmax(40px, auto));
 
    gap: 1.5rem 2rem;
 
    grid-template-areas:
      "quote1  img5"
      "quote1  img5"
      "quote1  img5"
      "quote2  img5";
 
    & > * { min-width: 0; }
    
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    
    .item-img5  { 
        grid-area: img5; 
        padding-left: 10%;
    }
        
    .item-quote1 { 
        grid-area: quote1; 
        padding-top: 16%;
        padding-left: 5%;
    }
    .item-quote2 { 
        grid-area: quote2; 
        padding: 7% 0 7% 5%;
        font-family: 'FormaDJRDisplay-Medium';
        font-style: normal;
        font-size: 2rem;
    }
}

.quote {
    align-self: center;
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1;
}

.img6{
    padding-top: 10rem;
    width: 100%;
}

.item-quote4 {
    text-align: right;
    padding-right: 3%;
    padding-top: 3rem;
}

#campana{
    display: grid;
    grid-template-columns: 1fr 0.3fr 0.8fr;
    gap: 1rem;
    padding-top: 7%;
    padding-right: 2%;

    h3{
        font-family: 'FormaDJRDisplay-Black';
        font-size: 7rem;
        color: var(--color-yellow);
        line-height: 0.9;
    }    

    .text{
        padding-left: 5%;

        .quote{
            padding-top: 1rem;
            font-family: 'FormaDJRDisplay-Medium';
            font-style: normal;
            font-size: 2rem;
        }
    }

    .img{
        text-align: right;
        .quote{
            padding-top: 1rem;
        }
    }

    img{
        width: 100%;
    }
}

#slogan{
    display: flex;
    justify-content: space-between;
    padding: 2%;

    align-items: end;
    font-style: italic;
    font-family: 'FormaDJRDisplay-Medium';
    font-size: 2.5rem;
    line-height: 1;
    color: var(--color-yellow);

    p{
        font-style: normal;
        font-family: 'FormaDJRDisplay-Light';
        font-size: 2.3rem;
    }
}

#video{

    font-family: 'FormaDJRDisplay-Medium';
    font-size: 2.5rem;
    line-height: 1;

    .text{
        display: flex;
        justify-content: space-between;
        padding: 2%;

        .quote {
            font-style: italic;
            font-size: 1.5rem;
            line-height: 1; 
            font-family: 'FormaDJRDisplay-Light';
        }

        div{
            max-width: 830px;
        }
    }

    img{
        width: 100%;
    }
}

#live{
    max-width: 900px;
    margin: 0 auto;

    font-family: 'FormaDJRDisplay-Medium';
    font-size: 2.5rem;
    line-height: 1;

    h3{
        font-family: 'FormaDJRDisplay-Black';
        font-size: 7rem;
        color: var(--color-yellow);
        line-height: 0.9;
        margin-bottom: 1rem;
    }  
}

#makingoff{

    .row1{
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding-top: 4%;
        font-size: 1px;
    }

    img{
        width: 100%;
    }

    .video .quote{
        padding: 0 0 3% 3%;
    }

    .row1 .text{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center; 

        .quote1{
            padding-top: 15%;
        }
        
        div{

            font-family: 'FormaDJRDisplay-Medium';
            font-size: 2.5rem;
            line-height: 1;

            h3{
                font-family: 'FormaDJRDisplay-Black';
                font-size: 7rem;
                color: var(--color-yellow);
                line-height: 0.9;
                margin-bottom: 0.6rem;
            } 
        }
        
        .quote2{
            align-self: start;
            padding-left: 3%;
            padding-bottom: 5%;
        }
    }

    .row2{
        display: grid;
        grid-template-columns: 1fr 1fr;
        
        .text{
            padding-left: 3%;
            display: flex;
            align-items: center;
        }

        .img{
            display: grid;
            grid-template-columns: 1.5fr 1fr;
            align-items: end;

            .quote{
                padding-left: 5%;
                align-self: end;
            }
        }
    }

    .row3{
        display: grid;
        grid-template-columns: 1.6fr 1fr 1fr 1fr;
        gap: 1rem;
        padding-top: 7%;

        .img.bottom{
            display: flex;
            align-items: end;
            img{
                width: 60%;
            }
        }

        .quote1{
            text-align: right;
            padding-bottom: 1rem;
        }

        .img14, .img15{
            aspect-ratio: 1 / 1;
            object-fit: cover;
        }

        .img14{
            margin-bottom: 1rem;
        }
    }
}

#creditos{
    max-width: 1300px;
    margin: 16rem auto 5rem;
    text-align: center;
    font-size: 1rem;
    text-transform: uppercase;

    h3{
        font-family: 'FormaDJRDisplay-Black';
        font-size: 7rem;
        color: var(--color-yellow);
        line-height: 0.9;
        margin-bottom: 1rem;
    }

    h4{
        font-family: 'FormaDJRDisplay-Black';
        font-size: 5rem;
        color: var(--color-yellow);
        line-height: 0.9;
        margin-bottom: 1rem;
    }
    
    .title{
        font-family: 'FormaDJRDisplay-Medium';
        line-height: 1.2;
        margin-bottom: 0.6rem;
        margin-top: 3rem;
    }

    .people{
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        row-gap: 0.6rem;
        justify-content: center;
    }

    .big{
        font-family: 'FormaDJRDisplay-Medium';
        font-size: 1.5rem;
    }

    .grid{
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 2rem;

        &.mt50{
            margin-top: 8rem;
        }
    }

    .grid2{
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .idea{
        color: var(--color-yellow);
        text-transform: initial;
        padding-top: 3rem;
    }
}

@media only screen and (max-width: 1400px) {
 
    header {
        padding: 20px;
        ul {
            display: flex;
            gap: 3rem;
        }
    }

    #campana {
        grid-template-columns: 1fr 0.4fr;
        .img8 {
            display: none;
        }
    }

    #slogan {
        font-size: 1.5rem;
        p {
            font-size: 1.3rem;
        }
    }

    #video {
        .text {
            flex-direction: column;

            .quote{
                padding-bottom: 1rem;
                align-self: start;
            }
        }
    }

    #live {
        max-width: 100%;
        margin: 3rem auto;
        padding: 2%;
    }

    #campana{
        h3{
            font-size: 5rem;
        }
    }

    #makingoff {
        & .row1 .text {
            text-align: center;
            & div {
                h3 {
                    font-size: 5rem;
                }
            }
        }
    }

    #live{
        h3{
            font-size: 5rem;
        }
    }

    #creditos{
        h3{
            font-size: 5rem;
        }
    }

}


dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    background: #fff;
    width: 90%;
    max-width: 900px;
    border-radius: 5px;
    border: 1px solid #fff;
    display: none;
    opacity: 0;
    padding: 1rem;
    transform: translate(-50%, -110%);
    transition: all 750ms cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transition-property: display opacity max-width;
    transition-behavior: allow-discrete;
    margin: 0;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.5);

    &[open]{
        display: block;
        opacity: 1;
        transform: translate(-50%, -50%);

        @starting-style{
            opacity: 0;
            transform: translate(-50%, -110%);
        }
    }

    & .close{
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        width: 1.5rem;
        height: 1.5rem;
        text-align: center;
        border: none;
        border-radius: 50%;
        background-color: #000;
        color: #ffffff;
        font-size: 0.8rem;
        cursor: pointer;
        padding: 0;
        transition: background-color 0.2s;
        box-shadow: 0 0 5px 5px rgba(255,255,255,0.5);
    }

    video{
        width: 100%;
    }
}

.openvideo{
    cursor: pointer;
} 

@media only screen and (max-width: 1000px) {
    header {
        font-size: 1rem;

        img {
            width: 150px;
        }
    }

    #creditos{
        .grid{
            grid-template-columns: 1fr;
            gap: 4rem;

            &.mt50{
                margin-top: 2rem;
            }
        }
    }
}

@media only screen and (max-width: 700px) {
 
    header {
        padding: 10px 20px;
        align-items: center;
        position: sticky;
        top: 0;
        width: 100%;
        left: 0;
        background-color: #000;
        z-index: 10;

        img {
            width: 120px;
        }

        ul {
            position: absolute;
            top: 0;
            left: 0;
            transform: translateY(-100%);
            width: 100%;
            display: grid;
            text-align: center;
            padding: 2rem;
            gap: 2rem;
            transition: 500ms;
            background-color: #000;
            opacity: 0;
        }

        &:has(#mobilemenu input:checked) ul{
            transform: translateY(60px);
            opacity: 1;
            box-shadow: 0 0 10px 10px rgba(0,0,0,0.5);
        }

        &:has(#mobilemenu input:checked) #mobilemenu{
            span:nth-child(1){
                transform: rotate(45deg) translate(5px, 4px);
            }

            span:nth-child(2){
                transform: scale(0);
            }

            span:nth-child(3){
                transform: rotate(-45deg) translate(4px, -3px);
            }
        }

        #mobilemenu{
            width: 40px;
            height: 40px;
            border: 2px solid #fff;
            border-radius: 50%;            
            display: flex;
            gap: 4px;
            flex-direction: column;
            justify-content: center;
            align-items: center;

            input{
                display: none;
            }

            span{
                width: 55%;
                display: block;
                border-top: 2px solid #fff;
                border-radius: 3px;
                transition: 500ms;
            }
        }
    }

    section{
        scroll-margin: 60px;
    }

    #descubre {
        font-size: 2rem;
        padding: 2rem 0 4rem;

        & .arrows {
            & img {
                width: 40px;
            }
        }
    }

    .gridarea1{
 
        grid-template-areas:
        "img1    quote1"
        "img1    img2"
        "img1    img2"
        "img1    img2"
        "quote2  img2"
        "img3    img3"
        "quote3    quote3"
        "img4    img4"
        "img4    img4"
        "img4  img4";
    }

    .gridarea2{
        grid-template-areas:
        "quote1 ."
        "quote2 quote2"
        "img5  img5"
        "img5  img5";
        padding-top: 1rem;
        .item-quote2 {
            font-size: 1rem;
            padding-top: 3rem;
        }
    }

    .img6 {
        padding-top: 2rem;
    }

    #campana{

        grid-template-columns: 1fr;

        h3{
            font-size: 3rem;
        }

        .img{
            display: grid;
            grid-template-columns: 1fr 0.6fr;
            text-align: left;
            gap: 1rem;
        }

        .img8 {
            display: block;
            grid-column-end: -1;
            grid-column-start: 1;
            width: 80%;
            margin-left: auto;
        }
    }

    #makingoff {

        .video {
            .quote {
                padding: 0 3% 3% 3%;
                text-align: right;
            }

            img{
                width: 80%;
            }
        }

        .row1 {
            grid-template-columns: 1fr;
        }

        & .row1 .text {
            text-align: center;
            align-items: end;
            gap: 2rem;
            padding-right: 2rem;
            & div {
                font-size: 1rem;
                h3 {
                    font-size: 3rem;
                }
            }

            .quote1 {
                padding-top: 5%;
                text-align: right;
                margin: 0 0 0 auto;
            }
        }

        .row2 {
            grid-template-columns: 1fr;
            gap: 2rem;
            margin-top: 2rem;
        }

        .row3 {
            grid-template-columns: 1fr 1fr;

            & .img.bottom {
                img {
                    width: 90%;
                }
            }

            .quote4{
                padding-left: 5%;
            }
        }
    }

    #live{
        font-size: 1rem;
        padding: 0 10%;
        h3{
            font-size: 3rem;
        }
    }

    #creditos{
        max-width: 90%;
        font-size: 1rem;
        margin: 6rem auto;
        h3{
            font-size: 3rem;
        }

        h4{
            font-size: 2rem;
        }

        .title {
            margin-top: 3rem;
        }

        .big {
            font-size: 1.5rem;
        }

        .grid2 {
            grid-template-columns: 1fr;
            gap: 0rem;
        }

        .grid{
            grid-template-columns: 1fr;
            gap: 4rem;

            &.mt50{
                margin-top: 2rem;
            }
        }
    }

    .quote{
        font-size: 1rem;
    }

    #campana{    
        .text{
            .quote{
                font-size: 1rem;
            }
        }
    }

    #slogan {
        text-align: center;
        font-size: 1rem;
        flex-direction: column;
        align-items: center;

        p {
            font-size: 1rem;
        }
    }

    #video {
        font-size: 1rem;
        margin-top: 1rem;
        & .text {
            .quote {
                font-size: 1rem;
            }
        }
    }

    #mobilemenu{
        display: none;
    }

    dialog {
        padding: 0.5rem;
    }

}