/*data table*/

/* Reset default styles */
/* General styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', sans-serif;
  padding: 40px;
  background-color: steelblue;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;  
  min-height: 100vh; /* Set a minimum height for responsiveness on smaller screens */
}

/* Header styles */
header {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding: 20px 0;
  width: 100%;
  position: fixed;
  top: 0;
  height: 100px;
}

@media (max-width: 768px){
  header {
    height: 80px;
    padding: 8px 0;
  }
}

/* Welcome message styles */
.welcome-message h1 {
  margin-top: 20px;
}
.copyright p {
  margin-top: 30px;
}

/* Table styles */
table {
  width: 80%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  border-radius: 20px;
  border: 4px solid #ccc;
  position: relative;
}

@media (max-width: 768px) {
  table {
    width: 90%;  /* Adjust the width for smaller devices */
  }
}

th, td {
  padding: 15px;
  text-align: left;
}

@media (max-width: 768px) {
  th, td {
    padding: 10px; /* Further reduce the padding on smaller devices */
  }
}

th {
  background-color: #394263!important;
  color: white;
}

tr:nth-child(even) {
  background-color: #f2f2f2;
}

tr:nth-child(odd) {
  background-color: #ffffff;
}

/* Footer styles */
footer {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  text-align: center;
  padding: 10px 0;
  width: 100%;
  position: fixed;
  bottom: 0;
  height: 100px;
  font-size: 20px;
}

@media (max-width: 768px) {
  footer {
    height: 80px;
    padding: 8px 0;
  }
}

/* Copyright text styles */
footer .copyright {
  font-size: 18px;
}

/*container*/

.form-container {
  position: absolute;
  top: 50%;
  right: 1%;
  transform: translateY(-50%);
  background-color: #f2f2f2;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  max-width: 275px;
  width: 90%;  /* Adjust the width of the form container for better responsiveness */
  z-index: 1;
}

@media (max-width: 768px) {
  .form-container {
    position: static;  /* Change the position to static for smaller screens */
    width: 100%;  /* Use the full width of the container for smaller screens */
    margin-top: 20px;  /* Add margin for better spacing on smaller screens */
  }
}

/* Input styles */
.form-input,
.form-textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  box-sizing: border-box;
}

.form-textarea {
  height: 150px;
}

/* Submit button styles */
.form-submit {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  box-sizing: border-box;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
}

@media (max-width: 768px) {
  .form-submit {
    width: 100%;  /* Adjust the width for smaller screens */
  }
}

.form-submit:hover {
  background-color: #45a049;
}
