@import url("https://fonts.google.com/specimen/Red+Hat+Display");
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url(./images/pattern-background-mobile.svg);
    background-color: hsl(225, 100%, 94%);
    height: 100vh;
    display: flex;
    background-size: contain;
    justify-content: center;
    background-repeat: no-repeat;
    align-content: center;
}

.contained {
    margin: 2rem;
    margin-top: 4rem;
    background-color: white;
    width: 325px;
    border-radius: 20px;
    height: auto;
    justify-content: center;


}

.Theimage > img {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 325px;
}

.down {
    justify-content: center;
    text-align: center;
    
}

.Thetxt > h1 {
    font-size: 23px;
    font-weight: 900;
    color: hsl(223, 47%, 23%);
    font-family: Red Hat Display, sans-serif;

}

.Thetxt > p {
    font-size: 16px;
    color: hsl(224, 23%, 55%);
    font-weight: 500;
    padding-left: 2rem;
    padding-right: 2rem;
    line-height: 1.5rem;
}

.middle {
    background-color: hsl(225, 100%, 98%);
    border-radius: 10px;
    width: 280px;
    margin: 1rem;
    padding: 0.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.middle > img {
    padding-left: 1rem;
}

.middlep {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    line-height: 1.5rem;
}

#plan {
    font-weight: 900;
    color: hsl(223, 47%, 23%);
}

#dollar {

    color: hsl(224, 23%, 55%);
}

.middle > button {
    text-decoration: underline;
    color: hsl(245, 75%, 52%);
    border: none;
    background-color: hsl(225, 100%, 98%);
    font-size: 13px;
    font-weight: 700;

}

.middle > button:hover {
    text-decoration: none;
    font-weight: 900;
    color: #705dcf;
}

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

#proceed {
    background-color: hsl(245, 75%, 52%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    height: auto;
    width: 85%;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 5px 10px 18px #869fa7;
}

#proceed:hover {
    background-color: #705dcf;
}

.cancel {
    font-size: 14px;
    font-weight: 700;
    margin: 1rem;
    background: none;
    border: none;
    color: hsl(224, 23%, 55%);
}

.cancel:hover {
    color: hsl(223, 47%, 23%);
    font-weight: 900;
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

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


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


@media screen and (min-width: 1024px) {
    body {
        background-image: url(./images/pattern-background-desktop.svg);
        height: 100vh;
        justify-content: center;
        align-items: center;
        margin: 2rem;
        margin-top: 4rem;

    }

    .contained {
        width: 450px;

    }
    .Theimage > img {
        width: 450px;
        height: auto;
    }

    .middle {
        width: 450px;
        margin: 3rem;
        padding: 1rem;
    }

    .Thetxt > h1 {
        margin: 1rem;
        margin-top: 2rem;
    }

    .Thetxt > p {
        margin: 1rem;
        padding-left: 3rem;
        padding-right: 3rem;
    }

    .middle {
        width: 365px;
    }

    .cancel {
        padding-bottom: 2rem;
        padding-top: 1rem;
        cursor: pointer;
    }

    .middle > button {
        cursor: pointer;
    }

    #proceed {
        cursor: pointer;
    }

    .attribution {
        position: fixed;
        
    }
    
}