* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Hanken Grotesk';
    src: url('./assets/fonts/static/HankenGrotesk-Bold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Hanken Grotesk';
    src: url('./assets/fonts/HankenGrotesk-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
}

body {
    display: flex;
    align-items: center;
    justify-content: start;
    background-color: hsl(221, 100%, 96%);
    font-family: 'Hanken Grotesk', sans-serif;
    min-height: 100%;
    height: 100vh ;
}

.card {
    background-color: hsl(0, 0%, 100%);
    box-shadow: 0rem 1.4rem 1.2rem 0.6rem hsla(215, 100%, 65%, 0.1);
    border-radius: 1.4rem;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 34.5rem;
    width: 100%;
    margin: auto;
    height: auto;
}

.resultSection {
    background: linear-gradient(to bottom, hsl(252, 100%, 67%), hsl(241, 81%, 54%));
    text-align: center;
    padding: 1.77rem 2rem;
    border-radius: 1.4rem;
}

.resultSection .yourResult {
    color: hsl(241, 100%, 89%);
    font-size: 1.15rem;
    font-weight: 500;
}

.resultSection .resultMarks {
    background: linear-gradient(to bottom, hsla(256, 72%, 46%, 1), hsla(241, 72%, 46%, 0));
    width: 9.1rem;
    aspect-ratio: 1/1;
    border-radius: 50%;
    margin: 1.55rem auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.1;
    box-sizing: border-box;
}

.resultSection .obtainedMarks {
    font-size: 3.3rem;
    font-weight: bold;
    color: hsl(0, 0%, 100%);
}

.resultSection .totalMarks {
    color: hsla(241, 100%, 89%, 0.6);
    font-size: 0.8rem;
}

.resultSection h1 {
    color: hsl(0, 0%, 100%);
    font-size: 1.5rem;
    font-weight: 600;
}

.resultSection .remarks {
    padding: 0.77rem;
    font-size: 0.85rem;
    font-weight: 300;
    color: hsl(221, 100%, 96%);
}

.summarySection {
    display: flex;
    flex-direction: column;
    gap: 1.42rem;
    box-sizing: border-box;
    padding: 1.82rem;
}

.summaryText {
    color: hsl(224, 30%, 27%);
    font-size: 1.15rem;
    font-weight: bold;
}

.summaryList {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    list-style: none;
}

.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.5rem;
    padding: 0.7rem;
}

.reaction {
    background-color: hsla(0, 100%, 67%, 0.06);
}

.memory {
    background-color: hsla(39, 100%, 56%, 0.06);
}

.verbal {
    background-color: hsla(166, 100%, 37%, 0.06);
}

.visual {
    background-color: hsla(234, 85%, 45%, 0.06);
}

.ImgText {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ImgText img {
    height: 2vh;
}

.ImgText p {
    font-size: 0.88rem;
    font-weight: 500;
}

.reaction .ImgText p {
    color: hsl(0, 100%, 67%);
}

.memory .ImgText p {
    color: hsl(39, 100%, 56%);
}

.visual .ImgText p {
    color: hsl(234, 85%, 45%);
}

.verbal .ImgText p {
    color: hsl(166, 100%, 37%);
}

.marks {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.marks .obtainedMarks {
    font-weight: bold;
    font-size: 0.8rem;
    color: hsl(224, 30%, 27%);
}

.marks .totalMarks {
    font-size: 0.8rem;
    font-weight: bold;
    color: hsla(224, 30%, 27%, 0.5);
}

.link {
    margin-top: 0.5rem;
    padding: 0.66rem 2rem;
    border-radius: 2.6rem;
    background-color: hsl(224, 30%, 27%);
    text-align: center;
}

.link a {
    text-decoration: none;
    color: hsl(0, 0%, 100%);
    font-size: 0.85rem;
}

.link:hover {
    background: linear-gradient(to bottom, hsl(252, 100%, 67%), hsl(241, 81%, 54%));
    cursor: pointer;
}

/* Mobile media queries */

@media only screen and (max-width: 480px) {
    .card {
        grid-template-columns: 1fr;
        height: 100%;
        border-radius: 0rem;
    }

    .resultSection {
        padding: 1.55rem 2.84rem;
        border-radius: 0 0 2.1rem 2.1rem;
    }

    .resultSection .resultMarks {
        margin: 1.5rem auto;
        width: 8.7rem;
    }

    .resultSection .obtainedMarks {
        font-size: 3.5rem;
    }

    .resultSection .resultMarks .totalMarks {
        font-size: 1rem;
    }

    .resultSection .remarks {
        font-size: 1rem;
        padding: 0.5rem;
        margin-bottom: 0.4rem;
    }

    .summarySection {
        padding: 1.5rem 1.85rem;
        gap: 1.2rem;
    }

    .summaryList {
        gap: 1rem;
    }

    .item {
        padding: 1.1rem 1rem;
        border-radius: 0.8rem;
        gap: 2rem;
    }

    .ImgText {
        gap: 1rem;
    }

    .ImgText img {
        height: 2.5vh;
    }

    .ImgText p {
        font-size: 1rem;
    }

    .marks .obtainedMarks, .marks .totalMarks {
        font-size: 1rem;
    }

    .link {
        padding: 1rem 2rem;
        border-radius: 2rem;
        margin-bottom: 1rem;
    }
    
    .link a {
        font-size: 1.1rem;
        font-weight: bold;
    }
}