@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --scale: 1;
    --logo-scale: 1;
}

html {
    height: 100%;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a:link { 
    text-decoration: none; 
} 
a:visited { 
    text-decoration: none; 
} 
a:hover { 
    text-decoration: none; 
} 
a:active { 
    text-decoration: none; 
}

body{
    width: 100%;
    height: 100%;
    background-color: #432599;
    background-image: url("../images/spiral_pattern.svg");
    background-repeat: no-repeat;
    background-position: -500px 200px; 
}

#header{
    position: relative;
    width: 100%;
    background-color: rgba(165, 42, 42, 0.123);
    overflow-x: clip;

    #logo-container{
        position: relative;
        width: calc(1100px * var(--logo-scale));
        height: auto;
        margin-right: auto;
        margin-left: auto;
    
        #logo{
            position: absolute;
            height: auto;
            top: 112px;
            left: 0;
            transform: translate(0, 0);
            transition: margin-top 0.2s ease, opacity 0.1s ease;
            z-index: 3;
            user-select: none;
            width: calc(800px * var(--logo-scale));
            margin-right: auto;
            margin-left: auto;

            img{
                width: 100%;
                position: absolute;
                transition: opacity 0.2s ease;

                &:first-child{
                    opacity: 1;
                }
    
                &:last-child{
                    opacity: 0;
                }
            }

            #stars{
                position: absolute;
                margin-top: -10%;
                width: 30%;
                right: -20%;
    
                &.constraint{
                    top: -20%;
                }
            }
            
            &.constraint{
                width: calc(300px * var(--logo-scale));
                left: 50%;
                transform: translate(-50%, -34px);
                z-index: 3;
                position: fixed;

                img{
                    width: 100%;
                    position: absolute;
    
                    &:first-child{
                        opacity: 0;
                    }
        
                    &:last-child{
                        opacity: 1;
                    }
                }
            }
        }
    }

    #block-1{
        position: absolute;
        width: 200%;
        height: 300px;
        background-color: white;
        transform: translate(-25%, 0) rotate(3.4192659deg);
        top: calc(-175px + 25px * (var(--logo-scale) - 1));
        z-index: 3;
    }

    #block-1-shadow{
        position: absolute;
        width: 200%;
        height: 300px;
        background-color: rgba(0, 0, 0, 0.247);
        transform: translate(-25%, 0) rotate(3.4192659deg);
        top: -175px;
        z-index: 2;
        filter: blur(20px);
    }

    #block-2{
        position: absolute;
        width: 200%;
        height: 300px;
        background-color: #654daf;
        transform: translate(-25%, 0) rotate(-3.1161434deg);
        top: -25px;
        z-index: 2;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    }

    #block-3{
        position: absolute;
        width: 200%;
        height: 300px;
        background-color: #4d31a3;
        transform: translate(-25%, 0) rotate(1.0019832deg);
        top: 125px;
        z-index: 1;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    }
}

#content{
    position: static;
    width: 100%;
    height: 100%;

    #main-buttons-container{
        position: relative;
        width: calc(1100px * var(--scale));
        height: calc(300px * var(--scale));
        margin-right: auto;
        margin-left: auto;
        z-index: 2;
        display: flex;
        justify-content: space-between;
        margin-bottom: 100px;

        .image-clipper{
            background-color: transparent;
            padding: 0;
            border-radius: calc(25px * var(--scale));
            position: absolute;
            width: calc(610px * var(--scale));
            height: calc(340px * var(--scale));
            bottom: 0;
            right: 0;
            overflow: hidden;
        }

        #portfolio{
            height: 100%;
            flex: 0.5;
            overflow: visible;

            img{
                bottom: -20px;
            }
        }

        #shop{
            height: 100%;
            flex: 0.27;
        }

        .multi-button{
            height: 100%;
            flex: 0.13;
        }
    }
}

.large-button{
    display: block;
    background-color: #ff4387;
    padding: 0;
    border-radius: calc(25px * var(--scale));
    box-shadow: 30px 30px 0px rgba(0, 0, 0, 0.33);
    position: relative;
    overflow: hidden;
    transition: background-color 0.1s ease;

    img{
        position: absolute;
        height: calc(360px * var(--scale));
        width: auto;
        bottom: -10px;
        right: -10px;
        transition: all 0.1s ease;
    }

    p{
        color: white;
        font: calc(2.5rem * ((var(--scale) * 0.5) + 0.5)) "Poppins", sans-serif;
        font-weight: 600;
        text-align: right;
        margin: 10px 20px 0 20px;
        position: relative;
    }

    &:hover{
        background-color: #ffffff;

        img{
            height: calc(375px * var(--scale));
            width: auto;
            bottom: -10px;
            right: -10px;
            transition: all 0.2s ease;
        }

        p{
            color: #000000;
        }
    }
}

.multi-button{
    display: flex;
    flex-direction: column;
    background-color: #ff4387;
    padding: 0;
    border-radius: calc(25px * var(--scale));
    box-shadow: 30px 30px 0px rgba(0, 0, 0, 0.33);
    z-index: 1;

    .item{
        flex: 1;
        background-color: transparent;
        transition: background-color 0.1s ease;
        display: flex;
        justify-content: center;
        align-items: center;

        img{
            height: calc(60px * var(--scale));
        }

        &:hover{
            background-color: white;

            img{
                filter: invert();
            }
        }

        &:first-child{
            border-radius: 25px 25px 0 0;
            padding-top: 15px;
        }

        &:last-child{
            border-radius: 0 0 25px 25px;
            padding-bottom: 15px;
        }
    }
}

.standard-container{
    position: relative;
    width: calc(1100px * var(--scale));
    height: auto;
    margin-right: auto;
    margin-left: auto;
}

.title-medium{
    color: white;
    font: calc(2.5rem * ((var(--scale) * 0.5) + 0.5)) "Poppins", sans-serif;
    font-weight: 600;
    margin-bottom: 25px;
}

.paragraph-container{
    display: flex;
    flex-wrap: wrap;

    &.column-2{
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
        
        p{
            flex: 0 0 calc(50% - 10px);

            &:last-child{
                flex: 1;
            }
        }
    }
}

p{
    color: white;
    font: calc(1.1rem * ((var(--scale) * 0.5) + 0.5)) "Poppins", sans-serif;
    font-weight: 300;
}

/* Mobiles */
@media (max-width: 767px)
{
    :root {
        --scale: 0.3;
        --logo-scale: 0.3;
    }

    #header{    
        #logo-container{
            width: 70%;

            #logo{
                top: calc(var(--header-y) + 3vw);
                width: 100%;
                height: auto;

                img{
                    &:first-child{
                        display: block;
                    }
        
                    &:last-child{
                        display: block;
                    }
                }

                #stars{
                    width: 17vw;
                    right: -4vw;
                    top: calc(2vw - 9px);
                }

                &.constraint{
                    display: block;
                    width: 160px;
                    left: 50%;
                    transform: translate(-50%, 7px);
                    z-index: 3;
                    position: fixed;

                    #stars{
                        display: none;
                    }
                }
            }
        }

        #block-1{
            top: calc(-200px + 80px * (var(--scale) - 1));
            position: fixed;

            &.constraint{
                transform: translate(0, 15px) rotate(0deg);
            }
        }

        #block-1-calculs{
            top: calc(-200px + 80px * (var(--scale) - 1));
            position: fixed;
        }
    
        #block-1-shadow{
            top: calc(-200px + 80px * (var(--scale) - 1));
            position: fixed;
        }

        .top-right-bar{
            display: none;
    
            &.constraint{
                display: block;
            }
        }
    }

    #content{
        position: static;
        top: calc((30vw) + 25px);
        width: 100%;
        height: 100%;
    
        #main-buttons-container{
            width: 70%;
            height: calc(1500px * var(--scale));
            flex-direction: column;
            gap: 40px;
                
            .image-clipper{
                border-radius: calc(30px * var(--scale));
                width: 120%;
                height: 120%;
            }

            #portfolio {
                height: 100%;
                flex: 1;
                overflow: visible;
                container-type: inline-size;
            
                img {
                    height: 196px;
                    width: auto;
                    bottom: -35px;
                }

                @container (max-width: 239px) {

                    img{
                        right: -80px;
                    }
                }

                @container (min-width: 240px) and (max-width: 280px) {

                    img{
                        right: -50px;
                    }
                }

                @container (min-width: 375px) {

                    p {
                        text-align: left;
                        margin: 0px 20px 5px 15px;
                        top: 55px;
                        font-size: 1.6rem;
                    }

                    img {
                        right: -75px;
                    }
                }
            }
    
            #shop{
                height: 100%;
                flex: 1;
                overflow: visible;
                container-type: inline-size;

                img{
                    height: 260px;
                    width: auto;
                    bottom: -10px;
                }

                p{
                    text-align: left;
                }

                @container (max-width: 239px) {

                    img{
                        right: -80px;
                    }
                }

                @container (min-width: 240px) and (max-width: 280px) {

                    img{
                        right: -50px;
                    }
                }

                @container (min-width: 375px) {

                    p {
                        text-align: left;
                        margin: 0px 20px 5px 15px;
                        top: 55px;
                        font-size: 1.6rem;
                    }
                }
            }
    
            .multi-button{
                height: 100%;
                flex: 0.6;
            }
        }
    }

    .large-button{
        display: block;
        border-radius: calc(30px * var(--scale));
        box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.33);
        align-items: center;
    
        img{
            height: 100%;
            width: auto;
            bottom: -10px;
            right: -10px;
        }
    
        p{
            font: 1.4rem "Poppins", sans-serif;
            font-weight: 600;
            text-align: right;
            margin: 5px 15px 5px 15px;
            position: relative;
        }
    }

    .multi-button{
        flex-direction: row;
        border-radius: calc(30px * var(--scale));
        box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.33);
        z-index: 1;
        container-type: inline-size;
    
        .item{    
            img{
                height: calc(175px * var(--scale));
            }
    
            &:first-child{
                border-radius: 30px 0 0 30px;
                padding-left: 15px;
                padding-top: 0;
            }
    
            &:last-child{
                border-radius: 0 30px 30px 0;
                padding-right: 15px;
                padding-bottom: 0;
            }
        }

        @container (max-width: 375px) {

            .item{    
                img{
                    height: calc(140px * var(--scale));
                }
            }
        }
    }

    .standard-container{
        width: 70%;
    }
    
    .title-medium{
        font: 2rem "Poppins", sans-serif;
        font-weight: 600;
        margin-bottom: 25px;
    }
    
    .paragraph-container{   
        &.column-2{
            flex-direction: column;
        }
    }

    p{
        font: 1rem "Poppins", sans-serif;
        font-weight: 300;
    }

}

/* Tablets */
@media (min-width: 768px) and (max-width: 1024px)
{
    :root {
        --scale: 0.6;
        --logo-scale: 0.6;
    }
}

/* small desktop */
@media (min-width: 1025px) and (max-width: 1399px)
{
    :root {
        --scale: 0.8;
        --logo-scale: 0.8;
    }
}

/* standard desktop */
@media (min-width: 1400px) and (max-width: 1999px)
{
    :root {
        --scale: 1;
        --logo-scale: 1;
    }
}

/* 2K desktop */
@media (min-width: 2000px) and (max-width: 2299px)
{
    :root {
        --scale: 1.2;
        --logo-scale: 1.2;
    }
}

/* 4K desktop */
@media (min-width: 2300px)
{
    :root {
        --scale: 1.5;
        --logo-scale: 1.5;
    }
}