body {
    margin: 0; 
    font-family: Arial, sans-serif;
}

.top-line {
    background-color: darkgreen;
    height: 10px;
}

.content {
    max-width: 960px;
    margin: auto;
    margin-bottom: 90px; 
}

h1 {
    color: #333;
}

h2 {
    color: #555;
    font-size: 20px;
}

table {
    border-collapse: collapse;
    margin-top: 5px;
    margin-bottom: 10px;
}

th, td {
    border: none;
    border-bottom: 1px solid #ddd; 
    padding: 5px;
    text-align: center; 
}

th:first-child, td:first-child {
    text-align: left; 
}

th {
    background-color: #f2f2f2;
}

form {
    display: inline;
    flex-wrap: wrap;
    margin: auto; /* Center the form on the page */
}
label, input, select, button {
    margin-top: 1px;
    margin-bottom: 1px;

}

input, select {
    border: 1px solid #808080; /* Gray border */
    border-radius: 4px; /* Rounded corners */
    padding: 8px; /* Add padding for better appearance */
    box-sizing: border-box; /* Include padding and border in the box model */
}


label {
    flex: 1;
    margin-right: 2px;
}


button {
    background-color: white;
    color: black;
    padding: 5px 5px;
    border: 1px solid gray; 
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

button:hover {
    background-color: darkgrey;
    color: black;
}

.flex-container {
    display: flexbox;
}

.inline-form {
    display: inline;
    margin-right: 5px; /* Optional: Add some spacing between the forms */
}

.grid-container {
    display: grid;
    gap: 5px;
}

.chart-container {
    width: 95%;
    
}

.table-container {
display: inline-flex;

}

td.number-cell {
    text-align: right;
    padding-right: 15px; /* Adjust the padding from the right as needed */
}

.nav-buttons-container {
    display: inline-flex;
    margin: 5px;
    padding-left: 5px;
    padding-right: 3px;
    white-space: nowrap;
}

footer {
    position: fixed; /* Fix the footer to the bottom of the page */
    bottom: 0;
    max-width: 960px;
    background-color: #f1f1f1; /* Set the background color */
    padding: 5px;
    height: 50px; /* Define the height of the footer */
    z-index: 900; /* Ensure it is on top of other content */
    text-align: center;
}


.footer-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.content-wrapper {
    padding-left: 5px;
    padding-right: 5px;
}
.content-wrapper h2 {
    margin-left: 10px; 
}


.button-container {
    margin: 0 2px; /* Add margin between button containers */
    width: 100%;
}

.button-container button {
    padding: 7px;
    width: 100%;
}

.button-wrapper {
    display: flex;
    gap: 5px; 
}


.nav-buttons {
    background-color: #4caf50;
    color: white;
    padding: 5px 1px; /* Adjust padding to your preference */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    
}

.nav-buttons:hover {
    background-color: #45a049;
}

.front-table-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.front-table {
    max-width: 95%; /* Ensure it's not smaller than 50% of the screen */
    min-width: 80%; /* Ensure it's not smaller than 50% of the screen */
    border-collapse: collapse;    
    margin-top: 10px;
    margin-bottom: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);  
}

.front-table th, .front-table td {
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 0px;
    text-align: center;
    vertical-align: middle; 
    white-space: nowrap;
    font-size: 12px;
}

.front-table td:nth-child(n+3) {
    max-width: 60px; /* Adjust the maximum width as needed */
}

/* Style for th elements inside the front-table */
.front-table th {
    background-color: #f2f2f2;
    font-size: 14px;
}

/* Set fixed width for the first and second columns */
.front-table th:first-child, .front-table td:first-child
 {
    width: 90px; 

}

.front-table th:nth-child(2), .front-table td:nth-child(2) {
    text-align: inherit;
    padding-left: 3px;
}

.expense-container {
    width: 100%;
    margin: 0 auto; 
    text-align: center;   
}

.expense-container form {
    width: 100%; 
}

.expense-container label,
.expense-container select,
.expense-container button {
    margin-bottom: 1px; /* Adjust margin as needed */
    margin-left: 5px; /* Set margin to zero */
    padding-left: 0; /* Set padding to zero */
}

.income-container {
    width: 100%; /* Adjust the width as needed */
    margin: 0 auto; /* Center horizontally */
    text-align: center; /* Center text and form elements inside */
}


.income-container form {
    width: 100%; /* Take up the available width */
}

.income-container label,
.income-container select,
.income-container button {
    margin-bottom: 1px; /* Adjust margin as needed */
    margin-left: 5px; /* Set margin to zero */
    padding-left: 0; /* Set padding to zero */
}


.pagination-container {
    justify-content: center;
    gap: 10px; /* Add space between buttons */
}

.weekday-cell .weekday-short, .category-short {
    display: none;
}

#stackedBarChart {
    width: 80%;
    max-width: 600px;
    height: 100px;
    margin: 10px;
}

.category-input-container {
    position: relative;
    display: inline-flex; /* Use inline-flex to ensure the icon is in line with the input */
    align-items: center;
}

.info-icon {
    margin-left: 5px; /* Adjust the margin as needed */
    cursor: pointer;
}
/*
.info-icon:before {
    content: '\1F6C8'; 
    font-size: 14px;
    color: #333;
}
*/
.info-icon:hover:after {
    content: 'Up to 25 characters';
    position: absolute;
    top: 100%;
    left: 100%;
    transform: translateX(-50%);
    background-color: #197c06;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 70%;
}

.daytable {
    border-collapse: collapse;
    width: 100%; 
}

.daytable th, .daytable td {
    padding: 5px;
    font-size: 12px;
}

.daytable td {
    vertical-align: middle;
}

.daytable .action-buttons {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    gap: 2px; /* Remove space between buttons */
    white-space: nowrap; /* Prevent wrapping of buttons */
    border: 0px;
}

.daytable .inline-form {
    display: inline-block; /* Ensure each form takes up only as much space as necessary */
    margin: 0; /* Remove margin if any */
}

.data-table .daytable tbody td:first-child {
    width: 5%;
}

.data-table .daytable thead th:nth-child(2), .daytable tbody td:nth-child(2) {
    width: 20%; /* Width for Notes column */
}

.data-table .daytable thead th:nth-child(3), .daytable tbody td:nth-child(4) {
    width: 10%; /* Width for Amount column */
}


.data-table .daytable thead th:nth-child(4), .daytable tbody td:nth-child(4) {
    width: 50%; /* Width for Notes column */
}

.daytable tbody td:last-child {
    flex: 0; /* Last column will take up its natural width */
    white-space: nowrap; /* Prevent wrapping */
}

.daytable button {
    padding: 5px 8px;
    font-size: 12px;
}



.action-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: right;
    gap: 2px; /* Adjust the gap between buttons as needed */
}

.action-buttons button {
    width: auto; /* Ensure buttons take only the necessary width */
}

.monthtable {
    min-width: 30%;
    width: 100%;
}

.monthtable th {
    padding: 5px; /* Adjust the padding as needed */
    font-size: 12px; /* Adjust the font size as needed */
    
}

.monthtable td {
    padding: 5px; /* Adjust the padding as needed */
    font-size: 12px;
    padding-right: 15px;
    padding-left: 10px;
    border: none;
}



.navi-buttons-container {
    display: flex;
}

footer {
    background-color: #ffffff;
    padding: 10px 0;
    text-align: center;
    width: 100%; 
}

footer hr {
    border: none; /* Remove the border */
    height: 3px; /* Set the height to create the line effect */
    background-color: green; /* Set the background color */
    margin: 0; /* Remove default margin */
}
footer p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

.form-container {
    flex-direction: row;

    display: flex;
    align-items: center;    
    justify-content: center; 
    
}

.form-container label
{
    display: inline-block;
    flex-direction:row;
}


.recurring-table {
    width: 100%;
    border-collapse: collapse;
}

.recurring-table th, .recurring-table td {
    padding: 8px;
    text-align: center;
    font-size: 14px;
}

.recurring-table tbody tr:nth-last-child(2) td:nth-child(5) {
    width: 25%; /* Adjust the width as needed */
}

.login-form-container {
    display: table;
    padding:2px;
    width: 95%;
}

.registration-form-container {
    display:table-cell;
    text-align: right;
    width: 95%;
}

.white-box-shadow {
    background-color: #ffffff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); /* Add shadow effect */
    padding: 20px;
    border-radius: 10px;
    width: 30%;
    min-width: 275px;
    display: inline-block;
    position: absolute; /* Fixed position to float over content */
    top: 1px; /* Adjust top as needed */
    right: 15px; /* Adjust right as needed */
    z-index: 1; /* Ensure it floats above other content */
    box-sizing: border-box;
    font-size: 12px; 
}

.form-group .form-control {
    width: 55%; 
}

.form-group .btn {
    width: 80px; 
}


.green-bar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 90%; /* Adjust the width of the green bar */
    background: linear-gradient(to left, rgba(0, 255, 0, 0), rgb(142, 145, 142)); /* Green gradient from transparent to opaque */
    z-index: -1; /* Move the green bar behind other content */
}

.top-box {
    content: '';
    top: 2px;
    left: 2px;
    width: 66%;
    background-color: rgb(3, 85, 3); /* Set the background color to blue */
    z-index: -1; /* Send it behind other content */
    border-radius: 10px; /* Inherit border-radius from parent */
}

.green-box {
    content: '';
    top: 0;
    left: 0;
    width: 66%;
    background-color: rgb(245, 245, 245); 
    z-index: -1; /* Send it behind other content */
    border-color: black;
    border-radius: 10px; 
    padding-bottom: 10px;
}

.green-box h2 {
    color: black;
    padding: 10px;
    margin-bottom: 0px; 
}

.styled-paragraph {
    text-indent: 1.25em; 
    padding-left: 0.5em; 
    padding-right: 0.5em; 
    font-size: 0.875rem;
    margin-top: 2px; 
    margin-bottom: 2px;
}

.login-page-container {
    position: relative; /* Position relative to act as the positioning context */
    display: block;
    margin-right: 5px; /* Ensure a margin on the right for the white-box-shadow */
    margin-left: 5px;

}

.green-icon {
    color: green; /* Set the background color to green */
    padding: 10px; /* Add some space between the icon and text */
}

.green-quotationmark {
    font-size: 20px; /* Oversized font */
    font-weight: bold; /* Make it bold */
    color:rgba(3, 85, 3, 0.3); 
    display: inline-block;
    position: relative;


}
.content-columns {
        display: flex;
        justify-content: space-between;
        width: 95%;
        margin-top: 2px;
        margin-left: 20px;
        flex-direction: column;

    }
    
    .more-box {
        margin-top: 20px;
        padding: 10px;
        width: 95%;
    }
    
    .info-container {
        display: flex;
        flex-wrap: wrap; /* Ensure boxes wrap to the next line on smaller screens */
        gap: 20px; /* Adjust spacing between boxes */
        justify-content: space-between; /* Adjusts spacing between items */
    }
    
    .info-box {
        background-color: #f0f0f0; 
        padding: 15px;
        border-radius: 10px;
        flex: 1;
        min-width: 200px; /* Ensures a minimum width for smaller screens */
        box-sizing: border-box;
    }
    
    .info-box h3 {
        margin-top: 0;
        text-align: center;
    }
    
    .info-article {
        position: relative; 
        line-height: 1.2;
        text-align: justify; 
        text-justify: inter-word;
        font-size: 0.875rem;
    }


    .date-column {
        font-family: 'Arial', sans-serif;
        font-size: 14px;
        color: #333;
        text-align: center;
        white-space: nowrap;

    }

    .date-column a {
        text-decoration: none;
        color: #0c5702;
        font-weight:bold;
    }

    .general-table-wrapper {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }
    
    .general-table {
        max-width: 99%; /* Ensure it's not smaller than 50% of the screen */
        min-width: 85%; /* Ensure it's not smaller than 50% of the screen */
        border-collapse: collapse;    
        margin-top: 10px;
        margin-bottom: 10px;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);  
    }
    
    .general-table th, .general-table td {
        border: none;
        border-bottom: 1px solid #ddd;
        padding: 0px;
        text-align: center;
        vertical-align: middle; 
        white-space: nowrap;
        font-size: 12px;
    }
        
    /* Style for th elements inside the front-table */
    .general-table th {
        background-color: #f2f2f2;
        font-size: 14px;
    }
    
    /* Set fixed width for the first and second columns */
    .general-table th:first-child, .general-table td:first-child
     {
        width: 50px; 

    }

    .settings-table-wrapper {
 
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .settings-table {
        max-width: 100%; 
        min-width: 70%; 
        font-size: 0.875em; 
        border-collapse: collapse;
    }

    /* Styling for all table cells */
    .settings-table td {
        padding: 8px; /* Adjust as needed */
        vertical-align: middle;
    }

    /* Reduce width of the first column */
    .settings-table td:first-child {
        width: 20%; /* Adjust width as needed */
        text-align: left;
    }

    /* Make the second column wider */
    .settings-table td:nth-child(2) {
        width: 80%; /* Adjust width as needed */
        text-align: left;
    }

    /* Font size adjustments for labels, selects, buttons in the table */
    .settings-table label, .settings-table select, .settings-table button {
        font-size: 0.875em; /* Adjust as needed */
    }

    .settings-table h3 {
        font-size: 1em; /* Optionally adjust header size */
    }

    .settings-table tr {
        position: relative;
    }
    
    .settings-table tr:after {
        content: "";
        display: block;
        width: calc(100% - 60px); /* 100% width minus 15px padding on each side */
        height: 1px;
        background-color: rgba(0, 0, 0, 0.1); /* Light line with 10% opacity */
        position: absolute;
        bottom: 0;
        left: 20px; /* 15px padding from the left */
    }
    
    /* Hide the line after the last row */
    .settings-table tr:last-child:after {
        display: none;
    }

    .password-box {
        width: 120px; 
        font-size: 12px;
    }

    #add-expense-button {
        width: 100px;
    }
    #add-income-button {
        width: 100px;
    }


.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 15% from top and centered horizontally */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be adjusted to fit your content */
    max-width: 600px; /* Optional: limits the maximum width */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2); /* Optional: shadow for better visual effect */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
 
.chapter-title {
    padding-left: 5%;

}


.goals-table-wrapper {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.goals-table {
    max-width: 90%;
    min-width: 70%;
    font-size: 0.875em;
    border-collapse: collapse;

}

.goals-table td {
    padding: 8px;
    vertical-align: middle;
    border: none;
}

.goals-table td:first-child {
    width: 30%;
    text-align: left;
}

.goals-table td:nth-child(2) {
    min-width: 30%;
    text-align: left;
}

.goals-table label, .goals-table select, .goals-table button {
    font-size: 0.875em;
}

.goals-table h3 {
    font-size: 1em;
}

.goals-table tr {
    position: relative;
}

.goals-table tr:after {
    content: "";
    display: block;
    width: calc(100% - 60px);
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 0;
    left: 20px;
}

.goals-table tr:last-child:after {
    display: none;
}


.data-wrapper {
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.data-table {
    max-width: 90%;
    min-width: 80%;
    font-size: 0.875em;
    border-collapse: collapse;
    border: none; 
    margin: auto;
}

.data-table td {
    padding: 2px;
    vertical-align: middle;
}

.data-table td:first-child {
    width: 30%;
    text-align: left;
}

.data-table td:nth-child(2) {
    min-width: 70%;
}

.data-table label, .data-table select, .data-table button {
    font-size: 0.875em;
}

.data-table h2 {
    font-size: 1.1em;
}

.data-table p {
    font-size: 1.1em;
}

.data-table tr {
    position: relative;
}

.data-table > tbody > tr:not(:last-child):after {
    content: "";
    display: block;
    width: 97.5%; /* Adjust the width to be relative (e.g., 95% of the row's width) */
    height: 1px; /* Adjust the height relative to the font size (0.1em is approximately 1px) */
    background-color: rgba(0, 0, 0, 0.1); /* Light line */
    position: absolute;
    bottom: 0;
    left: 2.5%; 
}



.data-table > tbody > tr:last-child {
    border-bottom: none; 
}

.data-table td table {
    width: 100%; 
    border-collapse: collapse; 
}


.data-table td table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); 
}

.data-table table td:first-child {
    width: 50%;
    text-align: left;
    padding-left: 8px;
}

.data-table table td:last-child {
    text-align: right;
    padding-right: 8px;
}


.number-cell {
    text-align: right; 
   
}


.notes-column {
    max-width: 120px; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Modal container */
.delete-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    overflow: auto;

}
  
  /* Modal content */
  .delete-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
  }
  
  .delete-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .delete-close:hover,
  .delete-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

    /* Close button */
    .merge-close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
      }
      
      .merge-close:hover,
      .merge-close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
      }
    

  /* Modal actions */
  .delete-modal-actions {
    margin-top: 20px;
  }
  
  .delete-modal-actions button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  #deleteConfirmButton {
    background-color: #d61710;
    color: white;
  }
  
  #deleteCancelButton {
    background-color: #0a4f64;
    color: white;
  }

  #mergeConfirmButton {
    background-color: #681c12;
    color: white;
  }
  
  #mergeCancelButton {
    background-color: #0a4f64;
    color: white;
  }


  /* Ensure container has relative positioning */
.city-input-wrapper {
    position: relative; /* Positioning context for suggestions */
}

/* Suggestions box styles */
.suggestions-box {
    position: absolute; /* Position it absolutely within the .city-input-wrapper */
    background-color: white;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none; /* Hidden by default */
    width: 100%; /* Match the width of the input */
}

/* Individual suggestion item */
.suggestion-item {
    padding: 8px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}




  
@media only screen and (max-width: 700px) { 
    body {
        margin: 0;
    }

    content  {
        margin: 3px;
    }


    h1 {
        font-size: 1.3em; 
    }

    h2  {

        font-size: 1em;
    }

    h3  {

        font-size: 1em;
    }

    .front-table-wrapper {
        align-items: flex-start;
    }
    


    .front-table {
        max-width: 100%; 
    }


    .weekday-cell .weekday-full, .category-full {
        display: none;
    }

    .weekday-cell .weekday-short, .category-short {
        display: inline;
    }



    table {
        width: 100%; /* Make the table full width on smaller screens */
    }

    th {
        padding: 20px; /* Adjust the padding as needed */
    }



    .expense-container {
        margin: 3px; 
    }

    button {
    
        padding: 8px 5px;    
        margin-bottom: 2px; /* Add some margin between buttons */
        margin-right: 5px; /* Add some margin between buttons */
        white-space: nowrap;
        
    }
    
    .chart-container {
        width: 99%;
    }
    .nav-buttons-container {
        display: inline-flex;
        padding-left: 1px;
        padding-right: 1px;
        white-space: nowrap;
    }

    .expense-container {
        display: flexbox;

    }

    .expense-container label {
        display: block; /* Labels start on a new line for small screens */
        margin-bottom: 5px; /* Add some space between labels */
    }
    
    #expcummulativeChart 
    {width: 95%} 
    
    #add-expense-button {
        width: 90%;
    }
    .row-container {
        width: 90%;
        margin: 0 auto; /* Center the row */
    }
    .footer-container {
        max-width: 100%; /* Maximum width for smaller screens */
    }
   
    .table-exchange-rates {
        width: 100%;
        overflow-x: auto;
    }

    .table-exchange-rates table {
        width: auto; /* Adjust the width of the table */
        font-size: 12px; /* Set the font size */
    }

    .table-exchange-rates th,
    .table-exchange-rates td {
        padding: 3px; /* Adjust cell padding */
    }
  
  
    .white-box-shadow {
        position: static; /* Make it inline with the content */
        width: 95%; /* Take full width of the container */
        max-width: none; /* Remove max-width restriction */
        margin-top: 20px; /* Add some margin to separate from the content */
    }
    .content-columns {
        flex-direction: column;
    }
    .top-box, .green-box {
        width: 100%;
    }

    .info-container {
        flex-direction: column; /* Stack boxes vertically on smaller screens */
    }

    .search-results table {
        width: 100%;
    }

    #add-income-button {
        width: 90%;
    }

    .income-container {
        display: flexbox;
        
    }

    .income-container label {
        display: block; /* Labels start on a new line for small screens */
        margin-bottom: 5px; /* Add some space between labels */
    }
    .word-wrap-column {

        max-width: 10ch;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    
    }
    .settings-table-wrapper {

            display: flex;
            width: 100%;
            flex-direction: column;
            align-items: center;
            
    }

    .data-table {
        width: 100%;
        margin: auto;
    }


    .data-table td:first-child {
        width: 20%;
        text-align: left;
    }
    

    .data-table td {
        display: inline-table; 
        width: 100%;
    }

    .data-table table 
    {
        width: 100%;
        display:inline-table;
    }

    .data-table table td
    {
        display: table-cell;
    }

    .data-table .daytable tbody td:first-child,
    .data-table .daytable thead th:nth-child(2), .daytable tbody td:nth-child(2),
    .data-table .daytable thead th:nth-child(3), .daytable tbody td:nth-child(3),
    .data-table .daytable thead th:nth-child(4), .daytable tbody td:nth-child(4) {
        width: auto;
    }
    

}
