/* Text Window Styles */
.text-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 800px;
    max-height: 80vh;
    padding: 2rem;
    color: white;
    z-index: 1000;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -1px -1px 4px rgba(0, 0, 0, 0.8);
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    background-color: transparent !important;
}

.text-window::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.text-window h2 {
    font-family: 'BebasNeueRegular', 'Arial Narrow', Arial, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: center;
}

.text-window p {
    font-family: Arial, sans-serif;
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .text-window {
        width: 80%;
        padding: 1.5rem;
        max-height: 70vh;
        margin: 1rem;
        background: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .text-window h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .text-window p {
        font-size: 1rem;
        line-height: 1.4;
    }
}

@media screen and (max-width: 480px) {
    .text-window {
        width: 75%;
        padding: 1.25rem;
        max-height: 60vh;
        margin: 0.75rem;
        background: transparent !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .text-window h2 {
        font-size: 1.6rem;
    }

    .text-window p {
        font-size: 0.95rem;
        line-height: 1.3;
    }
}
