/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif; /* Modern font */
    background-color: #f9f9fb; /* Dark Charcoal */
    color: rgb(104, 106, 158); /* Smokey White */
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    padding-bottom: 60px;
    flex-grow: 1; /* Allows main content to grow and push the footer down */
}

footer {
    text-align: center;
    padding: 1rem 0;
    background: #333;
    color: #fff;
}
/* Additional styling for buttons */
#learnMoreBtn,
#ctaBtn,
#pricingBtn,
#subscribeBtn2,
#subscribeBtn,
#docsBtn {
    background-color: #7733f4; /* Adjust the color as needed */
    color: #fff;
    text-align: center;
    white-space: nowrap;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    line-height: 100%;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s, box-shadow 0.2s; /* Include background-color in the transition */
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Constant box shadow */
}

#ctaBtn,
#subscribeBtn2,
#pricingBtn,
#docsBtn{
    background-color: #49ad4d;
}


#learnMoreBtn:hover{
    background-color: #582abd;
}

#subscribeBtn:hover, #ctaBtn:hover {
    background-color: green; /* Color change on hover */
}

#ctaBtn,
#subscribeBtn2,
#pricingBtn,
#docsBtn{
    background-color: #49ad4d;
}

#learnMoreBtn,
#subscribeBtn2,
#pricingBtn,
#docsBtn{
    font-weight: bold;
    font-size: 1rem;
    margin: 1.5rem;
    box-shadow: 0 4px 4px black;
}

#learnMoreBtn:hover{
    box-shadow: 0 0px 0px #721bde;
}

/* Hover effect for the button */
#cta-section #subscribeBtn2:hover,
#pricingBtn:hover,
#docsBtn:hover{
    background-color: #3df276; /* Slightly darker purple on hover */
    box-shadow: 0 0px 0px #721bde;
}

/* Style the CTA section */
#cta-section {
    background-color: #6016BA;
    background-color: #331BDE;
    background-color: #285AC7;
    width: 100%; /* Full width */
    padding: 20px 0; /* Padding for top and bottom */
    margin: 0; /* Remove any default margin */
    margin-bottom: 1.5rem;
    text-align: center; /* Center the content */
    color: white; /* White text color */
}

/* Style the button inside the CTA section */
#cta-section #subscribeBtn2 {
    background-color: white;
    color: rgb(34, 33, 81);
    border: none; /* Remove border */
    padding: 10px 20px; /* Padding inside the button */
    text-transform: uppercase; /* Optional: Uppercase text */
    font-weight: bold; /* Optional: Bold font */
    cursor: pointer; /* Change cursor to pointer */
    transition: background-color 0.3s box-shadow 0.3s; /* Smooth transition for hover effect */
}

#cta-section h2{
    font-size: 4rem;
}

#cta-section p{
    font-size: 1.5rem;
}

#loginBtn{
    margin-right:2rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s box-shadow 0.3s;
}



/* Navigation Styles */
nav {
    font-size: 1.25rem;
    font-family: 'Open Sans', sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index:10000;
    display: grid;
    grid-template-columns: 0.5fr 6fr;
    justify-content: center;
    grid-template-rows: auto;
    box-shadow: 0 4px 4px rgb(14,14,14, 0.3);
    align-items: center;
    padding: 1.5rem 2rem;
    background: #005f73; /* Dark Blue */
    background: #721bde;
    background: #288DC7;
    color: #edf2f4; /* Light smokey white */
    flex-grow: 1;
    gap: 2rem;
}

nav a, .auth-links a, .auth-links button {
    justify-content: right;
    align-items: right;
    color: #edf2f4; /* Light smokey white */
    transition: color 0.3s box-shadow 0.2s ease; /* Smooth transition for hover effects */
}


nav .nav-container{
    display: grid;
    grid-template-columns: 6fr 1fr;
}

nav .nav-container, nav .nav-links, nav .user-auth, nav .auth-links {
    align-items: center; /* Vertical alignment */
    text-align: center;
    justify-content: center;
    width:100%
}

nav .nav-container{
}


nav a:hover, .auth-links a:hover, .auth-links button:hover {
    color: #83c5be; /* Light blue */
}

nav .logo{
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

nav .logo img {
    width: 30px; /* Adjust as needed */
    height: auto;
}

nav .nav-links li {
    display: inline;
    margin-left: 1.2rem;;
}

nav .nav-links a, .auth-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.auth-links button {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 0.5rem 1rem;
    margin: 0 auto;
    cursor: pointer;
}

.auth-links button:hover {
    background: #fff;
    color: #333;
}

/* Show class for toggling visibility */
.show {
    display: block;
}

/* Hide class for toggling visibility */
.hide {
    visibility: none;
}


.profile-icon img {
    width: 40px; /* Adjust as needed */
    cursor: pointer;
}


#subscription, #visualization {
    margin-bottom: 2rem;
}

button {
    background: #3a86ff; /* Bright blue */
    background: #DE8C1B;
    background: #288DC7;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s, box-shadow 0.2s; /* Include background-color in the transition */
    color: #fff;
    border: 2px solid white;
    padding: 0.75rem 1.5rem;
    margin: 0 auto;
    cursor: pointer;
    font-weight: bold;
}


button:hover {
    background: #2b6cb0; /* Darker shade of button color */
}
.remove-button {
    /* Your CSS styles here */
    background-color: #f44336; /* Example style: red background */
    color: white; /* Example style: white text */
    border: none; /* Example style: no border */
    padding: 10px; /* Example style: padding */
    margin: 10px;
    cursor: pointer; /* Example style: pointer cursor on hover */
    transition: background-color 0.3s ease;
}


/* Footer Styles */
footer {
    font-family: 'Open Sans', sans-serif;
    position:fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #005f73; /* Dark Blue */
    background: #721bde;
    background: #288DC7;
    text-align: center;
    padding: 1rem 0;
    color: #edf2f4;
}

.dropdown {
    display: none;
}

/* Improving tooltip readability */
.tooltip {
    position: absolute;
    text-align: center;
    width: auto; /* Adjust width automatically */
    height: auto; /* Adjust height automatically */
    padding: 8px; /* More padding for better readability */
    font: 14px 'Roboto', sans-serif; /* Larger font size */
    background: #4CAF50; /* Green background for better visibility */
    color: white; /* White text for contrast */
    border-radius: 8px;
    pointer-events: none;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* subtle shadow */
    opacity: 0.9; /* Slightly transparent */
}


@media (max-width: 768px) {
    .nav-links {
        display: none; /* Ensures it starts as hidden */
        /* Add additional styles for full-screen popup here */
    }

    .dropdown {
        display: block; /* Show dropdown menu */
        cursor: pointer;
        color: #fff;
    }
    .fullscreen-popup {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #fff;
        background: #1a1a1a;
    }

    .fullscreen-popup .nav-links {
        flex-direction: column;
    }

    .fullscreen-popup .nav-links li {
        margin: 10px 0;
    }

    .fullscreen-popup a {
        display: block;
        margin: 10px 0;
        padding: 10px 20px;
        background-color: #4CAF50;
        color: white;
        text-align: center;
        text-decoration: none;
        font-size: 20px;
        border-radius: 5px;
        transition: background-color 0.3s;
    }

    .fullscreen-popup a:hover {
        background-color: #45a049;
    }
    .fullscreen-popup a:hover {
        background-color: #45a049;
    }

    .fullscreen-popup .nav-links {
        flex-direction: column; /* Stack items vertically */
    }

    .fullscreen-popup .nav-links li {
        margin: 10px 0; /* Add some vertical spacing between items */
    }

}

nav .logo {
    position: relative; /* Relative position for the container */
    flex-grow: 0;
    display: flex;
    justify-content: left;
    align-items: left;
}

nav .logo img {
    position: absolute; /* Absolute position for the logo image */
    width: auto; /* Adjust size as needed */
    height: 60px; /* Adjust size as needed */
    object-fit: contain;
    top: 50%; /* Center vertically */
    left: 0%; /* Center horizontally */
    transform: translate(0%, -50%); /* Offset by half its size for perfect centering */
}

nav .nav-links a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #83c5be; /* Link underline color */
    transition: width 0.3s ease;
}

nav .nav-links a:hover::after {
    width: 100%;
}

nav .nav-links a:hover {
    color: #83c5be; /* Change text color on hover */
}

nav .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Slight white tint */
    padding: 5px 10px;
    border-radius: 5px; /* Rounded corners for a smooth look */
}

.auth-button-container {
    /* Instead of position: relative; */
    display: flex;
    align-items: right;
    justify-content: right;
}

.auth-button {
    /* Remove position: absolute; */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-button.show {
    opacity: 1;
    pointer-events: auto;
}

#announcement-banner {
    background-color: #f9f9f9; /* Change to your preferred color */
    color: #333; /* Text color */
    text-align: center;
    padding: 0px 0;
    font-size: 12px;
    margin-top: 1.5rem; /* Replace [NAVBAR_HEIGHT] with the actual height of your navbar */
}

#announcement-banner a {
    color: #007bff; /* Link color */
    text-decoration: none;
    font-weight: bold;
}


/* Optional: Add hover effect */
#announcement-banner a:hover {
    text-decoration: underline;
}
nav {
    /* Your existing navbar styles */
    margin-bottom: 0; /* Remove margin if present */
}


#announcement-banner {
    background-color: teal; /* Teal background */
    color: #fff; /* White text for contrast */
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
}

#announcement-banner a {
    color: #fff; /* White link color */
    text-decoration: none;
    font-weight: bold;
}

#announcement-banner .arrow {
    margin-right: 5px; /* Space between arrow and text */
    /* Additional styling for the arrow as needed */
}

/* Optional: Add hover effect */
#announcement-banner a:hover {
    text-decoration: underline;
}


@media (max-width: 600px) {
    #announcement-banner {
        font-size: 14px;
        padding: 8px 0;
    }
}

nav {
    display: grid;
    grid-template-rows: auto 30px; /* Two rows: one for the main nav and one for the announcement banner */
    grid-template-columns: auto 2fr auto;
    gap: 0;
    align-items: center;
}

nav .logo {
    width: 250px;
    grid-column: 1; /* Place the logo in the first column */
    margin-bottom:1rem;
}

nav .nav-container {
    grid-row: 1; /* Main nav in the first row */
    grid-column: 2; /* Main nav in the second column */
}

.auth-button-container{
    width:250px;
}

#announcement-banner {
     grid-row: 2; /* Announcement banner in the second row */
    background-color: teal; /* Teal background */

    grid-column: 1 / -1; /* Stretches from the first to the last line */
    padding: 10px 0; /* Adjust padding as necessary */
    font-size: 16px; /* Adjust font size as necessary */
    background-color: teal; /* Teal background */
    color: #fff; /* White text for contrast */
    text-align: center;
    width: calc(100% + 4rem); /* Full width including the negative space of padding */
    margin-left: -2rem; /* Offset the left padding of the nav */
}

#announcement-banner {
    background-color: teal; /* Teal background */
    color: #fff; /* White text for contrast */
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
    order: 2; /* Ensure it comes after the main nav content */
}

/* Styling for the link and arrow inside the announcement banner */
#announcement-banner a {
    color: #fff; /* White link color */
    text-decoration: none;
    font-weight: bold;
}

#announcement-banner .arrow {
    margin-right: 5px; /* Space between arrow and text */
}

/* Optional: Add hover effect */
#announcement-banner a:hover {
    text-decoration: underline;
}

/* Add this to remove the space below the announcement banner */
nav, #announcement-banner {
    margin-bottom: 0;
    padding-bottom: 1rem;
}

/* Your existing media queries and other styles */

#announcement-banner {
    background-color: teal; /* Teal background */
    color: #fff; /* White text for contrast */
    text-align: center;
    padding: 10px 2rem; /* Adjust left and right padding to match the nav */
    font-size: 16px;
    grid-column: 1 / -1; /* Spanning full width */
    white-space: nowrap; /* Prevents the text from wrapping */
    overflow: hidden; /* Prevents content from spilling outside the banner */
    text-overflow: ellipsis; /* Adds an ellipsis if the text is too long */
}

#announcement-banner a {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%; /* Prevents the link from overflowing the banner */
    overflow: hidden; /* Hides any overflow */
    text-overflow: ellipsis; /* Adds an ellipsis if the text is too long */
}

.soft-cta {
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
}

.soft-cta button {
    margin: 0.5rem auto;
    display: block;
}



@media (max-width: 900px) {

    nav .logo{
        width: auto;
    }

    .auth-button-container{
        width: auto;
    }

    nav .nav-container {
        display: flex;
        flex-grow: 0;
        justify-content: right; /* This will push the dropdown to one side */
        align-items: right;
        text-align: right;
    }

    .nav-links {
        display: none; /* Ensures the navigation links are hidden on smaller screens */
    }

    .dropdown {
        display: block; /* Ensure the dropdown is visible */
        padding-left: 10%;
    }
    #cta-section p{
       font-size:1rem; 
    }
    #cta-section h2{
       font-size:2rem;
    }
}

@media (max-width: 600px) {
    nav {
        grid-template-columns: 1fr auto;
        padding: 1rem;
    }

    nav .logo img {
        width: 120px;
    }

    #cta-section h2 {
        font-size: 1.5rem;
    }

    #cta-section p {
        font-size: 0.9rem;
    }

    #learnMoreBtn,
    #ctaBtn,
    #pricingBtn,
    #subscribeBtn2,
    #subscribeBtn,
    #docsBtn {
        font-size: 0.9rem;
        margin: 0.5rem;
    }

    .feature-list {
        flex-direction: column;
        align-items: center;
    }
}

#tradingview-chart {
    width: 100%;
    height: 100%;
    flex: 1;
}

.chart-modal-overlay {
    position: fixed;
    top: 8vh;
    left: 8vw;
    width: 84vw;
    height: 84vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.chart-modal-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

