/* 2nd version replace horizontal and side menu */

body {
  background-color: #CAEDFF;
  color: black;

}
.footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #8E7DBE;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    z-index: 999;

}

h1
{
  font-size: large;
  color: #d3358c;
}

h2{
  font-size: 36px;
  color: #8F87F1;
  text-align: center;
}

h3{
  font-size: 22px;
  color: #3A98B9;
}

h4{
  font-size: 18px;
  color: #8F87F1;
  margin-left: 70%
}


.wel-title{
  font-size: 36px;
  color: #8F87F1;
  padding: 38px 15px 20px;

}

.table-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60vh;  /* Full viewport height */
  width: 40vw;  /* Full viewport width */
  flex-direction: column;  /* Stack items vertically */
  border-color: #7743DB;
  border-style: solid;
  border-width: 5px;
  border-radius: 10px;
  margin-left: auto;
  margin-right: auto;

  /* padding: 10px; */
  overflow: auto;
  /* resize: both; */

}
a:visited , a:link{
  color:#8E7DBE;
  text-shadow: 1px 1px #987D9A;
  text-decoration: none;
  cursor: default;
}

.pbutton { /* Logout button */
  background-color: #578FCA;
  border-radius: 10px;
  border: solid #D6CFB4 3px;
  color: white;
  width: 100px;
  height: 60px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  margin-left: 10px;
  text-decoration: none;
}

.dnbutton { /* Download button */
  background-color: #AAC4FF;
  border-radius: 10px;
  border: solid #D6CFB4 3px;
  color: white;
  width: 130px;
  height: 38px;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
}

.tbutton { /* Session button */
  background-color: #789DBC;
  border-radius: 10px;
  border: solid #D6CFB4 3px;
  color: white;
  width: 80px;
  height: 30px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
}

.clsbutton { /* Clear session button */
  background-color: #FF6969;
  border-radius: 10px;
  border: solid #D6CFB4 3px;
  color: white;
  width: 130px;
  height: 38px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
}

.delbutton { /* Clear session button */
  background-color: #FF6969;
  border-radius: 10px;
  border: solid #D6CFB4 3px;
  color: white;
  width: 125px;
  height: 30px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  margin-left: 45%;
  margin-top: 2%;
  text-decoration: none;
}

.fbutton { /* Form button */
  background-color: #AAC4FF;
  border-radius: 10px;
  border: solid #D6CFB4 3px;
  color: #8E7DBE;
  width: 100px;
  height: 30px;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  margin-left: 10%;
  text-shadow: 1px 1px #987D9A;
  text-decoration: none;
}

.passcode_box {

  border-radius: 10px;
  border: solid #b5b4d6 3px;
  background-color: #FFF;  /* Make input visible */
  color: #000;
  width: 200px;
  height: 60px;
  text-align: center;
  font-size: 50px;
  font-weight: bold;
}

 .drop-up select {
      position: relative;
      z-index: 1;
  }

  .drop-up select:focus {
      /* This only helps if your dropdown is inside a scrollable div */
      overflow-y: auto;
  }

  .flex-container {
      display: flex;
      align-items: center;
      gap: 10px;
  }
  .flex-container label {
      color: #8F87F1;
      font-size: 20px;
  }

  /***********************INPUT FORM****************************/
  .form-container {
    margin:auto;
    max-width: 360px;
    padding: 12px 20px;
    box-sizing: border-box;
    border-radius: 5px;
    border-width: 3px;
    border-style: double;
    border-color: #8F87F1;
  }
  .form-title {
    font-size: 18px;
    color: #7743DB;

  }
  .form-text {
    border-radius: 5px;
    border-width: 3px;
    border-style: solid;
    border-color: #9FB3DF;
    font-size: 15px;
    width: 135px;
    height:20px;
    font-family:Verdana, Geneva, Tahoma, sans-serif

  }
  legend{
      color:#8E7DBE;
      text-shadow: 1px 1px  #CDC1FF;/*#987D9A;*/
  }


/****************************MENU******************************/
.menu-toggle {
  font-size: 30px;
  cursor: pointer;
  padding: 5px 12px;
  position: fixed;
  top: 15px;
  left: 15px;
  background-color: #8F87F1;
  color: #EEF1DA;
  z-index: 1001;
  border-radius: 10px;
}

/* Horizontal Popup Menu */
.horizontal-menu {
position: fixed;
top: 10px;
left: 20px; /* Start next to the toggle button */
/* display: none; */
background-color: #AAC4FF;
border-radius: 5px;
padding: 10px;
z-index: 1000;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
flex-direction: row;
gap: 10px;
}

.horizontal-menu a {
color: #EEF1DA;
text-decoration: none;
padding: 6px 10px;
background-color: #AAC4FF;
border-radius: 5px;
transition: background 0.3s;
white-space: nowrap;
font-size: 15px;
font-family: Arial, Helvetica, sans-serif;
text-shadow: 2px 2px #B7B1F2;

align-items: center;          /* Vertically center icon + text */
justify-content: center;      /* Horizontally center content */
gap: 18px;
height: 13px;                 /* Ensures enough height for vertical centering */

}
.horizontal-menu a:hover {
background-color: #E5D9F2;
}

/* Mobile menu toggle & side menu - hidden on wide screens */
.mobile-menu-toggle,
.side-menu {
  display: none;
}

table {
  width: auto;
  /* border-collapse: collapse; */
  /* margin: 20px auto; */
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 15px;
  box-shadow: 0 0 10px #8D77AB;
  border: 1px solid #CDC1FF;
}

th, td {
  border: 1px double #ccc;
  padding: 1px 2px;
  text-align: center;
}

th {
  background-color: #AAC4FF;
  font-weight: bold;
  color:white;
  text-shadow: 2px 2px #727D73;

}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

/************************MEDIA************************************/
@media (max-width: 768px) {


  .wel-title{
    font-size: 33px;
    color: #8F87F1;
    padding: 38px 15px 20px;

  }

  .table-box {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 90%;              /* Adjust width to be flexible */
      max-width: 380px;        /* Prevent it from getting too big */
      margin: 1%;            /* Center it */
      border-style: double;
      border-width: 5px;
      border-color: #7743DB;
      padding: 10px;

  }
  .pbutton {
      background-color: #578FCA;
      border-radius: 10px;
      border: solid #D6CFB4 3px;
      color: white;
      width: 80px;
      height: 60px;
      text-align: center;
      font-size: 18px;
      font-weight: bold;
      margin-left: 10px;
      float:left;
  }

  .passcode_box {

      border-radius: 10px;
      border: solid #b5b4d6 3px;
      background-color: #FFF;  /* Make input visible */
      color: #000;
      width: 200px;
      height: 60px;
      text-align: center;
      font-size: 30px;
      font-weight: bold;
  }
  /****************************MENU******************************/


  .mobile-menu-toggle {  /* 3 dot menu */
    display: block;
    font-size: 50px;
    cursor: pointer;
    margin: 10px;
    top: 10px;
    left: 15px;
    color: #8F87F1;
    z-index: 1001;
    border-radius: 10px;
  }

  .side-menu {
    /* display: none; */
    background: #ADB2D4;
    position: fixed;
    top: 50px;
    left: 0;
    width: 200px;
    height: 100%;
    z-index: 100;
    padding-top: 25px;
  }

  .side-menu a {
    color: #EEF1DA;
    display: block;
    text-decoration: none;
    border-radius: 5px;
    transition: background  0.3s;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    text-shadow: 2px 2px #8D77AB;

    align-items: center;          /* Vertically center icon + text */
    justify-content: center;      /* Horizontally center content */
    height: 50px;                 /* Ensures enough height for vertical centering */

    }

  .side-menu.open {
    display: block;
  }

  .horizontal-menu {
    display: none;
    }

  .side-menu a:hover {
    color: #3674B5;
    /* text-decoration: none; */
  }

}