@import url('https://fonts.google.com/specimen/Red+Hat+Display');

* {
    border: 0;
    padding: 0;
    margin: 0;
}

html {
    font-size: 16px;
    font-family: 'Red Hat Display', sans-serif;
}

@media(min-width: 375px) and (max-width: 450px){
    html {
        font-size: 16px;
        font-family: 'Red Hat Display', sans-serif;
        background-color: #d9e6f7;
    }
}

body {
    background-color: #d9e6f7;
    background-image: url('img/fundo.svg');
    background-repeat: no-repeat;
    background-size: 100% 50%;
    padding-bottom: 20rem;
 
}

@media(min-width: 375px) and (max-width: 450px){
    body {
        background-color: #d9e6f7;
        position: relative;
        top: 5rem;
        margin: 0 auto;
        max-width: 90%;
        border-radius: 15px;
        padding-bottom: 15rem;
    }
}


/*Containers*/

.container-master {
    background-color: rgb(241, 241, 241);
    max-width: 480px;
    border-radius: 20px;
    margin: 0 auto;
    position: relative;
    top: 9.5rem;
    height: 700px;
    box-shadow: 4px 4px 40px #b7d6ff;

}

@media(min-width: 375px) and (max-width: 450px){
    .container-master {
        background-color: rgb(241, 241, 241);
        max-width: 480px;
        border-radius: 20px;
        margin: 0 auto;
        position: relative;
        height: 520px;
    
    }
}

.container {
    display: block;
    margin: 0 auto;
    text-align: center;


}

.container-filho {
    display: flex;
    position: relative;
    padding: 1rem;
    bottom: 60px;
    border-radius: 10px;
    align-items: center;
    background-color: #f5f5f5;
    max-width: 70%;
    margin: 0 auto;

}

@media(min-width: 375px) and (max-width: 450px){
    .container-filho {
        display: flex;
        position: relative;
        padding: 1rem;
        border-radius: 10px;
        align-items: center;
        background-color: #f5f5f5;
        max-width: 75%;
        margin: 0 auto;
        bottom: 13rem;
    }
}

/*Imagens*/

#topo {
    border-radius: 20px 20px 0px 0px;
    width: 480px;
}

@media(min-width: 375px) and (max-width: 450px){
    #topo {
        border-radius: 20px 20px 0px 0px;
        max-width: 100.1%;
        position: relative;
        bottom: 8rem;
    } 
}

/*textos*/

h1 {
    padding-top: 2rem;
}

@media(min-width: 375px) and (max-width: 450px){
    h1 {
        position: relative;
        bottom: 8rem;
    }
}

#paragrafo-secundario {
    padding-left: 1.3rem;
    line-height: 1.5em;
}

#paragrafo-principal {
    padding-top: 2rem;
    display: block;
    max-width: 72%;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8em;
    color: hsl(224, 23%, 55%);
    font-weight: 500;
}

@media(min-width: 375px) and (max-width: 450px){
    #paragrafo-principal {
        position: relative;
        display: block;
        max-width: 85%;
        margin: 0 auto;
        text-align: center;
        line-height: 1.8em;
        color: hsl(224, 23%, 55%);
        font-weight: 500;
        bottom: 8.5rem;
    }
}

#link-change {
    position: relative;
    left: 7rem;
}

@media(min-width: 375px) and (max-width: 450px){
    #link-change {
        position: relative;
        left: 2.5rem;
    }
}

#link-change:hover{
    text-decoration: none;
    color:  #746bef;
}

#preceed {
    color: red;
}

#pay {
    position: relative;
    top: 10rem;
    padding: 1rem;
    background-color: #322acf;
    width: 78%;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 900;
}

@media(min-width: 375px) and (max-width: 450px){
    #pay {
        position: relative;
        top: .2rem;
        padding: 1rem;
        background-color: #322acf;
        width: 78%;
        border-radius: 10px;
        cursor: pointer;
        color: #fff;
        font-family: 'Red Hat Display', sans-serif;
        font-weight: 900;
    } 
}

#pay:hover{
    background-color: #746bef;
}

#cancel {
    position: relative;
    top: 10.5rem;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    color: hsl(224, 23%, 55%);
}

@media(min-width: 375px) and (max-width: 450px){
    #cancel {
        position: relative;
        top: 1rem;
        padding: 1rem;
        border-radius: 10px;
        cursor: pointer;
        font-weight: 700;
        color: hsl(224, 23%, 55%);
    }
}

#cancel:hover{
    color: #000;
}