body {
  background-image: url("../images/thb-hr.jpg");
  background-size: cover;
}

div.center {
  margin: auto;
  margin-top: 10%;
  width: 60ch;
  text-align: center;
  border-radius: 8px;
  background-color: rgb(190, 189, 189);
  border: 2px solid rgba(255, 255, 255, 0.534);
  box-shadow: 0 3px 5px 6px rgba(51, 39, 156, 0.068), 5px 10px 18px 12px rgba(45, 35, 133, 0.24); 
}

div#primary {
  padding-top: 30px;
  font-size: 30px;
  color: rgb(62, 62, 91);
  align-self: center;
}

p {
  text-align: center;
  padding: 10px;
  padding-top: 0px;
  font-size: medium;
  font-family: "segoe ui", verdana, helvetica, arial, sans-serif;
}

table > tbody > tr > td > label{
  font-family: Verdana, sans-serif;
  font-size: small;
}

table > tbody > tr > td,
table > tbody > tr > th {
  font-family: Verdana, sans-serif;
  font-size: small;
}

#email {
  background-color: rgba(0, 255, 255, 0.13);
  border-radius: 4px;
  width: 90%;
  line-height: 24px;
  padding-bottom: 2%;
  font-family: "segoe ui", verdana, helvetica, arial, sans-serif;
}

table {
  margin: auto;
  width: 80%;
}

#buttonTable {
  margin-top: 3%;
  margin-bottom: 3%;
}

input[type=submit],
input[type=button] {
  font-family: inherit;
  border: none;
  opacity: 0.9;
  border-radius: 6px;
  font-size: 15px;
  line-height: 32px;
  width: 120px;
  cursor: pointer;
  padding: 0 5px;
  color: #fff;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-green {
  background-color: #28a745;
  background-color: #04AA6D;
}

.btn-green:hover {
  background-color: #218838;
  transform: scale(1.05);
}

.btn-red {
  background-color: #dc3545;
  background-color: #f44336;
}

.btn-red:hover {
  background-color: #bd2130;
  transform: scale(1.05);
}

@media screen and (max-width: 600px) {
  div.center {
    width: 90%;
    margin-top: 20%;
    padding: 10px;
    opacity: 80%;
  }

  div#primary {
    font-size: 1.5rem;
  }

  p {
    font-size: 0.95rem;
  }

  table td {
    font-size: 0.85rem;
    padding: 2px 5px; /* add this to control spacing */
  }

  input[type=submit],
  input[type=button] {
    font-size: 0.9rem;
    width: 80%; /* smaller width */
    margin: 5px auto; /* vertical space and horizontal centering */
    display: block;
  }

  table {
    width: 100%;
  }

  #email {
    width: 100%;
  }
}