.cards-section-top {
	height: auto;
	width: auto;
	background-color: #FFFFFF;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1% 1% 0 1%;
}

.cards-section-bottom {
	height: auto;
	width: auto;
	background-color: #FFFFFF;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 1% 1% 1%;
}

.card-container {
	background-color: transparent;
	width: 100%;
	height: 0;
	perspective: 1600px; /* creates a 3D flip effect */
	margin: 1%;
	padding-bottom: calc(50% - 5px);
}

.card-container-inner {
	position: relative;
	width: 100%;
	transition: transform 1s;
	transform-style: preserve-3d;
	padding-bottom: 100%;
}

.card {
	background-size: cover;
	border-radius: 10px;
	-webkit-box-shadow: 5px 7px 16px -3px rgba(0, 0, 0, 0.29);
	box-shadow: 5px 7px 16px -3px rgba(0, 0, 0, 0.29);
}

	.card:hover {
		cursor: pointer;
	}

.card-front-title {
	font-family: var(--title-text);
	font-size: 3vw;
	letter-spacing: 0.1em;
}

.card-back-title {
	font-size: 3vw;
	line-height: 3vw;
	font-family: var(--title-text);
	letter-spacing: 0.1em;
	margin-left: 10%;
	margin-top: 8%;
}

/* ====== Card One ====== */

.card-front-one {
	background-color: var(--legacy-blue);
	background-image: url("../Assets/Background/Card_logo_01.svg");
}

	.card-front-one .card-front-title {
		margin-top: 78%;
		margin-right: 8%;
		text-align: right;
	}

.wiggle {
	-webkit-animation: wiggle 2s alternate-reverse infinite;
	-moz-animation: wiggle 2s alternate-reverse infinite;
	-o-animation: wiggle 2s alternate-reverse infinite;
	animation: wiggle 2s alternate-reverse infinite;
}

.card-back-one {
	background-color: var(--legacy-blue);
	color: #FFFFFF;
}

.card-one-paragraph {
	width: 80%;
	margin-left: 10%;
	margin-right: 10%;
	font-size: 1.8vw;
	line-height: 1.8vw;
	margin-bottom: 0;
	margin-top: 15px;
}

.card-one-list {
	list-style-position: inside;
	padding-left: 0;
	margin-top: 20px;
}

	.card-one-list li {
		font-size: 1.8vw;
		line-height: 2.4vw;
		margin-bottom: 0;
		margin-left: 10%;
	}

/* ====== Card Two ====== */

.card-front-two {
	background-color: var(--legacy-red);
	background-image: url("../Assets/Background/Card_logo_02.svg");
}

	.card-front-two .card-front-title {
		margin-top: 78%;
		margin-left: 8%;
		text-align: left;
	}

.card-back-two {
	background-color: var(--legacy-red);
	color: #FFFFFF;
}

.card-two-paragraph {
	width: 80%;
	margin-left: 10%;
	margin-top: 5%;
	font-size: 1.8vw;
	line-height: 2.1vw;
}

.card-two-button-container {
	width: 80%;
	margin-left: 10%;
	margin-right: 10%;
	margin-top: 10%;
}

.card-two-button {
	height: 4vw;
	background-color: #ffffff;
	border-radius: 5px;
	font-family: var(--title-text);
	color: var(--legacy-blue);
	font-size: 1.4vw;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-align: center;
	line-height: 2vw;
	outline: none;
	border: none;
}

	.card-two-button:hover {
		cursor: pointer;
	}

.card-two-button-one {
	width: 32%;
	margin-bottom: 2%;
	float: left;
}

.card-two-button-two {
	width: 65%;
	margin-left: 1%;
	margin-bottom: 2%;
	float: right;
}

.card-two-button-three {
	clear: both;
	width: 45%;
	float: left;
	margin-top: 1%;
}

.card-two-button-four {
	width: 52%;
	float: right;
	margin-left: 1%;
	margin-top: 1%;
}

/* ====== Card Three ====== */

.card-front-three {
	background-color: var(--legacy-gold);
	background-image: url("../Assets/Background/Card_logo_03.svg");
}

	.card-front-three .card-front-title {
		margin-top: 8%;
		margin-right: 8.5%;
		text-align: right;
		color: var(--legacy-blue);
		font-weight: 500;
	}

.card-back-three {
	background-color: var(--legacy-gold);
	color: var(--legacy-blue);
}

.card-three-name {
	color: #FFFFFF;
	font-size: 1.8vw;
	font-weight: 500;
	margin-left: 10%;
	width: 80%;
	margin-top: 5px;
}

.card-three-description {
	font-size: 1.8vw;
	line-height: 1.8vw;
	margin-left: 10%;
	width: 80%;
}

/* ====== Card Four ====== */

.card-front-four {
	background-color: #FFFFFF;
	background-image: url("../Assets/Background/Card_logo_04.svg");
}

	.card-front-four .card-front-title {
		margin-top: 8%;
		margin-left: 8.5%;
		text-align: left;
		color: var(--legacy-blue);
		font-weight: 500;
	}

.card-back-four {
	background-color: #FFFFFF;
	color: var(--legacy-blue);
}

.card-four-paragraph {
	font-size: 1.8vw;
	line-height: 2.1vw;
	width: 70%;
	margin-left: 10%;
}

	.card-four-paragraph span {
		white-space: nowrap;
	}

.card-four-button {
	margin-left: 10%;
	margin-top: 4%;
	height: 4vw;
	background-color: var(--legacy-gold);
	border-radius: 5px;
	font-family: var(--title-text);
	color: var(--legacy-blue);
	font-size: 1.4vw;
	font-weight: 600;
	letter-spacing: 0.2em;
	line-height: 2vw;
	padding: 0 4%;
	outline: none;
	border: none;
}

	.card-four-button:hover {
		cursor: pointer;
	}

.prevent-rotating:hover {
	cursor: pointer;
}

.card-four-paragraph a {
	text-decoration: none;
	color: var(--legacy-blue);
}

/* ====== Cards Flip ====== */

.card, .card-back {
	position: absolute;
	width: 100%;
	height: 100%;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.card-back {
	transform: rotateY(180deg);
	border-radius: 10px;
	-webkit-box-shadow: 5px 7px 16px -3px rgba(0, 0, 0, 0.29);
	box-shadow: 5px 7px 16px -3px rgba(0, 0, 0, 0.29);
}

	.card-back:hover {
		cursor: pointer;
	}

.rotate {
	transform: rotateY(180deg);
}

/* === Media Queries === */

@media only screen and (max-width: 650px), (orientation: portrait) {
	.cards-section-top {
		flex-direction: column;
	}

	.cards-section-bottom {
		flex-direction: column;
	}

	.card-container {
		width: 90%;
		height: 0;
		margin: 1%;
		margin-bottom: 5%;
		padding-bottom: 90%;
	}

	.card-front-title {
		font-size: 6vmin;
		line-height: 6vmin;
	}

	.card-back-title {
		font-size: 6vmin;
		line-height: 6vmin;
	}

	.card-one-paragraph {
		font-size: 3vmin;
		line-height: 3.5vmin;
	}

	.card-one-list li {
		font-size: 3vmin;
		line-height: 4.5vmin;
	}

	.card-two-paragraph {
		font-size: 3vmin;
		line-height: 3.5vmin;
	}

	.card-two-button {
		height: 6vh;
		font-size: 3vmin;
		font-weight: 500;
	}

	.card-three-name {
		font-size: 3.3vmin;
		line-height: 3.5vmin;
	}

	.card-three-description {
		font-size: 3vmin;
		line-height: 3.5vmin;
		margin-bottom: 15px;
	}

	.card-four-paragraph {
		font-size: 3vmin;
		line-height: 3.5vmin;
	}

	.card-four-button {
		margin-top: 20px;
		height: 6vh;
		font-size: 3vmin;
		font-weight: 500;
	}
}

@media screen and (min-width: 1300px) {
	.cards-section-top {
		padding: 2% 5% 0 5%;
	}

	.cards-section-bottom {
		padding: 0 5% 2% 5%;
	}

	.card-one-paragraph {
		font-size: 1.4vw;
		line-height: 2vw;
	}

	.card-one-list li {
		font-size: 1.4vw;
		line-height: 2vw;
	}

	.card-two-paragraph {
		font-size: 1.4vw;
		line-height: 2vw;
	}

	.card-three-name {
		font-size: 1.6vw;
		line-height: 2vw;
		margin-top: 10px;
	}

	.card-three-description {
		font-size: 1.4vw;
		line-height: 2vw;
	}

	.card-four-paragraph {
		font-size: 1.4vw;
		line-height: 2vw;
	}

	.card-four-button {
		margin-top: 4%;
	}
}

@media only screen and (min-width: 500px) and (orientation: portrait) {
	.card-three-name {
		margin-top: 20px;
	}
}
