@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500;700;900&display=swap');

:root {
    --color-blue-100: hsl(225, 100%, 94%);
    --color-blue-700: hsl(245, 75%, 52%);
    --color-blue-50: hsl(225, 100%, 98%);
    --color-gray-600: hsl(224, 23%, 55%);
    --color-blue-950: hsl(223, 47%, 23%);
    --font-family: 'Red Hat Display', sans-serif;
    --font-size-base: 16px;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    --bp-mobile: 375px;
    --bp-desktop: 1440px;
}

.attribution {
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    background-color: var(--color-blue-100);
    background-image: url('./images/pattern-background-mobile.svg');
    background-repeat: no-repeat;
    background-size: 100% auto;
    color: var(--color-gray-600);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

@media (min-width: 376px) {
    body {
        background-image: url('./images/pattern-background-desktop.svg');
        background-size: contain;   
    }
}

main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 40px 40px -20px hsla(224, 23%, 25%, 0.2);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    border: none;
}

.card-img-top {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.card-body {
    padding: 32px 24px;
    text-align: center;
}

h1.card-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-black);
    color: var(--color-blue-950);
    margin-bottom: 16px;
    margin-top: 5px;
}

.card-text {
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--color-gray-600);
    font-size: 16px;
}

.plan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-blue-50);
    border-radius: 10px;
    padding: 24px 20px;
    margin-bottom: 30px;
}

.plan-info {
    flex-grow: 1;
    text-align: left;
    margin-left: 20px;
}

.plan-title {
    font-weight: var(--font-weight-black);
    color: var(--color-blue-950);
    margin-bottom: 4px;
}

.plan-price {
    color: var(--color-gray-600);
}

.btn-link {
    color: var(--color-blue-700);
    font-weight: var(--font-weight-bold);
    text-decoration: underline;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-link:hover {
    color: #766cf1;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-blue-700);
    color: #ffffff;
    border-radius: 10px;
    padding: 15px;
    border: none;
    font-weight: var(--font-weight-black);
    box-shadow: 0 20px 20px -10px hsla(245, 75%, 52%, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 16px;
    font-size: 16px;
}

.btn-primary:hover, .btn-primary:active {
    background-color: #766cf1;
    color: #ffffff;
}

.btn-cancel {
    background-color: transparent;
    color: var(--color-gray-600);
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 10px;
    font-weight: var(--font-weight-black);
    font-size: 16px;
}

.btn-cancel:hover {
    color: var(--color-blue-950);
}

.attribution {
    margin-top: 20px;
}

@media screen and (min-width: 600px) {
    .card-body {
        padding: 48px;
    }
    h1.card-title {
        font-size: 1.75rem;
    }
}