@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(https://fonts.gstatic.com/l/font?kit=xn7_YHE41ni1AdIRqAuZuw1Bx9mbZk6jFO_G&skey=c397ded15edc0853&v=v20) format('woff');
}

:root {
    --color-light: #fff;
    --color-dark: #151515;
    --color-info: #3498db;
    --color-success: #07bc0c;
    --color-warning: #f1c40f;
    --color-error: #e74c3c;
}
/* reset */
* {
    margin: 0;
    padding: 0;
    color: inherit;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
*, ::after, ::before {
    box-sizing: border-box;
}
html {
    width: 100dvw;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    font-family: "Barlow Condensed", sans-serif;
    height: max-content;
    width: 100vw;
    overflow-x: hidden;
    position: relative;

    --sb-track-color: var(--color-light);
    --sb-thumb-color: var(--color-success);
    --sb-size: 16px;    
}

.pre-container::-webkit-scrollbar {
    width: var(--sb-size);
}
.pre-container::-webkit-scrollbar-track {
    background: var(--sb-track-color);
    border-radius: 0px;
}
.pre-container::-webkit-scrollbar-thumb {
    background: var(--sb-thumb-color);
    border-radius: 0px;
}


li, a {
    list-style: none;
    text-decoration: none;
}

.cursor {
    cursor: pointer;
}

.main {
    width: 100%;
    height: 100vh;
    padding: 4vh;
    display: grid;
    grid-template-rows: 60% 40%;
    grid-template-columns: 1fr;
}
h1 {
    text-align: right;
    color: var(--color-success);
    font-size: clamp(3vw, 5vw, 6vw);
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    width: 100%;
}


.button-container {
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
}
.button-box .button-content {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}
.flex {
    display: flex;
}


/* CONTAINER FIRST */
.container-first {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 45% 55%;
}
    /* PREVIEW */
    .preview-container {
        max-height: 55vh;
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }
        .preview-box {
            position: relative;
            width: 60%;
            height: 100%;
            border: 1px solid rgb(225, 225, 239);
            background-image: linear-gradient(30deg, rgb(255, 43, 85) 12%, transparent 12.5%, transparent 87%, rgb(255, 43, 85) 87.5%, rgb(255, 43, 85)), linear-gradient(150deg, rgb(255, 43, 85) 12%, transparent 12.5%, transparent 87%, rgb(255, 43, 85) 87.5%, rgb(255, 43, 85)), linear-gradient(30deg, rgb(255, 43, 85) 12%, transparent 12.5%, transparent 87%, rgb(255, 43, 85) 87.5%, rgb(255, 43, 85)), linear-gradient(150deg, rgb(255, 43, 85) 12%, transparent 12.5%, transparent 87%, rgb(255, 43, 85) 87.5%, rgb(255, 43, 85)), linear-gradient(60deg, rgba(255, 43, 85, 0.5) 25%, transparent 25.5%, transparent 75%, rgba(255, 43, 85, 0.5) 75%, rgba(255, 43, 85, 0.5)), linear-gradient(60deg, rgba(255, 43, 85, 0.5) 25%, transparent 25.5%, transparent 75%, rgba(255, 43, 85, 0.5) 75%, rgba(255, 43, 85, 0.5));
            background-size: 64px 112px;
            background-position: 0px 0px, 0px 0px, 32px 56px, 32px 56px, 0px 0px, 32px 56px;
            background-color: var(--color-light);
        }


.button-box {
    position: relative;
    overflow: hidden;
    width: unset;
    max-width: max-content;
    height: auto;
    font-size: 2.4vh;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    transition: 0.25s;
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 2vh 2.5vh;
}

.parameter-container {
    max-height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4vh;
}
.line-container {
    width: 100%;
    padding-left: 10%;
    min-height: 20%;
    max-height: 25%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
}
.line-container:nth-of-type(2) {
    justify-content: space-between;
}

        .choice-box {
            position: relative;
            width: 100%;
            height: 100%;
        }
            .box-control {
                position: relative;                
                width: 100%;
                height: 100%;
                min-height: 38px;                
                display: flex;
                flex-wrap: wrap;
                justify-content: space-between;
                align-items: center;
                cursor: pointer;
                transition: all 100ms;
            }

    .text-control {
        position: relative;        
        align-items: center;
        flex-wrap: wrap;
        padding: 2vh 0vh 1vh 2vh;
        height: 100%;
        width: 100%;
    }
    .grid-control {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        color: hsl(0, 0%, 20%);
        max-width: 50%;
        width: max-content;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 2.4vh;
        line-height: 1.4;
    }
.grid-control .label {
    padding: 1vh 2vh;
}

.preview-box {
    width: 95%;
}
.input-pattern {
    background: 0;
    border: 0;
    caret-color: transparent;
    font-size: inherit;
    grid-area: 1 / 1 / 2 / 3;
    outline: 0;
    padding: 0;
    width: 1px;
    color: transparent;
    left: -100px;
    opacity: 0;
    position: relative;
    transform: scale(.01);
}
    .pattern-list {
        position: absolute;
        left: -1px;        
        line-height: 2;
        overflow-y: auto;
        width: calc(100% + 1.5px);
        height: max-content;
        z-index: 66;
        background-color: var(--color-light);
        border: 1px solid #e1e1ef;
        border-top: none;
        padding: 2vh 0vh;
    }
    .pattern-list li {
        height: 100%;
        padding-left: 2vh;
    }
    .pattern-list li:hover {
        background-color: #07bc0c;
    }

.pattern-list.hidden {
    display: none;
}


.align-stretch {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 100%;
    align-items: center;
    align-self: stretch;
    display: flex;
    z-index: 100;
    justify-content: flex-end;
}
    .control-span {
        border-left: none;
    }
    .open-container-icon {
        color: hsl(0, 0%, 80%);
        display: flex;
        padding: 8px;
        transition: color 150ms;
    }
    .open-svg {
        display: inline-block;
        fill: currentColor;
        line-height: 1;
        stroke: currentColor;
        stroke-width: 0;
    }


.choice-box.filled .choice-label, .choice-box.focused .choice-label {
    font-size: 2.5vh;
    top: 0px;
    transform: translateY(0px);
}
.absolute-label {
    position: absolute;
    top: 50%;
    left: 16px;
    right: 36px;
    height: 27px;
    line-height: 27px;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--color-dark);
    transition: 0.15s;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
}

    .pattern-adjust {
        height: 100%;
        width: 45%;
    }
    .label-color {
        position: absolute;
        top: 0px;
        left: 1.5vh;
        height: 4vh;
        line-height: 25px;
        font-size: 2.5vh;
        color: var(--color-dark);
        display: flex;
        align-items: center;
    }
    .input-color {
        width: 100%;
        height: 100%;
    }
    .pattern-color {
        cursor: pointer;
        position: absolute;
        bottom: 2.5vh;
        left: 0.9vw;
        width: 4vh;
        height: 4vh;
        background: #07bc0c;
        border-radius: 8px;
        box-shadow: rgba(71, 75, 255, 0.075) 0px 2px 3px;
        pointer-events: none;
        z-index: 2;
        display: flex;
        align-items: center;
        -webkit-box-pack: center;
        justify-content: center;
    }
    .choice-color {
        position: absolute;
        top: 50%;
        left: 5%;
        transform: translateY(-50%);
        padding: 4vh 0vh 1vh 6vh;
        pointer-events: none;
        transform-origin: center top;
        transition: 0.25s;
        z-index: 10;
        color: rgb(38, 39, 75);
    }
    .input-color {
        border-radius: 8px;
        cursor: pointer;
        opacity: 0;
    }
    .back-color {
        position: absolute;
        bottom: 2.5vh;
        left: 0.9vw;
        width: 4vh;
        height: 4vh;
        background: var(--color-light);
        border-radius: 8px;
        box-shadow: rgba(71, 75, 255, 0.075) 0px 2px 3px;
        pointer-events: none;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

.container-range {
    margin: 24px 0px 0px;
    width: 100%;
}
    .range-box {
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        height: 56px;
    }
        .size-box {
            height: 27px;
            line-height: 27px;
            font-size: 2.5vh;
            color: rgb(99, 99, 136);
            display: flex;
            align-items: center;
        }
            .flex-size {
                margin: 0px;
                align-items: center;
                justify-content: space-between;
                flex: 1 1 0%;
            }
                .button-align {
                    align-items: center;
                }
                    .size-box .highlight {
                        font-weight: 600;
                    }

.range-input {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
    overflow: visible;
}
.range-box .rangeslider {
    position: relative;
    margin: 2vh 0 0;
    height: 2vh;
    border-radius: 5px;
    background: rgb(225, 225, 239);
    cursor: pointer;
    box-shadow: none;
    touch-action: none;
}
    .rangeslider, .rangeslider-fill {
        display: block;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4);
    }
    .rangeslider-fill {
        width: 170px;
        height: 100%;
        border-radius: 10px;
        background: var(--color-success);
        box-shadow: none;
        top: 0;
    }
    .rangeslider-handle {
        position: absolute;
        top: -1vh;
        left: 165px;
        width: 4vh;
        height: 4vh;
        border-radius: 50%;
        box-shadow: none;
        border: 1px solid rgb(225, 225, 239);
        background: #fff;
        cursor: ew-resize;
    }
.rangeslider .rangeslider-handle::before {
    content: "";
    width: 3vh;
    height: 3vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 1;
    transition: 0.25s;
}
.rangeslider-labels {
    position: relative;
}
/* BOUTON STYLE */
.pre-container, .pattern-adjust, .box-control {
    color: #151515;
    background: var(--color-light);
    border: 2px solid var(--color-dark);
    box-shadow: 4px 4px 0px #000;
}


/* CONTAINER SECOND */
.container-second {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.container-code {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}


/* CONTAINER RESULT */
.container-result {
    max-height: 30vh;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: column;
}

.pre-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    min-height: 30vh;
    max-height: 30vh;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: monospace, monospace;
    font-size: 1em;
}
.pre-container .code-label {
    width: 100%;
    height: 4vh;    
    position: absolute;
    top: 1.5vh;
    left: 1.5vh;
    right: 1.5vh;
    font-size: 2.5vh;
    font-family: Roboto, "Helvetica Neue", sans-serif;
    line-height: 2;
    background: var(--color-light);
    border-top-left-radius: 8px;
    color: var(--color-dark);
    -webkit-user-select: none;
    user-select: none;
    transition: 0.25s;
}

pre code.span-code {
    max-width: 99vw;
    width: 100%;
    min-width: 80vw;
    display: block;
    max-height: 100%;
    padding: 1em;
    font-size: 1.6vh;
}
.pre-container code {
    height: 100%;
    font-family: monospace;
    font-weight: bold;
}


.box-control:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}
.pre-container:focus, .pattern-adjust:focus {
    border: 2px solid var(--color-info);
    outline: 2px solid var(--color-info);
    outline-offset: 2px;
}


@media screen and (min-width: 769px) {
    .container {
        flex-direction: row;
    }
}
