/* Complete CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body,
h1,
p {
    margin-block-end: 0;
}

body {
    min-height: 100vh;
    line-height: 1.5;
}

h1 {
    line-height: 1.1;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

/* Linking Fonts */
@font-face {
    font-display: swap;
    font-family: 'Red Hat Display';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/red-hat-display-v21-latin-500.woff2') format('woff2');
}


@font-face {
    font-display: swap;
    font-family: 'Red Hat Display';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/red-hat-display-v21-latin-700.woff2') format('woff2');
}


@font-face {
    font-display: swap;
    font-family: 'Red Hat Display';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/red-hat-display-v21-latin-900.woff2') format('woff2');
}

/* Global Changes w/ Root */
:root {
    /* Colors */
    --clr-blue-100: hsl(225, 100%, 94%);
    --clr-blue-700: hsl(245, 75%, 52%);
    --clr-blue-50: hsl(225, 100%, 98%);
    --clr-gray-600: hsl(224, 23%, 55%);
    --clr-blue-950: hsl(223, 47%, 23%);
    --clr-box-shadow: hsla(0, 0%, 0%, 0.2);

    /* Fonts */
    --FF: "Red Hat Display", sans-serif;

    --FW-500: 500;
    --FW-700: 700;
    --FW-900: 900;

    --FS-12: 0.8rem; /* 12px */
    --FS-14: 0.9rem; /* 14px */
    --FS-16: 1rem;   /* 16px */
    --FS-26: 1.6rem; /* 26px */
}

/* Typography */
.page {
    font-family: var(--FF);
    font-size: var(--FS-16);
}

.order-summary__title,
.order-summary__description,
.order-summary__btn {
    text-align: center;
}

.order-summary__title,
.order-summary__plan-name {
    color: var(--clr-blue-950);
    font-weight: var(--FW-900);
}

.order-summary__title {
    font-size: var(--FS-26);
}

.order-summary__plan-name,
.order-summary__plan-price {
    font-size: var(--FS-12);
}

.order-summary__description {
    font-size: var(--FS-12);
}

.order-summary__description,
.order-summary__plan-price {
    font-weight: var(--FW-500);
    color: var(--clr-gray-600);
}

.order-summary__plan-change,
.order-summary__cancel {
    font-weight: var(--FW-700);
}

.order-summary__plan-change {
    color: var(--clr-blue-700);
    font-size: var(--FS-12);
}

.order-summary__btn {
    font-weight: var(--FW-900);
    color: var(--clr-blue-50);
}

.order-summary__cancel {
    color: var(--clr-gray-600);
    text-decoration: none;
    font-size: var(--FS-12);
}

/* General - Mobile */
.page {
    background-color: var(--clr-blue-100);
    background-image: url(./assets/images/pattern-background-mobile.svg);
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 375px;
}

.order-summary {
    background-color: var(--clr-blue-50);
    max-width: 350px;
    border-radius: 12px;
    box-shadow: 0px 0px 11px 1px var(--clr-box-shadow);
}

.order-summary__header-image {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    margin-bottom: 1.5em;
}

.order-summary__title {
    margin-bottom: 0.938em;
}

.order-summary__description {
    width: 75%;
    margin: 0 auto;
    margin-bottom: 0.938em;
}

.order-summary__plan {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--clr-blue-100);
    width: 275px;
    margin: 0 auto;
    padding: 0.5em;
    border-radius: 10px;
    margin-bottom: 1.5em;
}

.order-summary__plan-icon {
    margin-right: 0.938em;
}

.order-summary__plan-details {
    margin-right: 0.3em;
}

.order-summary__plan-change {
    transition: color 0.2s ease-in-out;
    margin-left: 3.125em;
}

.order-summary__plan-change:hover,
.order-summary__plan-change:focus {
    text-decoration: none;
    color: var(--clr-gray-600);
}

.order-summary__actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.order-summary__btn {
    margin-bottom: 0.938em;
    border: none;
    background-color: var(--clr-blue-700);
    padding: 12px;
    width: 275px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.order-summary__btn:focus,
.order-summary__btn:hover {
    background-color: var(--clr-gray-600);
}

.order-summary__cancel {
    margin-bottom: 1.2em;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}

.order-summary__cancel:hover,
.order-summary__cancel:focus {
    color: var(--clr-blue-950);
}

/* General - Desktop */
@media (min-width: 1000px) {
    .page {
        background-image: url(./assets/images/pattern-background-desktop.svg);
        background-repeat: no-repeat;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}