@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500;700;900&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    background: url(./images/pattern-background-desktop.svg);
    background-color:  hsl(225, 100%, 94%);
    min-height: 100vh;
    background-repeat: no-repeat;
    background-size: contain;
    font-family: 'Red Hat Display', sans-serif;
    position: relative;
}

 .component-wrapper{
    position: absolute;
    left: 50%;
    top:50% ; 
    transform:translate(-50%, -50%) ;
    max-width: 450px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
}

.content{
    padding: 7%;
}

h2{
    margin-bottom: 20px;
    font-weight: 900;
    color: hsl(223, 47%, 23%);
    font-family: 2rem;
}
h2 p{
    margin-bottom: 25px;
    color: #8a8a8a;
}
.third{
    background-color: hsl(225, 100%, 98%);

}
.third-container{
    color: hsl(223, 47%, 23%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 25px;
    border-radius: 12px;
}
.flex-left{
    display: flex;
    align-items: center;
    text-align: left;
}
.third-container div{
    margin-left: 10px;
}
.third-container a{
    color: hsl(223, 47%, 23%);
    font-weight: 900;
}
.third-container a:hover{
    color: hsl(245, 75%, 52%);
    text-decoration: none;
}
button{
    display: block;
    outline: none;
    width: 100%;
    padding: 20px 0px;
    border: 0;
    border-radius: 10px;
}
.proceed{
    background: hsl(245, 75%, 52%);
    color:white;
    margin: 30px 0px;
}
.cancel{
    color:hsl(224, 23%, 55%);
    font-weight: 900;
    transition: color .3s ease;
}
.cancel:hover{
    color:hsl(223, 47%, 23%);
    cursor: pointer;
}
.proceed:hover{
    background-color: hsl(224, 23%, 55%) ;
    transition: background-color .3s ease;
    cursor: pointer;
}
@media only screen and (max-width:450px){
    body{
        background-image: url(./images/pattern-background-mobile.svg);
        font-size: 14px;
    }
    .component-wrapper{
        max-width: 87%;
    }
    h2{
        font-size: 23px;
    }
    .third-container{
        padding: 12px;
    }
    .content{
        padding: 9% 7%;
    }
}