
:root {
    --cor-principal: #c4bc8a;
    --cor-fundo: #0d0d0d;
    --cor-branco: #ffffff;
    --cor-hover: #b0aa8b;
    --fonte-principal: 'EB Garamond', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-principal);
    font-family: var(--fonte-principal);
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--cor-fundo);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 100;
    border-bottom: 1px solid #333;
}

header img {
    height: 50px;
}

/* Menu desktop */
nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--cor-principal);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--cor-branco);
}

/* Menu mobile */
#btn-mobile {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

#hamburger {
    width: 25px;
    height: 2px;
    background: var(--cor-principal);
    display: block;
    position: relative;
}

#hamburger::before,
#hamburger::after {
    content: '';
    width: 25px;
    height: 2px;
    background: var(--cor-principal);
    position: absolute;
    left: 0;
    transition: 0.3s;
}

#hamburger::before {
    top: -8px;
}

#hamburger::after {
    top: 8px;
}

@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background-color: var(--cor-fundo);
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 20px 0;
    }

    nav ul.active {
        display: flex;
    }

    #btn-mobile {
        display: block;
    }
}

/* Conteúdo */
.container {
    padding: 140px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.content {
    text-align: center;
    margin-bottom: 40px;
}

.content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.content p {
    font-size: 18px;
    color: var(--cor-branco);
}

/* Cards */
.personagens {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card h3 {
    color: var(--cor-principal);
    margin-bottom: 10px;
}

.card p {
    color: var(--cor-branco);
    font-size: 16px;
    line-height: 1.5;
    text-align: justify;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--cor-fundo);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.5s ease;
}

.modal-content img {
    width: 200px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-content h3 {
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--cor-branco);
    text-align: justify;
}

.close {
    color: var(--cor-principal);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--cor-branco);
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: var(--cor-principal);
    border-top: 1px solid #333;
    margin-top: 40px;
}
