/* CSS RETRO PARA PÁGINA DE CUMPLEAÑOS */

* {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.4;
    overflow-x: hidden;
    background-color: #000000;
    position: relative;
    touch-action: manipulation;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./background.gif');
    background-repeat: repeat;
    opacity: 0.6;
    z-index: -1;
    animation: rainbow 30s ease infinite;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    display: none; /* Oculto por defecto hasta después del alert */
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px;
    margin: 10px 0;
}

td {
    vertical-align: top;
    word-wrap: break-word;
    padding: 10px;
}

/* Birthday Message Styling */
.birthday-message {
    text-align: center;
    line-height: 1.8;
}

.birthday-message p {
    margin: 20px 0;
    font-size: 18px;
}

.birthday-message .blink {
    font-size: 24px;
    font-weight: bold;
    color: #ff1493;
}

/* Decorations */
.decorations {
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 30px;
    padding: 20px 0;
}

/* Animations */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.blink {
    animation: blink 1s linear infinite;
}

/* Título del header en amarillo */
.header-table .blink {
    color: #ffff00 !important;
}

.spinning {
    animation: spin 2s linear infinite;
    display: inline-block;
}

/* Table Effects */
.header-table {
    box-shadow: 0 0 20px #ff69b4;
}

.main-table {
    box-shadow: 0 0 15px #ff1493;
}

.footer-table {
    box-shadow: 0 0 10px #00ff00;
}

/* Hover Effects */
table:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Prevenir zoom en todos los elementos */
* {
    touch-action: manipulation;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .container {
        padding: 5px;
    }
    
    .birthday-message p {
        font-size: 16px;
        margin: 15px 0;
    }
    
    .birthday-message .blink {
        font-size: 20px;
    }
    
    .decorations {
        font-size: 24px;
        flex-wrap: wrap;
    }
    
    font[size="6"] { font-size: 20px !important; }
    font[size="4"] { font-size: 16px !important; }
    font[size="3"] { font-size: 14px !important; }
    
    marquee {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 2px;
    }
    
    .birthday-message p {
        font-size: 14px;
        margin: 10px 0;
    }
    
    .birthday-message .blink {
        font-size: 18px;
    }
    
    .decorations {
        font-size: 20px;
    }
    
    font[size="6"] { font-size: 18px !important; }
    font[size="4"] { font-size: 14px !important; }
    font[size="3"] { font-size: 12px !important; }
    
    td {
        padding: 5px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #ff69b4;
}

::-webkit-scrollbar-thumb {
    background: #ff1493;
    border: 2px solid #ffff00;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff0000;
}

/* Text Selection */
::selection {
    background-color: #ff69b4;
    color: #ffffff;
}

::-moz-selection {
    background-color: #ff69b4;
    color: #ffffff;
}

/* Weather Widget */
#weather {
    font-weight: bold;
    text-align: center;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .blink, .spinning {
        animation: none;
    }
    
    marquee {
        animation: none;
    }
    
    * {
        transition: none !important;
    }
}

/* High Contrast */
@media (prefers-contrast: high) {
    body {
        background: #000000 !important;
        color: #ffffff !important;
    }
    
    table {
        border: 3px solid #ffffff !important;
    }
} 
