:root {
  --background: rgba(115, 173, 209, 0.1);
  --textcolor: rgb(17, 52, 73);
  --backgroundcolor: rgb(218, 231, 242);
  --headerbackgroundcolor: rgb(17, 52, 73);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  min-height: 100vh;
  font-family: Roboto, Arial;
  padding: 0 10px;
  background-color: rgb(248, 248, 248);
}

p {
  margin-top: 0;
  margin-bottom: 0;
}

header {
  height: 55px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: white;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: rgb(228, 228, 228);
}

.left-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  flex-shrink: 0;
  background-color: white;
  width: 1;
  padding: 0px 15px;
  border: none;
}

.company-logo {
  height: 50px;
  margin-left: 10px;
  margin-right: 10px;
  cursor: pointer;
}

.top-menu {
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  padding: 0px 15px;
}

.dropdown-line:hover,
.d-line:hover {
  background-color: rgb(235, 235, 235);
}

.menu-drop-down {
  float: left;
  position: relative;
}

.dropdown-line {
  background-color: white;
  border: none;
  width: auto;
  text-decoration: none;
  font-size: 14px;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: fixed;
  left: 0;
  background-color: white;
  padding-left: 18px;
  overflow: auto;
  min-width: 230px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  scroll-behavior: auto;
}

@media only screen and (min-width: 768px) {
  .dropdown-content {
    position: absolute;
    left: -40px;
  }
}

.dropdown2 {
  cursor: pointer;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 3;
  min-width: 350px;
  background-color: whitesmoke;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  scroll-behavior: smooth;
  margin-left: 45px;
}

/* to be checked */
.dropdown-content,
.dropdown2 {
  touch-action: manipulation; /* Ensures proper gesture handling on iOS */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}

@media only screen and (max-width: 768px) {
  .dropdown2 {
    position: fixed;
    left: 0px;
    top: 58px;
  }
}

.d-line {
  background-color: white;
  border: none;
  text-decoration: none;
  font-size: 14px;
  width: auto;
  line-height:10px;  
}

.dropdown-content .dropdown-line {
  color: black;
  padding: 10px 16px;
  display: block;
  text-align: left;
  cursor: pointer;
  margin-left: 10px;
}

.dropdown2 .d-line {
  color: black;
  padding: 10px 16px;
  display: block;
  text-align: left;
  cursor: pointer;
}

.menu-drop-down:hover .dropdown-content, .dropdown-line:hover > .dropdown2 {
  display: block;
}

.header-text{
  padding-left: 10px;
  font-weight: 700;
  font-size: 18px;
  color:rgb(3, 48, 60);
  text-shadow: 1px 1px rgb(3, 48, 60);
  width: 90px;
  text-align: center;
}

@media only screen and (min-width: 768px) {
  .header-text {
    font-size: 28px;
    width: 400px;
    text-align: left;
  }
}

.middle-section {
  width: 3;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 20px;
  color: white;
  font-weight: 500;
  font-size: clamp(9px,20px,22px);
  padding: 0px 15px;
  border-radius: 5px;
  background-color: var(--headerbackgroundcolor);
}

.header-user-id {
  font-size: 18px;
  padding: 0px 10px;
}
.username {
  padding-left: 60px;
  padding-right: 5px;
  text-align: center;
}

@media only screen and (max-width: 768px) {
  .header-text {
    display: none;
   }
  .left-section {
    gap: 3px; /* Reduce spacing between elements */
    max-width: 300px;
  }
  .middle-section {
    max-width: 160px;
  }
  .header-user-id {
    padding: 0px 4px;
  }
  .username {
    padding-left: 5px;
    padding-right: 3px;
  }
  .top-menu {
    padding: 0px 10px;
  }
}

/* only webpages ------- */
.header-text2 {
  font-weight: 500;
}

.header-cat,
.header-contact,
.header-text2 {
  font-size: clamp(9px,20px,22px);
  padding: 10px 20px;
  color: white;
  border-radius: 15px;
  text-decoration: none;
}

.header-cat:hover,
.header-contact:hover,
.header-text2:hover {
  background-color: whitesmoke;
  color: var(--headerbackgroundcolor);
  border-style: outset;
  border-width: 4px;
  cursor: pointer;
}

.header-contact {
  margin-left: 20px;
  border: 3px solid white;
}

@media (max-width: 820px) {
  .header-cat,
  .header-contact,
  .header-text2,
  .header-user-id {
    font-size: 12px;
    padding: 5px 4px;
  }
}
/* -------------------------- */

.right-section {
  width: 1;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  flex-shrink: 0;
  background-color: white;
  padding: 0px 15px;
  border: none;
}

.right-section img {
  height: 36px;
  margin-bottom: 0px;
  cursor: pointer;
  padding: 10px 20px;
}

.right-section a {
  text-decoration: none;
}

.top-menu i {
  height: 55px;
  font-size: 45px;
  font-weight: 500;
  text-decoration: none;
  color: black;
  border: none;
  cursor: pointer;
  padding: 5px 0px;
}

/* main part style */
main {
  flex-grow: 1;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.5)50%,rgba(0,0,0,0.5)50%);
  padding: 0;
  margin: 0;
}

.report-definition {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 30px;
  row-gap: 12px;
  justify-content: flex-start;
  color:rgb(17, 52, 73);
  font-weight: 700;
  font-size: 18px;
  visibility: hidden;
  margin-left: 20px;
}

.report-def-item {
  background-color: whitesmoke;
  padding: 5px 10px;
}

.report-def-cancel-button,
.report-def-ok-button,
.report-command-button,
.report-pdf-button,
.report-excel-button {
  font-weight: 700;
  font-size: 18px;
  background-color: rgb(17, 52, 73);
  color: whitesmoke;
  padding: 5px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  min-width: 100px;
}

.report-def-cancel-button:hover,
.report-def-ok-button:hover,
.report-command-button:hover,
.report-pdf-button:hover,
.report-excel-button:hover,
.alpha-button:hover {
  background-color: rgb(222, 235, 242);
  color:rgb(17, 52, 73);
  transition: 250ms;
}

.report-command-button,
.report-pdf-button,
.report-excel-button {
  display: none;
}

.js-report-def-ok-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.alpha-button{
  font-weight: 700;
  font-size: 18px;
  background-color: rgb(17, 52, 73);
  color: whitesmoke;
  padding: 5px 5px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  width: 35px;
  text-align: center;
  position: relative;
  /* margin-top: -32px; */
  z-index: 3;
}

.main-element {
  display: grid;
}

.main-header,
.main-response {
  background-color: whitesmoke;
  padding: 5px 10px;
  font-weight: 700; 
}

.main1-header {
  width: 100%;
}

.main-body,
.popup-select,
.popup-display {
  margin: 10px 0px;
  padding-left: 10px;
  font-size: 16px;
  border: none;
  overflow-x: auto;
}

.main-body-option,
.popup-select {
  font-family: Roboto Mono, 'Courier New', Courier, monospace;
}

.main-response span{
 color: whitesmoke;
}

.main2-input,
.error-message {
  background-color: whitesmoke;
  padding: 5px 10px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  margin-top: 11px;
  width: 100%;
  height: auto;
  display: inline-block;
}

.voice-input {
  display: inline-block;
  padding: 5px 10px;
  background-color: rgb(17, 52, 73);
  color:whitesmoke; 
  font-size: 18px;
  font-weight: 500;
  border: none;
  margin-top: 11px;
  width: 15px;
  border-radius: 20px;
  cursor: pointer;
 }

 .voice-input:hover {
  color: rgb(17, 52, 73);
  background-color:whitesmoke; 
  transition: 250ms;
 }

.error-message {
  width: 500px;
  font-weight: 700;
  color: red;
  opacity: 0%;
}

.table-wrapper {
  overflow-x: auto;
  max-width: 100%;
}

.report1-table {
  table-layout: auto;
  width: auto;
  border-collapse: separate;  /* collapse for no space */
  border-spacing: 3px 2px; /* 3px horizontal space, 2px vertical space */
  margin-right: 20px;
  margin-left: 20px;
}

.report1-table th,
.report1-table td {
  white-space: nowrap;  /* Prevent cell content from wrapping */
}

.report1-table-header1-cell {
  background-color: whitesmoke;
  font-weight: 700;
  font-size: 24px;
  color: rgb(17, 52, 73);
  text-align: left;
}

.report1-table-header2-cell-left {
  border-bottom: 1px solid rgb(17, 52, 73);
  background-color: whitesmoke;
  font-weight: 700;
  color: rgb(17, 52, 73);
  text-align: left;
}

.report1-table-header2-cell-right {
  border-bottom: 1px solid rgb(17, 52, 73);
  background-color: whitesmoke;
  font-weight: 700;
  color: rgb(17, 52, 73);
  text-align: right;
}

.report1-table-body-cell-left {
  background-color: whitesmoke;
  color: rgb(17, 52, 73);
  text-align: left;
}

.report1-table-body-cell-right {
  background-color: whitesmoke;
  color: rgb(17, 52, 73);
  text-align: right;
}

.report1-table td,
.search-input {
  font-size: 1em;
}

.search-input {
  border: none;
  outline: none;
}

.table-headercolumn {
  width: 100px;
  min-width: 100px;
  box-sizing: border-box;
}

.popup-select {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  background-color: rgb(17, 52, 73);
  color: whitesmoke;
}

.popup-display {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  padding: 10px 20px;
  background-color: whitesmoke;
  color: rgb(17, 52, 73);
  border-color: rgb(17, 52, 73);
  border-style: groove;
  border-radius: 10px;
}

.report2-table {
  white-space: pre-line;
  overflow-x: visible;
  table-layout: fixed;
}

.report2-table-body-cell-left {
  background-color: white;
  color: rgb(17, 52, 73);
  text-align: left;
  overflow-wrap: break-word;
}

.report2-table-body-cell-right {
  background-color: white;
  color: rgb(17, 52, 73);
  text-align: right;
}

.menuhistoryframe {
  margin-left: 16px;
  display: block;
  flex-direction: column;
  justify-content: left;
  align-items: center;
  font-weight: 700;
  font-size: 20px;
  top: 80px;
  position: absolute;
}

.menuhistory,.menuhistory0 {
  padding: 10px 15px;
  margin-bottom: 10px;
  width: 250px;
  color: white;
  background-color: rgb(17, 52, 73);
}

.menuhistory0 {
  margin-bottom: 20px;
}

.menuhistory:hover {
  cursor: pointer;
  background-color: white;
  color: rgb(17, 52, 73);
}

.searchblock {
  position: relative;
  display: inline-block;
  min-width: 248px;
}

#menuhistoryinput {
  background-image: url('searchicon.png');
  background-position: 5px 7px;
  background-repeat: no-repeat;
  background-color: white;
  color: rgb(17, 52, 73);
  font-size: 16px;
  padding: 10px 40px;
  max-width: 100%;
}

.search-dropdown-content {
  display: none;
  position: absolute;
  background-color: #f6f6f6;
  width: 278px;
  overflow: auto;
  border: 1px solid #ddd;
  z-index: 9;
}

.search-dropdown-content li {
  color: white;
  background-color: rgb(17, 52, 73);
  padding: 2px 0px;
  text-decoration: none;
  display: block;
  width: 100%;
  font-size: 12px;
}

.search-dropdown-content li:hover {
  background-color: white;
  color: rgb(17, 52, 73)
}

.show-search {
  display: block;
}

/* ---------------------------------------------------- */

.fullbody {
  margin-top: 55px; /* Push content below fixed header */
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 55px);
}

.elements {
  position: relative;
  /* padding: 20px 0 0 0; */
  padding: 20px 0;
  display: block;
  max-width: 100%;
}

.project-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 100px;
  margin-top: 20px;
  margin-left: 20px;
  margin-right: 20px;
  font-size: 18px;
  color: var(--textcolor);
  opacity: 100%;
  max-width: 100%;
}

.mainelement3col {
  display: block;
  align-items: left;
  text-align: left;
  width: 400px;
  margin-left: 12px;
}

.mainelement2col {
  display: block;
  align-items: center;
  text-align: left;
  width: 600px;
}

.formdata {
  padding: 15px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: top;
  gap:20px;
  box-shadow: inset;
  background-color: var(--headerbackgroundcolor);
  border-radius: 25px;
}

.formtextinput {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 20px;
  justify-content: top;
  width: 90%;
}

.formfield {
  font-size: 18px;
  border-color: var(--headerbackgroundcolor);
}

.formfield2 {
  height: 220px;
  font-size: 19px;
}

.submitbutton,
.formanswer {
  padding: 10px 30px;
  background-color: whitesmoke;
  color: var(--textcolor);
  font-size: 24px;
  font-weight: 700;
  border-radius: 15px;
  width: 250px;
  text-align: center;
}

.submitbutton:hover {
  color: whitesmoke;
  background-color: var(--textcolor);
  border-style: outset;
  border-width: 4px;
  border-color: whitesmoke;
  cursor: pointer;
}

.formsubmit {
  display: flex;
  flex-direction: row;
}

.mainelementtitle1,
.contactinfo {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 500;
}

.mainelementtitle2 {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 500;
}

.top-element {
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--textcolor);
  opacity: 95%;
}

.top-elementindex {
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white; /* var(--textcolor); */
  background: rgba(3, 21, 32, 0.6);
  margin: 0px 100px;
  border-radius: 35px;
}

.top-element1 {
  font-size: 46px;
  font-weight: 700;
}

.top-element2-28 {
  margin-top: 25px;
  font-size: 28px;
  font-weight: 500;
  padding: 0px 250px;
}

.top-element2-22 {
  margin-top: 25px;
  font-size: 22px;
  font-weight: 500;
  padding: 0px 250px;
}

.top-element2 span {
  background-color: none;
  opacity: 100%;
  text-shadow: whitesmoke;
}

.bottom-element {
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--textcolor);
  opacity: 95%;
  margin-top: 40px;
}

.bottom-element1 {
  font-size: 46px;
  font-weight: 700;
}

.bottom-element2 {
  margin-top: 25px;
  font-size: 28px;
  font-weight: 500;
  padding: 0px 250px;
}

.bottom-element2 span {
  background-color: whitesmoke;
  opacity: 100%;
  text-shadow: whitesmoke;
}

.foto-container {
  position: relative;
  overflow: hidden;
  display: flow-root; /* Prevents margin collapse */
}

.hand {
  position: absolute;
  margin-top: 10px;
  margin-left: -40px;
  color:white;
  padding: 5px;
  background-color: rgb(3, 7, 62);
  opacity: 50%;
  z-index:5;
  border-radius: 100px;
}

.footer-element {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  gap: 140px;
  color: whitesmoke;
  font-size: 14px;
  font-weight: 400;
  padding: 10px 0;
  margin-bottom: 0;
  background: var(--textcolor, #444);
}

.infooter {
  display: flex;
  gap: 35px;
  flex-direction: row ;
 }

.bx {
  font-size: 18px;
}

.bx:hover {
  cursor: pointer;
}

@media (max-width: 820px) {
  .top-elementindex {
    margin: 0px 20px;
  }
  .top-element1 {
    font-size: 36px;
  }
  .top-element2 {
    margin-top: 25px;
    font-size: 18px;
    font-weight: 400;
    margin-left: 10px;
    padding: 0px 5px;
  }
  .footer-element {
    padding: 10px 5px;
    gap: 50px;
  }
}

@media (min-width: 821px) and (max-width: 1199px) {
  .top-element1 {
    font-size: 36px;
  }
  .top-element2,
  .top-element2-28 {
    margin-top: 25px;
    font-size: 20px;
    font-weight: 500;
    padding: 0px 10px;
  }
  .footer-element {
    padding: 10px 10px;
  }  
}