* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.btn {
  width: 230px;
  height: 45px;
  padding: 10px;
  border: 2px solid #333;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
  background: linear-gradient(to bottom, #eee 0%, #bbb 100%);
  color: #333;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

body {
  font: 18px "Lucida Grande", Helvetica, Arial, sans-serif;
}

main {
  width: 100vw;
  height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

div.logo {
  margin-bottom: 20px;
}

div.logo img {
  width: 500px;
  height: 300px;
  object-fit: contain;
  border: 4px solid #333;
  border-radius: 5px;
}

div.form-group {
  width: 500px;
  margin: 10px 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 3px solid #333;
  border-radius: 5px;
}

div.form-group label {
  margin-right: 10px;
}

div.form-group input {
  padding: 5px;
  border: 0;
  flex-grow: 1;
  font-size: 18px;
  color: #2e2e2e;
}

button[type="submit"] {
  margin-left: 135px;
}

div.error {
  width: 300px;
  height: 100px;
  padding: 20px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

div.error p {
  color: tomato;
}

div.upload input[type="file"] {
  visibility: hidden;
  width: 1px;
}

div.upload label {
  display: inline-block;
  text-align: center;
}

table.list {
  margin: 20px 0;
  overflow: hidden;
  border: 3px solid #333;
  border-radius: 10px;
  border-collapse: collapse;
  text-align: center;
}

table.list th, td {
  padding: 10px;
  width: 250px;
}

table.list th {
  background-color: #333;
  font-weight: normal;
  color: #fafafa;
}

table.list td {
  border: 1px solid #d3d3d3;
  font-size: 14px;
}

table.list tr:nth-child(odd) {
  background-color: #f2f2f2;
}

table.list tr:nth-child(even) {
  background-color: #fafafa;
}

div.actions {
  width: 700px;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-content: flex-end;
}

.modal-container {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  background-color: rgba(0, 0, 0, .5);
  transition: visibility 0.2s, opacity 0.2s linear;
}

.modal-container.non-active {
  opacity: 0;
  visibility: hidden;
  transition: visibility 0.2s, opacity 0.2s linear;
}

.modal-container > div {
  width: 700px;
  height: 500px;
  background-color: #fafafa;
  border: 3px solid #333;
  border-radius: 10px;
}

.modal-container div.header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #333;
  border-radius: 5px 5px 0 0;
  background-color: #bbb;
}

.modal-container div.header a {
  color: #333;
  text-decoration: none;
}

.modal-container div.content {
  height: 350px;
  padding-right: 15px;
  overflow-y: scroll;
  border-bottom: 1px solid #333;
  background-color: #333;
}

.modal-container div.content div.field {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #eee;
}
.modal-container div.content div.field:nth-child(even) {
  background-color: #e7e7e7;
}

.modal-container div.content div.field input[type="text"] {
  margin-left: 10px;
  flex-grow: 1;
}

.modal-container div.modal-actions {
  height: 65px;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hidden {
  display: none;
}

.logout-btn {
  position: absolute;
  top: 0;
  right: 0;
  padding: .5em;
  border: 0;
  font-size: 1em;
  cursor: pointer;
  color: #333;
  text-decoration: none;
}

.logout-btn:hover {
  color: #333;
  text-decoration: underline;
}
