/* *** *** *** Custom Properties *** *** *** */
@font-face {
    font-family: "HankenGrotesk";
    src: url(../assets/fonts/HankenGrotesk-VariableFont_wght.ttf);
}

:root {
    --font-family: "HankenGrotesk";
    --font-size: 16px;
    /* *** Colors / Primary *** */
    --color-light-red: hsl(0, 100%, 67%);
    --color-orangey-yellow: hsl(39, 100%, 56%);
    --color-green-teal: hsl(166, 100%, 37%);
    --color-cobalt-blue: hsl(234, 85%, 45%);
    /* *** Colors / Gradients *** */
    --color-light-slate-blue-background: hsl(252, 100%, 67%);
    --color-light-royal-blue-background: hsl(241, 81%, 54%);
    --color-violet-blue-circle: hsla(256, 72%, 46%, 1);
    --color-persian-blue-circle: hsla(241, 72%, 46%, 0);
    /* *** Colors / Neutral *** */  
    --color-white: hsl(0, 0%, 100%);
    --color-pale-blue: hsl(221, 100%, 96%);
    --color-light-lavender: hsl(241, 100%, 89%);
    --color-dark-gray-blue: hsl(224, 30%, 27%);
}

/* *** *** *** Reset *** *** *** */
html {
    box-sizing: border-box;
    font-family: var(--font-family);
    font-size: var(--font-size);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

*, *:before, *:after { box-sizing: inherit; }

h1, h2, h3, h4, h5, h6, p { margin: 0; }

a { text-decoration: none; }

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

picture { display: block; }

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

hr {
    border-left-width: 0;
    border-right-width: 0;
}

/* *** *** *** Components *** *** *** */
/* *** Components / Results Summary *** */
.results-summary {
    display: flex;
    flex-direction: column;
    box-shadow: 15px 15px 20px #0001;
    --border-radius-value: 30px;
}

/* ***
    Components 
        / Results Summary 
            / Your Result
*** */

.results-summary-your-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
    border-bottom-left-radius: var(--border-radius-value);
    border-bottom-right-radius: var(--border-radius-value);
    background: linear-gradient(
        var(--color-light-slate-blue-background),
        var(--color-light-royal-blue-background)
    );
}

.results-summary-title-your-result {
    font-size: 1.2rem;
    color: var(--color-light-lavender);
}

.results-summary-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    aspect-ratio: 1 / 1;
    padding: 2rem;
    border-radius: 50%;
    background: linear-gradient(
        var(--color-violet-blue-circle),
        var(--color-persian-blue-circle)
    );
}

.results-summary-total-score {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--color-white);
}

.results-summary-max-score { color: var(--color-light-lavender); }

.results-summary-txt { text-align: center; }

.results-summary-score-txt {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--color-white);
}

.results-summary-average-txt { 
    width: 60%;
    margin: 0 auto;
    line-height: 1.5rem;
    color: var(--color-light-lavender); 
}

/* ***
    Components 
        / Results Summary 
            / Summary
*** */

.results-summary-summary { 
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem; 
}

.results-summary-title-summary { 
    font-size: 1rem; 
    color: var(--color-dark-gray-blue);
}

.results-summary-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.results-summary-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 30px;
    font-weight: bold;
    color: var(--color-white);
    background-color: var(--color-dark-gray-blue);
}

.results-summary-btn:hover { background: var(--color-light-royal-blue-background); }

@media screen and (min-width: 1000px) {
    .results-summary { 
        flex-direction: row; 
        border-radius: var(--border-radius-value);
    }

    .results-summary-your-result,
    .results-summary-summary { flex-basis: 50%; }

    .results-summary-your-result { border-radius: var(--border-radius-value); }
}

/* *** Components / Results Summary Tag *** */
.results-summary-tag {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.results-summary-tag-block-one {
    display: flex;
    gap: 1rem;
}

.results-summary-tag-category { font-weight: 500; }

.results-summary-tag-max-score { color: var(--color-light-lavender); }

.results-summary-tag-background {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    opacity: 0.03;
}

/* *** *** *** Site Styles *** *** *** */
#root {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}

.main { 
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; 
}

.footer { padding: 1rem; }
