* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
    background-color: #0d1b2a;
    color: #ffffff;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

h2 {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
    font-size: 2em;
    margin-top: 30px;
    text-align: center;
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

h4 {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
    animation: glow 2s ease-in-out infinite alternate;
}

/* Seção Planetas */
#Planetas div {
    clear: both;
    margin-bottom: 100px;
}

#Planetas img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-right: 40px;
    float: left;
}

#Planetas p {
    font-size: 1em;
    line-height: 1.5;
    margin-left: 180px;
    margin-top: 10px;
}

.secao {
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    padding: 30px;
    margin: 40px auto;
    max-width: 900px;
    animation: fadeIn 1.5s ease-in-out;
}

.secao h2 {
    color: #00d9ff;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.secao p,
.secao li {
    color: #f0f0f0;
    font-size: 1.1em;
    line-height: 1.7;
}

.secao ul {
    margin-left: 20px;
    list-style: disc;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

strong {
    font-weight: bold;
}

ul {
    margin-top: 10px;
    margin-left: 20px;
}

ul li {
    margin-bottom: 5px;
}

/* ======== Estilo Adicional para Explorações Espaciais & Teorias ======== */

.exploracoes {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.exploracoes h2 {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

.exploracoes p strong:first-child {
    font-size: 1.2rem;
    color: #00bfff;
    display: block;
    margin-top: 1.5rem;
}

.exploracoes ul {
    list-style-type: "🛰️ ";
    padding-left: 1.2rem;
}

.exploracoes ul li {
    margin-bottom: 8px;
}

.exploracoes strong {
    color: #f0a500;
}

.exploracoes p {
    text-align: justify;
    margin-bottom: 1rem;
}

/* Animação nos títulos */
@keyframes glow {
    from {
        text-shadow: 0 0 10px #ffd700, 0 0 20px #ffdf00;
    }

    to {
        text-shadow: 0 0 20px #19c5ae, 0 0 40px #264cca;
    }
}

/* Cards da galeria */
.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

.card {
    width: 300px;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background-color: #0f2338;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card div {
    padding: 10px;
}

.card strong {
    display: block;
    margin-bottom: 10px;
}

.card small {
    color: #aaa;
}

/* Rodapé */
.footer {
    color: #e0e0e0;
    padding: 2rem 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    font-family: 'Segoe UI', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-text {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #dae907;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #dae907;
    text-shadow: 0 0 5px #1db937;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    #Planetas img {
        float: none;
        display: block;
        margin: 0 auto 20px;
    }

    #Planetas p {
        margin-left: 0;
        text-align: center;
    }

    .gallery-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }

    .secao, .exploracoes {
        padding: 20px 10px;
    }

    h1, h2 {
        font-size: 1.5em;
    }
}
