@charset "utf-8";

/*
  Homepage
      Author: Ana Botto
      Date: 11/14/2023

      Filename:   ab_styles_homepage.css
*/


/* HTML and Body styles */

html {
   font-family: 'BC Alphapipe RB';
   background-image: linear-gradient(white,rgb(235,217,199));
	width: 100%;
	margin: 0;
  }

body {
      display: flex;
	  display: -webkit-flex;
      flex-direction: column;
	  -webkit-flex-direction: column;
      align-items: center;
      width: 100%;
	  line-height: 1.2em;
	overflow-x:hidden;
		margin: 0;
     }

/* section styles */
.container {
  position: relative;
}

.text-section {
	float: left;
	width: 45%;
	margin-left:8%;
	margin-top: 5%;
	margin-bottom: 1%;
}

.text-section p {
	float: left;
	font-family: "BC-alphapipe",sans-serif;
	font-size: 2.2vw;
	line-height: 1.2;
	font-weight: 300;
	letter-spacing: 1.2px;
}

.image-section {
  float: right;
  width: 47%;
}

.image-section img {
	max-width: 100%;
	width:85%;
	height: auto;
	float: right;
	margin-top: 5%;
	margin-right: 5%;
	transform: scale(.8);
	border-radius:5px;
}


.thumbnail_container {
		 position: relative;
            display: flex;
            flex-direction: row;
            align-items: center; /* Center thumbnails vertically */
            max-width: 40%; /* Adjust the maximum width as needed */
            padding: 30px; /* Add padding to the container */
	 		background-color: rgb(149,156,124);
	border-radius: 10px;
	width: 40%;
	margin-left: 8%;
	grid-gap: 15px;
}
.thumbnail-text {
             position: absolute;
            top: -5px;
            left: 0;
            text-align: left;
            font-size: 2vw;
            font-weight: bold;
	padding: 30px 20px 20px 20px;
        }




/* recent works styles */



.thumbnail {
    position: relative;
    width: 35%; /* Adjust the width of each thumbnail */
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 40px 0px 0px 0px; /* Adjust the margin between thumbnails as needed */
    overflow: hidden; /* Hide any overflowing parts of the image */
    transition: transform 0.2s ease-in-out; /* Add a smooth transition effect */
    padding: 0;
}

        .thumbnail:hover {
            transform: scale(1.05); /* Scale the thumbnail on hover */
        }

          .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image completely fills the thumbnail */
    z-index: 50;
    padding: 0;
    margin: 0;
    display: block; /* Ensure the image is treated as a block-level element */
}
.thumbnail-label {
           position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: black;
	background-color: rgba(255,255,255,.7);
            font-size: 1.5vw;
	line-height: 1;
            font-weight: bold;
	z-index: 52;
        }

/* carousel styles */
.carousel-container {
  position: relative;
  width: 80%;
	height: 150px;
  margin: 0 auto;
  overflow: hidden;
	border-radius: 10px;
	grid-gap: 20px;
}

/* Carousel itself */
.carousel {
  display: flex;
	grid-gap: 10px;
	justify-content: center;
		align-items: flex-start;

}

.carousel-item {
flex: 0 0 30%; /* Each item takes up one-third of the container */
  max-width: 20%; /* Ensure 3 items fit within the visible area */  
  cursor: pointer;
	  margin: 0 auto; /* Center images horizontally */
	
}

.carousel-item img {
  width: 100%; /* Scale images to fit within their container */
  height: auto; /* Maintain aspect ratio */
  object-fit: contain; /* Ensure the image is fully visible within its container */
  padding: 5px; /* Add padding around images */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for better aesthetics */
  border-radius: 8px; /* Round image corners */
  background-color: #fff; /* Optional: Add a background for better contrast */
}
/* Navigation buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 30px;
  padding: 10px;
  cursor: pointer;
  z-index: 100;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

 .overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.overlay img {
  max-width: 80%;
  max-height: 80%;
  display: block;
  position: relative; /* Add this line to make the position relative */
}
.overlay.active {
  display: flex;
}
/* Header styles */





/* MEDIA QUERIES */

 /* Media Query for Mobile */
@media only screen and (max-width: 600px) {
	body {
		min-height: 100vh;
		margin:0;
			padding:0;
	}
.carousel-container {
		display: none;
	}
	.carousel {
		display: none;
	}
	.container {
		flex: 1;
		display: flex;
		flex-direction: column;
	}
	
	.thumbnail_container {
		 position: relative;
            display: flex;
            flex-direction: column;
            align-items: center; /* Center thumbnails vertically */
            max-width: 800px; /* Adjust the maximum width as needed */
            padding: 30px; /* Add padding to the container */
	 		background-color: rgb(149,156,124);
	border-radius: 10px;
	margin-left: 12%;
	width: 100%;
      height: 100%;
      object-fit: cover; /* Ensure the image covers the entire thumbnail */
      z-index: 50;
}

    .thumbnail img {
      width: 100%;
      height: 100%;
      object-fit: cover; /* Ensure the image covers the entire thumbnail */
      z-index: 50;
    }
	  .thumbnail_container {
        width: 30%; /* Adjust the width for mobile */
		  margin-left: 8%;
		  margin-top: -62%;
		  padding: 20px 10px 20px 10px;
      } 
	.thumbnail {
      position: relative;
      width: 120px; /* Adjust the width of each thumbnail */
      height: 80px; /* Adjust the height of each thumbnail */
      overflow: hidden;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      margin: 15px 0px 0px 0px; /* Adjust the margin between thumbnails as needed */
      transition: transform 0.3s ease-in-out; /* Add a smooth transition effect */
    }
.thumbnail-text {
             position: absolute;
            top: -15px;
            left: 0;
            text-align: left;
            font-size: 2vw;
            font-weight: bold;
	padding: 30px 20px 20px 20px;
        }
	.thumbnail-label {
		font-size: 14px;
	}

    .image-section {
        width: 54%;
		margin-top:0%;
		margin-left: 50%;
		float: right;
    }
   


	.image-section img {
	max-width: 100%;
	width:95%;
	height: auto;
	margin-top: 10%;
	transform: scale(1);
}
	.text-section {
		margin-bottom: 2%;
		margin-top: 10%;
		width: 90%;
		float: right;
		margin-right: 2%;
		margin-left: 15%;
	}

			/* top nav - show navicon image in mobile view */
			a#navicon {
      			display: block;
   			}
   			/* top nav - hide main nav bar in mobile view */
		   nav.top_nav ul {
			  display: none;
		   }
   
   		/* top nav - display nav bar when hovering or tapping only mobile view */

		   a#navicon:hover+ul, nav.top_nav ul:hover {
			  display: block;
			  position:absolute;
			  right:7px;
		   }
	
		/* top nav - upon hover submenu opens to the left over other content */
			
			.submenu {
				position: relative;
    			left: -100%;
			}
			
			.submenu li {
				white-space: nowrap;
			}
	
	.submenu li a {
		font-size: 1em;
	}

			.mainmenu {
				background-color: rgb(235,217,199);
				border-radius: 10px;
				font-size: 1em;
				padding: 5px 5px 5px 5px;
			}
	
	.mainmenu li a {
		font-size: 1em;
		line-height: 2;
	}
			
			/* header */
			header > img {
				width:48%;
	}
	
	
	
	.top_nav {
		z-index: 100;
	}
	.submenu {
		z-index: 99;
	}
	
	.footertext {margin-left: 6%;}
	#resume {
	color: rgb(198,104,101); 
	font-family: "bc-alphapipe",sans-serif;
	font-weight: 300;
	padding: 0 0 0 35px;
	text-align: center;
	display: block;
	text-indent:-40px;
}
	#resume h8 {
		font-size: 3vw;
	}
	
	.bottomnav {
		margin: 0px 0px 0px 35px;
	}
}

  /* Media Query for Wider Screens */
@media only screen and (min-width: 601px) {
            
			/* form */
			form {
                width: 600px;
            }
			/* top nav */
			#navicon {
      			display: none;
   }
}