/* Custom CSS for the background image */

:root {
	--altura-aba-acessibilidade: 200px;
}


/* Nova acessibilidade */


#acessibilidade {
	position: fixed;
	top: 50%;
	left: 0;

	transform: translateY(-50%);

	display: flex;

	height: 200px;
	width: 100%;
	max-width: 32px;
	box-sizing: border-box;

	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;

	background: #000000d0;
	backdrop-filter: blur(40px);
	overflow: hidden;
	cursor: pointer;
	z-index: 999;
	transition: height var(--delay-default), max-width var(--delay-default), border-radius var(--delay-default);


	.aba-acessibilidade {
		display: flex;
		justify-content: center;
		align-items: center;

		width: 32px;
		height: 100%;

		background: #0092DD;
		color: white;
		border: none;

		z-index: 2;

		&:active {
			scale: none;
		}

		.icone::before {
			content: '\e92c';

			display: flex;
			align-items: center;
			justify-content: center;

			font-family: 'Material Symbols Outlined';
			font-size: 24px;

			height: 100%;
			width: 100%;
		}
	}

	ul.opcoes-acessibilidade {
		display: flex;
		align-items: center;
		flex-direction: column;
		justify-content: center;

		position: absolute;

		width: 0px;
		height: min-content;
		box-sizing: border-box;

		margin: 0;
		padding-left: 32px;

		list-style: none;
		overflow: hidden;

		li.opcao-acessibilidade {
			width: 100%;
			height: min-content;

			.link-acessibilidade {
				display: flex;
				align-items: center;
				gap: 20px;

				width: 100%;
				min-height: 40px;
				box-sizing: border-box;

				border: none;
				padding-left: 15px;
				padding-block: 5px;
				outline: none;

				color: white;
				text-decoration: none;
				text-wrap-mode: nowrap;
				text-align: start;

				background-color: transparent;
				transition: var(--delay-default);

				.titulo-acessibilidade {
					font-size: 0.8rem;
					margin: 0;
					color: inherit;
				}

				.tecla-atalho {
					font-size: 0.7rem;
					color: inherit;
				}

				&:hover,
				&:focus {
					background: white;
					color: black;
				}

				&:active {
					scale: unset;
				}
			}
		}
	}

	&.menu-aberto {

		.opcoes-acessibilidade,
		&.acessibilidade-expandida .opcoes-acessibilidade {
			width: 100%;
		}
	}
}

#modalAcessibilidade {

	p,
	.item-lista {
		color: var(--cor-fonte-secundaria);
	}

	ul.list-text {
		display: flex;
		flex-direction: column;
		gap: 12px;
	}

	code {
		background-color: var(--cor-fundo-contraste);
		border-radius: 5px;
		padding: 0 .35rem;
	}
}

#vlibras-access-wrapper {
	transition: var(--delay-default);
}

.esconder-vlibras {
	#vlibras-access-wrapper {
		opacity: 0;
		pointer-events: none;
	}
}

@media (max-width: 1344px) {
	.img-header {
		background-size: cover !important;
	}

	&.menu-aberto {

		.aba-acessibilidade {

			.icone::before {
				content: '\e5cd';
			}
		}
	}
}

@media (min-width: 700px) {
	#acessibilidade {

		&:hover,
		&.acessibilidade-expandida {
			height: var(--altura-aba-acessibilidade);
			max-width: 250px;
		}

		&:hover .opcoes-acessibilidade,
		&.acessibilidade-expandida .opcoes-acessibilidade {
			width: 100%;
		}

	}
}

@media (max-width: 700px) {
	#acessibilidade {
		top: unset;
		bottom: 20px;
		left: 50%;
		transform: translateX(-50%);

		flex-direction: column-reverse;

		width: 100%;
		max-width: 230px;
		height: 40px;

		border-radius: 15px;

		&.menu-aberto,
		&.acessibilidade-expandida {
			height: var(--altura-aba-acessibilidade);
			max-width: 250px;
		}

		&:hover .opcoes-acessibilidade,
		&.acessibilidade-expandida .opcoes-acessibilidade {
			width: 100%;
		}

		.aba-acessibilidade {
			width: 100%;
			height: 40px;
		}

		ul.opcoes-acessibilidade {
			padding-bottom: 40px;
			padding-left: 0px;
		}
		
		&.menu-aberto {
			.aba-acessibilidade {

				.icone::before {
					content: '\e5cd';
				}
			}
		}
	}
}

@media (max-width: 375px) {
	#acessibilidade {
		max-width: 170px;
		backdrop-filter: blur(40px);
		opacity: 1;

		&.menu-aberto,
		&.acessibilidade-expandida {
			height: var(--altura-aba-acessibilidade);
			border-radius: 20px;
			max-width: calc(100% - 10px);
		}
	}
}