html,
body,
.page {
  height: 100%; /* needed for proper layout */
  width:100%;
  /* background-color: #fefed1;
 */}

body {
  overflow: hidden;
}

p {
  margin-bottom: 1em;
}

.page {
  display: flex;
  flex-direction: column;
}

.page-header {
  flex: 0 0 auto;
  background-color: #dcdcdc;
  background-size: cover;
  background: url('./images/desertsun2.png') repeat center;  /* Background image */
  height: 70px;
  align-items: left;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.page-header h2 {
margin-top: 5px;
margin-left :50px;
}

.page-header p {
margin-top: -10px;
margin-left :50px;
}

.page-header input {
  cursor: pointer;
  height: 20px;
  margin-top: -22px;
  float: right;
  margin-right: 70px;
}
.page-header label {
  color: black;
  height: 20px;
  margin-top: -22px;
  padding-right: 105px;
  float: right;
}

.container {
    display: flex;
    flex: 1;
    gap: 1rem; /* Adds spacing between columns */
    overflow: hidden;
}

/* Sidebar Styling */
.side-bar {
    width: 20%; /* Adjust width as needed */
    min-width: 25%;
    background: #fbf4be;
    padding: 1rem;
    border-right: 1px solid #ddd;
    transition: transform 0.3s ease; /* Smooth transition for toggle */
}

.side-bar.hidden {
    transform: translateX(-100%); /* Slide out of view */
    position: absolute;
    z-index: 10;
}

.side-bar ul {
    list-style: none;
}

.side-bar ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 0.5rem 0;
}

.side-bar ul li a:hover {
    color: #007BFF;
}

.document-index {
    padding: 1rem;
    background: #f4f4f4;
    border-right: 1px solid #ddd;
    overflow-y: auto; /* Enable scrolling if the list is long */
}

.ipanel {
    padding-left: 10px;
    margin-bottom: 0rem;
    background: #ffffff;
    border: 1px solid #ddd;
    font-size: 1.3em;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ipanel h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.ipanel p {
    margin: 0 0 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.ipanel a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.page-content {
  flex: 1 1 auto;
  position: relative;/* need this to position inner content */
  overflow-y: auto;
  max-height:99%;
  margin-right:10px;
}

/* document section */
.psection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 97%;
    padding: 1rem;
    background: #ffffff;
    display: none; /* Hide all sections initially */
    z-index: 0;
}

/* Show the selected section */
.psection.active {
    display: block;
    z-index: 10;
}

.page-footer {
  flex: 0 0 auto;
  background-color: #dcdcdc;
  background-size: cover;
  background: url('./images/desertsun.png') repeat center;  /* Background image */
  height: 25px;
  margin-top: 5px;
}

/*
.container, .content, .sidebar {
    border: 1px solid red;
}
*/

/* ******************** The Navigation bar ****************** */
.nav-bar {
  flex: 0 0 auto;
  background-color: #fec66a;
  padding: 0px;
  margin-top: 0px;
  margin-bottom: 5px;
  height: 36px;
}

.nav-bar ul {
  list-style-type: none;
  justify-content: center;
  display: inline-block;
  margin-left: 20px;
  margin-top: -3px;
  padding-top: 10px;
}

.nav-bar li {
  color: white;
  border: none;
  padding: 0px;
  cursor: pointer;
  display: inline-block;
  cursor: pointer;
  height: 20px;
  margin-left: 8px;
  padding-left: 1px;
}

.nav-bar li a {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 0px;
  cursor: pointer;
  display: inline-block;
  cursor: pointer;
  height: 20px;
  margin-left: 8px;
  padding-left: 1px;
}

.nav-bar button {
    margin-left: 5px;
    padding-left: 5px;
    padding-right: 5px;
    cursor: pointer;
    font-size: 16px;
    background-color:#fce058 ;
    border-radius: 5px;
}


/**************** Accordian Styles  **************/

.accordion {
  padding: 10px;
  /* background-color: #f7f7f7; */
  background-color: white;
  justify-content: center;
  max-width: 97%;   /* Optional: Max width */
  min-width: 300px;  /* Minimum width for uniformity */

}

.accordion details {
  font-size: 1em;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 5px;
  background-color: white;
  max-width: 95%;  /* Optional: max width for larger screens */
  min-width: 300px;

}

.accordion summary {
  background-color: #fcfcd8;
  border: 1px solid #eee;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.3em;
  width: 100%;  /* Set width to a percentage or fixed value as needed */
  max-width: 90%;
  min-width: 300px;
}

/********************** Mardown style *****************/
/************** For git hub markdown table  ***********/
table {
  border-collapse: collapse;
}

table td {
  border: 1px solid black;
  padding: 0.3em;
}

table th {
  border: 1px solid black;
  padding: 0.3em;
  background-color: black;
  font-weight: bold;
  color: white;
}

xtable {
  border-collapse: collapse;
}

xtable td {

  padding: 0.3em;
}

xtable th {

  padding: 0.3em;

  font-weight: bold;
  color: white;
}

.MD {
  font-size: 1.3em;
}

.MD p img {
padding: 100 px;
}

.MD img {
padding: 100 px;
}

/*************************************************************/

/* Responsive layout for narrow screens */
@media (max-width: 668px) {
    .container {
        position: relative; /* Ensure sidebar is properly positioned */
    }

    .side-bar {
        top: 0;
        left: 0;
        height: 100%; /* Full height for sidebar */
        width: 30%; /* Sidebar takes 75% of the screen width */
        background: #f4f4f4;
        border-right: 1px solid #ddd;
    }

    #toggleSidebar {
        display: block; /* Show toggle button */
        margin-top: 5px;
    }

    .nav-bar ul {
     display: none;
    }

    .nav-bar button {

    }
}

/*****************************************************/
/* Simple Popup Styles */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 20px;
    max-width: 600px;
    width: 80%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.popup-contentX {
    height: 800px;
    background: black;
    color: white;
    font-size:120%;
    font-family: Calibri, Arial, sans-serif;
    padding: 20px;
    max-width: 800px;
    width: 80%;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.popupCALC {
      display: block; /* Hidden by default */
      position: relative;
      top: 0px; /* Adjust as needed */
      left: 0px; /* Adjust as needed */
      height:500px;
      width: 600px;
      background-color: #f0f0f0;
      border: 1px solid #ccc;
      padding: 5px;
      /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); */
      z-index: 1000; /* Ensure it appears above other elements */
      /*margin-left: -22%;*/
    }
/*********************************************************************/
/* for editng inputs */

.ssed {
    display: grid;
    padding: 0px;
    /* border: solid 1px #00edce;*/
    /* border-radius: 8px;*/
    margin:1px;
    margin-right:11px;
    padding-right:1px;
    /*background-color: #d0d0d0;
    background: #d0d0d0; */
    grid-auto-rows: auto; /* Automatically adjust row height */
    grid-auto-flow: dense; /* Fill gaps in the grid */
    grid-template-columns: 40% 20% 20% 20%;
    column-gap: 5px;
    grid-template-rows: 30px;
    grid-template-areas:
        "ssn ssi ssu ssb"
    ;
}

.ssn { grid-area: ssn; font-size:110%; font-weight: bold; }
.ssi { grid-area: ssi; font-size:108%; font-weight: bold; margin: 2px; }
.sso { grid-area: ssi; font-size:108%; font-weight: bold; margin: 5px; padding-left:5px; border: 1px solid black; width: 80px;}
.ssb { grid-area: ssb; font-size:110%; font-weight: bold; margin-left: 30px;}
.ssu { grid-area: ssu; font-size:108%; font-weight: bold; margin: 2px; padding: 2px;}

 .suinp1 { font-size:100%; margin: 1px; width: 60px;}
 .suinp2 { font-size:100%; margin: 1px; width: 120px;}
 .suinp3 { font-size:100%; margin: 1px; width: 80px;}


.dark {
 background-color: black;
 color: white;
 }





