:root {
	--bg-dark: #1e1e26;
	--primary-green: #2dfc52;
	--white: #ffffff;
	--transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===============================
   ESTILOS GENERALES
=================================*/

body {
	background-color: var(--bg-dark);
	margin: 0;
	font-family: 'Poppins', sans-serif;
}

.main-container {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-around;
	padding: 40px 0;
}

/* ===============================
   MENÚ RADIAL
=================================*/

.radial-menu {
	position: relative;
	width: 200px;
	height: 200px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.radial-menu .toggle {
	position: relative;
	width: 60px;
	height: 60px;
	background: var(--white);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1.8rem;
	z-index: 10;
	transition: transform 1.25s;
	box-shadow: 0 3px 4px rgba(0,0,0,0.15);
}

/* ACTIVACIÓN POR HOVER */

.radial-menu:hover .toggle {
	transform: rotate(315deg);
}

.radial-menu li {
	position: absolute;
	list-style: none;
	left: 70px;
	transform-origin: 30px;
	transition: 0.5s;
	transition-delay: calc(0.1s * var(--i));
	transform: rotate(0deg) translateX(0px);
}

/* ACTIVACIÓN POR HOVER */

.radial-menu:hover li {
	transform: rotate(calc(360deg / 8 * var(--i))) translateX(100px);
}

.radial-menu li a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	background: var(--white);
	border-radius: 50%;
	transform: rotate(calc(360deg / -8 * var(--i)));
	box-shadow: 0 3px 4px rgba(0,0,0,0.15);
	color: var(--clr);
	font-size: 1.3rem;
	text-decoration: none;
	transition: 0.3s;
}

.radial-menu li a:hover {
	box-shadow: 
		0 0 0 2px var(--clr),
		0 0 15px var(--clr);
	transform: rotate(calc(360deg / -8 * var(--i))) scale(1.1);
}

/* ===============================
   MENÚ DE NAVEGACIÓN (BARRA)
=================================*/

.navigation {
	position: relative;
	width: 400px;
	height: 70px;
	background: var(--white);
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
}

.navigation ul {
	display: flex;
	width: 350px;
	padding: 0;
	margin: 0;
}

.navigation ul li {
	position: relative;
	list-style: none;
	width: 70px;
	height: 70px;
	z-index: 1;
}

.navigation ul li a {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	width: 100%;
	text-decoration: none;
}

.navigation ul li a .icon {
	position: relative;
	display: block;
	line-height: 75px;
	font-size: 1.5rem;
	transition: var(--transition);
	color: var(--bg-dark);
}

.navigation ul li.active a .icon {
	transform: translateY(-35px);
}

.navigation ul li a .text {
	position: absolute;
	color: var(--bg-dark);
	font-weight: 400;
	font-size: 0.75rem;
	transition: var(--transition);
	opacity: 0;
	transform: translateY(20px);
}

.navigation ul li.active a .text {
	opacity: 1;
	transform: translateY(10px);
}

/* ===============================
   INDICADOR
=================================*/

.indicator {
	position: absolute;
	top: -50%;
	width: 70px;
	height: 70px;
	background: var(--primary-green);
	border-radius: 50%;
	border: 6px solid var(--bg-dark);
	transition: var(--transition);
}

.indicator::before {
	content: '';
	position: absolute;
	top: 50%;
	left: -22px;
	width: 20px;
	height: 20px;
	background: transparent;
	border-top-right-radius: 20px;
	box-shadow: 1px -10px 0 0 var(--bg-dark);
}

.indicator::after {
	content: '';
	position: absolute;
	top: 50%;
	right: -22px;
	width: 20px;
	height: 20px;
	background: transparent;
	border-top-left-radius: 20px;
	box-shadow: -1px -10px 0 0 var(--bg-dark);
}

/* ===============================
   POSICIÓN DEL INDICADOR
=================================*/

.navigation ul li:nth-child(1).active ~ .indicator {
	transform: translateX(calc(70px * 0));
}

.navigation ul li:nth-child(2).active ~ .indicator {
	transform: translateX(calc(70px * 1));
}

.navigation ul li:nth-child(3).active ~ .indicator {
	transform: translateX(calc(70px * 2));
}

.navigation ul li:nth-child(4).active ~ .indicator {
	transform: translateX(calc(70px * 3));
}

.navigation ul li:nth-child(5).active ~ .indicator {
	transform: translateX(calc(70px * 4));
}