@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    background-image: url(./images/pattern-background-desktop.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-size: 100%;
    background-color: hsl(225, 100%, 94%);
    display: grid;
    place-content: center;
    height: 100vh;
    font-family: "Red Hat Display";
}
.container{
    max-width: 450px;
    margin: 0 auto;
    border-radius: 20px;
}
.card{
    width: 400px;
    background-color: white;
    border-radius: 15px;
    padding-bottom: 3em;
}
#main{
    display: block;
    width: 100%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}
.summary{
    text-align: center;
}
.summary h1{
    font-size: 1.3em;
    font-weight: 900;
    margin-top: 1.5em;
    color: hsl(223, 47%, 23%);
}
.summary p{
    font-size: 0.75em;
    font-weight: 500;
    margin: 1.4em 4.5rem;
    color: hsl(224, 23%, 55%);
}
.charges {
    background-color: hsl(225, 100%, 98%);
    margin: 1.4em 3em;
    border-radius: 10px;
    display: flex;
    padding: 15px;
}
.list li{
    list-style: none;
}
.charges img{
    width: 15%;
    height: 15%;
    position: relative;
    top: 10px;
    left: 10px;
}
#annual{
    font-size: 0.9em;
    font-weight: 800;
    position: relative;
    left: 1.75em;
    top: 0.6em;
    color: hsl(223, 47%, 23%);
}
#rate{
    font-size: 0.9em;
    font-weight: 500;
    position: relative;
    left: 1.75em;
    top: 0.8em;
    color:hsl(224, 23%, 55%);
}
.charges p{
    font-size: 0.8em;
    font-weight: 800;
    color: hsl(245, 75%, 52%);
    position: relative;
    left: 14em;
    bottom: 1.5em;
}
.charges p :hover{
    cursor: pointer;
    color: hsl(245, 75%, 65%);
}
.payment{
    color: white;
    text-align: center;
    background-color: hsl(245, 75%, 52%);
    margin: 2em 3.5em;
    border-radius: 10px;
    padding: 1em;
    font-weight: 700;
    font-size: 0.8em;
    box-shadow: 0 15px 15px hsl(245, 75%, 52%, 0.3);
}
.payment a{
    text-decoration: none;
    color: white;
}
.payment:hover{
    cursor: pointer;
    background-color: hsl(245, 75%, 65%);
}
.cancel-order{
    font-size: 0.7em;
    font-weight: 900;
    color:hsl(224, 23%, 55%);
    text-align: center;
}
.cancel-order a{
    text-decoration: none;
    color:hsl(224, 23%, 55%);
}
.cancel-order a:hover{
    cursor: pointer;
    color: hsl(223, 47%, 23%);
}
@media (max-width:425px) {
    body{
        background-image: url(./images/pattern-background-mobile.svg);
        background-repeat: no-repeat;
        background-size: contain;
        background-size: 100%;
    }
    .container{
        padding: 0 30px;
    }
    .card{
        max-width: 350px;
    }
    .charges p{
        font-size: 0.8em;
        font-weight: 800;
        color: hsl(245, 75%, 52%);
        position: relative;
        left: 12em;
        bottom: 1.5em;
    }
}

 
    

