/*style sheet for course and career page*/

/*navigation bar css*/
.navbar {
    overflow: hidden;
    background-color:white;
}

.logo img{
    height:6.5%;
    width:13%;
    margin-left:30px;
    margin-top:5px;
    margin-bottom:-4px;
}

.navbar a{
  float: right;
  color: black;
  font-family:"nunito sans", sans-serif;
  text-align: center;
  padding: 20px 30px;
  text-decoration: none;
  font-size: 14px;
}

/*css for underline animation of unactivce tabs*/
.hover-underline-animation {
  display: inline-block;
  position: relative;
  color: #c19a7a;
}

.hover-underline-animation::after {
  content: '';
  position: absolute;
  width: 80%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #c19a7a;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
  margin-left:6px;
  padding-right:6px;
}

.hover-underline-animation:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.navbar a.active {
  background-color: rgba(237,223,212,0.5);
  color: black;
}



/*parallax effect for background on scroll & css for course info*/

:root {
  --scale: 0.1;
  --font-primary: 'Nunito sans', sans-serif;
  --font-heading: 'Spectral', serif;
}

@media (prefers-reduced-motion) {
  :root {
    --scale: 0;
  }
}

* {
  box-sizing: border-box;
}

.main {
  color: hsl(0, 0%, 95%);
  background-color: hsl(178, 21%, 31%);
  font-size: 14px;
  font-family: var(--font-primary);
  line-height: 1.6;
}


.section {
  transform-origin: center top;
  transform: scaleY(calc(1 - var(--scale)));
  width:100%;
}

.section > * {
  transform-origin: center top;
  transform: scaleY(calc(1 / (1 - var(--scale))));
}


.content {
  position: relative;
  margin: -75vh auto 10px;
  padding: 20px;
  max-width: 70%;
  background: hsla(178, 21%, 31%, 0.8);
}

.content > * + * {
  margin-top: 20px;
}

.content p{
    margin-left:50px;
    margin-right:40px;
}

.image-container {
  position: sticky;
  top: 0;
  margin-left:0;
  width: 100%;
  height: 100vh;
  z-index: -2;
}

.image-container img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    to bottom,
    hsla(178, 21%, 31%, 0) 0%,
    hsla(178, 21%, 31%, 0.013) 8.1%,
    hsla(178, 21%, 31%, 0.049) 15.5%,
    hsla(178, 21%, 31%, 0.104) 22.5%,
    hsla(178, 21%, 31%, 0.175) 29%,
    hsla(178, 21%, 31%, 0.259) 35.3%,
    hsla(178, 21%, 31%, 0.352) 41.2%,
    hsla(178, 21%, 31%, 0.45) 47.1%,
    hsla(178, 21%, 31%, 0.55) 52.9%,
    hsla(178, 21%, 31%, 0.648) 58.8%,
    hsla(178, 21%, 31%, 0.741) 64.7%,
    hsla(178, 21%, 31%, 0.825) 71%,
    hsla(178, 21%, 31%, 0.896) 77.5%,
    hsla(178, 21%, 31%, 0.951) 84.5%,
    hsla(178, 21%, 31%, 0.987) 91.9%,
    hsl(178, 21%, 31%) 100%
  );
}

@keyframes fadein {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/*flickering light title css*/
.section-title {
    margin-top: 20px;
    margin-left:20px;
    margin-bottom:25px;
	font-family: "spectral", serif;
	font-weight:bold;
	font-size: 8vw;
	color: white;
	letter-spacing: 0.2em;
	display: flex;
	justify-content: center;
	align-items: center;
}

.content div > span {
	opacity: 0.15;
}
#light {
	opacity: 1;
	animation: flickerI 2s linear  reverse infinite;
}
#light::after {
	content: '';
	width: 150%;
	-webkit-box-shadow: -35px 0px 60px 8px white;
	-moz-box-shadow: -35px 0px 60px 8px white;
	box-shadow: -35px 0px 60px 8px white;
}
#dim1, #dim2 {
	animation: flickerLG 2s linear reverse infinite;
	position: relative;
}
#dim1::after, 
#dim1::before  {
	content:' ';
	width: 100px;
	height: 100px;
	background: white;
	position: absolute;
	top: -50%;
	left: 100%;
	border-radius: 100%;
	opacity: 0.05;
	filter: blur(10px);
}
#dim1::after {
	width: 200px;
	height: 200px;
	top: -150%;
	left: -5%;
	opacity: 0.1;
	filter: blur(10px);
}
#dim3 {
	animation: flickerH 2s linear reverse infinite
}

#dim4 {
	animation: flickerH 2s linear reverse infinite
}

@keyframes flickerI {
	0% {
		opacity: 0.4;
	}
	5% {
		opacity: 0.5;
	}
	10% {
		opacity: 0.6;
	}
	15% {
		opacity: 0.85;
	}
	25% {
		opacity: 0.5;
	}
	30% {
		opacity: 1;
	}
	35% {
		opacity: 0.1;
	}
	40% {
		opacity: 0.25;
	}
	45% {
		opacity: 0.5;
	}
	60% {
		opacity: 1;
	}
	70% {
		opacity: 0.85;
	}
	80% {
		opacity: 0.4;
	}
	90% {
		opacity: 0.5;
	}
	100% {
		opacity: 1;
	}
}

@keyframes flickerLG {
	0% {
		opacity: 0.19;
	}
	5% {
		opacity: 0.2;
	}
	10% {
		opacity: 0.25;
	}
	15% {
		opacity: 0.35;
	}
	25% {
		opacity: 0.2;
	}
	30% {
		opacity: 0.4;
	}
	35% {
		opacity: 0.1;
	}
	40% {
		opacity: 0.25;
	}
	45% {
		opacity: 0.2;
	}
	60% {
		opacity: 0.4;
	}
	70% {
		opacity: 0.35;
	}
	80% {
		opacity: 0.4;
	}
	90% {
		opacity: 0.2;
	}
	100% {
		opacity: 0.4;
	}
}

@keyframes flickerH {
	0% {
		opacity: 0.15;
	}
	5% {
		opacity: 0.2;
	}
	10% {
		opacity: 0.12;
	}
	15% {
		opacity: 0.2;
	}
	25% {
		opacity: 0.15;
	}
	30% {
		opacity: 0.4;
	}
	35% {
		opacity: 0.05;
	}
	40% {
		opacity: 0.12;
	}
	45% {
		opacity: 0.15;
	}
	60% {
		opacity: 0.3;
	}
	70% {
		opacity: 0.2;
	}
	80% {
		opacity: 0.3;
	}
	90% {
		opacity: 0.18;
	}
	100% {
		opacity: 0.3;
	}
}

@keyframes flickerT {
	0% {
		opacity: 0.01;
	}
	5% {
		opacity: 0.05;
	}
	10% {
		opacity: 0.03;
	}
	15% {
		opacity: 0.1;
	}
	25% {
		opacity: 0.07;
	}
	30% {
		opacity: 0.1;
	}
	35% {
		opacity: 0.05;
	}
	40% {
		opacity: 0.06;
	}
	45% {
		opacity: 0.1;
	}
	60% {
		opacity: 0.;
	}
	70% {
		opacity: 0.1;
	}
	80% {
		opacity: 0.;
	}
	90% {
		opacity: 0.0;
	}
	100% {
		opacity: 0.1;
	}
}

/*read more button*/
#more {
    display: none;
}

button {
  background-color: rgba(237,223,212,0.6);
  border: none;
  border-radius:4px;
  color: white;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin-left:50px;
  margin-bottom:30px;
  font-family:"nunito sans", sans-serif;
  cursor: pointer;
  transition: all 0.5s;
}

#expandingbutton span {
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

#expandingbutton span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  right: -10px;
  transition: 0.5s;
}

#expandingbutton:hover span {
  padding-right: 15px;
}

#expandingbutton:hover span:after {
  opacity: 1;
  right: 0;
}



/*text reveal css transition*/
.text-reveal-body {
  text-align:center;
  color:#69827c;
  font-family:"bitter", sans-serif;
  font-size:50px;
  padding-top:40px;
  overflow:hidden;
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000;
  -webkit-transform: translate3d(0,0,0);
}

.text-reveal-body div {
  display:inline-block;
  overflow:hidden;
  white-space:nowrap;
}

.text-reveal-body div:first-of-type {
  animation: showup 7s infinite;
}

.text-reveal-body div:last-of-type {
  width:0px;
  animation: reveal 7s infinite;
}

.text-reveal-body div:last-of-type span {
  margin-left:-355px;
  animation: slidein 7s infinite;
}

@keyframes showup {
    0% {opacity:0;}
    20% {opacity:1;}
    80% {opacity:1;}
    100% {opacity:0;}
}

@keyframes slidein {
    0% { margin-left:-800px; }
    20% { margin-left:-800px; }
    35% { margin-left:0px; }
    100% { margin-left:0px; }
}

@keyframes reveal {
    0% {opacity:0;width:0px;}
    20% {opacity:1;width:0px;}
    30% {width:480px;}
    80% {opacity:1;}
    100% {opacity:0;width:480px;}
}



/*card list for more career info*/
:root {
	--card-height: 40vw;
	--card-margin: 5vw;
	--card-top-offset: 1em;
	--numcards: 4;
	--outline-width: 0px;
}

#cards {
	padding-bottom: calc(var(--numcards) * var(--card-top-offset)); /* Making place at bottom, as items will slide to that position*/
	margin-bottom: var(--card-margin); 
	margin-right:60px;
	margin-left:20px;
}

#card_1 {
	--index: 1;
}

#card_2 {
	--index: 2;
}

#card_3 {
	--index: 3;
}

#card_4 {
	--index: 4;
}

.card {
	position: sticky;
	top: 0;
	padding-top: calc(var(--index) * var(--card-top-offset));
}

@supports (animation-timeline: works) {

	@scroll-timeline cards-element-scrolls-in-body {
		source: selector(body);
		scroll-offsets:
			
			selector(#cards) start 1,
			
			selector(#cards) start 0
		;
		start: selector(#cards) start 1; 
		end: selector(#cards) start 0; 
		time-range: 4s;
	}

	.card {
		--index0: calc(var(--index) - 1);
		--reverse-index: calc(var(--numcards) - var(--index0)); 
		--reverse-index0: calc(var(--reverse-index) - 1); 
	}
	
	.card__content {
		transform-origin: 50% 0%;
		will-change: transform;

		--duration: calc(var(--reverse-index0) * 1s);
		--delay: calc(var(--index0) * 1s);

		animation: var(--duration) linear scale var(--delay) forwards;
		animation-timeline: cards-element-scrolls-in-body;
	}

	@keyframes scale {
		to {
			transform:
				scale(calc(
					1.1
					-
					calc(0.1 * var(--reverse-index))
				));
		}
	}
}




#cards {
	list-style: none;
	outline: calc(var(--outline-width) * 10) solid blue;
	
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: repeat(var(--numcards), var(--card-height));
	gap: var(--card-margin);
}

.card {
	outline: var(--outline-width) solid hotpink;
}

.card__content {
	box-shadow: 0 0.2em 1em rgba(0, 0, 0, 0.1), 0 1em 2em rgba(0, 0, 0, 0.1);
	background: #b7c9c5;
	color: white;
	border-radius: 1em;
	overflow: hidden;

	display: grid;
	grid-template-areas: "text img";
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto;

	align-items: stretch;
	outline: var(--outline-width) solid lime;
}

.card__content > div {
	grid-area: text;
	width: 80%;
	place-self: center;
	text-align: left;

	display: grid;
	gap: 1em;
	place-items: start;
}

.card__content > figure {
	grid-area: img;
	overflow: hidden;
}

.card__content > figure > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


.career-info h2 {
	font-weight: 300;
	font-size: 2.5em;
	font-family:"bitter",serif;
}

.career-info p {
	font-family: sans-serif;
	font-weight: 300;
	line-height: 1.42;
}


/*css for zebra table*/
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border: 1px solid #15473b;
  margin-bottom:20px;
}

th, td {
  text-align: left;
  padding: 16px;
  font-family:"nunito sans", sans-serif;
  font-size:14px;
}

tr:nth-child(even) {
  background-color: #c19a7a;
}