@font-face{
    font-family: "Clash Display Variable-";
    src: url(fonts/ClashDisplay-Variable.ttf) format("truetype");
}

p{
    margin: 0;
}

body{
    display: flex;
    flex-direction: row;
    gap: 1.7vw;
    margin: 0;
    
    background-color: hsl(var(--active-h), 65%, 15%);

    .userPanel{
        width: 100%;
        max-width: 55vw;
        height: 100vh;
        box-sizing: border-box;
        
        display: block;
        padding: 2.8vw;
        
        border-radius: 0 2.8vw 2.8vw 0;
        background-color: hsl(var(--active-h), 90%, 97%);

        .text{
            display: flex;
            flex-direction: column;
            gap: .25vw;
            margin-bottom: 4vw;

            h1{
                width: fit-content;
                height: fit-content;
                
                display: block;
                margin: 0;
                
                color: hsl(var(--active-h), 60%, 15%);
                
                font-family: Clash Display Variable;
                font-size: 3.25vw;
                font-weight: 600;
                text-box-trim: trim-both;
            }

            p{
                width: fit-content;
                height: fit-content;
                
                display: block;
                margin: 0;
                
                font-family: Clash Display Variable;
                font-size: 1.5vw;
                font-weight: 500;
                text-box-trim: trim-both;
                color: hsl(var(--active-h), 40%, 30%);
            }
        }

        .userInput{
            width: 100%;
            
            display: flex;
            flex-direction: column;
            gap: 1.5vw;

            #dropZone{
                width: 100%;
                height: 12.5vw;
                box-sizing: border-box;
                
                display: flex;
                flex-direction: column;
                gap: 1vw;
                flex-wrap: wrap;
                align-items: center;
                justify-content: center;
                
                border: dashed 0.3125vw hsl(var(--active-h), 25%, 65%);
                border-radius: 2vw;
                
                text-align: center;
                cursor: pointer;
                transition: 150ms ease;

                .text{
                    display: flex;
                    gap: 0.5vw;
                    margin: 0;

                    p{
                        font-family: Clash Display Variable;
                        font-size: 1.5vw;
                        font-weight: 500;
                        text-box-trim: trim-both;
                        color: hsl(var(--active-h), 30%, 40%);
                    }

                    p.secondary{
                        font-family: Clash Display Variable;
                        font-size: 1.25vw;
                        font-weight: 500;
                        text-box-trim: trim-both;
                        color: hsl(var(--active-h), 25%, 65%);
                    }
                }

                input{
                    display: none;
                }
            }

            .row{
                display: flex;
                gap: 0.5vw;

                .inputGroup{
                    width: 100%;
                    
                    display: flex;
                    flex-direction: column;
                    gap: 0.125vw;

                    p{
                        margin-left: 0.5vw;
                        
                        font-family: Clash Display Variable;
                        font-size: .9vw;
                        font-weight: 550;
                        letter-spacing: 0.0187vw;
                        color: hsl(var(--active-h), 40%, 30%);
                        
                        user-select: none;
                    }

                    .field{
                        display: flex;
                        flex-direction: row;
                        gap: 0.125vw;

                        .icon{
                            width: 3vw;
                            
                            display: flex;
                            flex-direction: row;
                            gap: 0.125vw;
                            flex-wrap: wrap;
                            align-content: center;
                            justify-content: center;
                            
                            border-radius: 1vw 0.25vw 0.25vw 1vw;
                            background-color: hsl(var(--active-h), 60%, 90%);
                            border: hsl(var(--active-h), 75%, 80%) solid 0.1875vw;
                            
                            transition: ease-out 150ms;
                            
                            user-select: none;

                            span{
                                font-size: 1.3vw;
                                color: hsl(var(--active-h), 45%, 40%);
                            }
                        }

                        .input{
                            width: 100%;
                            height: 3vw;
                            box-sizing: border-box;
                            
                            padding: 0 .2667vw 0 .2667vw;
                            
                            border-radius: 0.25vw 1vw 1vw 0.25vw;
                            background-color: hsl(var(--active-h), 60%, 90%);
                            border: hsl(var(--active-h), 75%, 80%) solid 0.1875vw;
                            
                            transition: ease-out 150ms;
                            
                            font-family: Clash Display Variable;
                            font-size: .9vw;
                            font-weight: 500;
                            letter-spacing: 0.0187vw;
                            color: hsl(var(--active-h), 45%, 40%);
                        }

                        input[type=text]::placeholder{
                            color: hsl(var(--active-h), 45%, 65%);
                        }

                        select, ::picker(select){
                            appearance: base-select;
                        }

                        select:not(:open)::picker(select){
                            display: none;
                        }

                        select:open span{
                            transform: rotate(180deg);
                        }

                        select{
                            display: flex;
                            flex-wrap: wrap;
                            align-content: center;
                            align-items: center;
                            justify-content: space-between;
                            padding: 0 .2667vw 0 .2667vw;

                            span{
                                transition: transform ease 175ms;
                                
                                font-size: 1.3vw;
                            }
                        }

                        ::picker(select){
                            box-sizing: border-box;
                            
                            display: flex;
                            flex-direction: column;
                            gap: .25vw;
                            padding: .25vw;
                            margin: .25vw 0 .25vw 0;
                            
                            border-radius: 1vw;
                            background-color: hsl(var(--active-h), 60%, 90%);
                            border: hsl(var(--active-h), 75%, 30%) solid 0.1875vw;
                            
                            transition: ease-out 150ms;
                            
                            color: hsl(var(--active-h), 45%, 40%);
                        }

                        option{
                            height: 2vw;
                            
                            display: flex;
                            flex-wrap: wrap;
                            align-content: center;
                            justify-content: space-between;
                            padding: 0 .4vw 0 .4vw;
                            
                            border-radius: .75vw;
                            
                            outline: none;
                        }

                        option::checkmark{
                            display: none;
                        }

                        option::after{
                            display: none;
                            
                            font-family: "Material Symbols Rounded";
                            font-size: 1vw;
                            
                            content: "check";
                        }

                        option:checked::after{
                            display: block;
                        }

                        select::picker-icon{
                            display: none;
                        }
                    }

                    .field:focus-within{
                        .icon{
                            border: hsl(var(--active-h), 75%, 30%) solid 0.1875vw;
                            
                            box-shadow:
                                0 1px 8px 3px hsla(var(--active-h), 60%, 70%, 0.25),
                                0 2px 4px 0 hsla(var(--active-h), 60%, 30%, 0.20);
                        }

                        .input{
                            border: hsl(var(--active-h), 75%, 30%) solid 0.1875vw;
                            
                            box-shadow:
                                0 1px 8px 3px hsla(var(--active-h), 60%, 70%, 0.25),
                                0 2px 4px 0 hsla(var(--active-h), 60%, 30%, 0.20);
                            
                            outline: none;
                        }
                    }

                    .field:hover{
                        .icon{
                            box-shadow:
                                0 1px 8px 3px hsla(var(--active-h), 60%, 70%, 0.25),
                                0 2px 4px 0 hsla(var(--active-h), 60%, 30%, 0.20);
                        }

                        .input{
                            box-shadow:
                                0 1px 8px 3px hsla(var(--active-h), 60%, 70%, 0.25),
                                0 2px 4px 0 hsla(var(--active-h), 60%, 30%, 0.20);
                            
                            outline: none;
                        }
                    }
                }
            }

            .finalTouch{
                display: flex;
                justify-content: end;
                gap: .5vw;

                .colourSelect{
                    display: flex;
                    flex-direction: row;
                    gap: .25vw;

                    label.radio{
                        width: 3vw;
                        height: 3vw;
                        box-sizing: border-box;
                        
                        display: flex;
                        flex-wrap: wrap;
                        align-content: center;
                        justify-content: center;
                        
                        border-radius: 1vw;
                        
                        transition: ease 200ms, border-radius ease-out 300ms;
                        
                        font-size: 1.3vw;
                        
                        user-select: none;

                        input{
                            display: none;
                        }

                        span{
                            font-size: 1.3vw;
                        }

                        span::before{
                            content: "palette";
                        }
                    }

                    label.vibrant{
                        background-color: hsl(var(--vibrant-h), 60%, 50%);
                        border: hsl(var(--vibrant-h), 75%, 80%) solid 0.1875vw;
                        
                        color: hsl(var(--vibrant-h), 75%, 90%);
                    }

                    label.dominant{
                        background-color: hsl(var(--dominant-h), 60%, 50%);
                        border: hsl(var(--dominant-h), 75%, 80%) solid 0.1875vw;
                        
                        color: hsl(var(--dominant-h), 75%, 90%);
                    }

                    label.radio:has(input:checked){
                        border-radius: 5vw;

                        span::before{
                            content: "check";
                        }
                    }

                    label.vibrant.radio:has(input:checked){
                        box-shadow:
                            0 .1vw 1vw .2vw hsla(var(--vibrant-h), 60%, 30%, .25),
                            0 .15vw .5vw 0 hsla(var(--vibrant-h), 60%, 30%, .30);
                    }

                    label.dominant.radio:has(input:checked){
                        box-shadow:
                            0 .1vw 1vw .2vw hsla(var(--dominant-h), 60%, 30%, .25),
                            0 .15vw .5vw 0 hsla(var(--dominant-h), 60%, 30%, .30);
                    }
                }

                #exportButton{
                    width: fit-content;
                    height: 3vw;
                    box-sizing: border-box;
                    
                    display: flex;
                    gap: .4vw;
                    flex-wrap: wrap;
                    justify-content: center;
                    align-content: center;
                    align-items: center;
                    padding: 0 0.70vw 0 .8vw;
                    
                    border-radius: 1vw;
                    background-color: hsl(var(--active-h), 60%, 50%);
                    border: hsl(var(--active-h), 75%, 80%) solid 0.1875vw;
                    
                    transition: ease-out 150ms;
                    
                    font-family: Clash Display Variable;
                    font-size: .9vw;
                    font-weight: 500;
                    letter-spacing: 0.0187vw;
                    color: hsl(var(--active-h), 75%, 90%);
                    
                    outline: none;

                    span{
                        font-size: 1.3vw;
                    }
                }

                #exportButton:hover{
                    box-shadow:
                        0 1px 8px 3px hsla(var(--active-h), 60%, 70%, 0.25),
                        0 2px 4px 0 hsla(var(--active-h), 60%, 30%, 0.20);
                    
                    cursor: pointer;
                }

                #exportButton:active{
                    scale: .90;
                }
            }
        }
    }

    .previewPanel{
        width: fit-content;
        height: 100vh;
        box-sizing: border-box;
        
        display: flex;
        flex-direction: column;
        align-content: flex-end;
        justify-content: center;
        padding: 48px 0 48px 0;
        padding-right: 2vw;
        
        background-color: none;
        
        user-select: none;

        .canvasContainer{
            border-radius: 5vh;
            overflow: hidden;

            position: relative;

                #canvas{
                    height: 90vh;
                    box-sizing: border-box;
                    aspect-ratio: 9/16;
                    
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    padding: 6vh 6.67vh 3.33vh 6.67vh;
                    
                    /* border-radius: 5vh; */
                    background: linear-gradient(hsl(var(--active-h), 100%, 97%), hsl(var(--active-h), 100%, 90%));

                    p{
                        height: fit-content;
                        
                        margin: 0;
                        
                        font-family: "Clash Display Variable";
                        text-box-trim: trim-both;
                        color: hsl(var(--active-h), 40%, 60%);
                    }

                    .emphasized{
                        color: hsl(var(--active-h), 50%, 40%);
                    }

                    .watermark{
                        margin-bottom: 0.42vh;
                        
                        font-size: 1.3vh;
                        font-weight: 450;
                        text-align: center;
                    }

                    #image{
                        width: 100%;
                        aspect-ratio: 0.67485667485;
                        
                        margin: 0 -1.04vh 0.42vh -1.04vh;
                        
                        border-radius: 4.17vh;
                        background-position: center;
                        background-size: cover;
                        border: solid 1.04vh hsl(var(--active-h), 25%, 45%);
                        
                        box-shadow:
                            0 0.26vh 1.3vh 0.26vh hsla(var(--active-h), 20%, 20%, .5),
                            0 0.26vh 0.52vh 0px hsla(var(--active-h), 20%, 20%, .2);
                    }

                    .info{
                        width: 100%;
                        
                        display: flex;
                        flex-direction: column;
                        
                        font-size: 4.17vh;
                        font-weight: 700;
                        line-height: 4.17vh;
                        text-wrap: balance;

                        #title{
                            width: 100%;
                            
                            display: block;
                            
                            color: hsl(var(--active-h), 25%, 10%);
                            
                            text-wrap: balance;
                        }

                        .secondary{
                            width: 100%;
                            
                            display: flex;
                            flex-direction: column;
                            
                            font-size: 2.08vh;
                            font-weight: 525;
                            line-height: 2.08vh;

                            .actors{
                                display: flex;
                                flex-direction: row;
                                flex-wrap: wrap;

                                p{
                                    display: inline;
                                    white-space: nowrap;
                                }
                            }
                        }

                        #chip{
                            min-height: 2.29vh;
                            width: fit-content;
                            box-sizing: border-box;
                            
                            display: flex;
                            flex-direction: row;
                            align-items: center;
                            gap: 0.42vh;
                            padding: 0.42vh 0.83vh 0.42vh 0.42vh;
                            margin-top: 0.42vh;
                            
                            background:
                                linear-gradient(hsl(var(--active-h), 75%, 95%), hsl(var(--active-h), 60%, 85%)) padding-box,
                                linear-gradient(hsl(var(--active-h), 60%, 70%), hsl(var(--active-h), 60%, 80%)) border-box;
                            border: 0.42vh solid transparent;
                            border-radius: 1.04vh;
                            
                            box-shadow:
                                0 0 0.78vh hsla(0, 0%, 0%, .1),
                                0 0 0.52vh hsla(0, 0%, 0%, .1);

                            svg{
                                height: 2.5vh;
                                width: 2.5vh;
                            }

                            p{
                                font-size: 1.46vh;
                                font-weight: 600;
                                color: hsl(var(--active-h), 75%, 35%);
                            }
                        }
                    }

                    .logo{
                        height: 3.75vh;
                        width: 14.06vh;
                        
                        position: absolute;
                        bottom: 1.67vh;
                        left: 50%h;
                    }
                }
        }
    }
}