.welcome-heading {
    font-family: 'Patrick Hand';
    font-size: 12px;
    font-weight: bold;
    color: rgba(2, 19, 2, 0.993); /* Green color */
}

.header-container{

    position:relative;

    display:flex;
    flex-direction: column;
    padding: 10px 0;
}

.header-main-row {
    display: flex;

    justify-content:space-between;

    align-items:center;
    padding: 0 30px;

    gap:20px;
}
@media (max-width:768px){

.header-container{

    padding:10px 12px;

}

}

/* Center container: Column layout */
.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px; /* Pushes the container down */
    
}

.subscription-note {
    color: rgb(73, 71, 71);
    font-size: 12px;
    font-family: 'Patrick Hand';
    margin: 0;
}

.topics-scroll-area {
    width: 100%;
    height: 150px;
    border: 1px solid #ccc;
    overflow: auto;
    padding: 0;
    background: #ffffff;
    box-sizing: border-box;
    border-radius: 8px; /* Add rounded corners */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Add a subtle shadow */
}

.topics-scroll-content {
    display: flex;
    flex-direction: column;
    white-space: nowrap;    /* Enables horizontal scrolling */
}

.scroll-row {
    padding: 6px 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;   /* Change to a lighter, solid separator */
    user-select: text;                /* Text inside row selectable */
    transition: background-color 0.3s ease; /* Smooth transition for hover */
}

.scroll-row:nth-child(even) {
    background-color: #f8f9fa; /* A very light grey for a subtle effect */
}

.scroll-row:hover {
    background: #e9ecef; /* A slightly darker hover effect */
}

.scroll-row.selected {
    background: #cfe2ff;              /* A pleasant blue for selection */
    font-weight: 600;
    border-left: 3px solid #0d6efd; /* Add a left border to highlight selection */
    padding-left: 7px; /* Adjust padding to account for the new border */
}


#TripleDashMenuContainer {
    position: fixed;
    top: 0;
    right: 0;
    padding: 10px;
    z-index: 9999;
}

.learn-more-btn {
    padding: 5px 10px;
    font-size: 16px;
    cursor: pointer;
}

/* Logo styling */
.logo{

    width:100px;

    height:auto;

}
/* App name styling - center the app name */
.app-name {
    position: absolute;
    top: 10px;         /* Align vertically with the logo */
    left: 50%;         /* Position the app name at the center horizontally */
    transform: translateX(-50%);  /* Adjust the centering by shifting it back by 50% of its width */
    width: 200px;      /* Adjust size as needed */
    height: auto;
}

.view-area-container {
    display: flex;
    gap: 5px; /* Horizontal distance between the two areas */
    margin-left: 5px; /* Adds left margin to the whole container */
    margin-right: 5px; /* Adds right margin to the whole container */
}

.view-area {
    background-color: #f9f9f9;
    overflow: auto;
    border: 1px solid #ccc;
    padding: 2px;
    box-sizing: border-box;
    white-space: pre-wrap;
    font-family: 'Patrick Hand'; /* Handwritten font */
    font-weight: bold; /* Set font weight to normal */
    font-size: 14px;
}

/* Social area below both */
.social-area {
    border: 1px solid #ccc;
    padding: 4px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    font-family: 'Patrick Hand';
    font-size: 14px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.left-links {
    color: #336699;
    font-weight: bold;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px; /* small spacing between items */
    padding: 4px;
    margin: 4px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    color: #333;
    background-color: #f0f0f0;
    text-decoration: none;
}

.social-icon:hover {
    color: #0077b5;
}

.social-icon:nth-child(1):hover {
    color: #1DA1F2;
}
@media (max-width:768px) {

    .header-container {
        padding: 8px 12px;
    }
}


.research-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
    border: 1px groove gray;
    border-radius: 10px;
    padding: 10px;
    width: fit-content;
    align-self: center;
}

#research-input {
    padding: 3px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    color: rgb(57, 54, 54);
    padding-right: 40px; /* Space for the clear button and datalist arrow */
    box-sizing: border-box;
}

.search-wrapper {
    position: relative;
    width: 220px;
    display: flex;
    align-items: center;
}

#clear-research-input {
    position: absolute;
    right: 22px; /* Positioned to the left of the datalist arrow */
    cursor: pointer;
    color: #999;
    font-weight: bold;
    font-size: 18px;
    display: none; /* Hidden by default */
    user-select: none;
}

#research-input::placeholder {
    color: rgb(183, 181, 181);
}

#researchButton {
    background-color: #4CAF50; /* Green */
    color: white;
    box-shadow: none;
    padding: 5px 10px;
    font-size: 10px;
    cursor: pointer;
    border: none;
}


#main-page-plot-container {
    text-align: center;
    margin: 20px;
    padding: 10px;
    border: 1px groove gray;
    border-radius: 10px;
    background: linear-gradient(to bottom, #e5ecf7, #d4e0f2);
    box-sizing: border-box;
}

/* Desktop constraints to prevent excessive width */
@media (min-width: 768px) {
    #main-page-plot-container {
        max-width: 850px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* Desktop layout */
@media (min-width: 768px) {
    .view-area-container {
        flex-direction: row; /* Side-by-side layout */
    }

    .view-area {
        flex: 1;
        height: 400px; /* Adjust height as needed */
        width: auto;
    }
}

/* Mobile layout */
@media (max-width: 767px) {
    .view-area-container {
        flex-direction: column; /* Stack the view areas vertically */
        height: 70vh; /* Full viewport height */
    }

    #ViewArea_1 {
        width: 100%;
        align-self: flex-start;
        height: 48%; /* Occupies 48% of the screen height */
    }

    #ViewArea_2 {
        width: 100%;
        align-self: flex-end;
        height: 48%; /* Occupies 48% of the screen height */
    }
}

.triple-dot {
    cursor: pointer;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 2px;
}

/* Desktop View: Show Vertical Triple Dots */
.triple-dot.vertical {
    display: inline-block;
}

.triple-dot.horizontal {
    display: none;
}

/* Mobile View: Show Horizontal Triple Dots */
@media (max-width: 768px) {
    .triple-dot {
        flex-direction: row;
    }
    .triple-dot.vertical {
        display: none;
    }
    .triple-dot.horizontal {
        display: inline-block;
    }
}

/* Menu Styles */
.triple-dot-menu {
    position: absolute;
    background: white;
    border: 1px solid gray;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    padding: 5px;
    z-index: 1000;
}

.menu-item {
    padding: 5px 10px;
    cursor: pointer;
}

.menu-item:hover {
    background: lightgray;
}


/* Drop-down menu styling */
.tr_menu_dropdown-container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    z-index: 1000; /* Ensures it stays on top of other content */
}

.separator {
    width: 100%;
    height: 1px; /* Thickness of the separator */
    background-color: #ccc; /* Color of the separator */
    margin: 4px 0; /* Space around the separator */
}

.horizontal_space_separator {
    height: 10px; /* Adjust height as needed */
    width: 600px; /* Thickness of the separator */
    background-color: #ffffff; /* Color of the separator */
    margin: 0 10px; /* Space around the separator */
}
@media (max-width: 768px) { /* Adjust breakpoint as needed */
    .horizontal_space_separator {
        margin: 0 5px;
        width: 60px;
    }
}

.youtube-frame {
    width: 360px;
    height: 230px;
    max-width: 100%;
    border: none;
}

/* On larger screens (desktop), increase iframe size */
@media (min-width: 768px) {
    .youtube-frame {
        width: 640px;
        height: 360px;
    }
}

.about-area {
    max-height: 300px;       /* adjust as needed */
    overflow-y: auto;
    border: 1px solid #ccc;  /* optional: visual boundary */
    padding: 10px;
    margin: 20px 0;
    background-color: #fdfdfd;
  }

.about-area h2 {
    background-color: rgba(201, 172, 154, 0.957);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
  }
  
  .about-area p {
    margin-top: 4px;    /* reduce space above the paragraph */
    margin-bottom: 8px; /* optional: controls spacing between paragraphs */
  }

  /* Spinner and Overlay Styles */
.spinner_overlay {
    position: fixed; /* Sit on top of the page content */
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Black background with opacity */
    z-index: 9999; /* Specify a stack order in case you're using a different order for other elements */
}

.spinner {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
}

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

/* Rotating Banner Styles */
.banner-container {
    width: 100%;
    overflow: hidden;
    background: #fdfdfd;
    padding: 6px 0;
    flex-basis: 100%;
}

.banner-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    font-size: 13px;
    font-weight: bold;
    color: #333; /* Default color */
    animation: banner-scroll 40s linear infinite;
}

/* Assistant Pointer Tooltip/Label */
.assistant-pointer {
    background-color: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 100%;
    margin-left: 10px;
    transform: translateY(-50%);
    z-index: 100;
    white-space: nowrap;
    pointer-events: none; /* Ensure it doesn't block clicks to the dropdown */
    animation: assistantPress 1s infinite alternate ease-in-out;
    animation-delay: 1s;
}

.assistant-pointer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -6px; /* Position on the left edge of the label */
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #28a745; /* Triangle pointing left */
}

@keyframes assistantPress {
    0% { /* Pressed state */
        transform: translate(-2px, -50%); /* Subtle pulse towards the dropdown */
        box-shadow: none;
    }
    100% { /* Unpressed state */
        transform: translate(0, -50%);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}

.banner-separator {
    width: 100%;
    border: 0;
    border-top: 1px solid #eaeaea;
    margin: 0;
}

/* Color coding for returns */
.banner-pos-val {
    color: #28a745 !important; /* Green */
}

.banner-neg-val {
    color: #dc3545 !important; /* Red */
}

@keyframes banner-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
