:root{

    /* Change the colors of the UI element from here */
    
    --mainColor: rgb(103, 255, 115);
    --errorBackground: rgb(255, 79, 79);
    --requestBtnColor: rgb(64, 35, 255);
    --resetBtnColor: rgb(236, 236, 236);
    --nameColor: rgb(255, 238, 238);
    --titleColor: rgb(246, 246, 246);
    --titlerBgColor: rgb(3, 4, 69);
    --liBgColor: black; 
    --labelBgColor: rgb(3, 3, 127);
    --labelTextColor: white;
    --paragraphTextColor: black;
    --paragraphBgColor: rgb(231 231 251);
}

body{
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: "Roboto", sans-serif;
}

html {
    padding: 0;
    margin: 0;
}

.pageContainer{
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 32px;

    &::before{
        content: '';
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: url('back.jpg') center center/cover no-repeat;
        z-index: -1;
    }

    &::after{
        content: '';
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        /*background: var(--mainColor);*/
        opacity: 0.9;
        z-index: -1;
    }
}

#error {
    width: 100%;
    background: var(--errorBackground);
    color: white;
    margin: 0;
}

.logic{
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 128px;
    padding: 12px;

    #nameId{
        margin: 0;
        color: var(--nameColor);
        font-size: 2.5rem;
        margin-bottom: 64px;
        width: 100%;
        text-align: center;
        scale: 1.3;
    }

    #orderId_input{
        width: 100%;
        display: inline-block;
        box-sizing: border-box;
        padding: 8px;
        border-radius: 8px;
        border: none;
        outline: none;
    }

    .buttons{
        width: 100%;
        display: flex;
        gap: 12px;
    
        & button{
            width: 100%;
            color: white;
            border: none;
            outline: none;
            border-radius: 6px;
            padding: 8px;
            cursor: pointer;
            transition: all 0.3s ease-in;
        }

        #btn{
            background: var(--requestBtnColor);
        }

        #reset{
            background: var(--resetBtnColor);
            color: black;
        }

        & button:hover {
            opacity: 0.75;
            transition: all 0.3s ease-in;
        }
    }
}

.ulDiv{
    height: fit-content;
    overflow-y: auto;
    margin-bottom: 128px;
    width: 100%;
}

#list{
    max-width: 100%;
    width: 100%;
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 12px;
    padding: 0;
    margin: 0;

    & h3{
        padding: 0;
        margin: 0;
        color: var(--titleColor);
        background: var(--titlerBgColor);
        width: calc(100% - 16px);
        padding: 8px;
        display: inline-block;
        box-sizing: content-box;
        border-radius: 4px;
    }

    & li{
        margin: 0;
        background: var(--liBgColor);
        padding: 8px;
        border-radius: 4px;
        max-width: 100%;
        width: calc(100% - 32px);
        display: flex;
        align-items: center;
        margin-left: 16px;
        height: fit-content;
        gap: 8px;

        & label{    
            display: flex;
            background: var(--labelBgColor);
            color: var(--labelTextColor);
            padding: 8px;
            max-width: 100%;
            border-radius: 4px;
            white-space: nowrap;
            text-align: center;
            padding: 8px;
            text-align: center;
            height: fit-content;
            margin: 0;
            flex: 1;
        }

        & p {
            padding: 0;
            min-width: 30%;
            height: 100%;
            background: var(--paragraphBgColor);
            color: var(--paragraphTextColor);
            padding: 8px;
            border-radius: 4px;
            text-align: center;
            height: fit-content;
            white-space: nowrap;
            margin: 0;
        }
    }
}

#copyDiv{
    width: 100%;
    display: flex;
    justify-content: end;

    & p{
        padding: 8px;
        background: white;
        border-radius: 4px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        color: rgb(0, 0, 0);

        & svg g path {
            stroke: black
        }
    }
}

a{
    color: white;
}

.pageContainer::-webkit-scrollbar{
    display: none;
}

@media screen and (max-width: 680px){
    .pageContainer{
        padding: 12px;
    }

    .logic{
        padding: 0;
        margin-top: 16px;
        width: 100%;

        #nameId{
            max-width: 80%;
            margin-bottom: 32px;
            font-size: 2rem;
        }
    }

    #list{
        width: 100%;

        li{
            width: 100%;
            flex-wrap: wrap;

            margin-left: 0;

            label{
                width: 100%;
            }

            p{
                white-space: normal;
                text-align: start;
            }
        }
    }
}