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

}

body {
    background-color: hsl(0, 0%, 8%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}



.parent {
    background-color: hsl(0, 0%, 12%);
    font-size: 14px;
    color: white;
    border-radius: 10px;
    width: 380px;
    max-width: 100%;
    height: 600px;
    padding: 30px 25px 25px;
    text-align: center;
    display: block;
    font-family: 'Inter', sans-serif;



}

::selection {
    background-color: hsl(75, 94%, 57%);
    /* The green-yellow accent */
    color: hsl(0, 0%, 8%);
}

img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: cover;
}

.parent p:nth-of-type(1) {

    font-weight: 700;
    font-size: 22px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.parent p:nth-of-type(2) {
    font-weight: 600;
    color: hwb(75 16% 3%);
    font-size: 13px;
    margin-bottom: 25px;

}

.parent p:nth-of-type(3) {
    font-weight: 400;
    margin-bottom: 15px;
    font-size: 14px;
    margin-bottom: 20px;
}

.parent p:nth-of-type(4),
p:nth-of-type(5),
p:nth-of-type(6),
p:nth-of-type(7),
p:nth-of-type(8) {
    background-color: hsl(0, 0%, 20%);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 600;
}

.parent p:nth-of-type(4):hover,
p:nth-of-type(5):hover,
p:nth-of-type(6):hover,
p:nth-of-type(7):hover,
p:nth-of-type(8):hover {
    background-color: hsl(75, 94%, 57%);
    color: black;
    font-weight: 800;
}




.attribution {
    margin-top: 30px;
    font-size: 11px;
    text-align: center;
    color: hsl(0, 0%, 50%);
}

.attribution a {
    color: hsl(75, 94%, 57%);
    text-decoration: none;
}



/* Small phones (320px - 374px) */
@media (max-width: 374px) {
    .parent {
        width: 100%;

        max-width: 320px;

        padding: 20px 15px;

        border-radius: 12px;

    }

    .parent img {
        width: 80px;
        height: 80px;
    }

    .parent p:first-of-type {
        font-size: 20px;

    }
}

/* Tablets and small desktops (768px - 1023px) */
@media (min-width: 768px) {
    .parent {
        width: 400px;

        padding: 35px 30px;
    }

    .parent img {
        width: 110px;

        height: 110px;
    }

    .parent p:first-of-type {
        font-size: 28px;

    }
}

/* Large desktops (1440px+) */
@media (min-width: 1440px) {
    .parent {
        width: 384px;

        padding: 40px 35px;
    }
}