@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@100..900&display=swap');

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 0;
    margin: 0;


    font-family: "Hanken Grotesk";

    #container {
        display: flex;
        flex-direction: column;

        width: 100%;

        container-type: inline-size;

        .result {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;

            padding-bottom: 2.5rem;

            background-image: linear-gradient(180deg, hsl(252, 100%, 67%), hsl(241, 81%, 54%));

            border-radius: 0 0 2.5rem 2.5rem;

            text-align: center;

            p:first-child {
                color: hsl(241, 100%, 89%);

                font-weight: 700;
                font-size: 20px;
            }

            .score-circle {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;

                width: 8rem;
                aspect-ratio: 1 / 1;

                background-image: linear-gradient(180deg, hsla(256, 72%, 46%, 1), hsla(241, 72%, 46%, 0));

                border-radius: 100%;

                * {
                    margin: 0;
                }

                .score {
                    color: white;

                    font-weight: 800;
                    font-size: 3rem;
                }

                p {
                    color: hsl(241, 100%, 89%);
                }
            }

            .well-done {
                margin-bottom: 0;

                color: #fff;

                font-weight: 500;
                font-size: 24px;
            }

            .explaination {
                margin: .5rem 2.5rem 0 2.5rem;

                color: hsl(241, 100%, 89%);
            }
        }

        .summary {
            box-sizing: border-box;

            padding: 0 2rem;

            h2 {
                color: hsl(224, 30%, 27%);
            }

            .skills {
                display: flex;
                flex-direction: column;
                gap: 1rem;

                .skill {
                    display: flex;
                    gap: 1rem;

                    padding: 1rem;

                    border-radius: .5rem;

                    font-weight: 500;
                    font-size: 18px;

                    div {
                        margin-inline-start: auto;

                        color: hsla(224, 30%, 27%, 0.75);

                        .score {
                            color: hsl(224, 30%, 27%);
                        }
                    }
                }

                .red {
                    color: hsl(0, 100%, 67%);
                    background-color: hsla(0, 100%, 67%, 0.1);
                }

                .yellow {
                    color: hsl(39, 100%, 56%);
                    background-color: hsla(39, 100%, 56%, 0.1);
                }

                .green {
                    color: hsl(166, 100%, 37%);
                    background-color: hsla(166, 100%, 37%, 0.1);
                }

                .blue {
                    color: hsl(234, 85%, 45%);
                    background-color: hsla(234, 85%, 45%, 0.1);
                }
            }

            >button {
                color: #fff;
                background-color: hsl(224, 30%, 27%);

                width: 100%;

                padding: 1rem;
                margin-top: 2rem;

                border: none;
                border-radius: 2rem;

                font-family: inherit;
                font-weight: 500;
                font-size: 20px;
            }
            >button:hover {
                background-image: linear-gradient(180deg, hsl(252, 100%, 67%), hsl(241, 81%, 54%));
            }
        }
    }

    .attribution {
        margin: 2rem 0;

        text-align: center;
    }
}

@media screen and (width > 750px) {
    body {
        min-height: 100svh;
        #container{
            flex-direction: row;

            width: 650px;

            border-color: #fff;
            border-radius: 2.5rem;

            box-shadow: 1rem 1rem 2rem hsl(221, 100%, 96%);
            >*{
                width: 50%;
            }
            .result{
                border-radius: 2.5rem;
                .score-circle{
                    width: 12rem;
                    .score{
                        font-size: 4rem;
                    }
                }
            }
            .summary{
                padding: 0 2rem 2rem 2rem;
            }
        }
    }
}