:root {
	--sand: #AC9C71;
	--green: #283321;
}


html, body{
	margin: 0;
	font-family: Zen Loop;
	--webkit-fill-available;
}

html {
	scroll-snap-type: y mandatory;
	scroll-padding-top: 9dvh;
	scroll-behavior: smooth;

}


body {
	background: var(--sand);
	overflow-x: hidden;
}

.snap{
	scroll-snap-align: start;
}

h1 {
	color: white;
	font-size: 36px;

	text-align: center;
	margin: 0;
	padding-top: 1em;
}

h2 {
	font-size: 36px;
	margin: 0.5em 0;
}

h3 {
	font-size: 30px;
	margin: 6px;
}


p {
	font-size: 24px;
	font-weight: bold;
	margin: 0.5em 0.75em;
}

header {
	height: 95dvh;
	padding-bottom: 5dvh;
}

#scrollend{
	position: absolute;
	width: 100%;
	margin-top: 1em;

	display: flex;
	justify-content: center;
}

a {
	color: white;
	text-decoration: none;
	font-size: 24px;

	text-align: center;
	line-height: 1.5em;

	width: 5em;
	height: 1.5em;
}

#fade {
	width: 100%;

	position: absolute;
	top: 0;
	z-index: -1;

	background: linear-gradient(black, rgb(0,0,0,0));
}

#banner {
	/*height defined in arch.js script line 1*/
	width: 100%;

	position: absolute;
	top: 0;

	fill: var(--green);
}

#bg {
	height: 95%;
	width: 100%;

	object-fit: cover;

	position: absolute;
	top: 0;
	z-index: -2;
}

#missaoContainer {
	height: 80dvh;
	min-width: 600px;

	background: rgb(255,255,255,0.5);

	overflow: auto;
	display: flex;
	justify-content: center;
}

#missao {
	width: 60%;
	min-width: 480px;

	margin: auto;
}

#missao h2 {
	margin: 0;
	padding: 1em;
	padding-bottom: 0.5em;
}

#missao h4 {
	text-align: right;
	margin: 1em 15%;
	font-size: 24px;
}

#missao p {
	margin: 0 80px;
	font-size: 25.5px;
}

#carouselContainer {
	height: 80dvh;
	margin-bottom: 5dvh;

	position: relative;
}

#hats {
	height: 100%;
	overflow: hidden;
}

#carousel {
	display: flex;
	flex-direction: row;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;

	scroll-behavior: smooth;

	height: calc(100% + 22px);
}

.pics {
	/*margin defined in disp.js line 2*/
	object-fit: cover;


	height: calc(100% - 66px);
	aspect-ratio: 3/4;

	scroll-snap-align: center;

	cursor: pointer;
}

#arrows {
	position: absolute;

	width: 100%;
	display: flex;
	justify-content: space-between;

	height: 0;
}

button {
	/*size defined in disp.js line 3*/
	aspect-ratio: 1;

	background: radial-gradient(rgb(0,0,0,0.5), transparent 50%);
	border: none;
	border-radius: 100%;

	color: white;
	font-size: 18px;
	font-weight: bold;
	text-align: center;
	text-decoration: none;

	padding: 0;
	margin: 0;

	cursor: pointer;
}

#right {
	right: 0;
}

main {
	height: 82dvh;
	min-height: 480px;
	background: rgb(255,255,255,0.8);

	overflow: auto;
}

#mainContainer {
	height: calc(100% - 80px);
	aspect-ratio: 15/8;
	min-width: 55vw;

	margin: auto;
	padding: 40px 0;

	position: relative;
}

#textContainer {
	height: 100%;
	width: 55%;

	margin-left: 2em;

	display: flex;
	flex-direction: column;
}

#refImg {
	height: 80%;
	aspect-ratio: 6/9;
	border-radius: 1000px;
	object-fit: cover;

	position: absolute;
	top: 10%;
	right: 5%;
}

#aro {
	position: absolute;
	top: 5%;
	right: 2%;
}

.passo {
	position: relative;
}

.passo, p {
	padding: 6px;
	text-align: justify;
}

#textGrid {
	display: grid;
	grid-template-areas:
		"A B"
		"C D"
	;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2px;

	height: 100%;
	width: 95%;
}

#p1 {
	grid-area: "A";
}

#p2 {
	grid-area: "B";

	top: 15%;
	left: 10%;
}

#p3 {
	grid-area: "C";

	top: -20%;
	left: 10%;
}

#p4 {
	grid-area: "D";

	left: 20%;
}

#p5 {
	width: 60px;

	position: absolute;

	font-size: 30px;
	top: 13%;
	right: 33%;

	rotate: -15deg;

	z-index: 2;
}

footer {
	height: 30dvh;
	width: 100%;
	margin-top: 1em;
}

#infoContainer {
	height: 50%;
	width: 100%;

	display: flex;
	justify-content: center;
}

.info a {
	width: 100%;
	color: black;

	text-decoration: none;
	font-weight: bold;
	font-size: 36px;

	margin: 24px;
	margin-bottom: 6px;

	cursor: pointer;
}

.info p {
	font-size: 27px;

	padding: 0;
	margin: 0 24px;
}

.info {
	display: flex;
	flex-direction: column;
}

#contatoContainer > * {
	text-align: right;
	align-self: flex-end;
}

#igContainer > * {
	text-align: left;
	align-self: flex-start;
}

#line {
	width: 15%;
	border: 1px solid rgb(0,0,0,0.25);
	border-radius: 1px;
	margin: auto auto 12px;
}


@media only screen and (orientation: portrait) {

	html {
		scroll-snap-type: none;
		scroll-padding-top: 0;
	}

	.snap{
		scroll-snap-align: none;
	}

	.snap2{
		scroll-snap-align: start;
	}

	header {
		height: 35vh;
		padding: 0;
	}

	#bg {
		height: 35vh;
	}

	#carouselContainer {
		height: 20vh;
		margin: 0;
	}

	#missaoContainer {
		height: auto;
		min-height: 45vh;
		min-width: 0;
	}

	#missao {
		width: 90%;
		min-width: 0;
	}

	#missao h4 {
		margin: 1em 20%;
	}

	#missao p {
		margin: 0 60px;
	}

	main {	
		height: 85dvh;
	}

	#mainContainer {
		height: calc(100% - 48px);
		width: calc(100% - 48px);

		padding: 0;
		display: auto;

		aspect-ratio: initial;
		min-width: 0;

		margin: 0;
		padding: 24px;

		top: 0;
		position: relative;
	}

	#textContainer {
		margin: 0;

		height: 100%;
		width: 100%;

		display: auto;
	}

	#textContainer h2 {
		text-align: center;
		margin: 0;
	}

	#textGrid {
		height: auto;
		width: auto;

		display: inline;
	}

	#textGrid h3 {
		font-size: 28.5px;
		margin-bottom: 0;
	}

	#textGrid p {
		font-size: 27px;
		padding: 0;
		margin-top: 0;
	}

	.passo {
		position: initial;
		padding: 0;

		margin: auto;
	}

	#p5 {
		font-size: 33px;

		rotate: 0deg;
		position: initial;

		margin: 1em auto;
	}

	#refImg {
		height: 40%;

		top: auto;
		bottom: 4%;

		right: 0.5%;
		left: 0;
		margin-left: auto;
		margin-right: auto;
	}

	#aro {
		top: auto;
		bottom: 0;

		right: 0;
		left: 0;
		margin-left: auto;
		margin-right: auto;
	}

	footer {
		height: 15dvh;
	}

	#line {
		display: none;
	}
}

@media only screen and (max-height: 840px) {
	#aro, #refImg {
		display: none;
	}
}