@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500;700;900&display=swap');

/* RESET */

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/*  */

body{
    background-image: url('svgs/pattern-background-desktop.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-color:   hsl(225, 100%, 98%);
}

main{
    width: 450px;
    height: 700px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-family: 'Red Hat Display', sans-serif;
    background-color: hsl(0, 0%, 100%);
    border-radius: 30px;
}

.hero{
    border-radius: 30px 30px 0 0 ;
}

h1{
    margin-top: 1.3em;
    font-size: 28px;
    font-weight: 900;
}

p{
   margin-top: 1.2em; 
   font-size: 16px;
   font-weight: 500;
   margin-left: 3em;
   margin-right: 3em;
   line-height: 1.5em;
   color: hsl(224, 23%, 55%);
}

section{
    height: 85px;
    margin: 1em 3em 2em 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: hsl(225, 100%, 98%);
    border-radius: 20px;
}

p span{
    margin-left: -2em;
    margin-right: 3em;
}

.text{
    font-weight: 900;
    color: black;
}

.price{
    font-weight: 500;
    color: hsl(224, 23%, 55%);
}

.change{
    font-size: 13px;
    font-weight: 900;
    color: hsl(245, 75%, 52%);
}

button{
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5em;
    width: 350px;
    height: 50px;
    border-radius: 10px;
    border: none;
    background-color:hsl(245, 75%, 52%);
    color: hsl(0, 0%, 100%);
    font-size: 15px;
    font-weight: 900;
    word-spacing: 2px;
    font-family: 'Red Hat Display', sans-serif;
    box-shadow: 0 30px 0 0 hsl(225, 100%, 98%);
}

button:hover{
    cursor: pointer;
    scale: 1.025;
}

.cancel{
    text-decoration: none;
    font-weight: 900;
    color: hsl(224, 23%, 55%);
    font-size: 15px;
}

/* MEDIA QUERIES */

@media (max-width: 460px){
    body{
    background-image: url('svgs/pattern-background-mobile.svg');
    background-repeat: no-repeat;
    background-size: cover;
    }

    main{
        width: 330px;
        height: 570px;
    }

    .hero{
        width: 330px;
    }

    p span{
        font-size: 14px;
        margin: unset;
        margin-left: -2em;
        margin-right: -2em;
    }
}