/* for certain animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmy {
  from {left: -300px;}
  to {left: 0px;}
}

/* Taskbar and dropdown Menu Styles BACKUP - most of this is handled via media queries! */
.taskbar {
  background-color: #5e5e5e;
  overflow: hidden;
  width: 100%;
  border-color: rgb(0, 0, 0);
  box-shadow: 6px 6px 10px rgba(255, 0, 0, 0.3);
  opacity: 95%;
  z-index: 10000;
}

.taskbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center; 
}

.taskbar li {
  margin: 0 15px; 
}

.taskbar li a, .dropbtn {
  display: grid;
  color: rgb(255, 241, 241);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 10px;
  padding: 10px 10;
}

.taskbar li a:hover {
  color: rgb(51, 255, 0);
}

.taskbar .dropdown {
  display: inline-block;
  padding: 10px 10;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #3a3a3a;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 100;
  border-radius: 10px;
  padding: 10px 10;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  border-radius: 30px;
  padding: 10px 10;
}

.dropdown-content a:hover {
  background-color: #814949;
  transform: translateY(-1px);
}

.dropdown:hover .dropdown-content {
  display: block;
  transform: translateY(-1px);
}

/* main styles */
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', sans-serif;
  line-height: 1.5;
  background: rgb(36,0,0);
  background: linear-gradient(90deg, rgba(36,0,0,1) 0%, rgba(121,9,9,1) 35%, rgba(36,0,0,1) 100%);
}

header {
  background-color: #333;
  color: #fff;
  text-align: left;
  opacity: 90%;
}

header h1 {
  background-color: #783636;
  color: #fff;
  text-align: center;
  font: Arial;
  border-color: rgb(0, 0, 0);
  border-top: 2px solid #420101;
  box-shadow: 6px 6px 10px rgba(41, 0, 0, 0.3);
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  z-index: 100;
  opacity: 90%;
  }

footer p {
  background-color: #000000;

}

/* main styles, books */
.container {
  -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on other devices */
  gap: 40px;
  padding: 30px;
  z-index: 700;
  justify-content: flex-start; /* Align sections to the start */
  background-image: url('images/background.jpg'); /* Replace 'background-image.jpg' with your image file */
  background-size: cover; /* Adjust to cover the entire background */
  background-repeat: no-repeat; /* Prevent background image from repeating */
  background-position: center; /* Center the background image */
}

.textbox {
  flex: 0 0 auto;
  width: 800px; 
  max-width: 500px; 
  margin: 0 auto; /* Center-align the sections */
  padding: 30px; 
  border-radius: 30px;
  text-align: left;
  overflow-wrap: break-word; /* Allow words and sentences to break if they exceed the section's width */
  word-wrap: break-word; /* Fallback for older browsers */
  transition: transform 0.5s ease;
  animation: fadeIn 1s ease-in-out;
  z-index: 700;
  overflow: hidden;
} 

.textbox img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.textbox:hover {
  transform: scale(1.05);
  transform: translateY(-10px);
}

/* book */

.book {
	--book-height: 95vh;
  position: center;
	--book-ratio: 1.0;
}

.book > div {
	height: var(--book-height);
	width: calc(var(--book-height) / var(--book-ratio));
	overflow: auto;
	background-color: #0a0a0a;
  background-image: url('images/book.jpg'); /* Image source (its free)https://lostandtaken.com/downloads/black-bumpy-old-book-cover-texture/ */
  background-size: cover; /* Adjust to cover the entire background */
  background-repeat: no-repeat; /* Prevent background image from repeating */
  background-position: center; /* Center the background image */
	transform: scale(0.9);
	border-radius: 10px;
	transform-origin: left;
  box-shadow: 6px 6px 10px rgba(27, 24, 24, 0.3);
  width: 100vw;
  max-width: 600px
}

.book-cover {
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	z-index: 9;
	text-align: center;
	background-size: 2em 2em;
	background-color: #232323;
	color: white;
	transition: transform 2s;
  scale: 1.003;
}

.book-cover::before {
	content: "";
	position: absolute;
	width: 20px;
	right: 20px;
	top: 0;
	bottom: 0;
	background-color: rgba(95, 15, 15, 0.4);
}

.separator {
	--separator-size: 8px;
	width: var(--separator-size);
	height: var(--separator-size);
	background-color: #db5d5d;
	margin: 50px auto 60px auto;
	border-radius: 50%;
	position: relative;
}

.separator::after,
.separator::before {
	content: "";
	position: absolute;
	width: 12px;
	background-color: white;
	height: 2px;
	top: calc(50% - 1px);
}

.separator::after {
	left: 15px;
}

.separator::before {
	right: 15px;
}

.book-content {
	transform: scale(0.9) translateY(30px);
	background-color: white !important;
	transition: all 0.3s 1s;
}

.book-content h3,
.book-content p {
	opacity: 0;
  line-height: 1.5;
	transition: all 0.3s 0.3s;
}

.book-cover > div {
	transition: opacity 0s 0.6s;
}

.book:hover > .book-cover {
	transform: rotateY(180deg) scale(0.9);
}

.book:hover > .book-cover > div {
	opacity: 0;
}

.book:hover > .book-content {
	transform: scale(0.9) translateY(0px);
}

.book:hover > .book-content h3,
.book:hover > .book-content p {
	opacity: 1;
}

.containerbook {
  -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on other devices */
  padding: 45px;
  justify-content: flex-start; /* Align sections to the start */
  background-color:rgb(255, 241, 241);
  background-image: url('images/paper4.jpg'); /* image source https://www.pexels.com/photo/wrinkly-white-paper-10526919/ */
  background-size: contain; /* Adjust to cover the entire background */
  background-position: center; /* Center the background image */
	transition: all 0.3s 0.3s;
}

/* books and containers */

.grid-container {
  display: grid;
  grid-template-columns: 40% 40%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  background-image: url('images/wood.jpg'); /* image source https://www.pexels.com/photo/wooden-surface-3923435/ */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.grid-item {
  border-radius: 50px;
}

.book-gallery img{
  width: 50vw;
  max-width: 400px;
  height: auto;
  margin: 10px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.book-gallery img:hover {
  transform: scale(1.05);
}

.textbox2 {
  flex: 0 0 auto;
  width: auto; 
  max-width: 375px; 
  height: 65vh;
  margin: 0 auto; /* Center-align the sections */
  background-color: rgba(236, 236, 236, 0.8); 
  padding: 30px; 
  border-radius: 15px;
  box-shadow: 6px 6px 10px rgba(255, 0, 0, 0.3);
  scroll-snap-align: start;
  text-align: left;
  overflow: auto; /* Enable scrolling if content exceeds the section's dimensions */
  overflow-wrap: break-word; /* Allow words and sentences to break if they exceed the section's width */
  word-wrap: break-word; /* Fallback for older browsers */
  transition: transform 0.5s ease;
  animation: fadeIn 1s ease-in-out;
  border-color: rgb(0, 0, 0);
  border-radius: 15px;
  border-top: 2px solid #420101;
  box-shadow: 6px 6px 10px rgba(255, 0, 0, 0.3);
  border-style: groove;
  line-height: 1.5;
} 

.textbox3 {
  flex: 0 0 auto;
  width: auto; 
  max-width: 275px; 
  height: 65vh;
  margin: 0 auto; /* Center-align the sections */
  background-color: rgba(236, 236, 236, 0.8); 
  padding: 30px; 
  border-radius: 15px;
  box-shadow: 6px 6px 10px rgba(255, 0, 0, 0.3);
  scroll-snap-align: start;
  text-align: left;
  overflow: auto; /* Enable scrolling if content exceeds the section's dimensions */
  overflow-wrap: break-word; /* Allow words and sentences to break if they exceed the section's width */
  word-wrap: break-word; /* Fallback for older browsers */
  transition: transform 0.5s ease;
  animation: fadeIn 1s ease-in-out;
  border-color: rgb(0, 0, 0);
  border-radius: 15px;
  border-top: 2px solid #420101;
  box-shadow: 6px 6px 10px rgba(255, 0, 0, 0.3);
  border-style: groove;
  line-height: 1.5;
} 

.container2 {
  flex: 1; /* Take up remaining space */
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on other devices */
  gap: 40px;
  padding: 30px;
  justify-content: flex-start; /* Align sections to the start */
  background-image: url('images/backgroundsleepingdemon.gif'); /* Replace 'background-image.jpg' with your image file */
  background-size: cover; /* Adjust to cover the entire background */
  background-repeat: no-repeat; /* Prevent background image from repeating */
  background-position: center; /* Center the background image */
}

/* about me */

.textbox2 img {
  max-width: 200px;
  width: 30vw;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.textbox2:hover {
  transform: scale(1.05);
  transform: translateY(-10px);
  cursor: pointer;
}

.textbox3 img {
  max-width: 200px;
  width: 30vw;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.textbox3:hover {
  transform: scale(1.05);
  transform: translateY(-10px);
  cursor: pointer;
}

/* Rounded border */
hr.rounded {
  border-color: rgb(0, 0, 0);
  border-radius: 5px;
  border-top: 2px solid #420101;

}

.pfp-gallery {
  transition: transform 0.5s ease;
  animation: fadeIn 1s ease-in-out;
  animation: shimmy 1s ease-in-out;
  position: relative;
}

.pfp-gallery img{
  max-width: 370px;
  max-height: 75vh;
  border-radius: 10px;
  margin-bottom: 15px;
  border-color: rgb(0, 0, 0);
  border-radius: 15px;
  border-top: 2px solid #420101;
  box-shadow: 6px 6px 10px rgba(255, 0, 0, 0.3);
  border-style: groove;
  transition: transform 0.5s ease;
}

/* media queries */

@media only screen and (max-width: 600px) {
  .pfp-gallery img {
    max-height: 75vh;
  }
  .home-container img {
    height: 40vh;
    width: auto;
    display: block;
    margin: auto;
  }
  .taskbar1 {
    display: none;
  }
  .taskbar2 {
    background-color: #5e5e5e;
    overflow: hidden;
    width: 100%;
    border-color: rgb(0, 0, 0);
    box-shadow: 6px 6px 10px rgba(255, 0, 0, 0.3);
    opacity: 95%;
    z-index: 10000;
  }
  
  .taskbar2 ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; 
  }
  
  .taskbar2 li {
    margin: 0 15px; 
  }
  
  .taskbar2 li a, .dropbtn2 {
    display: grid;
    color: rgb(255, 241, 241);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 10px;
    padding: 10px 10;
  }
  
  .taskbar2 li a:hover {
    color: rgb(51, 255, 0);
  }
  
  .taskbar2 .dropdown2 {
    display: inline-block;
    padding: 10px 10;
  }
  
  .dropdown-content2 {
    display: none;
    position: absolute;
    background-color: #3a3a3a;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 10px;
    padding: 10px 10;
  }
  
  .dropdown-content2 a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-radius: 30px;
    padding: 10px 10;
  }
  
  .dropdown-content2 a:hover {
    background-color: #814949;
    transform: translateY(-1px);
  }
  
  .dropdown2:hover .dropdown-content2 {
    display: block;
    transform: translateY(-1px);
  }
}

@media only screen and (min-width: 600px) {
  .pfp-gallery img {
    max-height: 75vh;
  }
  .home-container img {
    height: 60vh;
    width: auto;
    display: block;
    margin: auto;
  }
  .taskbar2 {
    display: none;
  }
  .taskbar1 {
    background-color: #5e5e5e;
    overflow: hidden;
    width: 100%;
    border-color: rgb(0, 0, 0);
    box-shadow: 6px 6px 10px rgba(255, 0, 0, 0.3);
    opacity: 95%;
    z-index: 10000;
  }
  
  .taskbar1 ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; 
  }
  
  .taskbar1 li {
    margin: 0 15px; 
  }
  
  .taskbar1 li a, .dropbtn1 {
    display: grid;
    color: rgb(255, 241, 241);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 10px;
    padding: 10px 10;
  }
  
  .taskbar1 li a:hover {
    color: rgb(51, 255, 0);
  }
  
  .taskbar1 .dropdown1 {
    display: inline-block;
    padding: 10px 10;
  }
  
  .dropdown-content1 {
    display: none;
    position: absolute;
    background-color: #3a3a3a;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 10px;
    padding: 10px 10;
  }
  
  .dropdown-content1 a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-radius: 30px;
    padding: 10px 10;
  }
  
  .dropdown-content1 a:hover {
    background-color: #814949;
    transform: translateY(-1px);
  }
  
  .dropdown1:hover .dropdown-content1 {
    display: block;
    transform: translateY(-1px);
  }
}

.pfp-gallery img:hover {
  transform: scale(1.005);
  filter: grayscale(); 
}

/* Projects */
.projects-list a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.projects-list a:hover {
  color: #004999;
  text-decoration: underline;
}


/* Projects Container Styles */
.projects-container {
  position: relative;
  top: 50;
  left: 50;
  max-width: 70vw;
  margin: 0 auto;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.7); 
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1s ease-in-out;
  overflow: auto; /* Enable scrolling if content exceeds the section's dimensions */
  overflow-wrap: break-word; /* Allow words and sentences to break if they exceed the section's width */
  word-wrap: break-word; /* Fallback for older browsers */ 
  border-color: rgb(0, 0, 0);
  border-top: 2px solid #420101;
  box-shadow: 6px 6px 10px rgba(255, 0, 0, 0.3);
  border-style: groove;
}

.project {
  margin-bottom: 40px;
}

/* Project Gallery Styles */
.project-gallery {
  display: flex; 
  justify-content: space-between;
  margin: 20px;
  flex: 0 0 auto;
  width: 90%; 
  max-width:100vw; 
  max-height: auto;
  background-color: rgba(71, 46, 46, 0.25); 
  padding: 5px; 
  border-radius: 15px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
  scroll-snap-align: start;
  text-align: flex;
  overflow: auto; /* Enable scrolling if content exceeds the section's dimensions */
  overflow-wrap: break-word; /* Allow words and sentences to break if they exceed the section's width */
  word-wrap: break-word; /* Fallback for older browsers */
  transition: transform 0.5s ease;
  animation: fadeIn 1s ease-in-out;
}

.project-gallery img {
  width: auto; /* Adjust as needed */
  height: 35vh;
  border-radius: 10px;
  margin: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-gallery img:hover {
  transform: scale(1.05);
}

.container3 {
  gap: 40px;
  background-image: url('images/b3.png'); /* Replace 'background-image.jpg' with your image file */
  background-size: cover; /* Adjust to cover the entire background */
  background-repeat: no-repeat; /* Prevent background image from repeating */
  background-position: center; /* Center the background image */
}

.container4 {
  gap: 40px;
  background-image: url('images/bg2.png'); /* Replace 'background-image.jpg' with your image file */
  background-size: cover; /* Adjust to cover the entire background */
  background-repeat: no-repeat; /* Prevent background image from repeating */
  background-position: center; /* Center the background image */
}

/* Image Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* gallerymisc text shows up on hover over */
@media only screen and (min-width: 600px) {
  .textcontainer {
    background-image: url('images/b3.png'); /* Replace 'background-image.jpg' with your image file */
    background-size: cover; /* Adjust to cover the entire background */
    background-repeat: no-repeat; /* Prevent background image from repeating */
    background-position: center; /* Center the background image */
    box-shadow: 6px 6px 10px rgba(228, 0, 0, 0.3);
    width: auto;
    height: auto;
  }

  .textcontainer h1 {
    font-size: 30px;
    text-align: center;
    color: #ffffff;
  }
  .textcontainer .content {
    width: 100vw;
    max-width: 1600px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px;
    margin: 0 auto;
  }
  .textcontainer .content .item {
    position: relative;
  }

  .textcontainer .content .item img {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 500px;
  }

  .textcontainer .content .item .text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    opacity: 0;
    overflow: auto;
  }

  .textcontainer .content .item .text:hover {
    opacity: 1;
    cursor: pointer;
    animation: fadeIn 0.3s ease-in-out;
    cursor: crosshair;
  }
}

@media only screen and (max-width: 600px) {
  .textcontainer {
    background-image: url('images/b3.png'); /* Replace 'background-image.jpg' with your image file */
    background-size: cover; /* Adjust to cover the entire background */
    background-repeat: no-repeat; /* Prevent background image from repeating */
    background-position: center; /* Center the background image */
    box-shadow: 6px 6px 10px rgba(228, 0, 0, 0.3);
    width: auto;
    height: auto;
  }

  .textcontainer h1 {
    font-size: 30px;
    text-align: center;
    color: #ffffff;
  }
  .textcontainer .content {
    width: 95vw;
    max-width: 1600px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 10px;
    margin: 0 auto;
  }
  .textcontainer .content .item {
    position: relative;
  }

  .textcontainer .content .item img {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    max-height: 500px;
  }

  .textcontainer .content .item .text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    opacity: 0;
    overflow: auto;
  }

  .textcontainer .content .item .text:hover {
    opacity: 1;
    cursor: pointer;
    animation: fadeIn 0.3s ease-in-out;
    cursor: crosshair;
  }
}


#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #333;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #555;
  transform: scale(1.1);
}

/*homepage*/

.containerhp {
  gap: 40px;
  background-image: url('images/backgroundgif1.gif'); /* Replace 'background-image.jpg' with your image file */
  background-size: cover; /* Adjust to cover the entire background */
  background-repeat: no-repeat; /* Prevent background image from repeating */
  background-position: center; /* Center the background image */
}

.home-container {
  height: 100vh;
  padding-top: 200px;

  animation: fadeIn 1s ease-in-out;
}


/* headers and paragraph styling UNDER CONSTRUCTION! */
h1 { /* header */
  font-family: Georgia, serif;
  font-size: 35px;
}

h2 { /* container header */
  font-family: Garamond, serif;
  font-size: 30px;
}

h3 { /* sub headers */
  font-family: Verdana, sans-serif;
  font-size: 20px;
}

h4 { /* smaller sub headers */
  font-family: Verdana, sans-serif;
  font-size: 20px;
}

h5 {
  font-family: 'Times New Roman', sans-serif;
  font-size: 24px;
}

p6 {
	padding: 0px 30px 10px 30px;
	font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

/* unvisited link */
a:link {
  color: rgb(158, 13, 13);
  text-decoration: none;
}

/* visited link */
a:visited {
  color: rgb(175, 27, 22);

}

/* mouse over link */
a:hover {
  color: rgb(0, 255, 42);
  text-decoration: overline;
}

/* selected link */
a:active {
  color: rgb(1, 177, 15);
  text-decoration: underline;
}