:root {
    --main-color : #bfff00;
}


::selection {
    background-color: rgba(237, 237, 255, 0.3);
    color: white;
}

html{
    overflow-x: hidden;
    background: linear-gradient(45deg, rgb(29, 27, 44) 0%, rgb(59, 59, 70) 100%);
    background-repeat: no-repeat;
    background-size: cover;
}

body {
    margin: 0;
    font-family: Roboto, serif;
    color: #cbcbd2;
}

header {
    border-bottom: 1px solid grey;
    padding-left: 1em;
    background-color: #2a2a30;
    position: fixed;
    z-index: 10;
}
.headerdiv {
    h2 {
        font-family: Eurostile, sans-serif;
    }
    h3 {
        margin-bottom: 3em;
    }
}

hr {
    width: 100%;
}

#colorfulHr {
    color: var(--main-color);
    box-shadow: 0 0 10px #99ff00;
    position: fixed;
    /*top: -8px;*/
    top: 64px;
    left: 0;
    width: 105%;
    height: 2px;
    border-radius: 20px;
    border: none;
    background-color: var(--main-color);
    box-shadow: 0 0 15px var(--main-color);
    transition: background-color 2s ease, box-shadow 2s ease;
    /*clip-path: polygon(0% 0%, 100% 0%, 100% 50%, 0% 50%);*/
    z-index: 2;
}

.main-colordrawer {
    padding-top: 1em;
    margin-bottom: 10em;
}

.c{
    text-align: center;
}

#intermediateColorContainer{
    display: flex;
    align-items: baseline;
    justify-content: center;
}

#intermediateColor {
    border-bottom: 3px solid white;
    font-family: Consolas, serif !important;
    margin: 1em 0.5em;
}
.input-border-default {
    border-bottom: 2px solid var(--main-color); /* Couleur par défaut */
}

.maindiv {
    background-color: #00000020;
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0 auto;
    padding: 3%;
    border: 1px solid grey;
    border-bottom: 5px solid grey;
}
.sub_maindiv {
    display: flex;
    align-items: baseline;
    flex-direction: row;
    gap: 5em;
    > div {
        display: flex;
        align-items: baseline;
        flex-direction: row;
    }
    label {
        font-size: 20px;
    }
}

.headerdiv2 {
    display: flex;
    width: 70%;
    justify-content: space-between;
    margin: 0 auto 0;
    align-items: baseline;
    *{
        margin: 4px;
    }
}

.colorslink {
    cursor: pointer;
    color: lightblue;
}

.console {
    background-color: rgba(0, 0, 0, 0.4);
    font-family: Consolas, serif !important;
    width: 70%;
    max-height: 12em;
    display: flex;
    flex-wrap: nowrap;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    margin: 4em auto 0;
    padding: 3%;
    border: 0 solid grey;
    border-left: 5px solid grey;
    border-bottom: 2px solid grey;
    align-items: baseline;
    flex-direction: column;
    overflow-y: scroll;
    ::-webkit-scrollbar-thumb {
        background-color: #888;
    }
    p {
        padding-left: 1em;
        margin: 2px;
        transition: opacity 1s ease;
        opacity: 0;
    }
}

input {
    font-size: 25px;
    font-family: Consolas, serif;
    outline: none;
    background-color: transparent;
    border: transparent;
    border-bottom: 3px solid var(--main-color);
    color: white;
    box-shadow: none;
    transition: ease 0.25s;
    &:focus {
        background-color: #00000020;
        border: transparent;
        border-bottom: 3px solid var(--main-color);
        color: white;
        box-shadow: 0 0 5px white;
    }
    &:-webkit-autofill{
        background-color: rgba(53, 53, 66, 0.8) !important;
        background-image: none !important;
    }
}

button{
    display: inline-block;
    padding: 6px 8px;
    margin-left: 4px;
    border: none;
    /*border-bottom: solid 3px grey;*/
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
    background-color: transparent;
    &:hover{
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.bfooter{
    background: rgba(128, 128, 128, 0.1);
}

::-webkit-scrollbar {
    width: 5px;
    background-color: transparent;
}

/* Couleur de la piste de la scrollbar (la zone non sélectionnée) */
::-webkit-scrollbar-track {
    background-color: transparent;
}

/* Couleur de la poignée de la scrollbar (la partie que vous pouvez faire glisser) */
::-webkit-scrollbar-thumb {
    background-color: #888;
}

/* Au survol de la scrollbar */
::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Nouvelle couleur de la poignée au survol */
}

::-webkit-scrollbar-corner {
    background-color: transparent;
}

/* MEDIA QUERY */
@media (max-width: 1450px) {
    .headerdiv{
        h2 {
            font-size: 3em;
        }
        h3 {
            font-size: 2.5em;
        }
    }
    .headerdiv2 {
        p {
            font-size: 1.5em;
        }
    }
    .maindiv,.console {
        width: 90%;
    }
    .maindiv {
        border-width: 4px 4px 10px;
        padding: 8% 3%;
        input {
            font-size: 2em;
            width: 20vw;
        }
    }
    #intermediateColorContainer {
        font-size: 2.2em;
        button {
            padding: 0.5em;
            font-size: 1.2em;
            border-radius: 15px;
        }
        >#intermediateColor {
            border-bottom-width: 7px !important;
        }
        align-items: center;
    }
    .console {
        font-size: 2em;
        border-width: 0 0 4px 6px;
        padding: 8% 3%;
        p {
            border-left-width: 6px !important;
        }
    }
    .sub_maindiv{
        width: 100%;
        gap: 3em;
        justify-content: space-around;
        div {
            display: flex;
            flex-direction: row;
            align-items: center;
            width: 100%;
            div {
                display: flex;
                flex-direction: column;
                align-items: baseline;
                gap: 10px;
                width: fit-content;
                label {
                    font-size: 2em;
                }
                input {
                    font-size: 3em;
                    width: 100%;
                    border-bottom-width: 7px;
                    touch-action: manipulation;
                }
            }
            button {
                padding: 0.5em;
                font-size: 2.5em;
                border-radius: 15px;
            }
        }
    }
    #intermediateColor,#intermediateColorContainer h2,.console,input{
        font-family: "Source Code Pro", serif !important;
        font-weight: bold;
    }
}
