@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --Red: hsl(0, 78%, 62%);
    --Cyan: hsl(180, 62%, 55%);
    --Orange: hsl(34, 97%, 64%);
    --Blue: hsl(212, 86%, 64%);
    --Grey-500: hsl(234, 12%, 34%);
    --Grey-400: hsl(212, 6%, 44%);
    --White: hsl(0, 0%, 100%);
}

* {
    margin: 0;
    padding: 0;
    font-weight: 400;
    color: var(--Grey-500);
    font-family: "Poppins", sans-serif;
    transition: all 500ms ease-in-out;
}

body {
    height: 100%;
    min-height: 100vh;
    background: hsla(0, 0%, 100%, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* Outside - Parent Div */
.container {
    width: 90%;
    padding: 3rem 0 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    
    h1.title {
        font-size: 27px;
        font-weight: 600;
    }
    
    span {
        color: var(--Grey-400);
        font-size: 27px;
        font-weight: 200;
        display: block;
    }
    
    p.info { font-size: 16px; }
}


/* Boxes Group & Single Box - Flex / Grid */
.boxes {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    
    .box {
        height: 250px;
        text-align: left;
        padding: 2rem;
        background: var(--White);
        border-top: 4px solid var(--Cyan);
        border-radius: 8px;
        box-sizing: border-box;
        box-shadow: 0 5px 20px -8px var(--Grey-400);
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .red { border-top: 4px solid var(--Red); }
    
    .orange { border-top: 4px solid var(--Orange); }
    
    .blue { border-top: 4px solid var(--Blue); }
}


/* Individual Elements style */
.coder {
    padding: 20px 0 3rem;
    font-size: 20px;
    text-align: center;
    font-weight: 700;

    * { color: blue; }
}

h2.title {
    font-size: 23px;
    font-weight: 600;
}

p.brief {
    font-size: 15px;
    color: var(--Grey-400);
}

img {
    width: 64px;
    position: absolute;
    bottom: 2rem;
    right: 2rem;
}


/* Responsive Design - Media Queries  */
@media screen and (min-width:600px) { .container { width: 500px; } }

@media screen and (min-width:762px) {
    .container {
        width: 100%;
        
        h1.title { font-size: 38px; }
        
        span { font-size: 38px; }
        
        p.info {
            font-size: 16px;
            width: 535px;
            margin: 0 auto;
        }
    }
    
    .boxes {
        margin-top: 50px;
        display: grid;
        grid-template: repeat(2, auto) / repeat(2, auto);
        justify-content: center;
        gap: 35px;
    }
    
    .box { width: 363px; }
    
    .cyan {
        margin-top: 125px;
        grid-area: 1 / 1 / 2 / 2; 
    }
    .red { grid-area: 1 / 2 / 2 / 3; }
    .orange { grid-area: 2 / 1 / 3 / 2; }
    .blue {
        margin-top: -125px;
        grid-area: 2 / 2 / 3 / 3;
    }
}

@media screen and (min-width:1160px) {
    .boxes {
        grid-template: repeat(2, auto) / repeat(3, auto);
        
        .cyan { grid-area: 1 / 1 / 3 / 2; }
        .red { grid-area: 1 / 2 / 2 / 3; }
        .orange { grid-area: 2 / 2 / 3 / 3; }
        .blue {
            margin-top: 125px;
            grid-area: 1 / 3 / 3 / 4;
        }
    }
}