* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    /* Gradiente suavizado para melhor compatibilidade */
    background: linear-gradient(135deg, #667eea 0%, #7060a0 50%, #764ba2 100%);
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
}

/* Espaço para o contador no topo */
.countdown-spacer {
    height: 100px;
    width: 100%;
}

.container {
    position: relative;
    min-height: 100vh;
    /* Adicionado padding lateral para evitar que os cards toquem as bordas */
    padding: 30px 20px 60px;
    z-index: 1;
}

/* Sistema Solar Animado - Canto direito da tela */
.solar-system {
    position: fixed;
    /* Altere estes valores para posicionar */
    top: -150px;
    right: -150px;

    /* Altere estes valores para aumentar o tamanho */
    width: 500px;
    height: 500px;

    z-index: -1;
    pointer-events: none;
}

.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    animation: sunRotate 10s linear infinite;
}

.sun-rays {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    top: -25%;
    left: -25%;
    animation: sunGlow 3s ease-in-out infinite alternate;
}

.sun-core {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff9800, #ffc107);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(24px, 3vw, 60px);
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.orbit {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-1 {
    width: 120px;
    height: 120px;
    animation: orbitRotate 15s linear infinite;
}

.orbit-2 {
    width: 160px;
    height: 160px;
    animation: orbitRotate 25s linear infinite reverse;
}

.orbit-3 {
    width: 200px;
    height: 200px;
    animation: orbitRotate 35s linear infinite;
}

.planet {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    top: -12.5px;
    left: 50%;
    transform: translateX(-50%);
}

/* Seção Principal */
.main-invite {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    /* Prefixo para compatibilidade com Safari */
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 60px auto;
    max-width: 800px;
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.invite-content {
    max-width: 100%;
    z-index: 15;
    position: relative;
}

.theme-section {
    margin-bottom: 35px;
}

.title {
    font-weight: 700;
    background: linear-gradient(45deg, #ffd700, #ffab00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite alternate;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 25;
}

.line-1 {
    font-size: clamp(3.5rem, 6vw, 5rem);
    line-height: 1;
    display: block;
}

.line-2 {
    font-size: clamp(4rem, 7vw, 6rem);
    line-height: 1;
    display: block;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.sparkle {
    animation: sparkleAnimation 2s ease-in-out infinite;
}

.birthday-boy {
    margin-bottom: 40px;
}

.birthday-boy h2 {
    font-size: 4rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: bounceIn 1s ease-out;
}

.age-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    padding: 15px 25px;
    border-radius: 50px;
    margin-top: 10px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.age-badge .number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-right: 10px;
}

.age-badge .text {
    font-size: 1.2rem;
    font-weight: 600;
}

.party-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 1s ease-out;
}

.detail-item i {
    font-size: 1.5rem;
    color: #ffd700;
}

.detail-item span {
    font-weight: 600;
    font-size: 1.1rem;
}

.invitation-text {
    margin-top: 30px;
    animation: fadeInUp 1.5s ease-out;
}

.invitation-text p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Seções */
section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

section h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #ffd700;
}

/* Localização */
.location-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 60px auto;
    max-width: 800px;
    padding: 50px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.map-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.map-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.map-content i {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

.map-content h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: #ffd700;
}

.map-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 3px;
}

.map-content p:last-of-type {
    margin-top: 10px;
    font-weight: 500;
    color: #ffd700;
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.map-button {
    display: inline-block;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.map-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* Confirmação */
.confirmation-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    margin: 60px auto;
    max-width: 800px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: pulse 3s ease-in-out infinite;
}

.confirmation-section h3 {
    font-size: 2.2rem;
    color: #ffd700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.confirmation-section p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.confirmation-section p strong {
    font-weight: 700;
    color: #ffd700;
    font-size: 1.2rem;
}

.confirmation-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.confirmation-note {
    font-style: italic;
    opacity: 0.9;
    margin-top: 25px;
}

.whatsapp-button {
    display: inline-block;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    margin-top: 5px;
    min-width: 220px;
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-button i {
    margin-right: 10px;
    font-size: 1.5rem;
}

.decline-button {
    background: linear-gradient(45deg, #6c757d, #495057);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.decline-button:hover {
    box-shadow: 0 12px 35px rgba(108, 117, 125, 0.4);
}

/* Galeria */
.gallery-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 60px auto;
    max-width: 800px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.gallery-placeholder {
    padding: 40px;
    opacity: 0.7;
}

.gallery-placeholder i {
    font-size: 4rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.gallery-placeholder p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Elementos Flutuantes */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star,
.balloon {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.star-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.star-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.star-3 {
    top: 60%;
    left: 5%;
    animation-delay: 2s;
}

.star-4 {
    top: 80%;
    right: 20%;
    animation-delay: 3s;
}

.star-5 {
    top: 40%;
    right: 10%;
    animation-delay: 4s;
}

.balloon-1 {
    bottom: 10%;
    left: 20%;
    animation-delay: 0.5s;
}

.balloon-2 {
    bottom: 30%;
    right: 25%;
    animation-delay: 1.5s;
}

.balloon-3 {
    bottom: 50%;
    left: 15%;
    animation-delay: 2.5s;
}

.turtle {
    position: absolute;
    bottom: 5%;
    right: 10%;
    font-size: 3rem;
    animation: bounce 3s ease-in-out infinite;
}

/* Animações do Sistema Solar */
@keyframes sunRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes sunGlow {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes orbitRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Estilos para mensagens pós-prazo de confirmação */
.late-notice {
    color: #ff9800;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 8px;
    position: relative;
    background: rgba(255, 152, 0, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 152, 0, 0.3);
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

.late-confirmation {
    border-color: rgba(255, 152, 0, 0.4);
}

/* Estilos para mensagens pós-evento */
.post-event-message {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}

.post-event-message p {
    font-size: 1.2rem !important;
    line-height: 1.7;
    margin-bottom: 12px;
}

.memory-icon {
    font-size: 3.5rem;
    margin: 25px 0 15px;
    color: #ffd700;
    animation: celebration 3s infinite;
}

@keyframes celebration {
    0% {
        transform: scale(1) rotate(0);
    }

    25% {
        transform: scale(1.1) rotate(5deg);
    }

    50% {
        transform: scale(1) rotate(0);
    }

    75% {
        transform: scale(1.1) rotate(-5deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

.post-event h3 i {
    color: #ff6b6b;
}

/* Estilos para a galeria pós-evento */
.memories-container {
    padding: 30px;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

.memories-container i.fa-star {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 15px;
    display: inline-block;
    animation: twinkle 2s infinite;
}

@keyframes twinkle {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

.memories-container h4 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.memory-buttons {
    margin-top: 30px;
}

.memory-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #405de6, #833ab4, #e1306c);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(64, 93, 230, 0.3);
}

.memory-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(64, 93, 230, 0.5);
}

.post-event .gallery-placeholder {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Créditos JMsoluções web */
.credits {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
}

/* Instagram Flutuante - Versão Robusta */
.floating-instagram {
    position: fixed;
    left: 20px;
    /* Posicionado à esquerda conforme requisito */
    bottom: 20px;
    z-index: 1000;
    background: linear-gradient(45deg, #405de6, #833ab4, #e1306c, #fd1d1d);
    color: #fff;
    border-radius: 50%;
    width: 60px;
    /* Tamanho desktop */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
    animation: floatAnimation 3s ease-in-out infinite;
}

.floating-instagram:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 24px rgba(214, 36, 159, 0.4);
    color: #fff;
}

.floating-instagram .fab.fa-instagram {
    display: inline-block;
}

.floating-instagram .instagram-svg {
    display: none;
    /* Oculto por padrão, exibido via JS se Font Awesome falhar */
    width: 32px;
    height: 32px;
}

.floating-instagram .instagram-unicode,
.floating-instagram .instagram-text {
    display: none;
    /* Ocultos por padrão, exibidos via JS se outros fallbacks falharem */
    font-size: 1.8rem;
}

.floating-instagram .instagram-text {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Acessibilidade - oculta visualmente mas mantém para leitores de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animação de flutuação */
@keyframes floatAnimation {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .floating-instagram {
        width: 50px;
        /* Tamanho menor para mobile */
        height: 50px;
        font-size: 1.8rem;
    }

    .floating-instagram .instagram-svg {
        width: 26px;
        height: 26px;
    }

    .floating-instagram .instagram-text {
        font-size: 1.2rem;
    }
}

.credits-content {
    max-width: 600px;
    margin: 0 auto;
}

.credits-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.credits-content strong {
    color: #ffd700;
    font-weight: 700;
}

.credits-button {
    display: inline-block;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    margin-top: 15px;
}

.credits-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.credits-button i {
    margin-right: 8px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .countdown-spacer {
        height: 80px;
    }

    .container {
        padding: 20px 25px 40px;
        /* Ajusta o padding do container para tablet */
    }

    .main-invite,
    .location-section,
    .confirmation-section,
    .gallery-section,
    .credits {
        padding-left: 0;
        /* Remove o padding lateral dos cards */
        padding-right: 0;
        /* Remove o padding lateral dos cards */
        margin-left: 0;
        /* Remove a margem lateral dos cards */
        margin-right: 0;
        /* Remove a margem lateral dos cards */
        width: 100%;
        /* Faz os cards ocuparem todo o espaço do container */
        max-width: 100%;
        /* Garante que não ultrapassem o container */
    }

    .invite-content {
        padding: 0 20px;
        /* Adiciona um padding interno para o conteúdo não colar nas bordas do card */
    }

    .title {
        font-size: clamp(3rem, 5vw, 4rem);
    }

    .line-1 {
        font-size: clamp(3rem, 5vw, 4rem);
    }

    .line-2 {
        font-size: clamp(3.5rem, 6vw, 5rem);
    }

    .birthday-boy h2 {
        font-size: 3rem;
    }

    .party-details {
        flex-direction: column;
        align-items: center;
    }

    .detail-item {
        width: 100%;
        justify-content: center;
    }

    .map-content i {
        font-size: 2.5rem;
    }

    .map-content h4 {
        font-size: 1.2rem;
    }

    .map-content p {
        font-size: 0.85rem;
    }

    .whatsapp-button {
        padding: 15px 25px;
        font-size: 1rem;
        margin: 10px 0;
        min-width: 200px;
    }

    .confirmation-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .credits-content {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .countdown-spacer {
        height: 70px;
    }

    .container {
        padding: 20px 15px 30px;
        /* Diminui o padding do container para celular */
    }

    .invite-content {
        padding: 0 15px;
        /* Ajusta o padding interno para celular */
    }

    .title {
        font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    }

    .line-1 {
        font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    }

    .line-2 {
        font-size: clamp(3rem, 5vw, 4rem);
    }

    .birthday-boy h2 {
        font-size: 2.5rem;
    }

    .party-details {
        flex-direction: column;
        align-items: center;
    }

    .detail-item {
        width: 100%;
        justify-content: center;
    }

    .map-content i {
        font-size: 2rem;
    }

    .map-content h4 {
        font-size: 1.1rem;
    }

    .map-content p {
        font-size: 0.8rem;
    }

    .whatsapp-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .credits-content {
        padding: 0 10px;
    }
}