/* Fontes */

@font-face {
	font-family: 'Ubuntu Light';
	src: url('fonts/Ubuntu-L.ttf');
}

@font-face {
	font-family: 'Darleston';
	src: url('fonts/Darleston.ttf');
}

/* Body */

* {
	font-family: 'Ubuntu Light';
	font-size: 17px;
}

body {
	background: rgba(240, 240, 240, 0.8);
}

h1 {
	font-size: 36px;
	color: rgba(20, 20, 20, 1.0);
}
h2 {
	font-size: 28px;
	color: rgba(20, 20, 20, 1.0);
}

p {
	text-align: justify;
	color: rgba(20, 20, 20, 1.0);
}

/* Theme */

#theme {
	width: 80%;
	text-align: center;
	font-family: 'Darleston';
	font-size: 108px;
	font-weight: 400;
	position: absolute;
	top: 0%;
	left: 10%;
}

/* Navbar & menu */

#nav {
	width: 100%;
	text-align: right;
	position: absolute;
	top: 2%;
	right: 1%;
}

#nav img {
	display: none;
}

#nav span {
	margin-left: 2%;
}
#nav span:hover:not(.nav-conta) {
	color: rgba(236, 55, 55, 0.8);
	cursor: pointer;
}

.nav-conta {
	color: rgba(240, 240, 240, 1.0);
	background: rgba(60, 60, 60, 1.0);
	border: 1px solid rgba(20, 20, 20, 0.2);
	border-radius: 4px;
	padding: 0.5%;
}
.nav-conta:hover {
	cursor: pointer;
}

#menu {
	display: none;
}

.menu {
	height: 100%;
	overflow-y: scroll;
}

/* Conta */

#conta {
	width: 30%;
	max-height: 50%;
	background: rgba(240, 240, 240, 1.0);
	border: 1px solid rgba(20, 20, 20, 0.2);
	border-radius: 4px;
	position: fixed;
	top: 7%;
	right: 1%;
	z-index: 1;
}

/* Form */

form h2 {
	text-align: center;
	font-size: 24px;
}

form label {
	display: block;
	margin-left: 2%;
	margin-bottom: 1%;
}

form input[type='text'], [type='password'] {
	display: block;
	width: 96%;
	margin-left: 2%;
	margin-bottom: 3%;
	border: 1px solid rgba(20, 20, 20, 0.2);
	border-radius: 4px;
	padding: 1%;
	outline: 0;
	transition: 0.5s;
}
form input[type='text']:focus, [type='password']:focus {
	border: 1px solid rgba(20, 20, 20, 0.4);
}

form input[type='submit'] {
	background: rgba(140, 140, 140, 0.1);
	width: 30%;
	margin-top: 3%;
	margin-left: 68%;
	margin-bottom: 3%;
	padding: 1%;
	border: 1px solid rgba(20, 20, 20, 0.2);
	border-radius: 4px;
	transition: 0.5s;
}
form input[type='submit']:hover {
	background: rgba(140, 140, 140, 0.2);
	cursor: pointer;
}

.nao-cadastrado {
	text-align: center;
	margin-bottom: -1%;
}

/* Frame */

#frame {
	width: 90%;
	height: 60%;
	border: 1px solid rgba(20, 20, 20, 0.2);
	border-radius: 5px;
	position: absolute;
	top: 25%;
	left: 5%;
}

/* Dialog */

.fundo-dialog {
	width: 100%;
	height: 100%;
	background: rgba(140, 140, 140, 0.3);
	position: fixed;
	left: 0;
	top: 0;
	z-index: 2;
}

dialog {
	width: 25%;
	position: relative;
	margin-top: 12%;
	background: rgba(240, 240, 240, 1.0);
	border: 1px solid rgba(20, 20, 20, 0.2);
	border-radius: 4px;
	z-index: 3;
}

dialog h1 {
	text-align: center;
	font-size: 24px;
	margin-top: 0%;
}

dialog p {
	display: block;
	margin-top: 2%;
	margin-bottom: 4%;
	padding: 2%;
}

dialog button {
	width: 30%;
	background: rgba(140, 140, 140, 0.1);
	border: 1px solid rgba(20, 20, 20, 0.2);
	border-radius: 4px;
	padding: 1.5%;
	position: relative;
	left: 19%;
	transition: 0.5s;
}
dialog button:last-child {
	left: 21%;
}
dialog button:hover {
	background: rgba(140, 140, 140, 0.2);
	cursor: pointer;
}

/* Footer */

footer {
	width: 100%;
	height: 10%;
	color: rgba(240, 240, 240, 1.0);
	background: rgba(60, 60, 60, 1.0);
	text-align: center;
	font-size: 24px;
	line-height: 90px;
	position: fixed;
	left: 0;
	bottom: 0;
}

/* Scrollbar */

::-webkit-scrollbar {
	width: 8px;
	height: 12px;
}
::-webkit-scrollbar-track {
	background: transparent;
}
::-webkit-scrollbar-thumb {
	background: rgba(60, 60, 60, 0.2);
}
::-webkit-scrollbar-thumb:hover {
	background: rgba(60, 60, 60, 0.3);
}

/* Responsividade */

@media screen and (max-width: 768px) {
	/* Body */

	* {
		font-size: 15px;
	}

	/* Theme */

	#theme {
		font-size: 92px;
	}

	/* Navbar & menu */

	#nav {
		display: none;
	}

	#menu {
		display: block;
	}

	.menu {
		display: none;
		width: 100%;
		height: 100%;
		color: rgba(20, 20, 20, 1.0);
		background: rgba(240, 240, 240, 1.0);
		position: fixed;
		top: 0;
		left: 0;
		z-index: 1;
	}

	.menu span {
		display: block;
		text-align: center;
		padding: 7%;
	}
	.menu span:hover {
		color: rgba(236, 55, 55, 0.8);
		cursor: pointer;
	}

	.menu-abrir {
		display: block;
		position: fixed;
		top: 3%;
		left: 5%;
	}

	.menu-fechar {
		display: block;
		position: fixed;
		right: 5%;
		bottom: 3%;
	}

	/* Conta :p */

	#conta {
		display: none;
	}

	/* Dialog */

	dialog {
		width: 75%;
		margin-top: 35%;
	}

	/* Footer */

	footer {
		font-size: 20px;
		line-height: 70px;
	}
}
