:root {

    --color-1: #ffffff;
    --color-2: #cfe2f3;
    --color-3: #9fc5e8;
    --color-4: #6fa8dc;
    --color-5: #3d85c6;
    /* background white */
    --color-6: #fff; 

  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
  }
  
  /* Standard page style */
  body {
    background: var(--color-6);
    font-family: Arial, Helvetica, sans-serif;
    max-width: 100%;
  }

  header{
  
    background-color: var(--color-2);
    padding-top: 10px;
    margin: 0px;
  }

  footer{
  text-align: center;
  color: var(--color-5);
  background-color: var(--color-2);
  padding: 20px;
  margin-top: 25px;
  }

  section{
      padding-top: 40px;
      display: block;
      margin: 0 auto;
      text-align: center;
      
  }

  header p {
      color: var(--color-5);
      padding: 0px; 
      margin: 0px;
      padding-bottom: 10px;
      font-size: 30px;
      text-align: center;
      font-weight: Bold;
      border-bottom: 2px solid var(--color-3);
  }

  h1 {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 10px;
    padding-left: 20px;
    margin: 0;
    font-size: 20px;
    background-color: var(--color-4);
    color: var(--color-1);
    text-align: left;
    border-bottom: 8px var(--color-2) solid;
  }

  .box1, .box2 {
    display: inline-block;
    box-sizing: border-box;
    padding: 20px;
    margin-top: 0px;
    margin-bottom: 15px;
    
  }

  .box1{
    width: 12%;
    margin-right: 10px;
  }

  .box2{
    width: 79%;
  }

  .box1 ul {
    list-style: none;
    font-weight: Bold;
    
  }
  
  .box1 ul li {
    color: var(--color-1);
    display: inline-block;
    padding: 0.6rem;
    position: relative;
    background-color: var(--color-2);
  }

#navbar {
    background-color:var(--color-2);
    position:sticky;
    top: 0;
    text-align: center;
    color: var(--color-5);
}

#navbar ul {
  list-style: none;
  font-weight: Bold;
  
}

#navbar ul li {
  color: var(--color-1);
  display: inline-block;
  padding: 0.6rem;
  position: relative;
  background-color: var(--color-2);
}

#navbar ul li a {
  color: var(--color-5);
  text-decoration: none;
}

#navbar ul li ul {
  display: none;
}

#navbar ul li:hover {
  cursor: pointer;
  background: var(--color-3);
  color: var(--color-5);
}

#navbar ul li:hover a {
  color: var(--color-5);
}


#navbar ul li:hover ul {
  display: block;
  position: absolute;
  left: 0;
  width: 200px;
  margin-top: 0.6rem;
}

#navbar ul li:hover ul li {
  display: block;
  background: var(--color-4);
}

#navbar ul li:hover ul li a {
  color: var(--color-1);
}

#navbar ul li:hover ul li:hover {
  background: var(--color-3);
  color: inherit;
}

#navbar ul li:hover ul li span {
  float: right;
  color: var(--color-5);
  background: var(--color-1);
  padding: 0.2rem 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  border-radius: 5px;
}

#navbar ul li:hover ul li:hover span {
  background: var(--color-2);
}


  #myInput {
    background-image: url('/image/searchicon.png');
    background-position: 5px 8px;
    background-size: 25px 25px;
    background-repeat: no-repeat;
    padding: 5px;
    border: var(--color-4) 5px solid;
    background-color: var(--color-2);
    font-weight: bold;
    padding-left: 35px;
    padding-top: 15px;
    padding-bottom: 15px;
    width: 100%;
  }
/* font search box */
  ::placeholder {
    color: var(--color-5);
    font-weight: bold;

  }

 
  /* Normal table style */
  table {
    border-collapse: collapse;
    table-layout: auto;
    background-color: var(--color-2);
    text-align: left;
    width: 100%;
    border: none;
  }
    
  a:link {
    color: Black;
    text-decoration: none;
  }

  a:visited {
  color: Black;
  text-decoration: none;
  }

  a:hover {
    text-decoration: none;
  }

  th, td {
      text-align: left;
      padding: 8px;
      border: none;
      border-bottom: 1px solid var(--color-5);
  }
th{
  background-color: var(--color-4);
  color: var(--color-1);
}
  tr:nth-child(even) {
    background-color: var(--color-6);
  }

  /* Item list style */
  #myTable tr:hover{
    background-color: var(--color-5)
  }


  /* Project view style */
  #Project_info_table, #Project_BOM_table,  #Project_edit, #Invoice_edit { 
    border: 1px solid var(--color-5);
    padding: 0px ;
    margin: 0px ;
	width: 100%;
  }
  
  #Project_edit td{
    width: auto ;
  }

  #Project_info_table td:nth-child(1){
    width: 25%;
  }
  
  #Project_details_box{
    padding: 0px ;
    margin: 0px ;
	width: 100%;
    padding-bottom: 40px;
  }

  #project_details_box h1{
    margin-bottom: 20px;
  }

  #Invoice_change_box, #Project_change_box{
    padding: 0px;
    margin: 0px;
    padding-top: 40px;
    width: 700px;
  }

/* List style */
#List_box{
  padding: 0px;
  margin: 0px;
  margin-top: 0px;
}

/* Item details style*/
#Invoice_details_table, #Item_details_table {
  border: 1px solid var(--color-5);
  padding: 0px ;
  margin: 0px ;
  width: 100;
}

#Item_details_table td:nth-child(1), #Invoice_details_table td:nth-child(1){
  width: 28%;
}

#Item_details_box, #Invoice_details_box{
  margin: 0;
  padding: 0;
  margin-bottom: 40px;
}

#Item_details_box b, button, #button_reg, #Remove_button, #Button_Modal{
  padding: 10px;
  background-color: var(--color-2);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

#Button_Modal{
  margin-bottom: 10px;
}
#Remove_button{
  background-color: red;
  color: white;
  margin-bottom: 40px;
}
#Remove_button a{
  color: white;
}
#Remove_button:hover{
background-color: darkred;
}

#Item_details_box b:hover, button:hover, #button_reg:hover{
  background-color: var(--color-3);
}

#Item_details_box a, button, #button_reg, #Invoice_details_box a{
  color: var(--color-5);
}

#item_change_form td:first-child, #Item_details_table td:first-child, #Form_style td:first-child, #Invoice_details_table td:first-child{
  font-weight: bold;
  width:1px;
  white-space:nowrap;
}

.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 16px;
  width: 16px;
  background-color: #eee;
  border-radius: 50%;
}

.container input:checked ~ .checkmark {
  background-color: var(--color-5);
}

/* Form style */
#Form_style{
  border: 1px solid var(--color-5);
}

#Form_style input, #Invoice_edit input {
    width: 100%;
    padding: 3px;
    border: var(--color-4) 1px solid;
    border-radius: 0px;
    vertical-align: left;
  }
  
  #Form_style button, #login button, #Invoice_details_table button, #Invoice_edit button, #Project_edit button {
    width: 100%;
    margin: 0px;
    padding: 0px;
    padding-top: 3px;
    padding-bottom: 3px;
    background-color: var(--color-2);
    color: var(--color-5);
    font-size: 16px;
    cursor: pointer;
    border: 1px var(--color-5) solid;
    border-radius: 15px;
  }

  #Form_style button:hover, #Invoice_details_table button:hover {
    background-color: var(--color-3);
  }

/* New account */
.form-group{
  padding: 0px;
  margin: 0px;
  margin-top: 5px;
  margin-bottom: 5px;
  text-align: left;
}

.container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 3px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}


/* Login page */
#login {
  border: 2px solid var(--color-5);
}




/* The Modal (background) */
.modal, .modal_new_item {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

.modal_new_item-content{
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  background-color: var(--color-6);
}

.modal_new_item-content h1{
  border-radius: 0px;
  margin-bottom: 25px;
  border: none;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close, .close_modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus,
.close_modal:hover,
.close_modal:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 100%;
  }
}

@media(min-width: 1000px){
  section{
  width: 100%;

     }
}  

@media(max-width: 1000px) {
  h1{
    border-radius: 0px;
  }
#Item_details_box{
  width: 100%;
}
.box1, .box2, #Invoice_change_box, #Project_change_box {
    width: 100%;
    padding: 0px;
    
}

#navbar {
    background-color:var(--color-2);
    position: relative;
    top: 0;
    text-align: center;
    color: var(--color-5);
}

#Nav_mobile_sticky{
  position: sticky;
  top: 0px;
}
  #navbar ul li {
    display: block;
    padding: 0px;
    padding-top: 1px;
    padding-bottom: 1px;
  }

  #navbar b{
      display: none;
  }

  #navbar ul li:hover ul {
    width: 100%;
    position: relative;
  }
  section{
      float: middle;
      width: 100%;
      height: auto;
  }
  #Item_details_table , #Invoice_details_table{
    width: 100%;
  }
  header p{
      font-size: 24px;
  }

  .modal_new_item-content, .modal_new_item, .modal_new_item{
 
    width: 100%;
    
  }



}