html {
	scroll-behavior: smooth;
}

body {
	background-color: #111111;
	color: white;
	/*#0D0E0E #181A1B #111111*/
}

section[id] {
	scroll-margin-top: 70px;
}

/***** Navbar *****/

.navbar-nav {
	margin-left: 60px;
}

.navbar.scrolled {
	background-color: #000 !important;
	transition: background-color 200ms linear;
}

.navbar-dark .navbar-nav {
	font-size: 15px;
}

.navbar-dark .navbar-nav .nav-link {
	color: #fff;
	color: rgba(255, 255, 255, 0.8);
}

.navbar-dark .navbar-nav .nav-link:hover {
	color: #fff;
}

.navbar-dark .navbar-nav .nav-link:focus {
	color: #fff;
	outline: 0;
}

.navbar-expand-md .navbar-nav .nav-link {
	padding-left: 1rem;
	padding-right: 1rem;
}

.navbar-text {
	margin-right: 120px;
}

.navbar-dark .navbar-text a {
	margin: 0 8px;
	font-size: 26px;
	color: #fff;
	color: rgba(255, 255, 255, 0.8);
}

.navbar-dark .navbar-text a:hover,
.navbar-dark .navbar-text a:focus {
	color: #fff;
}

/***** Game *****/

#canvas {
    max-width: 100%;
    height: auto;
}

#instructions {
	margin-top: 50px;
	color: white;
	text-align: center;
}

.ins {
	vertical-align: middle;
	display: inline-block;
}

#score {
	vertical-align: middle;
	display: inline-block;
}

#game-over {
	height: auto;
	max-height: 90vh;
	text-align: center;
	color: white;
	margin: auto;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 400px;
	z-index: 1;
	display: none;
    background-color: #222222;
    border: 1px solid #444444;
	border-radius: 12px;
	padding: 30px 20px;
	overflow-y: auto;
}

#game-over h1 {
	font-size: 3em;
	font-family: sans-serif;
}

#game-over button {
	font-size: 1.5em;
}

#game-over a {
	vertical-align: middle;
	display: inline-block;
	text-align: center;
	width: 80px;
	height: 40px;
	font-size: 14px;
	color: #fff;
	line-height: 40px;
	text-decoration: none;
	border-radius: 8px;
	margin: 5px;
}

#game-over a:hover,
#game-over a:focus {
	color: #fff;
	filter: brightness(1.1);
}

#shareX {
	background-color: #000000;
}

#shareX:hover,
#shareX:focus {
	background-color: #323232;
	filter: none;
}

#shareW {
    background-color: #1a9e4e;
}

#shareT {
    background-color: #0066aa;
}

#play-again {
	vertical-align: middle;
	display: inline-block;
    background-color: #e0e0e0;
    color: #111111;
    border: none;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
}

#play-again:hover {
    background-color: #ffffff;
    color: #111111;
}

#touch-controls {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 10;
    pointer-events: none;
}

#touch-movement {
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: all;
}

#touch-controls button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background-color: rgba(255,255,255,0.15);
    color: white;
    font-size: 24px;
    cursor: pointer;
    pointer-events: all;
    user-select: none;
    -webkit-user-select: none;
}

#touch-controls button:active {
    background-color: rgba(255,255,255,0.35);
}

#btn-shoot {
    width: 80px !important;
    height: 80px !important;
    font-size: 32px !important;
    border-color: rgba(255,255,255,0.4) !important;
}

/***** Bio *****/

#bio {
	padding-top: 40px;
	text-align: center;
}

.foto {
	max-width: 80%;
	max-height: 80%;
}

.bio-textRight {
	padding-left: 30px;
	overflow: hidden;
	text-align: left;
	font-size: 120%;
}

.bio-textLeft {
	padding-right: 60px;
	padding-left: 240px;
	overflow: hidden;
	text-align: right;
	font-size: 120%;
}

#bio a {
	color: #fff;
	color: rgba(255, 255, 255, 0.8);
	line-height: 30px;
	text-decoration: none;
}

#bio a:hover,
#bio a:focus {
	color: #fff;
}

/***** Portfolio *****/

#portfolioCarousel .carousel-item video {
	aspect-ratio: 16 / 9;
	width: 100%;
	object-fit: contain;
	background: #000;
}

/***** Carousel *****/

#portfolioCarousel .carousel-inner {
	background: #000;
}

#portfolioCarousel .carousel-indicators {
	position: absolute;
	top: 20px;
	left: 40px;
	bottom: auto;
	margin: 0;
	justify-content: flex-start;
	z-index: 15;
}

#portfolioCarousel .carousel-indicators [data-bs-target] {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.8);
	border: none;
	margin-right: 8px;
	transition: all 0.3s ease;
}

#portfolioCarousel .carousel-indicators .active {
	background-color: #fff;
	transform: scale(1.2);
}

#portfolioCarousel .carousel-control-prev,
#portfolioCarousel .carousel-control-next {
	position: absolute;
	bottom: 40px;
	top: auto;
	width: 44px;
	height: 44px;
	background-color: rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	opacity: 0.8;
	left: 50px;
	justify-content: center;
	align-items: center;
	transition: all 0.3s ease;
	z-index: 10;

}

#portfolioCarousel .carousel-control-next {
	left: 104px;

}

#portfolioCarousel .carousel-control-prev:hover,
#portfolioCarousel .carousel-control-next:hover {
	background-color: rgba(255, 255, 255, 0.3);
	opacity: 1;
}

.portfolio-slide {
	padding: 10px 40px;
}

#portfolioCarousel video {
	aspect-ratio: 16 / 9;
	width: 100%;
	object-fit: contain;
	background: #000;
	display: block;
	border-radius: 8px;
}

.portfolio-caption {
	padding: 15px 20px;
	text-align: center;
	color: #fff;
}

.portfolio-caption h5 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 8px;
}

.portfolio-caption h5 img {
	height: 28px;
	width: auto;
}

#portfolio {
	margin-top: -40px;
	padding-top: 50px;
	text-align: center;
}

#portfolio h2 {
	margin-bottom: 25px;
}

/* IA Classifier */
#ia-box {
	background: #1a1a1a; 
	padding: 15px; 
	border-radius: 12px; 
	box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
	overflow: hidden;
}

/* Etiquetas de tecnologías en el portfolio */
.tech-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 12px;
}

.tech-tags .tag {
	background-color: #0d6efd;
	color: #fff;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
}

/***** Footer *****/

footer {
	padding: 20px 0 0 0;
	text-align: center;
}

.footer-social {
	padding: 20px 0 20px 0;
}

.footer-social a {
	vertical-align: middle;
	display: inline-block;
	text-align: center;
	width: 80px;
	height: 40px;
	font-size: 14px;
	color: #fff;
	color: rgba(255, 255, 255, 0.8);
	line-height: 30px;
	text-decoration: none;
}

.footer-social a:hover,
.footer-social a:focus {
	color: #fff;
}

.footer-social a i {
	vertical-align: middle;
	text-align: center;
	margin-left: 15px;
	margin-right: 15px;
}

.footer-copyright {
	margin-top: 25px;
	padding-top: 25px;
	border-top: 1px ridge #777;
}

.footer-copyright a {
	font-size: 14px;
	color: #fff;
	color: rgba(255, 255, 255, 0.8);
	line-height: 30px;
	text-decoration: none;
}

.footer-copyright a:hover,
.footer-copyright a:focus {
	color: #fff;
}

.footer-bottom {
	margin: 20px 0 0 0;
	padding-top: 15px;
	text-align: center;
	color: #666;
}

.footer-bottom a {
	font-size: 32px;
	color: #fff;
	color: rgba(255, 255, 255, 0.8);
	line-height: 30px;
	background: #000;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
	color: #fff;
	background: #2C2C2C;
}
