* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-image: url('img/fundo.png'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    background-attachment: fixed; 
    color: #333; 
    padding-top: 80px; 
}

/* Header */
header {
    background-color: #7d5fff; 
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin-bottom: 0.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #42c405; 
}

/* Banner */
.banner img {
    width: 500px;
    height: 400px;
    display: block;
    margin: 0 auto; 
    padding: 5rem;
}

/* Introdução */
.introducao {
    padding: 2rem;
    background-color: #fff;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.introducao h2 {
    margin-bottom: 1rem;
    color: #7d5fff;
}

.intro-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.intro-content img {
    width: 750px;
    height: auto;
    margin-right: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.intro-text {
    flex: 1;
}

.intro-text p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Personagens */
.galeria {
    padding: 7rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.personagem {
    background-color: #fff;
    margin: 1rem;
    padding: 1rem;
    border-radius: 8px;
    width: 600px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.personagem img {
    width: 600px;
    height: 900px;
    object-fit: fill;
    border-radius: 8px;
}

.personagem h3 {
    margin: 1rem 0 0.5rem;
    color: #7d5fff;
}

.personagem p {
    text-align: justify;
}

.personagem:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(125, 95, 255, 0.5);
}

/* Detalhes do Personagem */
.detalhes-personagem {
    padding: 2rem;
    background-color: #fff;
    margin: 2rem auto;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

.detalhes-personagem img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.detalhes-personagem h2 {
    margin-bottom: 1rem;
    color: #7d5fff;
}

.detalhes-personagem p {
    text-align: justify;
    margin-bottom: 1rem;
}

.detalhes-personagem button {
    padding: 0.5rem 1rem;
    background-color: #7d5fff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.detalhes-personagem button:hover {
    background-color: #4b4b8f;
}

/* Episódios Favoritos */
.episodios {
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
}

.temporada, .episodio {
    background-color: #fff;
    margin: 1rem;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 300px; 
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.episodio img {
    width: 100%; 
    height: 200px; 
    object-fit: cover;
    border-radius: 8px;
}

.temporada img {
    width: 100%; 
    height: 400PX; 
    object-fit: fill; 
    border-radius: 8px;
}

.temporada h3, .episodio h3 {
    margin: 1rem 0 0.5rem;
    color: #7d5fff;
}

.temporada p, .episodio p {
    text-align: justify;
    margin-bottom: 1rem;
}

.episodio button {
    padding: 0.5rem 1rem;
    background-color: #7d5fff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.episodio button:hover {
    background-color: #4b4b8f;
}

.temporada:hover, .episodio:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(125, 95, 255, 0.5);
}

/* Página de Contato */
.contato {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8); 
    margin: 6rem auto;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(250, 248, 248, 0.1);
    border-radius: 8px;
}

.contato h2 {
    margin-bottom: 1rem;
    color: #7d5fff;
}

.contato form {
    display: flex;
    flex-direction: column;
}

.contato form label {
    margin-bottom: 0.5rem;
    color: #333;
}

.contato form input,
.contato form textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #7d5fff;
    border-radius: 4px;
    background-color: #f4f4f4;
    color: #333;
}

.contato form button {
    padding: 0.5rem 1rem;
    background-color: #7d5fff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contato form button:hover {
    background-color: #4b4b8f;
}

/* Tema Escuro */
body.dark-mode {
    background-image: url('img/fundo.png'); 
    background-color: #1a1a1a;
    color: #fff; 
}

body.dark-mode header {
    background-color: #2c2c54;
}

body.dark-mode nav ul li a {
    color: #fff;
}

body.dark-mode nav ul li a:hover {
    color: #42c405;
}

body.dark-mode .introducao,
body.dark-mode .galeria .personagem,
body.dark-mode .detalhes-personagem,
body.dark-mode .temporada,
body.dark-mode .episodios .episodio,
body.dark-mode .contato {
    background-color: #2c2c54;
    color: #fff; 
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

body.dark-mode .contato form label,
body.dark-mode .contato form input,
body.dark-mode .contato form textarea {
    color: #42c405; 
}

body.dark-mode .detalhes-personagem button,
body.dark-mode .episodio button,
body.dark-mode .contato form button {
    background-color: #7d5fff;
}

body.dark-mode .detalhes-personagem button:hover,
body.dark-mode .episodio button:hover,
body.dark-mode .contato form button:hover {
    background-color: #4b4b8f;
}
