body, html {
    width: 100vw;
    overflow-x: hidden; /* Prevent horizontal scrolling globally */
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #f0f8ff;
    font-family: 'Arial', sans-serif;
    position: relative;
    display: flex;
    flex-direction: column;
}

.text-line {
    color: #0066cc;
    font-size: 24px;
    font-weight: 300;
    position: relative;
    padding: 20px;
    animation: fadeIn 2s ease-in-out;
}

.portal-container {
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);  /* Ensures content takes full height minus footer */
    padding: 20px 0;  /* Add some padding */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    overflow-y: scroll; /* Change from auto to scroll */
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
    touch-action: pan-y; /* Enable vertical touch scrolling */
    box-sizing: border-box;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(100, 180, 255, 0.2);
    animation: float 8s infinite ease-in-out;
}

.footer {
    margin-top: auto;  /* Pushes footer to the bottom */
    position: relative; /* Changed from absolute to relative */
    bottom: 0;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 2;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    50% { transform: translate(50px, -30px) scale(1.2); opacity: 0.4; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
}