2022-01-31 00:23:06 +01:00
|
|
|
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500;700;900&display=swap");
|
2022-01-03 00:30:42 +01:00
|
|
|
|
2022-01-31 00:23:06 +01:00
|
|
|
/*
|
2022-01-31 02:36:15 +01:00
|
|
|
Mobile Screen Width: 375 x 709
|
|
|
|
Figma Box : 327 x 567
|
2022-01-31 00:23:06 +01:00
|
|
|
Ratio 0.872 x 0.7997179126
|
|
|
|
|
2022-01-31 02:36:15 +01:00
|
|
|
Desktop Width: 1440 x 900
|
|
|
|
Figma Box: 450 x 697
|
2022-01-31 00:23:06 +01:00
|
|
|
Ratio 0.3125 x 0.7744444444
|
|
|
|
*/
|
2022-01-03 00:30:42 +01:00
|
|
|
:root {
|
2022-01-31 02:36:15 +01:00
|
|
|
/* Colors */
|
2022-01-03 00:30:42 +01:00
|
|
|
--clr-pale-blue: hsl(225, 100%, 94%);
|
|
|
|
--clr-bright-blue: hsl(245, 75%, 52%);
|
|
|
|
|
|
|
|
--clr-very-pale-blue: hsl(225, 100%, 98%);
|
|
|
|
--clr-desaturated-blue: hsl(224, 23%, 55%);
|
|
|
|
--clr-dark-blue: hsl(223, 47%, 23%);
|
2022-01-31 16:48:05 +01:00
|
|
|
--clr-light-purple: hsla(245, 83%, 68%, 1);
|
2022-01-03 00:30:42 +01:00
|
|
|
|
2022-01-31 02:36:15 +01:00
|
|
|
/* Fonts */
|
2022-01-03 00:30:42 +01:00
|
|
|
--fs-p: 1rem;
|
|
|
|
--fw-500: 500;
|
|
|
|
--fw-700: 700;
|
|
|
|
--fw-900: 900;
|
2022-01-31 00:23:06 +01:00
|
|
|
|
2022-01-31 16:48:05 +01:00
|
|
|
/* Border Radii */
|
2022-01-31 00:23:06 +01:00
|
|
|
--br-11: 11px;
|
|
|
|
--br-20: 20px;
|
2022-01-31 02:36:15 +01:00
|
|
|
|
2022-01-31 16:48:05 +01:00
|
|
|
/* Scaling fonts between the left and right sizes */
|
2022-01-31 02:36:15 +01:00
|
|
|
--font-width-15px-16px: clamp(0.94rem, 0.92rem + 0.09vw, 1rem);
|
|
|
|
--font-width-14px-16px: clamp(0.88rem, 0.83rem + 0.19vw, 1rem);
|
2022-01-31 16:48:05 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
Used for the Price Plan box and the Proceed to Payment button
|
|
|
|
sensibly these should be two seperate variables in case the
|
|
|
|
components where used in different places */
|
|
|
|
--box-width: 85%;
|
|
|
|
|
|
|
|
--page-background-img: url("../images/pattern-background-mobile.svg");
|
2022-01-31 00:23:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
*,
|
|
|
|
::before,
|
|
|
|
::after {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
box-sizing: border-box;
|
2022-01-31 02:36:15 +01:00
|
|
|
/* because I want it to affect the link color */
|
|
|
|
color: var(--clr-desaturated-blue);
|
2022-01-03 00:30:42 +01:00
|
|
|
}
|
|
|
|
|
2022-01-31 02:36:15 +01:00
|
|
|
/* General Formatting */
|
2022-01-03 00:30:42 +01:00
|
|
|
|
2022-01-31 16:48:05 +01:00
|
|
|
html,
|
|
|
|
body {
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2022-01-03 00:30:42 +01:00
|
|
|
body {
|
2022-01-31 00:23:06 +01:00
|
|
|
font-family: "Red Hat Display", sans-serif;
|
|
|
|
background-color: var(--clr-pale-blue);
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
2022-01-31 16:48:05 +01:00
|
|
|
background-image: var(--page-background-img);
|
2022-01-31 00:23:06 +01:00
|
|
|
background-repeat: no-repeat;
|
2022-01-31 16:48:05 +01:00
|
|
|
min-height: 100%;
|
2022-01-31 00:23:06 +01:00
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2022-01-03 00:30:42 +01:00
|
|
|
}
|
|
|
|
|
2022-01-31 16:48:05 +01:00
|
|
|
/* Order Summary Card formatting */
|
|
|
|
|
2022-01-03 00:30:42 +01:00
|
|
|
.card {
|
2022-01-31 02:36:15 +01:00
|
|
|
width: clamp(327px, 32%, 450px);
|
2022-01-31 00:23:06 +01:00
|
|
|
border-radius: var(--br-20);
|
|
|
|
background-color: white;
|
|
|
|
text-align: center;
|
2022-01-31 03:45:39 +01:00
|
|
|
|
|
|
|
box-shadow: 0px 40px 40px -20px rgba(13, 48, 189, 0.151826);
|
2022-01-03 00:30:42 +01:00
|
|
|
}
|
2022-01-31 03:17:57 +01:00
|
|
|
.card__hero-image {
|
2022-01-31 00:23:06 +01:00
|
|
|
width: 100%;
|
|
|
|
border-radius: var(--br-20) var(--br-20) 0 0;
|
2022-01-31 02:36:15 +01:00
|
|
|
margin-bottom: clamp(2rem, 8vw, 2.815rem);
|
2022-01-03 00:30:42 +01:00
|
|
|
}
|
2022-01-31 00:23:06 +01:00
|
|
|
|
2022-01-31 03:17:57 +01:00
|
|
|
.card__title {
|
2022-01-31 00:23:06 +01:00
|
|
|
font-weight: var(--fw-900);
|
2022-01-31 02:36:15 +01:00
|
|
|
font-size: clamp(1.375rem, 2.5vw, 1.815rem);
|
|
|
|
line-height: 1.3195;
|
2022-01-31 00:23:06 +01:00
|
|
|
margin-bottom: 1rem;
|
|
|
|
color: var(--clr-dark-blue);
|
2022-01-03 00:30:42 +01:00
|
|
|
}
|
2022-01-31 00:23:06 +01:00
|
|
|
|
2022-01-31 03:17:57 +01:00
|
|
|
.card__info {
|
2022-01-31 00:23:06 +01:00
|
|
|
font-weight: var(--fw-500);
|
2022-01-31 02:36:15 +01:00
|
|
|
margin: 0 clamp(2rem, 4vw, 3rem);
|
|
|
|
font-size: var(--font-width-15px-16px);
|
2022-01-31 00:23:06 +01:00
|
|
|
margin-bottom: 1.5rem;
|
2022-01-31 16:48:05 +01:00
|
|
|
line-height: 162%;
|
2022-01-03 00:30:42 +01:00
|
|
|
}
|
2022-01-31 00:23:06 +01:00
|
|
|
|
2022-01-31 03:17:57 +01:00
|
|
|
.card__price-plan {
|
2022-01-31 00:23:06 +01:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-around;
|
|
|
|
align-items: center;
|
|
|
|
|
2022-01-31 16:48:05 +01:00
|
|
|
width: var(--box-width);
|
|
|
|
margin: 0 auto clamp(1.5rem, 2vw, 2rem) auto;
|
2022-01-31 03:45:39 +01:00
|
|
|
padding: clamp(1rem, 2vw, 1.5315rem) 0;
|
2022-01-31 00:23:06 +01:00
|
|
|
|
|
|
|
border-radius: var(--br-11);
|
|
|
|
background-color: var(--clr-very-pale-blue);
|
2022-01-03 00:30:42 +01:00
|
|
|
}
|
2022-01-31 00:23:06 +01:00
|
|
|
|
2022-01-31 16:48:05 +01:00
|
|
|
.card__plan-type-area {
|
|
|
|
line-height: 1.3125;
|
|
|
|
}
|
|
|
|
|
2022-01-31 03:17:57 +01:00
|
|
|
.card__plan-type {
|
2022-01-31 00:23:06 +01:00
|
|
|
color: var(--clr-dark-blue);
|
2022-01-31 02:36:15 +01:00
|
|
|
font-size: var(--font-width-14px-16px);
|
2022-01-31 00:23:06 +01:00
|
|
|
font-weight: var(--fw-900);
|
2022-01-31 02:36:15 +01:00
|
|
|
margin-bottom: clamp(0.1875rem, 0.8vw, 0.375rem);
|
2022-01-03 00:30:42 +01:00
|
|
|
}
|
2022-01-31 03:17:57 +01:00
|
|
|
.card__plan-price {
|
2022-01-31 16:48:05 +01:00
|
|
|
font-size: var(--font-width-14px-16px);
|
2022-01-31 00:23:06 +01:00
|
|
|
font-weight: 500;
|
2022-01-03 00:30:42 +01:00
|
|
|
}
|
2022-01-31 03:17:57 +01:00
|
|
|
.card__change-button {
|
2022-01-31 16:48:05 +01:00
|
|
|
font-size: clamp(0.813rem, 0.79rem + 0.09vw, 0.88rem);
|
2022-01-31 00:23:06 +01:00
|
|
|
font-weight: var(--fw-700);
|
|
|
|
color: var(--clr-bright-blue);
|
|
|
|
}
|
|
|
|
|
2022-01-31 03:17:57 +01:00
|
|
|
.card__button-area a {
|
2022-01-31 00:23:06 +01:00
|
|
|
display: block;
|
|
|
|
text-decoration: none;
|
|
|
|
font-weight: var(--fw-900);
|
|
|
|
font-size: 0.9375rem;
|
|
|
|
line-height: 20px;
|
2022-01-03 00:30:42 +01:00
|
|
|
}
|
2022-01-31 03:17:57 +01:00
|
|
|
.card__payment-button {
|
2022-01-31 00:23:06 +01:00
|
|
|
color: white;
|
|
|
|
background-color: var(--clr-bright-blue);
|
2022-01-31 16:48:05 +01:00
|
|
|
width: var(--box-width);
|
2022-01-31 02:36:15 +01:00
|
|
|
margin: 0 auto clamp(1.5rem, 4vw, 2rem) auto;
|
2022-01-31 00:23:06 +01:00
|
|
|
box-shadow: 0px 20px 20px rgba(56, 42, 225, 0.190291);
|
|
|
|
border-radius: var(--br-11);
|
|
|
|
padding: 15px 0;
|
2022-01-03 00:30:42 +01:00
|
|
|
}
|
2022-01-31 03:17:57 +01:00
|
|
|
.card__cancel-button {
|
2022-01-31 02:36:15 +01:00
|
|
|
margin-bottom: clamp(2rem, 8vw, 3rem);
|
2022-01-31 00:23:06 +01:00
|
|
|
}
|
|
|
|
|
2022-01-31 16:48:05 +01:00
|
|
|
.card__change-button:is(:hover, :focus) {
|
|
|
|
color: var(--clr-light-purple);
|
|
|
|
}
|
2022-01-31 02:36:15 +01:00
|
|
|
|
2022-01-31 16:48:05 +01:00
|
|
|
.card__payment-button:is(:hover, :focus) {
|
|
|
|
background-color: var(--clr-light-purple);
|
|
|
|
}
|
2022-01-31 02:36:15 +01:00
|
|
|
|
2022-01-31 16:48:05 +01:00
|
|
|
.card__cancel-button:is(:hover, :focus) {
|
|
|
|
color: var(--clr-dark-blue);
|
|
|
|
}
|
2022-01-31 02:36:15 +01:00
|
|
|
|
2022-01-31 16:48:05 +01:00
|
|
|
@media screen and (min-width: 376px) {
|
|
|
|
:root {
|
|
|
|
--box-width: 80%;
|
|
|
|
--page-background-img: url("../images/pattern-background-desktop.svg");
|
2022-01-31 02:36:15 +01:00
|
|
|
}
|
2022-01-31 00:23:06 +01:00
|
|
|
}
|