@import url('https://fonts.googleapis.com/css2?family=K2D&display=swap');

:root {
	--color-progress: green
}

@media (max-width: 600px) {
	.img-right {
		padding: 10px;
		width: 60%;
	}
}
@media (max-width: 400px) {
	.img-right {
		padding: 10px;
		width: 60%;
	}
}
@media (max-width: 950px) {
	header {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.img-left {
		width: 40vw;
		height: 40vw
	}

	.img-right { 
		padding: 10px;
		width: 60%;
		/* width: 34vw;
		height: 34vw; */
	}

	h1 {
		margin: 0 0 10px 0;
		text-align: center;
	}

	h2 {
		margin: 10px 0 20px 0;
		font: 500 30px 'K2D';
		color: #FFF616;
		text-align: center;
	}

	main {
		display: flex;
		flex-direction: column;
	}

	.content {
		width: 44vw;
		height: 200px;
	}

	button {
		width: 32vw;
		height: 10vh;
	}

	.instructions { 
		text-align: center; 
		margin-bottom: 20px;
	}
}

@media (min-width: 951px) {
	.content {
		width: 14vw;
		height: 15vw;
	}

	button {
		width: 12vw;
		height: 10vh;
	}

	h1 { padding-top: 40px }

	h2 { display: none; margin: 0; }

	.img-right {
		padding-top: 24px;
		width: 12%;
		/* width: 13vw;
		height: 13vw; */
	}

	main {
		display: grid;
		/* grid-template-columns: 20% 80%; */
	}

	.instructions {
		grid-row-start: 1;
		position: absolute;
		width: 20%;
	}

	#listaJogos, #listaPopulares {
		grid-column-start: 2;
	}

	#listaPopulares {
		padding-bottom: 20px;
	}

}

body {
    background: linear-gradient(135.96deg, #0D131C 39.51%, #3E3F41 96.4%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed
}

header { 
	display: flex;
	justify-content: space-around
}

h1 {
	font: 600 32px 'K2D';
	color: #FFF;
}

h3 {
	margin: 10px 0 30px 0;
	font: 400 24px 'Helvetica';
	color: #FFF;
	text-align: center;
    width: 90%;
	margin: auto;
}

h3 span { color: #00aa44 }

h4 {
	margin: 40px 0 40px 10px;
	font: 600 28px 'Helvetica';
	color: #00aa44;
}

p {
	margin: 2px 10px;
	font: 400 20px 'Helvetica';
	color: #FFF;
}

#listaJogos, #listaPopulares {
	display: flex;
	flex-wrap: wrap;
    justify-content: center;
    gap: 20px
}

.content {
	position: relative;
	overflow: hidden;
    border-radius: 5px;
}

.content:hover .background {
	transform: scale(1.1);
}

.content:hover button {
	opacity: 1;
}

.content .background {
	width: 100%;
	height: 95%;
	transition: transform 0.5s;
}

button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: opacity 0.5s;

	font: 500 20px 'Helvetica';
	color: #FFF;
	cursor: pointer;
	
	background-color: #00aa44;
	border: none;
	border-radius: 4px;
}

.bg-loading-bar {
    position: relative;
    top: -12px;
    left: 0px;

    width: 100%;
    text-align: center;
}

progress {
	width: 100%;
	height: 20px;
	appearance: none;
	-webkit-appearance: none;
	border: none;
	background-color: #eee;
}
  
progress::-webkit-progress-bar {
	background-color: #FFF;
}
  
progress::-webkit-progress-value {
	background-color: var(--color-progress); /*#4CAF50; */
}

.num-loading-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    font: 600 2vh 'Arial'
}