body {
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background-color:rgb(136, 162, 202);
}

button, input, textarea, select,nav, div  {
    font-family: inherit; /* Ensures they inherit the font from body */
}
nav {
    background-color: #333;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul li {
    position: relative;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    padding: 8px 12px;
    transition: background 0.3s;
}

nav ul li a:hover {
    background-color: #555;
    border-radius: 5px;
}

.homePage
{
    margin: auto;
    margin-top:5%;
    width:100%;
    padding: 10px;
    text-align:center;
}

table 
{
    border-style:double;
    width: 80%; /* Adjust the width as needed */
    margin: auto; /* Center the table */

}
  
td, th 
{
    border:1px;
    width: 130px; /* Fixed width */
    min-width: 130%; /* Ensures it doesn’t shrink */
    max-width: 130px; /* Prevents it from expanding */
    overflow: hidden; /* Hides overflow content */
    text-overflow: ellipsis; /* Adds "..." if content is too large */
    white-space: nowrap; /* Prevents text from wrapping */
    border: 1px solid rgb(160, 103, 103); /* Optional: adds borders */
    text-align: right; /* Optional: centers text */
}



/* Dropdown Styles */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    min-width: 150px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.dropdown-content li {
    display: block;
}

.dropdown-content li a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
}

.dropdown-content li a:hover {
    background-color: #555;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}


.divHeader
{
    width:100%;
    height:5%;
    background-color:rgb(25, 2, 25);
    color:white;
    padding:5px 0;
    font-family:inherit;
    text-align:center;
    display: inline-block;
}

.errMsg
{
    font-size:20px;
}



.tradeData
{
    width:40%;
    height:100%;
    color:white;
    padding:10px 0;
    align-items:left;
    font-family:inherit;
}

.center 
{
    margin: auto;
    width: 30%;
    padding: 10px;
}

.scriptData
{
    width:40%;
    height:100%;
    color:white;
    padding:10px 0;
    align-items:left;
    font-family:inherit;
}


.listData
{
    margin-left:5%;
    width:40%;
    height:100%;
    color:black;
    font-size:1rem;
    padding:10px 0;
    text-align:center;

}



a 
{
    color: rgb(2, 13, 2); /* Change text color */
    text-decoration: none; /* Remove underline */
    font-size: 18px; /* Adjust font size */
}

a:hover 
{
    color: red; /* Change color when hovered */
    text-decoration: underline; /* Add underline */
}



.buttonClass
{
    width:300px;
    height:30px;
    margin:4px;
    background:hsl(0, 65%, 13%);
    color:white;
    font-size:medium;
    cursor:pointer;
    border-radius:5px;
}

.buttonClass:hover
{
    background:hsl(0, 12%, 24%);
}



.divHeader
{
    width:100%;
    height:5%;
    background-color:rgb(25, 2, 25);
    color:white;
    padding:5px 0;
    font-family:inherit;
    text-align:center;
    display: inline-block;
}

.errMsg
{
    font-size:20px;
}



/* Dropdown Styles */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    min-width: 150px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.dropdown-content li {
    display: block;
}

.dropdown-content li a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
}

.dropdown-content li a:hover {
    background-color: #555;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}


.container {
    display: flex; /* Enables Flexbox */
    justify-content: center; /* Centers items horizontally */
    width: 100%;
    height: 90%;
    padding: 10px 0; /* Space between items */
}


.menuData
{
    width:30%;
    height:30%;
    color:white;
    padding:10px 0;
    align-items:center;
    font-family:inherit;

}



.form-grid {
    display: grid;
    grid-template-columns: 150px 1fr 1fr; /* label | input | (optional) */
    grid-template-rows: repeat(9, auto);
    gap: 10px;
    padding: 20px;
    background-color: rgb(172, 128, 172);
    max-width: 800px;
    margin: auto;
  }

  label {
    display: flex;
    align-items: center;
    font-family:inherit;
    font-weight: bold;
    color:rgb(39, 8, 8);
  }

  input, textarea {
    width: 100%;
    padding: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family:inherit;
  }

  .third-column {
    display: flex;
    align-items: center;
    color: rgb(56, 24, 24);
    font-family:inherit;
    padding:10px 0;
    font-size: 0.9em;
  }

.chart-container 
{
    width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Legend and canvas stack vertically */
}

canvas 
{
    display:block;
}

#allocation 
{
    text-align: center;  /* Center the heading and paragraph */
    padding: 50px 0;
}
