/*
Theme Name: My Basic Theme
Theme URI: http://example.com
Author: Your Name
Author URI: http://example.com
Description: A simple WordPress theme
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: my-basic-theme
*/
.date-span {
    font-weight: bold;    
    font-size: .8em;
    color: #2c3e50; /* A dark blue color */
    background-color: #ecf0f1; /* A light grey background */
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);    
    display: inline-block;
  }
  .symbol-span {
    font-weight: bold;    
    font-size: 1em;
    color: #2c3e50; /* A dark blue color */
    background-color: #fff0f1; /* A light grey background */
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);    
    display: inline-block;
  }
  .dropdown-style {
    background-color: #f5f5f5;  /* Light gray background */
    border: 2px solid #ccc;     /* Gray border */
    border-radius: 5px;         /* Rounded corners */
    padding: 10px;              /* Padding */
    font-size: 16px;            /* Font size */
    color: #333;                /* Dark text color */
    outline: none;              /* Remove default outline */    
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Subtle shadow for depth */
    transition: border-color 0.3s, box-shadow 0.3s;  /* Smooth transition effects */
  }
  
  .dropdown-style:focus {
    border-color: #007bff;  /* Blue border on focus */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);  /* Glowing effect on focus */
  }
  
  
  body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 20px;
}
.news-item-container { 
  clear: both; /* Ensure it starts on a new line */ 
  margin-top: 20px; 
}

.news-item {
  clear: both; /* Ensure it starts on a new line */ 
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%; /* Full width */
  box-sizing: border-box; /* Include padding and border in the element's total width */
}

.news-title {
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
  margin-bottom: 10px;
}

.news-date {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 10px;
}

.news-summary {
  font-size: 1em;
  color: #555;
  margin-bottom: 10px;
}

.news-source {
  font-size: 0.9em;
  color: #007bff;
  text-decoration: none;
}

.news-source:hover {
  text-decoration: underline;
}

.stock-container {
    display: flex;
    /*flex-direction: column;*
    /* gap: 10px; */
    width: 90%;  
    float: left; /* Align to the left */
}

.stock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    /*padding: 10px 20px;*/
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.symbol {
    font-weight: bold;
    color: #333;
    padding: 10px;
}

.price {
    font-size: 1.2em;
    color: #007bff;
    padding: 10px;
}

.change {
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px;
}

.price::before, .change::before { 
  content: '$'; /* Add dollar sign before the content */ 
  margin-right: 1px;
}

.change.positive {
    color: #28a745;
}

.change.negative {
    color: #dc3545;
}


        /* Popup container - can be anything you want */
        .popup {
            display: none; /* Hidden by default */
            position: fixed; /* Stay in place */
            left: 50%;
            top: 50%;
            height: 50%;
            width: 95%;
            transform: translate(-50%, -50%); /* Center the popup */
            border: 1px solid #888;
            background-color: white;
            z-index: 1000; /* Make sure it is on top */
            padding: 20px;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
        }

        /* Add some styling to the close button */
        .close {
            position: absolute;
            top: 10px;
            right: 10px;
            color: red;
            cursor: pointer;
        }

        iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        .spinner {
          width: 50px;
          height: 50px;
          border: 5px solid rgba(0, 0, 0, 0.1);
          border-top-color: #3498db;
          border-radius: 50%;
          animation: spin 1s linear infinite;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          display: none; /* Initially hidden */
      }
      
      @keyframes spin {
          0% { transform: translate(-50%, -50%) rotate(0deg); }
          100% { transform: translate(-50%, -50%) rotate(360deg); }
      }
      
      #popupIframe {
          width: 100%;
          height: 400px;
          border: none;
          display: none; /* Initially hidden */
      }
      
    

    
    

 
 /***********************************************************************/
 .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #fff;
  position: relative;
  z-index: 100;
  width: 100%;
}

/* Title (logo) */
.logo-title h1 {
  margin: 0;
  font-size: 24px;
  white-space: nowrap;  
}

/* Navigation container */
.nav-container {
  display: flex;
  align-items: center;
}

/* Menu for larger screens */
.menu-wrapper {
  display: flex;
  gap: 20px;
}

/* Style menu items */
.nav-menu {
  list-style: none;
  display: flex;
  padding: 0;
}

.nav-menu li {
  display: inline;
  margin: 0 10px;
}

.nav-menu a {
  text-decoration: none;
  padding: 10px;
  display: block;
}
.menu-toggle {
  display: none;
}
/*=========================================================*/
/* 📱 Mobile Menu */
@media (max-width: 768px) {
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    position: relative;
    width: 100%;
  }

  /* Align menu with the title */
  .nav-container {
    display: flex;
    align-items: flex-end;
    flex-direction: column; /* Stack items vertically */
    position: relative;
    width:-webkit-fill-available;
  }

  /* Hide menu initially */
  .menu-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 100%; /* Just below the menu toggle */
    left: 0; /* Align to the left */
    right: 0; /* Ensures it doesn't overflow */
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    transform: translateX(100%); /* Initially hidden */
    transition: transform 0.3s ease-in-out;
  }

  /* Show menu when active */
  .menu-wrapper.active {
    transform: translateX(0); /* Slide in from right */
  }

  /* Menu items */
  .nav-menu {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column; /* Stack items in one column */
    width: 100%;
  }

  .nav-menu li {
    display: block;
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    display: block;
    padding: 10px;
    width: 100%;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #ddd;
  }

  /* Hamburger button */
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 300;
  }
}
