:root {
    --GRADIENT-PINK: hsl(293, 100%, 63%);
    --GRADIENT-PURPLE: hsl(264, 100%, 61%);
    --PALE-VIOLET: hsl(276, 100%, 81%);
}

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

img {
    display: block;
}

body {
    font-family: 'Rubik', sans-serif;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

main {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    height: 90vh;
    width: 360px;
}

.background-gradient {
    position: absolute;
    top: 0;
    left: -168.75px;
    height: 55vh;
    width: 315px;
    background: linear-gradient(180deg, var(--GRADIENT-PINK), var(--GRADIENT-PURPLE));
    border-radius: 0 0 500px 500px;
}

.outer-phone-boundary {
    background-color: hsl(270, 20%, 96%);
    z-index: 1;
    border-radius: 30px;
    width: 245px;
}

.inner-phone-boundary {
    background-color: hsl(270, 20%, 96%);
    margin: 0.7rem;
    border-radius: 20px;
    font-size: 7px;
    font-weight: 500;
    display: flex;
    flex-flow: column nowrap;
}

.phone-header-section {
    background: linear-gradient(90deg, var(--GRADIENT-PURPLE), var(--GRADIENT-PINK));
    height: 4rem;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    padding-top: 1.2rem;
    border-radius: 20px 20px 5px 5px;
    position: relative;
}

.dynamic-island {
    position: absolute;
    top: 0;
    left:3.5rem;
    width: 50%;
    height: 30%;
    background-color: #fff;
    border-radius: 0 0 15px 15px;
}

.left-phone-header-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    color: hsl(276, 100%, 81%);
}

.back-arrow,
.elipsis {
    width: 1rem;
    height: auto;
}

.avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 1.5rem;
    border: 1px solid #000;
}

h2 {
    font-size: 1rem;
    color: #fff;
}

.received-texts {
    margin-top: 0.3rem;
}

.received-texts>p,
.sent-texts>p {
    padding: 0.5rem;
    width: fit-content;
    margin-top: 0.3rem;
    border-radius: 15px;
}

.received-texts>p {
    color: hsl(276, 100%, 81%);
    background-color: #f3e7f8;
}

.sent-texts {
    margin-top: 1.5rem;
}

.dog-images {
    display: flex;
    gap: 0.5rem;
}

.dog-image {
    width: 2rem;
    border-radius: 5px;
}

.sent-texts {
    display: flex;
    flex-flow: column nowrap;
    align-self: flex-end;
}

.sent-texts>p {
    color: hsl(271, 15%, 43%);
    background-color: #fff;
    align-self: flex-end;
}

.cost,
.cost>div {
    display: flex;
    align-items: center;
    border-radius: 10px;
    gap: 0.3rem;
}

.cost {
    background: linear-gradient(90deg, var(--GRADIENT-PINK), var(--GRADIENT-PURPLE));
    width: 8rem;
    margin-top: 0.3rem;
    padding: 0.3rem;
    justify-content: space-between;
    color: #fff;
}

.amount {
    font-weight: 700;
    margin-right: 0.3rem;
}

.selector {
    border: 1px solid hsl(289, 100%, 72%);
    width: 1rem;
    height: 1rem;
    border-radius: 0.5rem;
}

.typing-section {
    margin-top: 0.8rem;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 2rem;
    border-radius: 15px;
    padding: 0 0.3rem;
}

.typing-section > p {
    color: hsl(206, 6%, 79%);
    margin-left: 1rem;
}

.send-button-container {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.85rem;
    background-color: hsl(271, 36%, 24%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.send-button-container > p {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.description-section {
    padding: 0 1rem;
}

.description-section>h1,
.description-section>p {
    text-align: center;
}

.description-section>h1 {
    color: hsl(271, 36%, 24%);
}

.description-section>p {
    color: hsl(270, 7%, 64%);
    margin-top: 1.5rem;
}

.attribution {
    font-size: 11px;
    text-align: center;
}

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

@media (min-width:1440px) {
    main {
        width: 1000px;
        flex-flow: row nowrap;
    }

    .background-gradient {
    position: absolute;
    top: 0;
    left: -368.75px;
    height: 710px;
    width: 550px;
    background: linear-gradient(180deg, var(--GRADIENT-PINK), var(--GRADIENT-PURPLE));
    border-radius: 0 0 500px 500px;
}

    .description-section {
        width: 470px;
    }

    .description-section>h1,
.description-section>p {
    text-align: left;
}

.description-section > p {

    line-height: 1.5rem;
}
}