* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #150050;
  color: #f5f6f7;
  font-family: Tahoma;
  font-size: 20px;
}

.head {
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

h1, p {
  margin: 0.5em auto;
  text-align: center;
}

form {
  width: 60vw; /* Adjust width for better space utilization on mobile */
  margin-left: auto;
  margin-right: auto;
  padding: 1em; /* Add some padding for better spacing on mobile */
}

fieldset {
  border: none;
  padding: 1.5rem 0;
  border-bottom: 3px solid #3b3b4f;
}

fieldset:last-of-type {
  border-bottom: none;
}

label {
  display: block;
  margin: 0.5rem 0;
}

input,
textarea,
select {
  margin: 10px 0 0 0;
  width: 100%;
  min-height: 2em;
  font-size: 20px;
  padding: 8px; /* Increase padding for better touch interaction */
}

input, textarea, select, button {
  background-color: #000000;
  border: 1px solid #000000;
  color: #ffffff;
}

.buttonContainer {
  display: flex;
}

button[id="newTab"] {
  display: block;
  border: 1px solid #fff;
  width: 30%;
  margin: 1em auto;
  height: 2.5em;
  font-size: 1rem; /* Adjust font size for mobile */
  min-width: 200px;
  transition: 0.3s;
  cursor: pointer;
}

#newTab:hover {
  background-color: #ffffff;
  color: #000000;
  width: 45%;
  font-size: 1rem;
}

input[type="submit"], button[id="submit"] {
  display: block;
  border: 1px solid #fff;
  width: 50%;
  margin: 1em auto;
  height: 2.5em;
  font-size: 1rem; /* Adjust font size for mobile */
  min-width: 200px;
  transition: 0.3s;
  cursor: pointer;
}

#submit:hover {
  background-color: #ffffff;
  color: #000000;
  width: 65%;
  font-size: 1rem;
}

input[type="file"] {
  padding: 4px 8px; /* Adjust padding for mobile */
}

#foot {
  position: absolute;
  bottom: auto;
  background-color: rgba(0, 0, 0, 1);
  padding: 5px 0;
  width: 100%;
  text-align: center; /* Center align text in the footer on mobile */
}

/* MOBILE VIEW */

@media screen and (max-width: 480px) {
  body {
    margin: 0;
    height: 100vh;
  }

  form {
    width: 100vw;
    padding: 1em;
  }

  #foot {
    position: absolute;
    bottom: 0;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0);
  }
}
