@charset "UTF-8";

/*Credits to  https://fonts.google.com/specimen/Playfair+Display for font*/
body {
    background-color: #7892a3;  /*#828E82*/
    font-family: "Playfair Display", serif;
    margin: 0;
    animation: grow 1s;
}

/*Transition code from https://www.sliderrevolution.com/design/slider-animation/ and W3 Schools*/
@keyframes grow {
    0% { transform: scale(.2); }
  100% { transform: scale(1); }
}

/*Code generated by creator of website*/
h1, h2, p {
    text-align: center;
    color: #EDEAE4;
    letter-spacing: 4px; 
}

main h1, h2 {
	background-color: #4C6085;
	text-align: center;
}

main img {
	display: block;
	margin: 0 auto;
	width: 40%;
	height: 40%;
}

main p {
	font-size: 30px;
}

main a {
	text-decoration: none;
}

.portfolio-link {
	text-decoration: none;
	color: white;
}

.about-me-img {
	width: 100%;
	height: 100%;
	border-radius: 5px;
}

.coming-soon-h4 {
	text-align: center;
}

.sci-fair-exp {
	text-align: center;
	background-color: #4C6085;
	max-height: 400px;
	overflow: auto;
	border-radius: 10px;
}

.project-title {
	font-size: 30px;
	border-radius: 10px;
}

.msef-25 {
	font-size: 45px;
}

.app {
	height: 500px;
	width: auto;
}

/*Code from computer science class*/
.common-border {
	border-style: solid;
	border-color: #03045E;
	border-radius: 10px;
	border-width: 3px;
}

.clearfix {
	overflow: auto;
}


/*Code from https://www.w3schools.com/howto/howto_css_images_side_by_side.asp*/
.three-images-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.side-image {
    width: 50%;
    height: auto;
    max-width: 400px;
    min-width: 100px;
}

/*Image Slide in Overlay Code. Thanks to W3Schools for code (https://www.w3schools.com/howto/howto_css_overlay.asp)*/
.container-img {
	text-align: center;
	position: relative;
	display: inline-block;
}

.image {
	display: block;
	width: 50%;
  	height: auto;
  	text-align: center;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #3A606E;
  overflow: hidden;
  width: 0;
  height: 100%;
  transition: 1s ease;
  border-radius: 5px;
}

.container-img:hover .overlay {
  width: 100%;
}

.text {
  white-space: nowrap;
  color: white;
  font-size: 40px;
  position: absolute;
  overflow: hidden;
  color: white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*Flip card container plus code. Thanks to https://www.youtube.com/watch?v=Lc6wyl1KdOc for code and implementation*/
.flip-card-container {
    width: 650px;
    height: 400px;
    margin: 0 auto;
   	perspective: 700px;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1.5s;
    transform-style: preserve-3d;
}

.flip-card-container:hover .flip-card {
    transform: rotateY(180deg); 
}

.flip-card-front {
	background-color: #4C6085;
}

.flip-card-front, .flip-card-back {
    position: absolute; 
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
}

.flip-card-back {
    background-color: #3A606E;
    color: #fff;
    transform: rotateY(180deg); 
}

.card-h3, .card-p {
	text-align: center;
}

.card-p {
	font-size: 27px;
}

.card-p-scifair {
	font-size: 25px;
}

.card-h3 {
	font-size: 30px;
}

.front-card-h1 {
	text-align: center; 
	font-size: 130px;
}
/* Navbar CSS. Thanks to W3Schools for code (https://www.w3schools.com/css/css_navbar.asp)*/

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    background-color: #4C6085;
    top: 0;
    width: 100%;
    display: flex;
}

ul li {
	display: inline-block;
	position: relative;
	float: left;
}

li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

li a:hover {
    background-color: #9bc8ec;
    transition: 0.8s ease;
}

/*Dropdown for MAMS. Thanks to W3Schools for code*/
.dropdown {
	position: relative;
	
}

.dropdown-content {
	display: none;
	position: absolute;
	background-color: #6D8A96;
	min-width: 200px;
	box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.dropdown-content a {
	color: white;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	text-align: left;
}

.dropdown-content a:hover {
	background-color: #3A606E;
	transition: ease-in 0.3s;
	transform: translateX(10px);
}

.dropdown:hover .dropdown-content {
	display: block;
}

/* Container for typewriter effect. Credits to tameemsafi for JS and 
GreatStack on YT for guidance on implementation */
.container {
    width: 100%;
    height: 50vh;
    background: #3A606E;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 95px;
}

.container h1 {
    font-size: 80px;
    font-weight: 600;
}

/*Carousel CSS. Credits to https://www.w3schools.com/howto/howto_js_slideshow.asp for code */
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 600px;
}

.carousel-slide {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,1));
    color: white;
    padding: 100px 20px 20px;
    text-align: center;
}

.carousel-slide:hover .carousel-caption p {
	opacity: 1;
	transform: translateY(0);
	max-height: 100px;
	margin-top: 15px;
}

.carousel-caption h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.carousel-caption p {
    margin: 0;
    font-size: 16px;
    opacity: 0;
    transition: all 0.5s ease; 
    max-height: 0;
    
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 20px 20px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    border-radius: 20px;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    padding: 20px;
    background: #3A606E;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.dot.active, .dot:hover {
    background-color: #717171;
}

/*Adaptation for mobile devices*/
@media (max-width: 768px) {
    .carousel-container {
        margin: 20px 10px;
    }
    
    .carousel {
        height: 250px;
    }
    
    .carousel-caption h3 {
        font-size: 18px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        transition: all 0.3s ease;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
}