@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
:root{
    --Blue_200: hsl(243, 100%, 93%);
    --Grayish_Blue: hsl(229, 7%, 55%);
    --Blue_850: hsl(228, 56%, 26%);
    --Blue_950: hsl(229, 57%, 11%);
}

@keyframes expandWidth {
    0%{
        width: 0%;
    }
}
body{
    background-color: var(--Blue_950);
    width: 100%;
    min-height: 100vb;
    font-family: 'Raleway', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('./images/bg-desktop.png');
    background-position:  top 140% left 0px ;
    background-repeat: no-repeat;
    main{
        width: 60%;
        height: 100%;
        margin: auto;
        display: flex;
        justify-content:space-between;
        align-items: center;
        .imgs{
            width: 34%;
            height: auto;
            display: flex;
            flex-direction: column;
            background-color: var(--Blue_850);
            padding: 2rem 0;
            padding-left: 1rem;
            gap: 1.5rem;
            border-radius: 8px;
            border-top-right-radius: 40%;
            .logo{
                img{
                    width: 45%;
                }
            }
            .icon{
                width: 66%;
                display: flex;
                justify-content:space-around;
                span{
                    width: 3rem;
                    height: 3rem;
                    border-radius: 5px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background-color: var(--Blue_950);
                    img{
                        width: 50%;
                    }
                    &:hover{
                        background-color: var(--Blue_200);
                        box-shadow:
                        2px 0px 5px var(--Grayish_Blue),
                        -2px 0px 5px var(--Grayish_Blue),
                        0px 2px 5px var(--Grayish_Blue),
                        0px -2px 5px var(--Grayish_Blue);
                        cursor: pointer;
                    }
                }
            }
        }
        .content{
            width: 62.5%;
            height: auto;
            position: relative;
            bottom: -0.95rem;
            background-color: var(--Blue_850);
            border-radius: 1rem;
            .text{
                margin-left: 2rem;
                padding-top: 1.2rem;
                color: var(--Blue_200);
                font-size: 0.7rem;
                opacity: 0.7;
                span{
                    color: white;
                    font-size: 0.8rem;
                }
            }
            .brand{
                width: 6rem;
                height: 3rem;
                background-color: white;
                display: flex;
                align-items: center;
                justify-content: center;
                position: fixed;
                top: 39%;
                left: 67%;
                border-radius: 5px;
                font-weight: 600;
                span{
                    font-size: 0.7rem;
                    color: var(--Grayish_Blue);
                }
                &::before {
                    content: "";
                    position: absolute;
                    bottom: -17px;
                    right: 0;
                    width: 0;
                    height: 0;
                    border-top: 25px solid white;
                    border-left: 50px solid transparent;
                    border-right: 0 solid transparent;
                }
            }
            .slider {
                width: 86%;
                margin: auto;
                background-color: var(--Blue_950);
                height: 0.80rem;
                border-radius: 50px;
                position: relative;
                .slider-ovrlay {
                    position: absolute;
                    width: 75%;
                    top: 0;
                    left: 0;
                    bottom: 0;
                    background-image: linear-gradient(to right, hsl(6, 100%, 80%), hsl(335, 100%, 65%));
                    border-radius: inherit;
                    transition: all 0.3s ease-in;
                    display: flex;
                    align-items: center;
                    justify-content: flex-end;
                    padding: 2px;
                    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.5),
                        -2px 0px 5px rgba(0, 0, 0, 0.5),
                        0px 2px 5px rgba(0, 0, 0, 0.5),
                        0px -2px 5px rgba(0, 0, 0, 0.5);
                    animation: expandWidth 0.8s ease-out forwards;
                    &::before {
                        position: absolute;
                        content: "";
                        height: 0.7rem;
                        width: 0.7rem;
                        border-radius: 50%;
                        background-color: white;
                    }
                }
            }
            .size{
                width: 85%;
                margin: auto;
                padding: 0.3rem 0;
                padding-bottom: 1rem;
                display: flex;
                align-items: center;
                justify-content: space-between;
                color: var(--Blue_200);
                font-size: 0.7rem;
            }
        }
    }
}

@media (max-width:375px) {
    body{
    background-image: url('./images/bg-mobile.png');
    background-size: cover;
    background-position:  top 10% left 0px ;
    main{
        width: 80%;
        height: 100%;
        margin: auto;
        display: flex;
        flex-direction: column;
        justify-content:space-between;
        align-items: center;
        .imgs{
            width: 100%;
            height: 40vb;
            display: flex;
            flex-direction: column;
            background-color: var(--Blue_850);
            padding: 2rem 0;
            padding-left: 3rem;
            gap: 3rem;
            border-radius: 8px;
            border-top-right-radius: 40%;
            .logo{
                img{
                    width: 55%;
                }
            }
            .icon{
                width: 66%;
                display: flex;
                justify-content:space-around;
                span{
                    width: 3rem;
                    height: 3rem;
                    border-radius: 5px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background-color: var(--Blue_950);
                    img{
                        width: 50%;
                    }
                    &:hover{
                        background-color: var(--Blue_200);
                        box-shadow:
                        2px 0px 5px var(--Grayish_Blue),
                        -2px 0px 5px var(--Grayish_Blue),
                        0px 2px 5px var(--Grayish_Blue),
                        0px -2px 5px var(--Grayish_Blue);
                        cursor: pointer;
                    }
                }
            }
        }
        .content{
            width: 100%;
            height:10rem;
            position: relative;
            bottom: -0.95rem;
            background-color: var(--Blue_850);
            border-radius: 1rem;
            padding-top:1rem ;
            .text{
                margin-left: 3rem;
                padding-top: 1.2rem;
                color: var(--Blue_200);
                font-size: 0.7rem;
                opacity: 0.7;
                span{
                    color: white;
                    font-size: 0.8rem;
                }
            }
            .brand{
                width: 8rem;
                height: 4rem;
                background-color: white;
                display: flex;
                align-items: center;
                justify-content: center;
                position: absolute;
                top: 80%;
                left: 25%;
                border-radius: 5px;
                font-weight: 700;
                font-size: 2rem;
                span{
                    font-size: 0.7rem;
                    color: var(--Grayish_Blue);
                }
                &::before {
                    border-top: 0;
                    border-left: 0;
                    border-right: 0;
                }
            }
            .slider {
                width: 86%;
                margin: auto;
                background-color: var(--Blue_950);
                height: 0.80rem;
                border-radius: 50px;
                position: relative;
                .slider-ovrlay {
                    position: absolute;
                    width: 75%;
                    top: 0;
                    left: 0;
                    bottom: 0;
                    background-image: linear-gradient(to right, hsl(6, 100%, 80%), hsl(335, 100%, 65%));
                    border-radius: inherit;
                    transition: all 0.3s ease-in;
                    display: flex;
                    align-items: center;
                    justify-content: flex-end;
                    padding: 2px;
                    box-shadow: 2px 0px 5px rgba(0, 0, 0, 0.5),
                        -2px 0px 5px rgba(0, 0, 0, 0.5),
                        0px 2px 5px rgba(0, 0, 0, 0.5),
                        0px -2px 5px rgba(0, 0, 0, 0.5);
                    animation: expandWidth 0.8s ease-out forwards;
                    &::before {
                        position: absolute;
                        content: "";
                        height: 0.7rem;
                        width: 0.7rem;
                        border-radius: 50%;
                        background-color: white;
                    }
                }
            }
            .size{
                width: 85%;
                margin: auto;
                padding: 0.3rem 0;
                padding-bottom: 1rem;
                display: flex;
                align-items: center;
                justify-content: space-between;
                color: var(--Blue_200);
                font-size: 0.7rem;
            }
        }
    }
}
}