:root {
	--main-color: #00783e;
	--h1-size: 3rem;
	--btn-width: 150px;
	--opacity: 1;
	--sect-visible: hidden;
	--flex-width: 300px;
}

body {
	inset: 0;
	padding: 0;
	margin: 0;
}

h1 {
	font-size: var(--h1-size);
}

header {
	position: relative;
	margin-bottom: 5%;
	background: linear-gradient(to bottom, rgba(0,255,0,.1) 95%, transparent);
	background-image: linear-gradient(to bottom, transparent 85%, rgba(255,255,255,1)), url('../assets/img/fundo.jpg'); 
	background-repeat: no-repeat; 
	background-size: cover; 
	width: 100%; 
	height: 85%;	
	> div:nth-child(2) {
		position: relative;
		height: 90%;
	}
	.logo {
		padding: .5rem 10%;
		height: fit-content;
		img {
			height: 50px;
			object-fit: cover;
		}
	}
}

#texto {
	display: none;
	max-width: 30%;
	margin: auto;
	text-align: justify;
	h1 {
		font-size: 4vmax;
		font-weight: bold;
	}
	h2 {
		font-size: 3vmax;
	}
	h4 {
		font-size: max(1vmax,12px);
	}
}
.hero {
	position: relative;
	height: 70%;
	width: 50%;
	background-image: linear-gradient(to left, transparent 75%, rgba(228,255,228,1)), url('../assets/img/pexels-picha-stock-2210122-3894383.jpg');
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;	
	transform: rotateX(-1);
	margin: auto 0;
	&::before, &::after {
		content: "";
		position: absolute;
		right: 0;
	}
	&::before {
		background-color: #00783e;
		height: 120%;		
		width: 50%;		
		top: -10%;
		z-index: -1;
	}
	&::after {
		background-color: #663399;
		height: 110%;		
		width: 75%;		
		top: -5%;
		z-index: -1;
	}
}
.overlay {
	border-image: linear-gradient(hsl(240 100% 20% / 0.3), hsl(0 100% 20% / 0.3)) fill 1;	
}
.principal {
	display: flex;
	flex-flow: nowrap row;
	margin-bottom: 3%;
	min-height: 70%;
}
aside, nav {
	width: fit-content;
	height: fit-content;
	background-color: #00783e;
	border-radius: 30px 0 0 30px;
	position: relative;
}
.menu {
	position: relative; 
	top: 0; 
	left: 5; 
	padding: 5px 15px; 
	color: white;
	background: transparent;
	z-index: 2;
	border: none;
}
nav {
	transition: all 0.5s linear;
}
nav > ul {
	padding-left: 0px;
	li:first-child {
		margin-bottom: 0;
	}
	> li:nth-child(2) {
		margin-top: 0;
	}
}

nav ul li {
	list-style: none;
	color: #f0f0f0;
	font-weight: 700;
	margin: 25px 0;
	padding: 0;
	> a {
		padding: 20px;
		position: relative;
		display: flex;
		flex-direction: row;
		color: white;
	}
	> a:first-child {
		padding-bottom: 0;
	}
}

.ul-menu > li:not(:first-child), .submenu li {
	.active, a:hover, a:active {
		&::after {
			content: "";
			width: 0;
			height: 0;
			border-top: 10px solid transparent;
			border-right: 30px solid rgba(255 255 255 / 95%);
			border-bottom: 10px solid transparent;
			position: absolute;
			right: -10px;
			filter: drop-shadow(-1px 2px 1px rgba(0 0 0 / 50%));
			z-index: 3;
		}
	}
}

.submenu li {
	margin: 15px 0;
	font-weight: 400;
	a {
		padding: 0;
	}
}

a {
	text-decoration: none;
}

main {
	position: relative;
	width: 100%;
	& section {
		padding: 20px;
		box-shadow: 2px 4px 6px black;
		min-height: 525px;
		> div {
			width: 100%;
		}
	}
}
.informativo {
	text-align: justify;
	> div {
		/*display: flex;
		align-items: center;*/
		img {
			width: 30%;
			border-radius: 20px;
			min-width: 150px;
		}
	}	
}
#cartilha div {
	h2 {
		color: var(--main-color);
	}
	a {
		padding: 5px 15px;
		color: rgba(0,0,0,1);
	}
	a:hover, a:active {
		color: rgba(0,0,0,.5);		
	}
	a i.fa {
		margin: 0 5px;
		font-size: 1.25rem;
	}
}
#manifestacoes {
	> div {
		display: flex;
	}
}

form {
	padding: 15px;
}

.botoes {
	display: flex;
	justify-content: space-between;
}	

.botao {
	height: min(20lvw,150px);
	width: min(20lvw,150px);
	display: flex;
	flex-flow: nowrap column;
	text-align: center;
	align-items: center;
	justify-content: center;
	margin: 10px;
	color: white;
	font-weight: bold;
	border-radius: 15px;
	border: 3px outset transparent;	
	opacity: var(--opacity);
	line-height: 1.1;
	i, span {
		filter: drop-shadow(1px 1px 2px black);
		font-size: min(2.5lvw,1rem);
	}
	i {
		margin-bottom: 5px;
		font-size: min(7.5lvw,3rem);
	}
	&:hover, &:active {
		/*border-width: 5px;*/
		border-style: inset;
		cursor: pointer;
	}
}
.form  {
	display: none;
}
section[aria-hidden="true"] {
	display: flex;
	opacity: 1;
	transform: scale(1);
	transition-property: all;
	transition-duration: .5s;
	transition-delay: .5s;
	
	@starting-style {
		opacity: 0;
		transform: scale(0);
	}
}

section iframe {
	min-height: 500px;
}

section[aria-hidden="false"] {
	display: none;
	opacity: 0;
	transform: scale(0);
	transition-property: all;
	transition-duration: .5s;
	
	@starting-style {
		opacity: 1;
		transform: scale(1);
	}
}

#relatorios {
	position: relative;
	overflow: hidden;
	width: 100%;
	/*padding-top: 75%;*/
	iframe {
		position: absolute;
		width: 100%;
		inset: 0;
		height: 100%;
	}
	#suboption {
		list-style: none;
		padding: 10px 0;
	}
	#suboption::before {
		content: "\2192";
		padding: 0 10px;
	}
	.accordion {
		--bs-accordion-btn-color: #00783e;
		--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300783e' stroke='%2300783e' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
		--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
	}
	.accordion * {
		margin: 10px 0;
	}
	.accordion-item { 
		--bs-accordion-border-color: transparent;
	}
	.accordion-button { 
		height: fit-content; 
		width: 100%;
		--bs-accordion-btn-focus-box-shadow: transparent transparent;
	}
 
	.accordion-button:not(.collapsed) {
		--bs-accordion-active-color: white;
		--bs-accordion-active-bg: #00783e;						
	}
	#suboption {
		--bs-link-color-rgb: black;
		font-weight: 600;
	}
}

#sic div {
	position: relative; 
	width: 100%; 
	display: grid; 
	grid-template-columns: repeat(auto-fill, minmax(var(--flex-width), 1fr)); 
	grid-template-rows: auto auto; 
	gap: 20px;	
	img { grid-column: 1 / -1; }
	div {
		display: flex;
		flex-direction: column;
		text-align: justify;
		align-items: center;
		gap: 10px;
	}
	button {
		width: fit-content; 
		padding: 5px 10px; 
	}
}


@initial {
	[aria-hidden="true"] {
		opacity: 1;
		transform: scale(1);		
	}
}

@media (min-width: 1200px) {
	#manifestacoes > div {
		flex-flow: nowrap column;
	}
	.botoes {
		flex-flow: wrap row;
	}	
}

@media (max-width: 1199px) {
	#manifestacoes > div {
		flex-flow: nowrap row;
	}
	.botoes {
		flex-flow: wrap column;
	}	
}

@media (max-width: 767px) {
	nav {
		height: 40px;
		width: 55px;
		position: absolute;
		z-index: 1;
		top: 0;
		left: 0;
		overflow-x: hidden;
		padding: 0;
		transition: width .5s, height .5s;
		transition-delay: .5s;
		* {
			transition: all 1s;
			transition-delay: .5s;
			visibility: hidden;
			opacity: 0;
		}
	}
	.menu {
		display: block;
	}
	section {
		border-radius: 0 20px 20px !important;
		margin-left: 0;
		width: 100%;
	}
	[aria-expanded="true"] {
		width: 150px;
		height: 530px;
		* {
			visibility: visible;
			opacity: 1;
		}			
	}
	.accordion-item { 
		max-width: 100%; 
	}
}

@media (min-width: 768px) {
	.menu {
		display: none;
	}
	section {
		border-radius: 20px;
		margin: 0 10px;
		margin-left: 10px;
		box-shadow: 0 0 2px black;
		width: auto;
	}
	.accordion-item { max-width: 50%; }
}

@media (max-width: 599px) {
	#sic {
		--flex-width: 100%;
	}
}

@media (max-width: 479px) {
	.informativo img {
		width: 100% !important;
		margin-bottom: 1rem;
	}
	#sic {
		--flex-width: 100%;
	}
}

@media (orientation: portrait) {
	header {
		height: fit-content;
	}
	header div:nth-child(2) {
		position: relative;
		/*top: -65px;*/
	}
	#teclado {
		align-self: start;
		img {
			/*transform: rotateZ(90deg);*/
		}
	}
}
