body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f5f5f5;
    /* font-size: 14px; */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

.header {
    position: fixed;
    background: #f5f5f5;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    z-index: 99;
}

.title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
}


@keyframes title-in {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.content-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;    
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    margin-top: 80px; /* Adjust this value based on your header height */

}

.content-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.content-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    width: 100%;
    text-align: center;
}

.content-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.content-item p {
    margin: 1rem 0;
    line-height: 1.6;
    color: #374151;
}

.content-move {
    transition: transform 0.8s ease;
}

.content-enter-active {
    animation: content-in 0.6s ease-out;
}

.content-leave-active {
    animation: content-out 0.6s ease-in;
    
}

@keyframes content-in {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes content-out {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}


.connection-status {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.connection-status.connected {
    background-color: #10B981;
    color: white;
}

.connection-status.disconnected {
    background-color: #EF4444;
    color: white;
}

.connection-status.connecting {
    background-color: #F59E0B;
    color: white;
}

.prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.prompt-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.prompt-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.prompt-overlay.visible .prompt-container {
    transform: translateY(0);
}

.prompt-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.prompt-input:focus {
    outline: none;
    border-color: #000000;
}

.prompt-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.prompt-button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prompt-button.submit {
    background: #3B82F6;
    color: white;
    border: none;
}

.prompt-button.submit:hover {
    background: #2563EB;
}

.prompt-button.cancel {
    background: white;
    color: #374151;
    border: 1px solid #E5E7EB;
}

.prompt-button.cancel:hover {
    background: #F3F4F6;
}

/* Add these styles at the end of your existing CSS */

.about-button {
    position: fixed;
    top: 4rem;
    left: 1rem;
    background: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    /* z-index: 999; */
}

.about-button:hover {
    transform: translateY(-1px);
}

.about-head-button {
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    color: #868686;
    background: none;
}

.about-head-button:hover {
    color: #202020;
}

.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 245, 245, 0.98); /* Light background instead of semi-transparent */
    display: flex;
    justify-content: center;
    align-items: start; /* Changed from center to start */
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.about-content {
    background: none; /* Remove background since overlay is nearly opaque */
    padding: 1rem;
    width: 100%;
    /* font-size: 0.9rem; */
    max-width: 980px;
    margin: 70px auto 2rem auto; /* Add margin-top to account for header */
    height: calc(100vh - 80px); /* Full height minus header */
    overflow-y: auto;
    box-shadow: none; /* Remove shadow */
}

.about-content img {
    margin-bottom: 0.5rem;
}

/* Add smooth scrolling to about content */
.about-content {
    scroll-behavior: smooth;
}

/* Style the close button to be fixed at the bottom */
.about-content .prompt-buttons {

    padding: 0rem;
    padding-bottom: 2rem;
    background: rgba(245, 245, 245, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
}

.about-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.about-content h2 {
    margin-top: 0;
    color: #1F2937;
}

.about-content p {
    line-height: 1.6;
    color: #374151;
    margin: 0.5rem 0;
}

.about-content p.sep {
    line-height: 1;
    color: #374151;
    margin: 0;
    font-size: 0.7rem;
}

.about-content code {
    background: #F3F4F6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.about-content a {
    color: #000000;
    text-decoration: underline;
}

.copy {
    display: inline-block;
    font-size: .95rem;
    transform: scaleX(-1);
    vertical-align: super;
  }

.loading-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media(max-width: 720px) {
    .about-content img {
        width:100%;
        height:auto;
        display: none;
    }
    .content-container {
        margin-top:100px
    }
}
