*{
    margin: 0;
    padding: 0;
    font-family: "Rigid Square";
    box-sizing: border-box;
    
    & ::-webkit-scrollbar{
        width: 10px;
        height: 10px;
    }
    &::-webkit-scrollbar-thumb{
        background: rgb(76, 70, 236);
        border-radius: 10px;
        border: 1.5px solid white;
    }
    &::-webkit-scrollbar-track{
        background-color: #ffc7e4;
        border-radius: 10px;

    }
}

section{
    height: fit-content;
}
/* a{
    text-decoration: none;
} */
section#home{
    color: white;
    height: fit-content;

    nav#navbar{
        display: flex;
        justify-content: space-evenly;
        flex-wrap: wrap;
        align-items: center;
        padding: 0.1rem;
        background: white;
        /* min-height: 10%; */
        background: linear-gradient(to bottom, #b3114c 10%, transparent 10%, transparent 90%, #ffea00 90%);

        img{
            width: 10%; 
            height: 1%;
            margin: 0.5rem;
            background: linear-gradient(to bottom, rgba(255, 222, 228, 0.308) 40%, rgba(201, 202, 253, 0.676));
            z-index: -1;
            border-radius: 15px;
        }
        li{
            color: #1e56cd;
            list-style-type: square;
            margin: 0.5rem;
            text-decoration: 2px transparent wavy underline;
            text-decoration-skip-ink: none;
            transition: all 0.3s ease;
            cursor: pointer;

            a{
                text-decoration: none;
                /* color: #11ff00; */
            }
            &:hover{
            /* color: rgb(102, 255, 0); */
            text-decoration: 2px #ff26be wavy underline;

            &::marker{
                color: #ff26be;
            }
            
        }
            
        }
        
    }
    
    .main-view{
        background: #1e56cd;
        display: flex;
        height: fit-content;
        justify-content: space-between;
        align-items: stretch;
        /* flex-direction: row-reverse; */
        

        .main-text{
            width: 50vw;
            height: 100%;
            display: flex;
            justify-content: center;
            flex-direction: column;
            align-items: center;
            /* margin-right: 1rem; */
            padding: 2em;
            flex: 1;
            min-width: 0;

            /* Child */
            h1{
                color: rgb(255, 255, 255);
                width: 50%;
            }
            h3{
                color:rgb(255, 237, 204);
                padding: 2rem 0;
                width: 50%;
            }
        }

        .main-buttons{
            display: grid;
            position: relative;
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            align-items: stretch;
            flex: 1;
            gap: 10px;
            /* border-radius: 5px; */
            width: 50vw;
            min-width: 0;
            height: 100%;
            /* margin-left: 1rem; */
            background-image: radial-gradient(rgb(255, 255, 255) 20%, transparent 20%);
            background-position: 0 0;
            background-size: 7px 7px;
            padding: 2em;

            /* Child */
            button{
                background: #b3114c;
                color: rgb(255, 245, 226);
                outline: none;
                border: none;
                border-radius: 5px;
                padding: 1rem;         /* add padding back */
                cursor: pointer;
                display: flex;         /* add this */
                flex-direction: column; /* add this */
                align-items: flex-start; /* add this */
                gap: 8px;              /* add this */
                text-align: left;      /* add this */
                /* flex: 1 ; */
                height: 100%;
                width: 100%;
                position: relative; 
                transition: all 0.3s ease;               
                /* aspect-ratio: 1/-1; */
            
                
                span{
                    font-size: 1.5rem;
                    font-style: italic;
                    font-family: "OCR-A BT";
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    width: 100%;           /* THIS is the key line you're missing */
                    opacity: 1;
                    /* filter: grayscale(1); */
                    color: #fbff00;

                    i{
                        color: #fbff00 ;
                    }
                    
                }

            }
            #portalbutton{
                background:  hsla(239, 100%, 14%, 0.85);
                transition: all 0.5s ease;

                &:hover{
                    background: rgba(238, 255, 0);
                    color: hsla(239, 100%, 51%);

                    span{
                        color: hsla(239, 100%, 51%, 0.85);

                    }
                }
                &:active{
                    background: rgba(238, 255, 0);
                    color: hsla(239, 100%, 51%);

                    span{
                        color: hsla(239, 100%, 51%, 0.85);

                    }
                }
                
                /* .portannum{
                } */
                i#expandportal{
                    position: absolute;
                    display: inline-block;
                    bottom: 10%;
                    right: 5%;
                    color: rgb(238, 255, 0);
                    transition: all 0.5s ease;
                }
                &.open i#expandportal{
                    transform: rotate(80deg);
                }
                &:hover i#expandportal{
                    transform: translateY(-2rem);
                    color: hsla(239, 100%, 51%, 0.85);
                }
            }
            button:hover{
                background: hsla(99, 69%, 25%, 0.906);
            }

            .myportal{
                background: transparent;
                /* display: none; */
                height: 0;
                opacity: 0;
                /* max-height: 80vh; */
                width: 100%;
                transition: all 0.5s ease;
                transform: translateY(-2em);
                box-sizing: border-box;
                position: absolute;
                bottom: 0;
                border-radius: 5px;
                z-index: 10;
                right: 0;
                left: 0;
                grid-column: 1 / span 2;
                flex-grow: initial;
                /* grid-row: -1/ span 2; */

                &.open{
                    /* transition: all 1s ease; */
                    display: block;
                    height: 80%;
                    opacity: 1;
                    /* flex: 2 */
                   
                }
                div.ptop{
                    background: rgb(32, 32, 32);
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 5px;

                    h4{
                        font-weight: bold;
                        /* font-family: "OCR-A BT"; */
                        padding: 0 5px;
                    }
                    i{
                        background: rgb(117, 117, 117);
                        padding: 0.7rem;
                        border-radius: 30%;
                        width: 1rem;
                        height: 1rem;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        box-shadow: 1.5px 1.5px 1.5px rgb(255, 0, 0), 0.1px 0.1px 2px rgb(255, 255, 255) inset;
                        /* border-bottom: 1.5px solid #ff7300; */
                        /* transform: rotateY(50deg); */
                        transition: all 0.3s ease-in-out;
                        will-change: transform;
                        &:hover{
                            background: rgb(255, 0, 0);
                            box-shadow: 1.5px 1.5px 1.5px yellow;
                            /* transform-origin: bottom right; */
                        }
                        &:active{
                            /* box-shadow: 1px 1px 1.5px rgb(255, 255, 0), 0.1px 0.1px 2.5px rgb(255, 255, 255) inset; */
                            transform: scale(0.9);
                        }
                    }
                }
                div.ptabs{
                    background: rgb(255, 123, 0);
                    display: flex;
                    justify-content: space-between;
                    /* align-items: normal; */
                    padding: 5px;
                    .ptab{
                        border-bottom: 3px solid transparent;
                        cursor: pointer;
                        padding: 3px 10px;
                        border-radius: 5px;
                        &:hover{
                            color: rgb(255, 255, 255);
                            background: rgba(255, 255, 255, 0.406);
                        }
                        &.on{
                            color: white;
                            border-bottom: 2px solid rgb(255, 255, 255); 

                        }
                    }
                }
                div.pbody{
                    background: rgb(218, 218, 218);
                    display: flex;
                    height: inherit;
                    /* overflow: scroll; */
                    /* justify-content: space-between; */
                    /* padding: 1%; */

                    .tabscreen{
                        /* display: none; dont knw why its not working but visibility works, INVESTIGATE LATER */
                        /* visibility: collapse; */
                        display: none;
                        padding: 10px;
                        width: 100%;
                        height: inherit;
                        overflow: auto;
                    }
                    .tabscreen.on{
                        display: block;
                        height: 100%;
                        /* visibility: visible; */
                        transition: all 1s ease;
                    }
                    #trackscreen.on{
                        display: flex;
                        /* padding: 10px; */
                        /* height: 100%; */
                        align-items: center;
                        justify-content: space-evenly;
                        background: hsl(235, 62%, 17%);
                        width: 100%;
                        overflow: hidden;
                        /* flex-wrap: wrap; */
                        
                        input{
                            height: 10%;
                            background: #1e56cd;
                            outline: none;
                            border: none;
                            border-radius: 5px;
                            padding: 15px;
                            margin: 0 10px;
                            color: white;
                            width: 85%;
                            &::placeholder{
                                color: white;
                                font-weight: lighter;
                            }
                        }
                        button{
                            height: 10%;
                            width: fit-content;
                            display: inline-flex;
                            align-items: center;
                            justify-content: center;
                            padding: 15px;
                            background: orange;
                        }
                    }
                    #chatscreen.on{
                        /* background: repeating-linear-gradient(to bottom, rgba(108, 108, 108, 0.5), rgba(179, 179, 179, 0.6) 1%, transparent 1%, transparent 4%); */
                        display: flex;
                        /* background-color: rgba(255, 255, 255, 0.5); */
                        background: url(../Styles/chatbg.svg);
                        justify-content: space-between;
                        flex-direction: column;
                        /* padding: 10px; */

                        .reply{
                            display: flex;
                            max-width: 70%;
                            margin: 3% 0;
                            padding: 3%;
                        }
                        .shopreply{
                            background: rgb(54, 67, 113);
                            word-wrap: break-word;
                            align-self: flex-end;
                            border-radius: 5px;
                        }
                        .userreply{
                            background: rgb(114, 75, 8);
                            align-self: flex-start;
                            word-wrap: break-word;
                            border-radius: 5px;
                        }
                    }
                    #historyscreen.on{
                        /* padding: 10px; */
                        background: #404040;
                        max-width: 100%;
                        display: flex;
                        flex-direction: column;

                        .ohistitem{
                            display: flex;
                            flex-direction: column;
                            background: #2c53ff;
                            margin: 5px 2px;
                            padding: 5px;
                            border: 3px solid transparent;
                            box-sizing: border-box;

                            &:hover{
                                border: 3px solid orange;
                            }
                            p{
                                font-weight: bold;
                            }
                            ul {
                                padding: 5px;
                                li{
                                    list-style-type: none;

                                        &::marker{
                                            margin: 0;
                                            padding: 0;
                                        }
                                }
                            }
                            
                                
                        }
                    }
                }
            }


        }
    }

    /* TODO::: There are some issues here with sub-view, make sure to check them out again */
    div.sub-view{
        background: rgb(255, 247, 232);
        padding: 0 1.2rem;
        width: 100%;
        height: 10%;
        
        ul{
            display: flex;
            align-items: center;
            justify-content: center;
            
            li{
                list-style-type: none;
                padding: 1rem;
                display: flex;
                justify-content: space-evenly;
                flex: 1;
                align-items: center;
                cursor: cell;
                color: #1e56cd;
                
                &:hover{
                    color: rgb(215, 0, 151);
                }
                &:hover i{
                    color: rgb(32, 176, 34);
                }
                i{
                    margin-right: 0.2rem;
                }

            }
        }
    }
}
section#about{
    /* background: rgb(159, 213, 115); */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    div.procedure{
        /* background: rgba(182, 185, 235, 0.792); */
        background: rgb(43, 47, 48);
        width: 100%;
        text-align: center;
        padding: 2rem;
        
        h2{
            padding: 0 1rem;
            color: #d0ff00;
            text-decoration: 3px rgb(255, 65, 182) dashed underline;
            text-underline-offset: 7px;
            /* text-emphasis: circle; */
            
        }

        p{
            padding: 1rem;
            color: white;

        }
        .steps{
            display: flex;
            justify-content: center;
            background: #d0ff00;
            width: 100%;
            padding: 1rem;
            border-radius: 1rem;
            /* height: 200%; */

            .step{
                background: rgba(0, 128, 0, 0);
                /* margin: 0.3rem; */
                /* padding: 0.3rem; */
                text-align: left;
                width: 30%;

                i{  
                    display: inline-flex;
                    justify-content: center;
                    align-items: center;
                    width: 1rem;
                    height: 1rem;
                    /* vertical-align: middle; */
                    margin-right: 1rem;
                    border-radius: 50%;
                    background-color: #ff26be;
                    padding: 1rem;
                    color: rgb(238, 255, 0);
                }
                p{
                    color: rgb(67, 67, 67);
                }
            }
        }
    }
    div.fixable{
        background: rgb(255, 255, 255);
        width: 100%;
        /* height: 70vh; */
        text-align: center;
        padding: 5rem 5rem;

        h2{
            padding: 0 1rem;
            color: #1900ff;
        }

        p{
            padding: 1rem;
            color: #474747;
        }
        .fixitem{
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            background: #1900ff;
            width: 100%;
            padding: 1rem;
            border-radius: 1rem;
            /* height: 200%; */

            .item{
                background: rgba(244, 255, 251, 0.87);
                margin: 0.3rem;
                padding: 1rem;
                border-radius: 10px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                text-align: center;
                width: 30%;
                flex-direction: column;
                flex: 1;
                transition: all 0.3s ease;
                
                &:hover{
                    background: #5715ff;
                    box-shadow: 0px 5px 2px rgb(255, 255, 255);
                    transform: rotateX(18deg);
                }
                &:hover i{
                    background: white;
                    color: #1900ff;
                    /* transform: rotateX(23deg); */

                }
                &:hover p{
                    color: white;
                    transform: rotateX(0deg);

                }
                i{  
                    /* margin-top: auto; */
                    display: inline-flex;
                    justify-content: center;
                    align-items: center;
                    width: 2rem;
                    height: 2rem;
                    border-radius: 50%;
                    background-color: #5715ff;
                    padding: 2rem;
                    color: rgb(255, 255, 255);
                }
                p{
                    padding: 0.5rem;
                }
            }
        }
    }
    div.reviews{
        background: rgb(36, 111, 45);
        width: 100%;
        width: 100%;
        text-align: center;
        padding: 2rem;
        color: white;
        overflow: auto;
        scrollbar-width: none;

        & ::-webkit-scrollbar{
            display: none !important;
        }

        h2{
            padding: 0 1rem;
            color: #ffffff;
        }

        p{
            padding: 1rem;
            /* color: #474747; */
        }
        .revs{
            display: flex;
            justify-content: space-evenly;
            flex-wrap: wrap;
            background: linear-gradient(45deg,rgb(253, 104, 173) 25%, rgb(230, 176, 0) 55%, rgb(105, 167, 255) 80%);
            width: 100%;
            padding: 1rem;
            border-radius: 1rem;
            height: fit-content;
            /* height: 200%; */

            .rev{
                background: rgba(195, 224, 247, 0.45);
                backdrop-filter: blur(15px);
                margin: 0.3rem;
                padding: 0.5rem;
                border-radius: 10px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                /* text-align: center; */
                width: 30%;
                /* flex-direction: column; */
                flex: 1 1;
                box-sizing: border-box;
                /* overflow: scroll; */
                height: fit-content;

                ::-webkit-scrollbar{
                    display: none;
                }
                p{
                    /* color: rgb(255, 53, 86); */
                    /* background: green; */
                    text-align: left;
                    font-size: 0.8rem;
                    padding: 0.5rem;
                    width: 65%;
                }

                i{  
                    /* margin-top: auto; */
                    display: inline-flex;
                    justify-content: center;
                    align-items: center;
                    aspect-ratio: 1/1;
                    /* width: 3rem; */
                    /* height: 2rem; */
                    /* border-radius: 40%; */
                    background-color: #eaf5ff;
                    padding: 0.5rem;
                    color: rgb(4, 0, 255);
                    width: 35%;
                    height: 100%;
                }
            }
        }
    }
}
/* .open{
    visibility: visible;
    height: 60vh;
} */