body {
	font-family: Candara;
	text-align: center;
	margin: 0;
	background-image: url(../img/backgroundlight.png);
	background-size: 100%;
}

.tutorial-demo {
	max-width: 600px;
	margin: 100px auto 0;
	padding: 20px;
}

.tutorial-demo h2 {
	font-size: 24px;
	margin-bottom: 20px;
	color: #333;
}

#demo-word {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin-bottom: 20px;
}

.demo-legend {
	text-align: left;
	max-width: 400px;
	margin: 0 auto;
}

.demo-legend p {
	margin: 10px 0;
	font-size: 16px;
	font-weight: bold;
}

.demo-legend span {
	padding: 2px 8px;
	border-radius: 4px;
	color: white;
}

.title {
	font-size: 36px;
	font-weight: bold;
	letter-spacing: 2px;
	margin: 30px 0 0 0;
}

header {
	position: absolute;
	top: 40px;
	width: 90%;
	max-width: 600px;
	display: flex;
	justify-content: center;
	gap: 310px;
	align-items: center;
}

.containerheader {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 0 50px 0;
}

.menu, .moon {
	cursor: pointer;
}

.logo-main, .logo-alt {
	margin-top: 15px;
	width: 200px;
}

.key-tile::selection {
	background-color: transparent;
}

.key-tile:hover {
	background-color: #b0e6ff;
}

.tile:hover, .enter-key-tile:hover, .altenter-key-tile:hover {
	background-color: #b0e6ff;
	cursor: default !important;
}

.enter-key-tile::selection {
	background-color: transparent;
}

.container::selection {
	background-color: transparent;
}

.containerheader::selection {
	background-color: transparent;
}

#answer {
	font-size: 26px;
}

#gif {
	border-radius: 10px;
}

.containerTutorial {
	display: flex;
	justify-content: center;
	margin-top: 80px;
	margin-bottom: 50px;
}

/* Jogo */
.container {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 80px;
	margin-bottom: 50px;
}

.container .box {
	width: 30%;
}

.tutorial-content {
	display: flex;
	gap: 30px;
	justify-content: center;
	align-items: flex-start;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 10px;
	box-sizing: border-box;
}

.tutorial-content .tutorial-box {
	flex: 1 1 45%;
	max-width: 48%;
	box-sizing: border-box;
	padding: 14px;
	border-radius: 8px;
}

#title {
	font-size: 36px;
	font-weight: bold;
	letter-spacing: 2px;
}

#board {
	width: 280px;
	height: auto;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.tile {
	/* Box */
	background-color: #00aaff46;
	border: 2px solid black;
	width: 70px;
	height: 70px;
	margin: 3px;
	transition: 0.3s;
	/* Text */
	color: black;
	font-size: 36px;
	font-weight: bold;
	display: flex;
	justify-content: center;
	align-items: center;
}

.correct {
	background-color: #75ca6d !important;
	color: white;
	border-color: white;
}

.present {
	background-color: #b69c28 !important;
	color: white;
	border-color: white;
}

.absent {
	background-color: #453f4b !important;
	color: white;
	border-color: white;
}

.keyboard-row {
	width: 700px;
	margin: 0 auto;
	display: flex;
	flex-wrap: nowrap;
}

.row-title {
	display: flex;
	justify-content: center;
	gap: 5px;
}

.key-tile {
	width: 60px;
	height: 64px;
	margin: 2px;
	border: 1px solid black;
	cursor: pointer;
	/* Text */
	font-size: 20px;
	font-weight: bold;
	display: flex;
	justify-content: center;
	align-items: center;
}

.altenter-key-tile {
	width: 60px;
}

.enter-key-tile {
	width: 126px;
}

.enter-key-tile, .altenter-key-tile {
	height: 64px;
	margin: 2px;
	border: 1px solid black;
	background-color: #00aaff46;
	cursor: pointer;
	/* Text */
	font-size: 20px;
	font-weight: bold;
	display: flex;
	justify-content: center;
	align-items: center;
}

/* Animação Letras */
@keyframes slidein {from { transform:translateY(20%);
	opacity: 0;
}

to {
	transform: translateY(0%);
	opacity: 1;
}

}
.tile.animate-letter {
	animation: slidein 0.2s ease;
}

/* Animação Letras */
@keyframes slidein {
  from {
    transform: translateY(20%);
    opacity: 0;
  }

  to {
    transform: translateY(0%);
    opacity: 1;
  }
}

.tile.animate-letter {
  animation: slidein 0.2s ease;
}

/* Animação Tremer Palavra Inválida */
@keyframes shake {
  0% {
    transform: translateX(0px);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0px);
  }
}

.animate-invalid-row {
  animation: shake 0.3s;
}

/* Animação Zoom Palavra Válida */
@keyframes zoom {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.animate-valid-row {
  animation: zoom 0.3s;
}


/* =================== modo escuro =================== */
body.dark {
	margin: 0;
	background-image: url(../img/darkbg.png);
	background-size: 100%;
}

body.dark .title {
	color: #fff;
}

body.dark .tutorial-box {
	color: #fff;
}

body.dark .btn-cadastro {
	background-color: #012447;
}

body.dark .btn-acessar {
	background-color: #004080;
}

body.dark .input-group input {
	background-color: #131212bb;
	color: #fff;
	border: 1px solid #444;
}

body.dark .key-tile {
	border: 1px solid white;
	color: white;
}

body.dark .tile:hover, body.dark .key-tile:hover {
	background-color: #0d8eca;
}

body.dark .enter-key-tile, body.dark .altenter-key-tile {
	border: 1px solid white;
	color: white;
}

body.dark .tile {
	border: 2px solid rgb(255, 255, 255);
	color: rgb(255, 255, 255);
}

body.dark #answer {
	color: rgb(255, 255, 255);
}

/*======================== Responsividade =======================*/
@media ( max-width : 1580px) {
	body {
		overflow: visible;
	}
	.keyboard-row {
		width: 600px;
	}
	.box img {
		width: 70%;
	}
	.container {
		margin-bottom: 0;
	}
	.tile {
		width: 40px;
		height: 40px;
		font-size: 30px;
	}
	.key-tile, .altenter-key-tile {
		width: 40px;
		height: 45px;
		font-size: 18px;
	}
	.enter-key-tile {
		width: 86px;
		height: 45px;
		font-size: 18px;
	}
	.keyboard-row {
		justify-content: center;
	}
}

@media ( max-width : 880px) {
	.tutorial-content {
		flex-direction: column;
		gap: 18px;
	}
	.tutorial-content .tutorial-box {
		max-width: 100%;
		width: 100%;
	}
}

@media ( max-width : 768px) {
	body {
		overflow: visible;
	}
	header {
		gap: 30px;
	}
	.logo-main, .logo-alt {
		width: 170px;
	}
	.img {
		width: 35px;
	}
	#gif {
		width: 100%;
	}
	.container {
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 15px;
	}
	.box {
		width: 100%;
		margin: 0 auto;
	}
	#board {
		width: 100%;
		height: auto;
	}
	.tile {
		width: 30px;
		height: 30px;
		font-size: 18px;
	}
	.keyboard-row {
		width: 100%;
	}
	.key-tile, .enter-key-tile {
		width: 30px;
		height: 35px;
		font-size: 16px;
	}
	header img {
		width: 50px;
	}
	.keyboard-row {
		width: auto;
		margin: 0 auto;
		display: flex;
		justify-content: center;
	}
}

@media ( max-width : 480px) {
	header {
		gap: 50px;
	}
	.logo-main, .logo-alt {
		width: 170px;
	}
	#gif {
		width: 150%;
		display: block;
		margin: 0 auto;
		position: relative;
		left: 50%;
		transform: translateX(-50%);
	}
	.tile {
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
	.key-tile {
		width: 33px;
		height: 42px;
		font-size: 17px;
	}
	.enter-key-tile {
		width: 70px;
		height: 42px;
		font-size: 17px;
	}
	header img {
		width: 30px;
	}
	.keyboard-row {
		width: auto;
		margin: 0 auto;
		display: flex;
		justify-content: center;
	}
}
