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

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "Hanken Grotesk", sans-serif;
    outline: none;
    user-select: none;
    caret-color: transparent;
}

body {
    background-color: hsl(221, 100%, 96%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.box {
    display: flex;
    background-color: white;
    border-radius: 0 20px 20px 0;
}

.section1 {
    background: HSL(252, 100%, 67%);
    background: linear-gradient(180deg, rgba(120, 87, 255, 1) 0%, rgba(46, 43, 233, 1) 85%);
    border-radius: 20px;
    padding: 30px;
    width: 300px;
    text-align: center;
    color: white;

    h1 {
        font-size: 20px;
        font-weight: 500;
        opacity: 0.7;
        margin-bottom: 20px;
    }

    .circle {
        background: HSLA(256, 72%, 46%, 1);
        background: linear-gradient(180deg, rgba(78, 33, 202, 1) 0%, rgba(36, 33, 202, 0.06) 70%);
        width: 180px;
        height: 180px;
        border-radius: 90px;
        margin: 0 auto 25px;
        padding: 35px
    }

    h2 {
        font-size: 70px;
    }

    .of100 {
        font-size: 14px;
        opacity: 0.4;
        font-weight: 500;
    }

    h3 {
        margin-bottom: 15px;
        font-size: 25px;
        font-weight: 700;
        opacity: 0.9;
    }

    .main-paragraph {
        font-size: 16px;
        opacity: 0.7;

    }
}

.section2 {
    padding: 20px;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;

    h4 {
        color: hsl(224, 30%, 27%);
        font-size: 20px;
        font-weight: 800;
        margin-left: 10px;
    }

    table {
        width: 100%;
        border-spacing: 10px;
    }

    td {
        height: 50px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        border-radius: 10px;
    }

    .td1 {
        color: hsl(0, 100%, 67%);
        background-color: hsla(0, 100%, 67%, 0.062);
        font-size: 17px;
    }

    .td2 {
        color: hsl(39, 100%, 56%);
        background-color: hsla(39, 100%, 56%, 0.062);
        font-size: 17px;
    }

    .td3 {
        color: hsl(166, 100%, 37%);
        background-color: hsla(166, 100%, 37%, 0.062);
        font-size: 17px;
    }

    .td4 {
        color: hsl(234, 85%, 45%);
        background-color: hsla(234, 85%, 45%, 0.062);
        font-size: 17px;
    }

    img {
        margin: 2px 10px 0;
        width: 14px;
    }

    .result {
        color: rgba(0, 0, 0, 0.384);
        font-weight: 700;
    }

    strong {
        color: hsl(224, 30%, 27%);
        font-weight: 700;
    }

    button {
        height: 50px;
        border: none;
        border-radius: 25px;
        background-color: hsl(224, 30%, 27%);
        color: white;
        font-size: 16px;
        margin-bottom: 10px;
        cursor: pointer;
        transition: all 700ms;
    }

    button:hover {
        background-color: white;
        color: hsl(224, 30%, 27%);
        border: 1px solid hsl(224, 30%, 27%);
    }
}

.attribution {
    font-size: 10px;
    text-align: center;
    margin-bottom: 10px;
}

.attribution a {
    color: hsl(228, 45%, 44%);
    text-decoration: none;
}

@media (max-width: 480px) {

    body,
    main {
        width: 100vw;
        height: 100vh;
    }

    .box {
        flex-direction: column;
        overflow: hidden;
        width: 100%;
        max-width: 480px;
        border-radius: 0;
        align-self: flex-start;
        height: 100%;
    }

    .section1 {
        border-radius: 0 0 40px 40px;
        height: 45vh;
        padding: 50px;
    }

    .section1,
    .section2 {
        width: 100%;
    }



    .section1 .circle {
        width: 160px;
        height: 160px;
        border-radius: 80px;
        padding: 30px;
    }

    .section1 h1 {
        font-size: 22px;
        margin-top: -20px;
    }

    .section1 h2 {
        font-size: 60px;
    }

    .section1 h3 {
        font-size: 26px;
    }

    .section1 .main-paragraph {
        font-size: 18px;
    }

    .section2 {
        padding: 30px;
        height: 100%;
    }

    .section2 h4 {
        font-size: 22px;
        margin: 0 0 0 20px;
    }

    .section2 table {
        border-spacing: 16px;
    }

    .section2 td {
        height: 60px;
        padding: 20px;
    }

    .section2 img {
        margin-left: 0;
        width: 16px;
    }

    .section2 span {
        font-size: 20px;
        font-weight: 600;
    }

    .section2 button {
        width: 100%;
        font-size: 20px;
        font-weight: 600;
        align-self: center;
        height: 60px;
        border-radius: 40px;
    }

    .attribution {
        display: none;
    }
}