:root {
    --clr-bg: #fafafa;
    --clr-text: #0e0e0e;
    --clr-accent: #0e0e0e;
    --clr-muted: #0e0e0e;
    --clr-shadow: rgba(0, 0, 0, 0.89);
    --clr-highlight: #0e0e0e;
    --font-primary: "Montserrat";


    --logofont: "JosefinSans";
    /* volter  */
    /* avenir  */
    /* verdana */
    --gunmetal: #162630ff;
    --charcoal: #35414fff;
    --paynes-gray: #5b6576ff;
    --timberwolf: #d2d2cfff;
    --platinum: #e1e0dcff;
}

@font-face {
    font-family: "JosefinSans";
    src: url("assets/fonts/JosefinSans-SemiBold.ttf") format("truetype");
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--clr-bg);

    color: var(--clr-text);
    width: 100%;
    padding: 0 5%;
    font-family: var(--font-primary);
    margin: auto;

    display: flex;
    flex-direction: column;
    background-color: rgb(255, 255, 255);
    overflow-x: hidden;
    align-items: center;
    overflow-y: hidden;
}

.cursobody {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;

    #cropCanvas {
        background: radial-gradient(circle, red, #ffffff00);
        background-size: cover;
        background-position: center;
        pointer-events: none;
        transition: 70ms;
        --cursorsize: 2rem;
        position: fixed;
        z-index: 1000;

        border-radius: 100%;
        border: 2px solid #0e0e0e;
        width: var(--cursorsize);
        height: var(--cursorsize);
        top: calc(var(--cursorsize) / 2 * -1);
        left: calc(var(--cursorsize) / 2 * -1);
    }
}

.main {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 80vh;

    h1 {
        margin-bottom: 2rem;
        font-size: 132px;
        font-family: var(--logofont);
        font-weight: 700;
        transform: translateY(-100px);
        opacity: 0;
    }

    p {
        font-size: 32px;
        font-weight: 400;
        text-align: center;
    }
}

#sphere {
    height: 1000px;
    width: 1000px;
    border-radius: 100%;
    background-color: #020202;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;


    /* From https://css.glass */
    background: rgba(209, 209, 209, 0.336);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.5px);
    -webkit-backdrop-filter: blur(7.5px);
    border: 1px solid rgba(142, 155, 180, 0.38);

    img {
        height: 6rem;
        transform: scale(0.2);

        margin-top: 2rem;
    }

    span {
        margin-top: 8rem;
        font-size: 1.5rem;
        letter-spacing: 0.5rem;
        padding-left: 1rem;
    }
}

.scroll {
    margin-bottom: 2rem;
    border-radius: 100%;
    border: 1px solid black;
    height: 5rem;
    width: 5rem;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    span {
        margin-top: 0.8rem;
    }

    img {
        height: 1.5rem;
    }
}

.screenshots {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;


    width: 100%;


    div {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        margin: 3rem 1rem;
        flex-direction: row;
        height: 92vh;

        img {
            height: 90%;
        }

        span {
            margin-top: 25rem;
            margin-left: 3rem;

            h1 {
                font-size: 60px;
                font-weight: 600;
            }

            p {
                margin-top: 3rem;
                font-size: 36px;
                font-weight: 400;
            }
        }
    }

    .ss1 {
        flex-direction: row-reverse;
        align-items: end;

        span {
            margin-top: 0;
            margin-bottom: 9rem;
            margin-left: 0;
            width: max-content;
            height: max-content;

            letter-spacing: 8%;
            top: 71.5%;
            left: -99%;

            display: flex;




            p {
                margin-top: 0rem;
                font-weight: 400;
                font-size: calc(92vh * 8/100);
            }

            strong {
                margin-left: 1.2rem;
                font-size: calc(92vh * 8/100);
            }
        }
    }

    .ss3 {
        width: 90%;
        flex-direction: row-reverse;
        margin-left: 0;
        justify-content: space-around;

        span {
            margin-left: 0;

            h1 {
                margin-right: 9rem;
                text-align: center;
            }

            p {
                margin-left: 7rem;
                text-align: end;
            }
        }
    }

    .ss4 {
        width: 90%;
        flex-direction: row-reverse;
        margin-left: 0;
        justify-content: space-around;

        span {
            margin-left: 0;

            h1 {
                text-align: end;
            }

            p {
                margin-left: 7rem;
                text-align: end;
            }
        }
    }

    .ss5 {
        span {
            h1 {
                text-align: end;
            }
        }
    }
}

.footer {
    display: flex;
    height: 40vh;
    width: 100%;
    align-items: end;
    justify-content: center;
    flex-direction: column;

    .buttons {
        width: 100%;
        display: flex;
        flex-direction: column;

        align-items: center;

        a {
            margin-top: 1rem;
            text-decoration: none;
            color: #020202;
        }

        a:visited {
            text-decoration: none;
            color: #020202;
        }

        button {

            display: flex;
            align-items: center;
            justify-content: center;
            padding: 16px 50px;
            border-radius: 50px;
            border: 1px solid black;

            font-size: 30px;
            font-weight: 400;
            font-family: var(--font-primary);
            background-color: transparent;
            background: rgba(209, 209, 209, 0.336);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(7.5px);
            -webkit-backdrop-filter: blur(7.5px);
            border: 1px solid rgba(142, 155, 180, 0.38);

            img {
                height: 30px;
                margin-right: 1rem;
            }
        }

    }

    .contact {
        margin-top: 3rem;
        display: flex;
        flex-direction: column;
        align-items: end;
        justify-content: center;
        font-size: 24px;
        gap: 1rem;


    }
}

#preview {
    position: absolute;
    top: 0;
    left: 0;
}

#myCanvas {
    position: absolute;
    width: 100%;
    z-index: -1;
    overflow-y: hidden;
    height: max-content;
}


#loadercont {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    position: absolute;
    background-color: #fafafa;
    z-index: 100;

    .loader {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 1rem;

        img {
            height: 200px;
            animation: scaleUpDown 1.25s ease-in-out forwards infinite;
        }
    }


}

@keyframes scaleUpDown {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
        /* Scale up */
    }

    100% {
        transform: scale(1);
        /* Back to original */
    }
}




@media only screen and (max-width: 1700px) {
    body {
        margin: auto;
        width: 100%;
        padding: 0 2.5%;
    }

    .main {
        p {
            font-size: 28px;
            text-align: center;
        }
    }

    #sphere {
        height: 800px;
        width: 800px;

        img {
            height: 5rem;

        }


    }

    .screenshots {
        div {
            img {
                height: 90%;


            }

            span {
                margin-top: 20rem;
                margin-left: 2.5rem;

                h1 {
                    font-size: 50px;
                    font-weight: 600;
                }

                p {
                    margin-top: 3rem;
                    font-size: 28px;
                    font-weight: 400;
                }
            }
        }

        .ss1 {

            span {
                font-size: 40px;

            }
        }
    }

    .footer {
        button {
            font-size: 28px;

        }

        .contact {
            font-size: 22px;
        }
    }
}

hidden {
    color: transparent;
}

@media only screen and (max-width: 1300px) {
    body {

        margin: auto;
        width: 100%;
        padding: 0 2.5%;
    }

    #sphere {
        height: 600px;
        width: 600px;

        img {
            height: 4rem;

        }

        span {
            margin-top: 6rem;
            font-size: 1.3rem;
        }


    }

    .screenshots {
        div {
            img {
                height: 90%;


            }

            span {
                margin-top: 20rem;
                margin-left: 2.5rem;

                h1 {
                    font-size: 50px;
                    font-weight: 600;
                }

                p {
                    margin-top: 3rem;
                    font-size: 28px;
                    font-weight: 400;
                }
            }
        }

        .ss1 {

            span {
                font-size: 40px;
                top: 61.5%;
                left: 26.5%;
                flex-direction: column;
            }
        }
    }

    .footer {
        align-items: center;


        & .buttons {
            & button {
                /* font-size: 30px; */
                font-size: 19px;
            }


            .contact {
                font-size: 22px;
                align-items: center;
            }
        }
    }
}

@media only screen and (max-width: 800px) {
    #cropCanvas {
        display: none;
    }

    .main {
        & h1 {
            font-size: 111px;
        }

        & p {
            font-size: 22px;
            text-align: center;
        }
    }

    .scroll {
        & span {
            margin-top: 0.6rem;
        }

        & img {
            height: 1.2rem;
        }

        height: 4rem;
        width: 4rem;
    }

    #sphere {
        & img {
            height: 4rem;
            margin-top: 1rem;
        }

        & span {
            margin-top: 5rem;
            font-size: 1.2rem;
            letter-spacing: 0.3rem;
        }

        height: 500px;
        width: 500px;
    }


    .screenshots {
        div {
            flex-direction: column;

            img {
                width: auto;

            }


        }

        .ss1 {
            flex-direction: column;

            img {
                width: 90%;
                z-index: 9;
                margin: auto;
            }

            span {
                margin-top: 1rem;
                margin-left: 0;
                font-size: 10vw;
                display: flex;
                align-items: start;
                flex-direction: column;
                letter-spacing: 8%;
                width: auto;
                top: auto;
                left: auto;
                position: inherit;

                strong:nth-child(3) {
                    display: none;
                }

                strong:nth-child(4) {
                    display: inline;
                }

                p {
                    margin-top: 0rem;
                    font-size: 3rem;
                    font-weight: 400;
                }

                strong {
                    margin-left: 1.2rem;
                    font-size: 3rem;
                }
            }
        }

        .ss3 {
            flex-direction: column;
        }


        div {
            & span {
                margin-top: 20rem;
                margin-left: 2.5rem;
                margin: 1rem;
            }
        }

        .ss4 {

            flex-direction: column;
        }
    }




}



@media screen and (max-width: 600px) {
    body {
        width: 100%;
        padding: 0 2.5%;
        overflow-x: hidden;
    }

    .main {
        p {
            text-align: center;
        }
    }

    #sphere {
        height: 80vw;
        width: 80vw;
        align-items: center;

        img {
            height: 3rem;
            transform: scale(0.2);
        }

        span {
            margin-top: 3rem;
            font-size: 0.75rem;
            letter-spacing: 0.15rem;
            padding-left: 1rem;
        }
    }

    .screenshots {
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: hidden;

        div {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            margin: 2rem 0rem;
            height: max-content;
            min-height: 90vh;

            img {
                height: auto;
                width: 80%;
            }

            span {
                margin-top: 00.5rem;

                h1 {
                    font-size: 30px;
                    font-weight: 600;
                }

                p {
                    margin-top: 1rem;
                    font-size: 22px;
                    font-weight: 400;
                }
            }
        }

        .ss1 {
            flex-direction: column;

            img {
                width: 95%;

                z-index: 9;
                margin: auto;
            }

            span {
                margin-top: 0;
                margin-left: 0;
                font-size: 10vw;
                display: flex;
                align-items: start;
                flex-direction: column;
                letter-spacing: 8%;
                width: auto;
                top: auto;
                left: auto;
                position: inherit;

                strong:nth-child(3) {
                    display: none;
                }

                strong:nth-child(4) {
                    display: inline;
                }

                p {
                    margin-top: 0rem;
                    font-size: 3rem;
                    font-weight: 400;
                }

                strong {
                    margin-left: 1.2rem;
                    font-size: 3rem;
                }
            }
        }

        .ss3 {
            width: 100%;
            flex-direction: column;
            margin-left: 0;
            justify-content: space-around;

            span {
                margin-left: 0;

                h1 {
                    margin-right: 2rem;
                    text-align: center;
                }

                p {
                    margin-left: 2rem;
                    text-align: end;
                }
            }
        }

        .ss4 {
            width: 100%;
            flex-direction: column;
            margin-left: 0;
            align-items: center;
            justify-content: space-around;

            span {
                margin-left: 0;

                h1 {
                    text-align: end;
                }

                p {
                    margin-left: 3rem;
                    text-align: end;
                }
            }
        }

        .ss5 {
            align-items: center;

            span {
                h1 {
                    text-align: end;
                }
            }
        }
    }

    .footer {
        a {
            margin: 0.5rem;

            button {
                font-size: 1.2rem;
                padding: 0.8rem 1.6rem;
                display: flex;
                align-items: center;
                justify-content: center;

                img:nth-child(1) {
                    height: 1.5rem;
                    margin-right: 1rem;
                }
            }
        }

        .contact {
            margin-top: 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            gap: 1rem;
        }
    }
}


.blurred-svg {
    filter: blur(6px);
}

.musicp {
    transition: 0.2s;
    position: fixed;
    top: 0;
    right: 0;
    width: 4.4rem;
    height: max-content;
    min-height: 4.4rem;
    margin: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 20;
    padding: 1.1rem;
    border-radius: 4rem;
    background: rgba(209, 209, 209, 0.336);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7.5px);
    -webkit-backdrop-filter: blur(7.5px);
    border: 1px solid rgba(142, 155, 180, 0.38);

    #playButton {
        background-color: transparent;
        border: none;
        cursor: pointer;


        display: flex;
        align-items: center;
        justify-content: center;

        img {
            height: 1.8rem;

        }
    }


    #myaudiovol {
        display: none;

        transform: rotate(270deg);
        transition: 0.2s;

        align-items: center;
        pointer-events: none;

        height: 5rem;

        input {
            width: 5rem;
        }


    }
}

.musicp:hover {
    min-height: 10rem;
    justify-content: space-between;
    transition: 0.2s;

    #myaudiovol {
        display: flex;
        pointer-events: auto;
    }
}