:root {
    --green: hsl(75, 94%, 57%);
    --white: hsl(0, 0%, 100%);
    --grey: hsl(0, 0%, 20%);
    --dark-grey: hsl(0, 0%, 12%);
    --off-black: hsl(0, 0%, 8%);
}

* {
    font-family: "Inter", sans-serif; 
}

body {
    background-color: var(--off-black);
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    width: 384px;
    height: 571px;
    border-radius: 12px;
    margin-top: 100px;
}

#card {
    width: 384px;
    height: 611px;
    background-color: var(--dark-grey);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    position: absolute;
    top: 174px;
    left: 528px;
}

img {
    width: 100px;
    height: 100px;
    border-radius: 999px;
    object-fit: cover;
}

#headers {
    width: 304px;
    height: 61px;
    margin-top: 24px;
}

h1 {
    width: 304px;
    height: 36px;
    font-weight: bold;
    font-size: 20px;
    color: var(--white);
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

h2 {
    width: 304px;
    height: 21px;
    font-weight: bold;
    font-size: 16px;
    color: var(--green);
    text-align: center;
    margin: 4px 0 0 0;
}

p {
    width: 304px;
    height: 21px;
    font-size: 15px;
    margin-top: 24px;
    color: var(--white);
    text-align: center;
    margin: 24px 0 0 0;
}

#buttons {
    width: 304px;
    height: 289px;
    padding: 0;
    margin: 24px 0 0 0;
    display: flex;
    flex-direction: column;
}

button {
    width: 304px;
    height: 45px;
    border-radius: 8px;
    background-color: var(--grey);
    color: var(--white);
    padding: 12px;
    border: none;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 16px;
}

button:hover {
    background-color: var(--green);
    color: var(--dark-grey);
    cursor: pointer;
    transition-duration: 0.4s;
}

button:last-of-type {
    margin-bottom: 0;
}





@media (max-width: 400px) {
    body {
        background-color: var(--off-black);
        display: flex;
        justify-content: center;
        align-items: center;
    } 

    main {
        width: 303px;
        height: 555px;
        border-radius: 12px;
        margin-top: 50px;
    }

    #card {
        width: 327px;
        height: 579px;
        background-color: var(--dark-grey);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 12px;
    }

    img {
        width: 100px;
        height: 100px;
        border-radius: 999px;
        object-fit: cover;
    }

    #headers {
        width: 279px;
        height: 61px;
        margin-top: 24px;
    }

    h1 {
        width: 279px;
        height: 36px;
        font-weight: bold;
        font-size: 20px;
        color: var(--white);
        margin: 0;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    h2 {
        width: 279px;
        height: 21px;
        font-weight: bold;
        font-size: 16px;
        color: var(--green);
        text-align: center;
        margin: 4px 0 0 0;
    }


    p {
        width: 279px;
        height: 21px;
        font-size: 15px;
        margin-top: 24px;
        color: var(--white);
        text-align: center;
        margin: 24px 0 0 0;
    }
    
    #buttons {
        width: 279px;
        height: 289px;
        padding: 0;
        margin: 24px 0 0 0;
        display: flex;
        flex-direction: column;
    }
    
    button {
        width: 279px;
        height: 45px;
        border-radius: 8px;
        background-color: var(--grey);
        color: var(--white);
        padding: 12px;
        margin-bottom: 16px;
        border: none;
        font-weight: bold;
        font-size: 14px;
    }
    
    button:hover {
        background-color: var(--green);
        color: var(--dark-grey);
        cursor: pointer;
        transition-duration: 0.4s;
    }
    
    button:last-of-type {
        margin-bottom: 0;
    }
}

