* {
  margin: 0;
  padding: 0;
  font-family: 'Oswald', sans-serif;
}

body {
  background-color: rgb(255, 255, 255);
  color: rgb(34, 34, 34);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

.footer {
  width: 100%;
  text-align: center;
  font-size: 26px;
  color: rgb(34, 34, 34);
  font-weight: lighter;
  margin-top: 20px;
  position: relative;
  display: none;
}

.footer h1,
.footer h2 {
  font-weight: lighter;
}

.footer p {
  text-decoration: none;
  color: rgb(34, 34, 34);
  font-size: 16px;
  margin: 10px;
  font-weight: 200;
  border-bottom: 8px solid rgb(49, 49, 49);
}

.email {
  color: blue;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}

.container {
width: auto;
display: flex;
flex-direction: column;
font-size: 20px;
align-items: self-start;
padding: 20px;
margin-top: -90px;
}

.Date{
font-size: 20px;
}

h3{
font-weight: bolder;
}
h4{
font-weight: lighter;
font-size: 20px;
position: relative;
left: 20px;
text-align: left;
}
h2{
font-weight: bolder;
font-size: 25px;
margin: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
}
.registration {
  width: 80vmin;
  height: auto;
  background-color: white;
  box-shadow: -2px 0px 20px 20px rgb(21 46 16 / 24%);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 50px;
  text-align: center;
}
.date{
  font-size: 25px;
  margin: 10px;
  font-weight: bolder;
  display: flex;
  justify-content: right;
  color: rgb(34, 34, 34);
}
.form-group{
  margin: 10px 0;
  padding: 20px;
}
.form-group input{
  width: 90%;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  outline: none;
  margin: 10px;
  font-size: 16px;
}
.form-group input:focus{
 border: 4px solid #007BFF;
}
#submit{
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
#submit:hover{
  background-color: #0056b3;
}
#submit:active{
  background-color: #004085;
}
#Print_btn{
  background-color: #28a745;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 5px;
  cursor: pointer;
  position: absolute;
  right: 0;
  margin: 5px;
  top: 0;
}
#Company{
  font-size: 56px;
}
#preview{
  display: flex;
  justify-content: center;
  align-items: center;

}
.cell-form{
  width: 80vmin;
  height: auto;
  background-color: white;
  box-shadow: -2px 0px 20px 20px rgb(21 46 16 / 24%);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 50px;
  text-align: center;
  display: none;
}
.form-group2{
  display: flex;
  flex-direction: column;
}
#next_submit{
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
#next_submit:hover{
  background-color: #0056b3;
}
#next_submit:active{
  background-color: #004085;
}
#pr-btn{
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}
#pr-btn:hover{
  background-color: #0056b3;
}
#pr-btn:active{
  background-color: #004085;
}
#table{
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    table-layout: auto; /* let it auto-adjust */
    position: relative; /* DO NOT use absolute */
    transform: none; /* Remove transform */
}
table, th, td {
  border:2px solid black;
  border-collapse: collapse;
  white-space: normal; 
  height: auto;
  width: 5%;
  text-align: left;
}
.table-contents{
  width: 80vmin;
  height: auto;
  background-color: white;
  box-shadow: -2px 0px 20px 20px rgb(21 46 16 / 24%);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: 50px;
  text-align: center;
  display: none;
}
.form-group2 input{
  width: 90%;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  outline: none;
  margin: 10px;
  font-size: 16px;
}
#table-btn{
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;

}
#table-btn:hover{
  background-color: #0056b3;
}
#table-btn:active{
  background-color: #004085;
}
#table-back{
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}
#table-back:hover{
  background-color: #0056b3;
}
#table-back:active{
  background-color: #004085;
}
@media print{
  #Print_btn{
    display: none;
  }
  #preview{
    display: none;
  }
  #addElement{
    display: none;
  }
  #table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    table-layout: auto; /* let it auto-adjust */
    position: relative; /* DO NOT use absolute */
    transform: none; /* Remove transform */

  }

  .table-body td, .table-body th {
    font-size: 14px;
  }
}
@media (max-width: 768px) {
  .registration {
    width: 80vmin;
    height: auto;
    padding: 20px;
    box-shadow: -1px 0px 15px 15px rgb(21 46 16 / 24%);
    margin-top: 30px;
  }
.form-group{
  margin: 10px 0;
  padding: 20px;
  text-align: center;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.form-group2{
  margin: 10px 0;
  padding: 20px;
  text-align: center;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
  .form-group label {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .form-group input {
    width: 100%;
    font-size: 20px;
  }

  #submit {
    padding: 10px;
    font-size: 20px;
    width: 100%;
  }

  .footer {
    font-size: 18px;
    margin-top: 10px;
  }

  .footer h1, .footer h2 {
    font-size: 22px;
  }


  .footer p {
    font-size: 14px;
    border-bottom: 4px solid rgb(49, 49, 49);
  }

  .email {
    font-size: 14px;
  }
  table{
    width: auto;
    border-collapse: collapse;
    margin: auto;
    position: relative;
    top: 0%;
    left: 0%;
    transform: translate(0%, 150%);
  }
}
