﻿:root {
	--accent-switch: 169, 71, 71;
    --accent-linux: 68, 163, 69;
	--accent: 92, 149, 199;
	--text: 225, 225, 225;
	--accenttext: 255, 255, 255;
	--bg: 01, 04, 09;
	--margin: 2em;
}

body {
	font-size: 16px;
	color: rgba(var(--text), 1);
	background-color: rgba(var(--bg), 1);
	text-align: left;
	line-height: 160%;
	word-wrap: break-word;
	letter-spacing: 0.2px;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	opacity: 1;
	-webkit-transition: 2s opacity;
	-moz-transition: 2s opacity;
	-ms-transition: 2s opacity;
	-o-transition: 2s opacity;
	transition: 2s opacity;
}

/*----- SIDEBAR -----*/

#sidebar {
	background: rgba(var(--bg), 1);
	width: 300px;
	text-align: center;
	height: 100%;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	box-shadow: 1px 1px 3px rgba(var(--accent), 0.1);
	overflow-y: auto;
	box-sizing: border-box;
	z-index: 2;
}

#sidebar::-webkit-scrollbar-thumb {
	background: transparent !important;
	transition: 1s ease-in-out;
	-webkit-transition: 1s ease-in-out;
	-moz-transition: 1s ease-in-out;
	-ms-transition: 1s ease-in-out;
	-o-transition: 1s ease-in-out;
	transition: 1s ease-in-out;
}

#sidebar:hover::-webkit-scrollbar-thumb {
	background: rgba(var(--accent), 1) !important;
	transition: 1s ease-in-out;
	-webkit-transition: 1s ease-in-out;
	-moz-transition: 1s ease-in-out;
	-ms-transition: 1s ease-in-out;
	-o-transition: 1s ease-in-out;
	transition: 1s ease-in-out;
}

#side-content {
	background: linear-gradient(
		180deg,
		rgba(var(--accent), 0.075) 90%,
		rgba(var(--bg), 1)
	);
}

#side-content #description {
	margin: calc(var(--margin) / 2);
}

#side-nav {
	margin: var(--margin);
	text-align: left;
}

#side-nav li {
	list-style-type: none;
	margin-bottom: 0.75em;
	display: block;
}

#side-nav li a,
#side-nav li a:hover {
	border-bottom: none;
}

#side-nav a {
	width: 100%;
	display: flex;
	justify-content: space-between;
	text-decoration: none !important;
	font-weight: bold;
	align-items: center;
	border-radius: 2em;
	padding: 0.75em 1em;
	box-sizing: border-box;
	color: rgba(var(--text), 1);
}

#side-nav a:hover {
	background-color: rgba(var(--accent), 1) !important;
	color: rgba(var(--bg), 1) !important;
	text-decoration: none !important;
}

#side-nav a:hover .feather {
	color: rgba(var(--bg), 1) !important;
}

#side-nav a:hover svg path,
#side-nav a:hover i.fas:before,
#side-nav a:hover i.fab:before {
	fill: rgba(var(--bg), 1) !important;
	color: rgba(var(--bg), 1) !important;
}

/*----- POSTS -----*/

#maincontent {
	position: relative;
	margin: 0px auto 0px 300px;
	background-color: rgba(var(--accent), 0.1);
}

#header-nav {
	text-align: right;
}

#header-nav a {
	margin-left: 0.5em;
}

#header-nav a:hover .feather {
	color: rgba(var(--accent), 1) !important;
}

/*---- MOBILE HEADER -----*/

#mobile-header {
	position: relative;
	z-index: 1;
	padding: 1.75em 2em;
	top: 0;
	left: 0;
	right: 0;
	box-sizing: border-box;
	box-shadow: 1px 1px 3px rgb(0 0 0 / 50%);
	background: rgba(var(--accent), 0.1) !important;
}

.menu-button {
	display: inline-block;
	cursor: help;
	vertical-align: middle;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-ms-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}

.menu-button .feather,
.close a .feather {
	color: rgba(var(--text), 1);
	width: 1.5em;
	height: 1.5em;
	background-color: rgba(var(--accent), 1);
	border-radius: 50%;
	padding: 0.75em;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-ms-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}

.menu-button:hover .feather,
.close a:hover .feather {
	background-color: rgba(var(--text), 0.4);
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	-ms-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}

#mobile-header .subtitle {
	display: inline-block;
	font-size: 1.15em;
	margin-left: 1em;
}

#mobile-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.mobile-controls a .feather {
	width: 1.75em;
	height: 1.75em;
	-webkit-transition: all 0s;
	-moz-transition: all 0s;
	-ms-transition: all 0s;
	-o-transition: all 0s;
	transition: all 0s;
}

.mobile-controls a {
	margin-left: 1em;
}

.close {
	margin: calc(var(--margin) / 2);
	position: absolute;
}

#m {
	text-align: center;
	display: none;
	margin-bottom: 50px;
}

/*---- RESPONSIVENESS -----*/

@media only screen and (max-width: 1200px) {
	#mobile-header,
	.close {
		display: block;
	}

	#sidebar {
		left: -300px;
		z-index: 2;
		-webkit-transition: ease-in-out 0.4s;
		-moz-transition: ease-in-out 0.4s;
		-ms-transition: ease-in-out 0.4s;
		-o-transition: ease-in-out 0.4s;
		transition: ease-in-out 0.4s;
	}

	#sidebar.show {
		left: 0;
	}

	#maincontent {
		width: 100%;
		margin: 0px auto 0px auto;
	}

	.info-dropdown {
		margin-left: calc(540px - 200px);
	}
}

@media only screen and (max-width: 800px) {
	article {
		width: 90vw;
	}

	.info-dropdown {
		margin-left: calc(90vw - 250px);
	}

	#k {
		display: none;
	}

	#m {
		display: block;
	}
}

@media only screen and (max-width: 500px) {
	article {
		width: 100vw;
		padding: 30px;
		border-radius: 0;
	}

	#sidebar {
		width: 80vw;
		left: -80vw;
	}

	.info-dropdown {
		margin-left: calc(100vw - 260px);
	}

	#btop {
		display: none;
	}
}

@media only screen and (max-width: 400px) {
	#mobile-header .subtitle {
		display: none;
	}
}

.videocontainer {
	background: rgba(var(--accent), 1) !important;
	width: 100% !important;
	height: 150px;
}

.videocontainer img {
	z-index: -1;
	mix-blend-mode: hard-light;
	width: 100%;
	height: 100%;
	object-fit: fill;
	border-radius: 0 !important;
	margin-bottom: 0 !important;
}

.googlesearchcontainer {
	background: inherit;
	filter: brightness(78%);
	z-index: 1;
}

@media only screen and (max-width: 1200px) {
	.videocontainer {
		margin-left: 0px;
	}
}

#sidebar {
	transition: transform 0.3s ease-in-out, left 0.3s ease-in-out;
}

@media only screen and (max-width: 1200px) {
	#sidebar {
		transform: translateX(-100%) !important;
		left: -300px !important;
	}

	#sidebar.show {
		transform: translateX(0) !important;
		left: 0 !important;
	}

	#sidebar.hidden {
		transform: translateX(-100%) !important;
		left: -300px !important;
	}

	#maincontent {
		margin-left: 0 !important;
	}
}

@media only screen and (min-width: 1201px) {
	#sidebar.hidden {
		transform: translateX(-100%);
		left: -300px !important;
	}

	#sidebar:not(.hidden) {
		transform: translateX(0);
		left: 0 !important;
	}

	#maincontent {
		transition: margin-left 0.3s ease-in-out;
	}

	#sidebar.hidden + #maincontent {
		margin-left: 0;
	}

	#sidebar:not(.hidden) + #maincontent {
		margin-left: 300px;
	}
}


/* estilos modal para acceder a /random.html */
.modal-overlay {
	background: rgba(0, 0, 0, 0.7) !important; /* fondo más oscuro */
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.centered-modal {
	background: rgba(var(--bg), 0.95);
	color: rgba(var(--text), 1);
	border-radius: 12px;
	border: 1px solid rgba(var(--accent), 0.3);
	box-shadow: 0 8px 32px rgba(var(--accent), 0.5);
	max-width: 400px;
	width: 90%;
	margin: auto;
	text-align: center;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.centered-modal .modal-header,
.centered-modal .modal-footer {
	border-color: rgba(var(--accent), 0.2);
}

/* botón de X */
.close-btn {
	font-size: 1.5rem;
	color: rgba(var(--text), 1);
	opacity: 0.8;
	cursor: pointer;
	background: none;
	border: none;
	transition: 0.2s ease;
	margin-top: 5px;
	margin-left: -8px;
}

.close-btn:hover {
	opacity: 1;
	transform: scale(1.1);
}

.modal-title {
	color: rgba(var(--accent), 1);
	font-weight: 600;
	margin-top: 6px;
}

/* botones */
.modal-btn {
	min-width: 120px;
	font-size: 1rem;
	padding: 0.7em 1.5em;
	border-radius: 16px;
	color: rgba(var(--text), 1) !important;
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	margin: 0 0.3em;
}

.modal .btn-primary {
	background: rgba(var(--accent), 0.5) !important;
	border: 1px solid rgba(var(--accent), 0.6);
	color: rgba(var(--text), 1) !important;
	
}

.modal .btn-primary:hover {
	background: rgba(var(--accent), 0.7) !important;
	
}

.modal .btn-secondary {
	background: rgba(var(--accent), 0.15);
	border: 1px solid rgba(var(--accent), 0.3);
}

.modal .btn-secondary:hover {
	background: rgba(var(--accent), 0.25);
}

/* animación smooth */
.modal.active .centered-modal {
	animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translate(-50%, -48%);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%);
	}
}

