/* Updated 07/11/2025 at 08:47 AM CDT: Reinstated -webkit-text-size-adjust and -ms-text-size-adjust */
#thought-trade-wrapper.body.thought-trade-page, #thought-trade-wrapper.body.thought-trade-page.home {
    margin: 0;
    padding: 0;
    background: #000;
    color: #fff;
    font-family: 'Alegreya', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    text-transform: uppercase;
    -webkit-overflow-scrolling: touch;
    -webkit-text-size-adjust: 100%; /* Prevent Safari font scaling */
    -ms-text-size-adjust: 100%; /* Add for Microsoft browsers */
}

#thought-trade-wrapper.body.thought-trade-page .container {
    text-align: center;
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 800px;
    padding: 15px;
    box-sizing: border-box;
}

#thought-trade-wrapper.body.thought-trade-page .container h1 {
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: 0.15rem;
    margin-bottom: 0.5rem;
    animation: fadeIn 1.5s ease-in-out;
    text-shadow: 0 0 8px #7B68EE;
    border: 3px solid #7B68EE;
    border-radius: 4px;
    padding: 0.5rem;
    background: rgba(123, 104, 238, 0.2);
    color: #fff;
}

#thought-trade-wrapper.body.thought-trade-page .container h2 {
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: 0.1rem;
    margin-bottom: 0.7rem;
    animation: fadeIn 2s ease-in-out;
    text-shadow: 0 0 8px #008B97;
    border: 3px solid #008B97;
    border-radius: 4px;
    padding: 0.4rem;
    background: rgba(0, 139, 151, 0.2);
    color: #fff;
}

#thought-trade-wrapper.body.thought-trade-page .container p.tagline {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.07rem;
    line-height: 1.5;
    margin: 0 auto 1rem;
    max-width: 90%;
    animation: fadeIn 2.5s ease-in-out;
    color: #F4A261;
    border: 2px solid #F4A261;
    border-radius: 3px;
    padding: 0.4rem;
    background: rgba(244, 162, 97, 0.15);
}

#thought-trade-wrapper.body.thought-trade-page .container .cta {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    margin: 0.5rem;
    background: transparent;
    border: 3px solid #6B0022;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    touch-action: manipulation;
    min-width: 140px;
}

#thought-trade-wrapper.body.thought-trade-page .container .cta:hover {
    background: #6B0022;
    box-shadow: 0 0 10px #6B0022;
    transform: scale(1.08);
}

#thought-trade-wrapper.body.thought-trade-page canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    opacity: 0.75;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    #thought-trade-wrapper.body.thought-trade-page .container h1,
    #thought-trade-wrapper.body.thought-trade-page .container h2,
    #thought-trade-wrapper.body.thought-trade-page .container p,
    #thought-trade-wrapper.body.thought-trade-page .container .cta {
        animation: none;
    }
    #thought-trade-wrapper.body.thought-trade-page .container .cta:hover { transform: none; }
    #thought-trade-wrapper.body.thought-trade-page canvas { display: none; }
}

@media (max-width: 768px) {
    #thought-trade-wrapper.body.thought-trade-page .container h1 { font-size: 2.1rem; }
    #thought-trade-wrapper.body.thought-trade-page .container h2 { font-size: 1.6rem; }
    #thought-trade-wrapper.body.thought-trade-page .container p.tagline { font-size: 1rem; }
    #thought-trade-wrapper.body.thought-trade-page .container .cta { font-size: 0.95rem; padding: 0.55rem 1.4rem; }
}

@media (max-width: 480px) {
    #thought-trade-wrapper.body.thought-trade-page .container { padding: 8px; }
    #thought-trade-wrapper.body.thought-trade-page .container h1 { font-size: 1.8rem; letter-spacing: 0.12rem; }
    #thought-trade-wrapper.body.thought-trade-page .container h2 { font-size: 1.3rem; letter-spacing: 0.08rem; }
    #thought-trade-wrapper.body.thought-trade-page .container p.tagline { font-size: 0.9rem; letter-spacing: 0.05rem; }
    #thought-trade-wrapper.body.thought-trade-page .container .cta { 
        font-size: 0.85rem; 
        padding: 0.5rem 1.2rem; 
        margin: 0.3rem; 
        min-width: 120px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}