:root {
    --very-dark-grayish-blue: hsl(217, 19%, 35%);
    --desaturated-dark-blue: hsl(214, 17%, 51%);
    --grayish-blue: hsl(212, 23%, 69%);
    --light-grayish-blue: hsl(210, 46%, 95%);
}

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

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

html {
    font-size: 62.5%;
    font-family: 'Manrope', sans-serif;
}

body {
    width: auto;
    height: 100vh;
    background-color: var(--light-grayish-blue);
}

main {
    width: 90%;
    max-width: calc(375px*0.9);
    min-width: calc(375px*0.9);
    height: auto;
    background-color: white;
    border-radius: 1.2rem;
}

.image {
    width: 100%;
    height: 22.4rem;
    background: url('./images/drawers.jpg') top no-repeat;
    background-size: cover;
    border-radius: 1.2rem 1.2rem 0 0;
}

.main-box {
    width: 80%;
    margin: 3.5rem auto;
}

.main-box h1 {
    width: 95%;
    margin: 0 auto;
    font-size: 1.6rem;
    line-height: 2.5rem;
    font-weight: 700;
    color: var(--very-dark-grayish-blue);
    margin-bottom: 2rem;
}

.main-box p {
    width: 95%;
    margin: 0 auto;
    font-size: 1.3rem;
    line-height: 2rem;
    font-weight: 500;
    color: var(--desaturated-dark-blue);
}


.profile-box, .profile-box-container {
    width: 100%;
    height: 70px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 1.2rem 1.2rem;
}

.profile-box {
    width: 75%;
}

.profile-box img {
    width: 5rem;
    border-radius: 50%;
}

.profile-data {
    display: flex;
    align-items: center;
}

.data {
    margin-left: 1.5rem;
}

.data h2 {
    font-size: 1.3rem;
    font-weight: 700;
    padding-bottom: 0.2rem;
    color: var(--very-dark-grayish-blue);
}

.data p {
    font-size: 1.3rem;
    font-weight: 500;
    padding-top: 0.2rem;
    color: var(--desaturated-dark-blue);
}

.profile-box button, .share-box button {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: none;
    background-color: var(--light-grayish-blue);
}

.share-box, .share-box-container  {
    width: 100%;
    height: 70px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 1.2rem 1.2rem;
    background-color: var(--very-dark-grayish-blue);
}

.share-box-container {
    width: 75%;
}

.social-icons {
    display: flex;
    align-items: center;
}

.social-icons p {
    font-size: 1.3rem;
    color: white;
    font-weight: 200;
    letter-spacing: 0.5rem;
    color: var(--light-grayish-blue);
    margin-right: 1rem;
}

.social-icons span {
    margin-left: 1.2rem;
}

.share-box button {
    background-color: var(--grayish-blue);
}

button {
    cursor: pointer;
}

footer { 
    font-size: 1.1rem; 
    text-align: center; 
    margin-top: 1rem;
}

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

.inactive {
    display: none;
}

@media only screen and (min-width: 1440px) {
    main {
        width: 70%;
        height: 350px;
        max-width: calc(1440px*0.7);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .image {
        width: 68%;
        height: 100%;
        background-position: left;
        border-radius: 1.2rem 0 0 1.2rem;
    }

    .main-box {
        margin-top: 1rem;
        margin-bottom: 0;
    }

    .main-body {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .main-box h1 {
        font-size: 2.7rem;
        line-height: 4rem;
        font-weight: 700;
        color: var(--very-dark-grayish-blue);
        margin-bottom: 2rem;
    }
    
    .main-box p {
        font-size: 1.6rem;
        line-height: 2.8rem;
        font-weight: 500;
        color: var(--desaturated-dark-blue);
    }

    .share-box {
        position: absolute;
        right: -20px;
        bottom: 100px;
    }

    .share-box::before {
        content: '';
        display: block;
        width: 0px;
        height: 0px;
        /* background-color: var(--very-dark-grayish-blue); */
        position: absolute;
        left: 115px;
        bottom: -30px;
        border-right: 10px solid transparent;
        border-top: 17px solid var(--very-dark-grayish-blue);
        border-left: 10px solid transparent;
        border-bottom: 17px solid transparent;
    }

    .share-box, .share-box-container  {
        width: 240px;
        height: 50px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 1rem;
        background-color: var(--very-dark-grayish-blue);
    }
    
    .share-box-container {
        width: 75%;
    }
    
    .social-icons {
        display: flex;
        align-items: center;
    }
    
    .social-icons p {
        font-size: 1.3rem;
        color: white;
        font-weight: 200;
        letter-spacing: 0.5rem;
        color: var(--light-grayish-blue);
        margin-right: 1rem;
    }
    
    .social-icons span {
        margin-left: 1.2rem;
    }
    
    .share-box button {
        display: none;
        background-color: var(--grayish-blue);
    }

    .inactive {
        display: none;
    }
}