/* -------------------- TIPOGRAFIA -------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* -------------------- ZERAMENTO DE ESPAÇOS -------------------- */

* {
	margin: 0;
	padding: 0;
}

/* -------------------- ETIQUETAS -------------------- */

a {
	color: #4b0082;
}
a:visited:hover, a:hover {
	color: #a245d9;
}
a:visited {
	color: #100329;
}

body {	
	background-color: #100329;
	color: #313131;
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	font-style: normal;
	min-width: 320px;
}

footer {
	color: white;
	display: flex;
	gap: 2rem;
	margin: 0 auto;
	max-width: 1400px;
	padding: 2rem;
}
footer a, footer a:visited {
	color: white;
}
footer a:hover, footer a:visited:hover {
	color: #d3a4ff;
}

/* O tamanho da fonte dos headings foi aumentado manualmente porque era muito pequeno */
h1 {
	color: #100329;
	font-size: 48px;
}

h2 {
	color: #100329;
	font-size: 32px;
}

header {
	align-items: center;
	background-color: #4b0082;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	padding: 0.5rem 1rem;
}
header a, header a:visited {
	color: white;
	font-weight: bold;
	text-decoration: none;
}
header a:hover, header a:visited:hover {
	color: #d3a4ff;
}

/* Define a maneira correta de renderizar imagens */
img {
	display: block;
}

nav {
	display: flex;
	gap: 2rem;
}

p {
	margin: revert;
}

/* Adiciona espaçamento no contêiner principal */
section {
	margin: 0 auto;
	max-width: 1400px;
	padding: 2.5rem;
	text-align: center;
}

table {
	margin: 13px 0;
}

/* -------------------- IDs -------------------- */

/* Necessário para colorir o fundo do corpo da página de branco, visto que o fundo do body é roxo para complementar o rodapé */
#conteiner-corpo {
	background-color: white;
}

/* Centraliza copyright verticalmente */
#copyright {
	align-content: center;
	flex: 1;
}

/* Ajusta a posição dos links sociais */
#links {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin-top: 0.5rem;
}

/* Botão hambúrguer do menu móvel */
#menu {
	background: none;
	border: none;
	cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
#menu span {
	background-color: white;
    border-radius: 3px;
    display: block;
    height: 3px;
    transition: 0.3s;
	width: 25px;
}

/* -------------------- CONSULTAS DE MÍDIA -------------------- */

@media (max-width: 768px) {
	/* -------------------- ETIQUETAS -------------------- */
	
    /* Sem isso, o menu pode ficar atrás de outros elementos */
    header {
        position: relative;
    }

    nav {
		background-color: #721fad;
        display: none;
        flex-direction: column;
		gap: revert;
		left: 0;
        position: absolute;
        top: 100%;
        width: 100%;
		z-index: 2;
    }
	/* Apenas quando o menu estiver aberto */
    nav.open {
        display: flex;
    }
    nav a {
        padding: 1.5rem;
    }
	nav > a:hover {
		background-color: #9c4ad6;
	}
	
	/* -------------------- IDs -------------------- */
	
	#menu {
        display: flex;
    }
}

@media (max-width: 610px) {
	/* -------------------- ETIQUETAS -------------------- */
	
	footer {
		flex-direction: column;
		text-align: center;
	}
	footer img {
		margin: 0 auto;
	}
}