:root {
    /* (sub-heading at the top of the app UI) */
    --Pale-Violet: hsl(276, 100%, 81%);
    /* (chat on the left): */
    --Moderate-Violet: hsl(276, 55%, 52%);
    /* (chat on the right) */
    --Desaturated-Dark-Violet: hsl(271, 15%, 43%);
    /* (placeholder text) */
    --Grayish-Blue: hsl(206, 6%, 79%);
    /* (main heading) */
    --Very-Dark-Desaturated-Violet: hsl(271, 36%, 24%);
    /* (paragraph) */
    --Dark-Grayish-Violet: hsl(270, 7%, 64%);
    /* Gradient */
    --Light-Magenta: hsl(293, 100%, 63%);
    --Light-Violet: hsl(264, 100%, 61%);

    --White: hsl(0, 0%, 100%);
    /* (app background) */
    --Light-Grayish-Violet: hsl(270, 20%, 96%);
    /* (submit button background) */
    --Very-Dark-Desaturated-Violet: hsl(271, 36%, 24%);
    /* (radio button outline) */
    --Very-Light-Magenta: hsl(289, 100%, 72%);

    --m-padding-pc:
}

html {
    height: 100%;
}

body {
    font-family: "Rubik", sans-serif;
    position: relative;
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
}

.background {
    height: 90vh;
    width: 80vh;
    background-image: linear-gradient( var(--Light-Magenta), var(--Light-Violet));
    position: absolute;
    left: -200px;
    border-radius: 0 0 50% 50%;
    top: 0;
}

.design {
    display: grid;
    grid-template-columns: 350px auto;
    margin: auto 15%;
    /* position: absolute; */
    /* width: 940px; */
    /* left: 50%; */
    top: 50%;
    /* transform: translatey(-50%); */
    /* transform: translate(-50%, -50%); */
}

.iphone {
    border: 15px solid white;
    height: 600px;
    padding: 20px;
    position: relative;
    border-radius: 50px;
    background-color: white;
    box-shadow: 20px 26px 30px -25px var(--Dark-Grayish-Violet);  
}

.iphone::before {
    content: "";
    width: 192px;
    height: 30px;
    background-color: white;
    position: absolute;
    left: 64px;
    top: 0;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    z-index: 2;
}

.seg {
    width: calc(100% + 40px);
    position: relative;
    left: -20px;
    bottom: 20px;
    background-image: linear-gradient(to right, var(--Light-Violet), var(--Light-Magenta));
    height: 105px;
    z-index: 1;
    display: flex;
    align-items: center;
    border-radius: 32px 32px 5px 5px;
}

.customer {
    display: grid;
    grid-template-columns: 50px 150px;
    transform: translate(40px, 20px);
}

.customer img {
    border-radius: 50%;
    border: 2px solid white;
    width: 40px;
    height: 40px;
}

.customer .id {
    height: 40px;
    margin-left: 5px;
    /* display: flex; */
    /* flex-direction: column;
    justify-content: center; */
}

.customer .id div {
    font-weight: 500;
    color: white;
    margin-top: 5px;
}

.customer p {
    color: var(--Dark-Grayish-Violet);
    font-size: 12px;
    font-weight: 400;
    margin: 0 0 5px 0;
}

.message {
    background-color: #ECE6F2;
    border-radius: 12px;
    padding: 7px;
    width: 60%;
    font-size: 12px;
    color: var(--Moderate-Violet);
    transform: translateX(-10px);
    /* width: fit-content; */
}

#m-one {
    margin: -5px 0 15px;
}

#m-two {
    margin: 0 0 20px;
}

#m-three {
    margin: 20px 0 15px;
}

.dog-images {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.dog-images img {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin-left: 10px;
}

.replies {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.reply {
    background-color: #ECE6F2;
    width: fit-content;
    padding: 7px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--Desaturated-Dark-Violet);
}

#r-one {
    margin: 5px 0 15px;
}


.voice {
    display: grid;
    position: relative;
    grid-template-columns: 130px 40px;
    width: 80%;
    height: 45px;
    background-image: linear-gradient(to right, var(--Light-Magenta), var(--Light-Violet));
    border-radius: 15px 15px 15px 5px;
    transform: translatex(-10px);
    justify-content: space-around;
    align-items: center;
}

#v-one {
    margin: 0 0 15px;
}

#v-two {
    margin: 0 0 25px;
}

.voice div {
    color: white;
    font-size: 12px;
}

.voice p {
    font-weight: 700;
    color: white;
    font-size: 18px;
    margin: 0;
}

.send {
    color: silver;
    font-size: 12px;
    position: relative;
    left: 20px;
}

.bio {
    margin: auto 0 auto 100px;
    /* height: 200px; */
    z-index: 2;
}

.bio .title {
    font-size: 45px;
    color: var(--Very-Dark-Desaturated-Violet);
    font-weight: 500;
}

.bio p {
    color: var(--Dark-Grayish-Violet);
    line-height: 30px;
    font-size: 20px;
}


.attribution {
    font-size: 11px;
    text-align: center;
    height: fit-content;
    padding: 10px;
    margin: 10px auto;
    align-self: flex-end;
}

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

@media (min-width:1201px) {
    .design {
        margin: auto 20%;
    }
}
@media (max-width:992px){
    .design{
        margin: auto 6%;
    }
}
@media (max-width:768px) {
    body {
        justify-content: center;
        height: 125vh;
    }

    .design {
        grid-template-columns: 350px;
        top: 50px;
        transform: none;
        margin: 50px 10%;
    }

    .bio {
        margin: 100px auto;
    }

    .iphone {
        min-width: 200px;
        height: 600px;
    }

    .bio {
        text-align: center;
    }

    .background {
        max-width: 100%;
    }

    .iphone::before {
        top: -2px;
    }
}

@media (max-width:576px) {
    .design {
        grid-template-columns: minmax(250px, 350px);
        margin: 50px 4%;
    }

    .bio {
        text-align: center;
    }

    .background {
        max-width: 100%;
    }
}

@media (max-width:400px) {
    body{
        height: 145vh;
    }
    .iphone {
        min-width: 200px;
    }

    .background {
        max-width: 100%;
    }

    .message {
        width: 80%;
    }

    .voice {
        width: 100%;
    }

    .bio {
        text-align: center;
    }

    .bio p {
        padding: 10px;
    }

    .iphone::before {
        width: 145px;
        left: 85px;
        top: -2px;
    }
}

@media (max-width:385px) {
    .iphone {
        height: 620px;
    }

    .iphone::before {
        left: 75px;
    }

}

@media (max-width:355px) {
    .iphone::before {
        left: 70px;
    }
}

@media (max-width:340px) {
    .iphone::before {
        left: 60px;
    }
}