/* Copyright (c) 2024 Dante Passalacqua */

* {
	box-sizing: border-box;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	line-height: 1.8;
}

body {
	font-size: 15px;
	margin: 0;
	padding: 0;
	background-image: url(images/bg-top.svg), url(images/bg-bottom.svg);
	background-repeat: no-repeat;
	background-position: 60vw top, bottom left;
	background-color: hsl(240, 78%, 98%);
}

.switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
	margin: 0 1em;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: hsl(237, 63%, 64%);
	background-image: linear-gradient(hsl(236, 72%, 79%), hsl(237, 63%, 64%));
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

.slider:before {
	position: absolute;
	content: '';
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	-webkit-transition: 0.4s;
	transition: 0.4s;
}

input:checked + .slider {
	background-color: hsl(236, 72%, 79%);
}

input:focus + .slider,
input:hover + .slider {
	box-shadow: 0 0 1px hsl(0, 0%, 0%);
}

input:checked + .slider:before {
	-webkit-transform: translateX(26px);
	-ms-transform: translateX(26px);
	transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
	border-radius: 34px;
}

.slider.round:before {
	border-radius: 50%;
}

header {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 2em 0;
	color: hsl(233, 13%, 49%);
}
header h1 {
	margin: 1em 0;
	padding: 0;
}

.duration-container {
	display: flex;
	align-items: center;
}

.pricing-cards {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.cards {
	width: 80%;
	padding: 1em 0 2em 0;
	margin-bottom: 2em;
	color: hsl(232, 13%, 33%);
	background: #fff;
	border-radius: 0.5em;
}
.cards h2 {
	margin: 0;
	padding: 0;
}
.cards p {
	border-top: 1px solid hsl(234, 14%, 74%);
	width: 80%;
	margin: 0 auto;
	padding: 1em 0;
}
.cards p:nth-last-of-type(1) {
	border-bottom: 1px solid hsl(234, 14%, 74%);
	margin-bottom: 2em;
}

.price-text {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
}
.price-text span {
	font-size: 2.5rem;
	margin-right: 10px;
}

.inverse {
	background-image: linear-gradient(hsl(236, 72%, 79%), hsl(237, 63%, 64%));
	color: white;
}
.inverse .learn-more-btn {
	background: white;
	color: hsl(237, 63%, 64%);
}
.inverse .learn-more-btn:hover,
.inverse .learn-more-btn:focus {
	background: none;
	color: white;
	outline: 2px solid white;
}
.inverse p {
	border-top: 1px solid #fff;
}
.inverse p:nth-last-of-type(1) {
	border-bottom: 1px solid #fff;
}

.learn-more-btn {
	padding: 1em 6em;
	border-radius: 0.5em;
	cursor: pointer;
	background-image: linear-gradient(hsl(236, 72%, 79%), hsl(237, 63%, 64%));
	border: none;
	outline: none;
	color: white;
	text-transform: uppercase;
	letter-spacing: 2px;
	text-decoration: none;
}

.learn-more-btn:active {
	transform: scale(0.95);
	transition: all 100ms ease-in-out;
}

.learn-more-btn:hover,
.learn-more-btn:focus {
	background: none;
	color: hsl(237, 63%, 64%);
	outline: 2px solid hsl(237, 63%, 64%);
}

.monthly {
	display: none;
}

@media only screen and (min-width: 850px) and (max-width: 1400px) {
	.price-text {
		font-size: 2rem;
	}
	.price-text span {
		font-size: 1.25rem;
	}
	.learn-more-btn {
		padding: 1em 2em;
	}
	.pricing-cards {
		display: flex;
		flex-direction: row;
		justify-content: center;
		width: 95%;
		margin: 0 auto;
	}
	.cards {
		width: 30%;
	}
	.inverse {
		padding: 0 0 3.2em 0;
	}
	.inverse h2:first-of-type {
		margin-top: 1.5em;
	}
}
@media only screen and (min-width: 1400px) {
	.pricing-cards {
		display: flex;
		flex-direction: row;
		justify-content: center;
		width: 75%;
		margin: 0 auto;
	}
	.cards {
		width: 30%;
	}
	.inverse {
		padding: 0 0 3em 0;
	}
	.inverse h2:first-of-type {
		margin-top: 1.5em;
	}
}

/*# sourceMappingURL=styles.css.map */
