@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    --pale-blue: hsl(225, 100%, 94%);
    --bright-blue: hsl(245, 75%, 52%);
    --very-pale-blue: hsl(225, 100%, 98%);
    --desaturated-blue: hsl(224, 23%, 55%);
    --dark-blue: hsl(223, 47%, 23%);
}

* {
    margin: 0%;
    padding: 0%;
}

body {
    font-family: 'Red Hat Display';
    background-image: url(images/pattern-background-desktop.svg);
    background-repeat: no-repeat;
    background-size: 100%;
    background-color: #E0E8FF;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.625rem;
    letter-spacing: 0rem;
    color: var(--desaturated-blue);
    max-width: 1000vh;
    display: flex;
    justify-content: center;
}

main {
    padding: 102px 0 101px;
}

h1 {
    color: var(--dark-blue);
    font-size: 1.688rem;
    font-weight: 800;
    line-height: 2.25rem;
    letter-spacing: 0.04rem;
}


.card {
    background-color: white;
    width: 450px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    box-shadow: 0px 16px 32px 0px rgba(0,0,0,0.16);
}

.illustration {
    width: 450px;
    height: 220px;
    border-radius: 20px 20px 0 0;
}

.container {
    width: 354px;
    height: 382px;
    padding: 46px 48px 49px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.order-summary {
    padding: 0px 12px;
    p {
        padding:  16px 0px 0px;
    }
}

.annual-plan {
    background-color: var(--very-pale-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 22px 25px 25px;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.313rem;
}

.plan {
    display: flex;
    flex-direction: row;
    gap: 19px;
}

.plan-text {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.annual-text {
    color: var(--dark-blue);
    font-weight: 700;
    letter-spacing: 0.01rem;
}

.price {
    letter-spacing: 0.04rem;
}

.change {
    color: var(--bright-blue);
    font-weight: 900;
    font-size: 0.875rem;
    line-height: 1.313rem;
    letter-spacing: -0.01rem;
    transition: 0.4s;
}

.change:hover {
    color: rgba(56, 41, 224, 0.5);
    text-decoration: none;
}

.buttons {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    font-size: 0.938rem;
    line-height: 1.188rem;
    letter-spacing: 0.015rem;
    gap: 32px
}

.blue-button {
    background-color: var(--bright-blue);
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 16px 16px 0px rgba(56,41,224,0.18);
    transition: 0.4s;
}

.blue-button:hover {
    background-color: rgba(56, 41, 224, 0.5)
}

.cancel-button {
    color: var(--desaturated-blue);
    text-decoration: none;
    transition: 0.4s;
}

.cancel-button:hover {
    color: var(--dark-blue)
}

@media only screen and (max-width:767px) {
    body {
        background-image: url(images/pattern-background-mobile.svg);
        font-weight: 500;
        font-size: 1rem;
        line-height: 1.563rem;
        letter-spacing: -0.01rem;
    }
    
    main {
        padding: 71px 24px ;
    }
    
    h1 {
        font-size: 1.313rem;
        font-weight: 900;
        line-height: 1.75rem;
        letter-spacing: 0.03rem;
    }  
    
    .card {
        width: auto;
        height: auto;
    }
    
    .illustration {
        width: 100%;
        height: 100%;
    }
    
    .container {
        padding: 33px 24px;
        gap: 24px;
        width: auto;
        height: auto;
    }
    
    .annual-plan {
        padding: 17px 16px 16px 16px;
        font-size: 0.875rem;
        line-height: 1.188rem;
    }
    
    .change {
        font-size: 0.75rem;
        line-height: 1rem;
        letter-spacing: 0.05rem;
    }
}