@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

:root{
    --Blue-100: hsl(225, 100%, 94%);
    --Blue-700: hsl(245, 75%, 52%);
    --Blue-50: hsl(225, 100%, 98%);
    --Gray-600: hsl(224, 23%, 55%);
    --Blue-950: hsl(223, 47%, 23%);
}

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Red Hat Display", sans-serif;
    transition: 300ms ease all;
}

body {
    min-height: 100vh;
    width: 100vw;
    background-size: cover;
    background: var(--Blue-100);
}

main {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    background-color: white;
    width: 320px;
    height: fit-content;
    border-radius: 20px;
}

main .hero {
    width: 50%;
    border-radius: 20px 20px 0px 0px;
}

main h1{
    font-weight: 900;
    color: var(--Blue-950);
    font-size: 1.5em;
    padding: 20px;
}

main .description{
    text-align: center;
    font-size: 1em;
    font-weight: 500;
    color: var(--Gray-600);
    margin-bottom: 10px;
    line-height: 30px;
}

.plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 88%;
    padding: 20px;
    margin: 10px 0 30px 0;
    background-color: var(--Blue-50);
    border-radius: 10px;
}

.plan1 {
    display: flex;
}

.plan1 img {
    height: 32px;
    margin-right: 20px;
}

.plan .details p:nth-of-type(1) {
    font-weight: 900;
    font-size: 0.85em;
    color: var(--Blue-950);
}

.plan .details p:nth-of-type(2) {
    font-size: 0.85em;
    color: var(--Gray-600);
    font-weight: 600;
}

.plan a {
    color: var(--Blue-700);
    font-size: 0.85em;
    font-weight: 900;
}

.plan a:hover {
    text-decoration: none;
    opacity: 0.7;
}

.primary-btn {
    width: 88%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background-color: var(--Blue-700);
    color: #fff;
    font-weight: 900;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0px 13px 30px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
    opacity: 0.8;
}

.Cancel {
    text-decoration: none;
    color: var(--Gray-600);
    font-weight: 900;
    padding: 30px;
}

.Cancel:hover {
    color: var(--Blue-950);
}

.wave {
    background: url(./images/pattern-background-mobile.svg), no-repeat;
    background-size: cover;
    width: 100%;
    height: 250px;
}

footer {
    display: block;
    position: absolute;
    bottom: 30px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    font-size: 0.8em;
}

footer a {
    color: var(--Blue-700);
}

@media (min-width: 380px) {
main {
    width: 375px;
}

main h1{
    font-size: 1.4em;
    padding: 30px 0 10px 0;
}

main .description{
    font-size: 1em;
    font-weight: 500;
    padding: 0 30px; 
    margin-bottom: 10px;
}

.primary-btn {
    padding: 13px;
}

.Cancel {
    margin-bottom: 10px;
}

.wave {
    background: url(./images/pattern-background-desktop.svg), no-repeat;
    background-size: cover;
    height: 600px;
}
}