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


:root {
    /* Primary color */
    --Light-red: hsl(0, 100%, 67%);
    --Orangey-yellow: hsl(39, 100%, 56%);
    --Green-teal: hsl(166, 100%, 37%);
    --Cobalt-blue: hsl(234, 85%, 45%);

    /* Gradients color */

    --Light-slate-blue-background: hsl(252, 100%, 67%);
    --Light-royal-blue-background: hsl(241, 81%, 54%);
    --Violet-blue-circle: hsla(256, 72%, 46%, 1);
    --Persian-blue-circle: hsla(241, 72%, 46%, 0);

    /* Neutral colors */

    --White: hsl(0, 0%, 100%);
    --Pale-blue: hsl(221, 100%, 96%);
    --Light-lavender: hsl(241, 100%, 89%);
    --Dark-gray-blue: hsl(224, 30%, 27%);
}

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

body{
    text-align: center;
    font-family: 'Hanken Grotesk', sans-serif;
    font-size: 18px;
    background-color: var(--Pale-blue);
}

/* Mobile CSS */

main {
    width: 100%;
    background-color: var(--White);
}

.result-container{
    background: linear-gradient(to bottom, var(--Light-slate-blue-background), var(--Light-royal-blue-background));
    padding: 1rem 2rem;
    border-radius: 0 0 15px 15px;
}

.result-container p {
    color: var(--Pale-blue);
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.score-container {
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(to bottom, var(--Violet-blue-circle), var(--Persian-blue-circle));
}

.score-container p{
  padding: 20px 0 0 0;
  
}

.score-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.score-main {
    color: var(--White);
    font-size: 0.8rem; 
    font-weight: 800;
}

.score-sub { 
    color: #979ba7;
    font-size: 0.8rem;
    font-weight: 500;
}


.result-details {
    margin: 20px 0 10px 0;
}

.result-details p:first-of-type{
    color: var(--White);
    font-size: 1.2rem;

}

.summary-container{
    margin: 20px;
    padding: 0 10px;
}

.summary-title{
   text-align: left;
   font-size: 0.8rem;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    margin: 15px 0;
    height: 30px;
    font-size: 0.8rem;
    padding: 0 10px;
    border-radius: 5px;
    
}

.score-item img{
    width: 12px;
    align-items: center;
    margin-right: 5px;
}


.score-item:nth-child(2) { 
    background-color: rgba(255, 87, 87, 0.1); 
    color: var(--Light-red);
}

.score-item:nth-child(3) { 
    background-color: rgba(255, 176, 31, 0.1); 
    color: var(--Orangey-yellow);
}

.score-item:nth-child(4) { 
    background-color: rgba(0, 189, 145, 0.1);
    color: var(--Green-teal); 
}

.score-item:nth-child(5) { 
    background-color: rgba(17, 37, 212, 0.1); 
    color: var(--Cobalt-blue);
}


.score-text span:first-of-type {
    color: var(--Dark-gray-blue);
}

.score-text span:last-of-type {
    color: #979ba7;
    font-weight: 500;
}

.score-category {
    display: flex;
    align-items: center;
    gap: 10px;
  }

.summary-button{
    width: 100%;
    height: 40px;
    color: white;
    background-color: var(--Dark-gray-blue);
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.summary-button:hover {
    background-color: var(--Light-royal-blue-background);
}

/* Desktop css using min screen size as 450px */

@media (min-width: 450px){

    main {
        width: 40%;
        display: flex;
        margin: 30px auto;
        border-radius: 15px;
    }

    .result-container {
        width: 50%;
        border-radius: 15px;
    }

    .summary-container {
        width: 50%;
    }
}