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

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: hsl(0, 0%, 8%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

img {
    max-width: 100%;
}

h1 {
    margin-bottom: 0;
    font-size: 2rem; 
    font-weight: 700;
    color: hsl(0, 0%, 100%);
}

h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(75, 94%, 57%);
    margin-top: 5px;
}

.container {
    width: 460px;
    margin: 0 auto;
    background-color: hsl(0, 0%, 12%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.intro-img {
    margin-top: 2.75rem;
    border-radius: 100%;
}

.intro-p {
    font-size: 1rem;
    font-weight: 400;
    color: hsl(0, 0%, 100%); 
    margin-bottom: 5px;
}

.col {
    width: 85%;
    font-weight: 700;
    color: hsl(0, 0%, 100%); 
    text-align: center;
    padding-bottom: 5px;
    margin-bottom: 1.25rem;
}

.col p {
    background-color: hsl(0, 0%, 20%);
    padding: 20px;
    border-radius: 10px;
    transition: color 0.5s ease-in-out;
}

.col p:hover, .col p:focus {
    background: hsl(75, 94%, 57%);
    color: hsl(0, 0%, 8%);
    cursor: pointer;
}

.attribution { 
    font-size: 11px; 
    text-align: center; 
    color: hsl(0, 0%, 100%); 
    padding: 20px;
}

.attribution a { 
    color: hsl(228, 45%, 44%); 
}

@media (max-width: 480px) {

    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1rem;
    }

    .container {
        width: 327px;
    }

    .intro-img {
        margin-top: 2rem;
    }

    .intro-p {
        font-size: .875rem;
    }

    .col {
        margin-bottom: .5rem;
    }
}
