/* INTRODUCTION HORSE RACING */

.introduction-horse-racing {
	background-color: var(--main-white);
	padding: 4em 0;
}

.introduction-horse-racing__right .line {
	animation: fillWidth 4s ease-in-out;
}

/* SOURCE OF INFORMATION */

.source-of-information {
	background-color: var(--main-blue);
	padding: 2em 0;
	overflow: hidden;
}

.source-of-information__img {
	transform: translateY(2.5em);
}

/* LOCAL AND OVERSEAS */

.local-and-overseas {
	background-color: var(--main-white);
	padding: 3em 0;
}

.local-and-overseas__toggle-wrapper {
	display: flex;
	align-items: center;
	gap: 1em;
}

.local-and-overseas__toggle {
	position: relative;
	background-color: var(--main-white);
	width: 3em;
	height: 6em;
	border-radius: 25px;
}

.local-and-overseas__toggle::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 70%;
	height: 80%;
	background-color: var(--main-light-gray);
	border-radius: 25px;
}

.local-and-overseas__toggle span {
	position: absolute;
	top: 0.6em;
	left: 50%;
	transform: translate(-50%);
	width: 2em;
	height: 2em;
	background-color: var(--main-blue);
	border-radius: 50%;
	cursor: pointer;
	transition: 0.3s ease;
}

.local-and-overseas__toggle span.is-toggling {
	top: unset;
	bottom: 0.6em;
}

.local-and-overseas__toggle__text {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 4.5em;
}

.local-and-overseas__toggle__text p:first-child {
	margin-bottom: 0.5em;
}

.local-and-overseas__toggle__text p.active {
	color: var(--main-blue);
}

.local-and-overseas__logo.is-hidden {
	display: none;
}

.local-and-overseas__country-img__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1em;
	display: none;
}

.local-and-overseas__country-img__container.is-showing {
	display: unset;
}

.local-and-overseas__country-img__container > div {
	display: flex;
	align-items: center;
	width: 100%;
	justify-content: space-between;
}

.local-and-overseas__country-img__container > div:last-child {
	justify-content: center;
	gap: 1em;
	margin-top: 1em;
}

.local-and-overseas__country-img-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0;
}

.local-and-overseas__country-img-wrapper picture {
	width: fit-content;
}

.local-and-overseas__country-img {
	width: calc(0.5em + 4vw);
}

.local-and-overseas__country-img-wrapper p {
	position: absolute;
	bottom: -1.5em;
	left: 50%;
	transform: translateX(-50%);
	font-weight: 600;
	color: var(--main-blue);
	opacity: 0;
	visibility: hidden;
	display: none;
}

.local-and-overseas__country-img-wrapper p.two-line-paragraph {
	bottom: -3em;
}

.local-and-overseas__country-img-wrapper p.three-line-paragraph {
	bottom: -4.5em;
}

.local-and-overseas__country-img-wrapper:hover p {
	opacity: 1;
	visibility: visible;
}

/* RACE HORSE */

.race-horse {
	position: relative;
	padding: 3em 0;
	background-color: var(--main-light-blue);
}

.race-horse--singapore {
	background-color: var(--main-blue);
}

.race-horse__img {
	height: 10em;
	width: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 30px;
}

#race-horse-kranji-elipse-4 {
	position: absolute;
	top: -2em;
	left: -1.5em;
	width: calc(6vw + 5em);
}

#race-horse-kranji-elipse-2 {
	position: absolute;
	bottom: -5.5em;
	right: -4em;
	width: calc(8vw + 9em);
}

/* HORSE RACING BASICS - MUST KNOW TAB */

/* SPONSORS */

.sponsors {
	position: relative;
	background-color: var(--main-white);
	padding: 3em 0;
}

.sponsors__row div {
	display: grid;
	place-items: center;
}

#sponsors-elipse-red {
	position: absolute;
	top: calc(-2vw + -1em);
	right: calc(-2vw + -1.5em);
	width: calc(4vw + 4em);
	z-index: 1;
}

#sponsors-elipse-blue-dashes {
	position: absolute;
	top: calc(-3vw + -4em);
	right: 1.5em;
	width: calc(5vw + 6em);
	animation: rotate 25s linear infinite;
}

/* MEETING TYPES */

.meeting-types {
	position: relative;
	padding: 3em 0;
	background-color: var(--main-white);
}

.stepper__cards {
	margin-top: 5em;
	justify-content: center;
}

#meeting-types-elipse-yellow {
	position: absolute;
	top: -4em;
	left: calc(-3vw + -7em);
	width: calc(5vw + 10em);
}

#meeting-types-elipse-red-dashes {
	position: absolute;
	top: -2em;
	left: 2em;
	width: calc(3vw + 3em);
	animation: rotate 5s linear infinite;
}

#meeting-types-elipse-purple-border {
	position: absolute;
	bottom: -5em;
	right: calc(-5vw + -4em);
	width: calc(5vw + 7em);
	z-index: 1;
}

/* TYPICAL RACE DAY */

.typical-race-day {
	position: relative;
	padding: 3em 0 5em 0;
	background-color: var(--main-light-blue);
}

.typical-race-day table thead tr th {
	width: 12.5%;
}

#typical-race-day-group-horse {
	position: absolute;
	bottom: calc(-2vw + -1em);
	left: 50%;
	transform: translateX(-50%);
	height: calc(4vw + 3em);
	z-index: 1;
}

#typical-race-day-tree-left {
	position: absolute;
	bottom: 0;
	left: calc(2vw + 2em);
	height: calc(2vw + 2em);
}

#typical-race-day-tree-right {
	position: absolute;
	bottom: 0;
	right: calc(2vw + 2em);
	height: calc(2vw + 2em);
}

/* SINGAPORE RACING */

.singapore-racing {
	position: relative;
	padding: 4em 0 3em 0;
	background-color: var(--main-white);
}

.singapore-racing h2 {
	margin-bottom: 1em;
}

.singapore-racing__card {
	position: relative;
	margin-bottom: 3em;
}

.singapore-racing__card div:first-child {
	z-index: 1;
}

.singapore-racing__card::before {
	content: '';
	position: absolute;
	width: 50%;
	top: -1em;
	left: 50%;
	height: 2px;
	transform: translateX(-50%);
	background-color: var(--main-black);
	display: none;
}

.singapore-racing__card:nth-child(odd)::before {
	background-color: var(--main-gray);
}

.singapore-racing__card:nth-child(odd)::after {
	background-color: var(--main-gray);
}

.singapore-racing__card:last-child::after {
	opacity: 0;
}

.singapore-racing__card:nth-child(even)::before {
	opacity: 0;
}

.singapore-racing__card:nth-child(even)::after {
	opacity: 0;
}

.singapore-racing__card::after {
	content: '';
	position: absolute;
	width: 50%;
	bottom: -1em;
	left: 50%;
	height: 2px;
	transform: translateX(-50%);
	background-color: var(--main-black);
}

.singapore-racing__card__line {
	position: absolute;
	top: 50%;
	left: 25%;
	transform: translate(-25%, -50%);
	height: 138%;
	width: 0.1em !important;
	background-color: var(--main-gray);
	padding: 0 !important;
	margin: 0 !important;
	display: none;
}

.singapore-racing__card--first .singapore-racing__card__line {
	height: 78% !important;
	bottom: 0;
	top: unset;
	transform: translate(-25%, 25%);
}

.singapore-racing__card--last .singapore-racing__card__line {
	height: 78% !important;
	top: -1em;
	transform: translate(-25%, 0);
}

.singapore-racing__card--reverse .singapore-racing__card__line {
	left: unset;
	right: 25%;
	height: 108%;
}

.singapore-racing__card__img-wrapper {
	position: relative;
	z-index: 3;
}

.singapore-racing__card__img-wrapper::before {
	content: '';
	position: absolute;
	top: 8px;
	right: -8px;
	background-color: var(--main-blue);
	border-radius: 25px;
	height: 100%;
	width: 100%;
	z-index: -1;
	animation: imageBackgroundColor 4s ease-in-out;
}

.singapore-racing__card__img-wrapper--yellow::before {
	background-color: var(--main-yellow);
}

.singapore-racing__card__img-wrapper--red::before {
	background-color: var(--main-red);
}

.singapore-racing__card__img-wrapper--purple::before {
	background-color: var(--main-purple);
}

.singapore-racing__card__img {
	height: 16em;
	width: 100%;
	object-fit: cover;
	border-radius: 25px;
}

.singapore-racing__card h3 {
	margin: 1.5em 0 0.8em 0;
	font-weight: 600;
	color: var(--main-blue);
}

#singapore-racing-elipse-red-2 {
	position: absolute;
	bottom: calc(-10vw + -8em);
	left: calc(-3vw + -4em);
	width: calc(12em + 13vw);
}

#singapore-racing-line-1 {
	position: absolute;
	bottom: -1em;
	left: calc(5vw + 6em);
	width: calc(4vw + 4em);
	animation: horizontalMovement 3s ease alternate infinite;
}

/* RACE CARD TAB */

.race-card {
	padding: 3em 0 0 0;
	background-color: var(--main-white);
}

.race-card__table-row {
	position: relative;
	margin: 3em 0 0 0;
}

.race-card__table-img-wrapper {
	position: relative;
	z-index: 2;
}

/* .race-card__table-img {
	padding: 2em 0 0 0;
} */
.race-card__table-img {
	padding: 79px 10px 14px 6px;
}

#hint-one {
	top: 20%;
	left: 3%;
}

#hint-two {
	top: 15%;
	left: 7%;
}

#hint-three {
	top: 26%;
	left: 27%;
}

#hint-four {
	top: 26%;
	left: 42%;
}

#hint-five {
	top: 26%;
	left: 56%;
}

#hint-six {
	top: 27%;
	left: 8%;
}

#hint-seven {
	top: 35%;
	left: 6%;
}

#hint-eight {
	top: 35%;
	left: 9%;
}

#hint-nine {
	top: 35%;
	left: 16%;
}
#hint-ten {
	top: 35%;
	left: 22%;
}
#hint-11 {
	top: 35%;
	left: 31%;
}
#hint-12 {
	top: 35%;
	left: 37%;
}
#hint-13 {
	top: 35%;
	left: 49%;
}
#hint-14 {
	top: 35%;
	left: 54%;
}
#hint-15 {
	top: 35%;
	left: 67%;
}
#hint-16 {
	top: 35%;
	left: 60%;
}
#hint-17 {
	top: 43%;
	left: 2%;
}
#hint-18 {
	top: 64%;
	left: 2%;
}
#hint-19 {
	top: 26%;
	left: 39%;
}
#hint-20 {
	top: 32%;
	left: 15%;
}
#hint-21 {
	top: 53%;
	left: 44%;
}
#hint-22 {
	top: 35%;
	left: 26%;
}
#hint-23 {
	top: 35%;
	left: 92.5%;
}
#hint-24 {
	top: 32%;
	left: 23%;
}
#hint-25 {
	top: 26%;
	left: 34%;
}
#hint-26 {
	top: 26%;
	left: 48%;
}


#race-card-elipse-purple {
	position: absolute;
	top: 45%;
	left: 50%;
	height: 90%;
	transform: translate(-50%, -50%);
	z-index: 0;
}





/*New Styles - Harsha*/

.circle {
  padding: 0;
  z-index: 2;
}

.how-it-works.row {
display: flex; }
.how-it-works.row .col-2 {
  display: inline-flex;
  align-self: stretch;
  align-items: center;
  justify-content: center; }

.how-it-works.row .col-2.bottom::after {
  height: 50%;
  left: 50%;
  top: 50%; }
.how-it-works.row .col-2.full::after {
  height: 100%;
  left: calc(50% - 3px); }
.how-it-works.row .col-2.top::after {
  height: 50%;
  left: 50%;
  top: 0; }

  .timeline div {
  padding: 0;
  height: 100px;
}

.timeline hr {
  border-top: 3px solid var(--main-gray);
  margin: 0;
  top: 47px;
  position: relative;
  opacity: 1;
}

.timeline .col-2 {
display: flex;
overflow: hidden; }

.timeline .corner {
/* border: 3px solid red;
border-radius: 15px; */
width: 100%;
position: relative; 
} 

.timeline .corner.top-right {
  border-left: 3px solid var(--main-gray);
  border-radius: 0 0 0 15px;
  border-bottom: 3px solid var(--main-gray);
}

.timeline .corner.left-bottom {
  border-top: 3px solid var(--main-gray);
  border-radius: 0 15px 0 0;
  border-right: 3px solid var(--main-gray);
}

.timeline .corner.right-bottom {
  border-left: 3px solid var(--main-gray);
  border-radius: 15px 0 0 0;
  border-top: 3px solid var(--main-gray);
}
.timeline .corner.top-left {
  border-right: 3px solid var(--main-gray);
  border-radius: 0 0 15px 0;
  border-bottom: 3px solid var(--main-gray);
}
											  
.timeline .top-right {
left: 50%;
top: -50%; 
}

.timeline .left-bottom {
left: -50%;
top: calc(50% - 3px); }

.timeline .top-left {
left: -50%;
top: -50%; }

.timeline .right-bottom {
left: 50%;
top: calc(50% - 3px); }

.singapore-racing__card::after {
  content: unset;
}
.singapore-racing__card::before {
  content: unset;
}
.singapore-racing__card {
  margin-bottom: 0;
}
.row .H3.text-blue {
	font-weight: 500;
	font-style: italic;
}
.singapore-racing__card.racing-terminology h3 {
	font-weight: 500;
}
.singapore-racing__card.racing-terminology .blue-dot-lists li p span {
	color: var(--main-blue);
	font-weight: 600;
}
.singapore-racing__card.racing-terminology.how-it-works.row {
	margin-top: 70px;
}

.singapore-racing__card__img-wrapper i {
	float: left;
	width: 100%;
	display: block;
	margin: 20px 0 0 15px !important;
	font-style: italic;
	font-size: 15px;
}



@media screen and (max-width: 767px) {
.how-it-works.row {
	margin: 10px 0 40px 0;
}
.row.timeline {
	display: none;
}
.race-card__table-img {
	padding: 2em 0 0 0;
}
}




@media screen and (min-width: 768px) {
	.singapore-racing__card {
		margin-bottom: 4em;
	}

	.singapore-racing__card--reverse {
		display: flex;
		flex-direction: row-reverse;
	}
}

@media screen and (min-width: 992px) {
	.introduction-horse-racing__right small {
		width: 80%;
		display: inline-block;
	}

	.local-and-overseas__toggle__text {
		height: 4em;
	}

	.local-and-overseas__country-img__container > div:last-child {
		justify-content: center;
		gap: 2em;
		margin-top: 3em;
	}

	.local-and-overseas__country-img-wrapper p {
		display: unset;
	}

	.sponsors__row {
		gap: 2em;
	}

	#singapore-turf-club-elipse-2 {
		bottom: -8.5em;
		right: -6em;
	}

	.singapore-racing__card h3 {
		margin-top: 0;
	}

	#hint-one {
		top: 20%;
	}

	#hint-two {
		top: 15%;
	}

	#hint-three {
		top: 27%;
	}

	#hint-four {
		top: 27%;
	}

	#hint-five {
		top: 27%;
	}

	#hint-six {
		top: 27%;
	}

	#hint-seven {
		top: 38%;
	}

	#hint-eight {
		top: 38%;
	}

	#hint-nine {
		top: 38%;
	}

	#hint-ten {
		top: 38%;
	}
	#hint-11 {
		top: 38%;
	}
	#hint-12 {
		top: 38%;
	}
	#hint-13 {
		top: 38%;
	}
	#hint-14 {
		top: 38%;
	}
	#hint-15 {
		top: 38%;
	}
	#hint-16 {
		top: 38%;
	}
	#hint-17 {
		top: 43%;
	}
	#hint-18 {
		top: 70%;
	}
	#hint-19 {
		top: 27%;
	}
	#hint-20 {
		top: 32%;
	}
	#hint-21 {
		top: 53%;
	}
	#hint-22 {
		top: 38%;
	}
	#hint-23 {
		top: 38%;
	}
	#hint-24 {
		top: 32%;
	}
	#hint-25 {
		top: 27%;
	}
	#hint-26 {
		top: 27%;
	}

	.singapore-racing__card::before {
		display: unset;
	}

	.singapore-racing__card__line {
		display: unset;
	}
}

@media screen and (min-width: 1200px) {
	.local-and-overseas__country-img__container > div:last-child {
		gap: 2em;
	}
}
