* {
  margin: 0;
  padding: 0;
}

body {
    font-family: "Montserrat";
    min-width: 1020px;
}

body.success-indication {
  background-color: #28a74622;
}

.tab {
    overflow: hidden;
}

/* Style the buttons that are used to open the tab content */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    border-bottom: 2px solid lightgray;
    margin-right: 20px;
    transition: 0.3s
}

/* Change background color of buttons on hover */
.tab button:hover {
    border-bottom: 2px solid #1976d2;
}

/* Create an active/current tablink class */
.tab button.active {
    border-bottom: 2px solid #1976d2;
}

/* Style the tab content */
.tabcontent {
    display: none;
    border-top: 1px solid lightgray;
    height: fit-content;
    padding-top: 10px;
}

h1 {
  text-align: center;
  margin-bottom: 10px;
}

.muted {
  color: gray;
  font-style: italic;
  font-size: 13px;
}

#main-content {
  display: flex;
  justify-content: center;
}

.main-content-container {
  padding: 20px 10px 20px 30px;
  width: 50%;
  height: 410px;
  min-width: 500px;
}

.main-content-container:first-child {
  border-right: 1px solid #dddddddd;
}

#filetype_selectors > div > label {
  font-size: 16px;
}

#drop-area {
  border: 2px dashed #ccc;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  height: 265px;
}

#file-upload-hint {
  margin-bottom: 15px;
}

.process-hints {
  color: #1976d2;
  font-size: 14px;
  font-weight: bold;
}

.filetype-container {
  margin-left: 5px;
  margin-top: 15px;
  height: 155px;
}

#drop-area.highlight {
  border-color: #1976d2;
}

#drop-area.file-selected {
  border: 2px solid #0f0;
}

p {
  margin-top: 0;
}

.my-form {
  margin-bottom: 10px;
}

#gallery {
  margin-top: 10px;
}

#gallery img {
  width: 150px;
  margin-bottom: 10px;
  margin-right: 10px;
  vertical-align: middle;
}

.browse-button {
  display: inline-block;
  padding: 10px;
  background: #ccc;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.browse-button:hover {
  background: #ddd;
}

#id_file {
  display: none;
}

#id_other {
    margin-left: 10px;
}

#entity-display {
  padding: 10px 0px;
  margin-bottom: 5px;
  width: 100%;
  font-size: 25px;
  font-weight: 500;
}

#entity-name {
  font-size: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
/*
#candidate-id {
  font-size: 14px;
  color: gray;
}
*/
.filetype_selections {
  padding: 0px 0px 0px 10px;
  display: flex;
}

#upload_button {
  position: absolute;
  bottom: 0;
  margin-top: 10px;
  margin-bottom: 5px;
  background-color: white;
  color: #0a0;
  border: 2px solid #0a0;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 0px;
  font-weight: bold;
  transition-duration: 0.3s;
  font-size: 14px;
  width: 90%;
}

#upload_button:hover {
  background-color: #0a0;
  color: white;
  border: 2px solid #0a0;
}

.btn-disabled {
  background-color: white;
  color: gray !important;
  border: 1px solid gray !important;
  cursor: default !important;
  pointer-events: none !important;
}

.btn-disabled:hover {
  background-color: white !important;
  color: gray !important;
  border: 1px solid gray !important;
  cursor: default !important;
}

.document-list {
  padding-right: 10px;
  padding-top: 5px;
  height: 405px;
  overflow-y: auto;
}

.document-container {
  padding-top: 5px;
}

.document-entry {
  padding: 10px 5px;
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 1px 1px 5px gray;
  transition-duration: 0.3s;
  margin: 10px 5px;
  min-width: 360px;
  height: 20px;
  line-height: 20px;
  user-select: none;
  display: flex;
}

.document-entry:hover {
  box-shadow: 2px 2px 10px black;
}

.document-entry a {
  text-decoration: none;
  color: #1976d2;
  font-weight: 600;
  width: 90%;
}

.document-delete {
  height: 100%;
  width: 10%;
  border-radius: 5px;
  position: relative;
}

.document-delete:after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: "\D7";
  color: #FF0000;
  text-align: center;
  font-size: 30px;
  font-weight: 600;
}

.no-docs-hint {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  color: gray;
  font-style: italic;
}

.messages {
  position: absolute;
  right: 15px;
  bottom: 20px;
  list-style: none;
  background: #28a74588;
  padding: 15px;
  border-radius: 10px;
}

.document-search-input {
  margin-left: 10px;
  float: right;
  margin-right: 15px;
}

.status-message-container {
  margin-top: 10px;
  padding: 10px 0px;
  border-radius: 10px;
  width: 100%;
  text-align: center;
}

.floating-status-message {
  position: absolute;
  right: 30px;
  bottom: 30px;
  padding: 10px;
  min-width: 300px;
  max-width: 800px;
  border-radius: 10px;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #155724;
}

.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #0c5460;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #721c24;
}

#overlay {
  width: 100vw;
  height: 100vh;
  position: absolute;
  background-color: #aaaaaadd;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column;
}

#spinner {
  background-color: white;
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#spinner-inner {
  padding: 0;
  margin: 0 auto;
  width: 50%;
  height: 50%;
  border: 8px solid lightgray;
  border-top: 8px solid #1976d2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#spinner-text {
  font-size: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

#global_message {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-bottom: 5px;
  padding: 10px 0;
  background-color: #f8d7da;
  font-size: 15px;
  color: #721c24;
  border-bottom: 1px solid #721c24;
  box-shadow: 0px 2px 5px gray;
  user-select: none;
}

#login-form-container {
  border: 1px solid black !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 25px;
  width: 500px;
}

#login-form>table>tbody>tr>td>label {
  font-size: 16px;
}

#login-form>table>tbody>tr>td>input {
  width: 200px;
  margin-left: 10px;
  font-size: 16px;
  padding: 5px;
  width: 375px;
}

.login-hint {
  padding: 10px;
  width: 100%;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 10px;
}

#login-button {
  margin-top: 10px;
  background-color: white;
  color: #1976d2;
  border: 2px solid #1976d2;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px;
  font-weight: bold;
  transition-duration: 0.2s;
  font-size: 14px;
}

#login-button:hover {
  background-color: #1976d2;
  color: white;
}

#password-requirement-container {
  margin-bottom: 10px;
  font-size: 12px;
  padding-left: 10px;
}

#password-requirement-container ul {
  list-style: none;
}

#confirmation-box {
  background-color: white;
  width: 25%;
  min-width: 400px;
  max-height: 500px;
  padding: 20px 10px;
}

#confirmation-box > * {
  width: 100%;
  text-align: center;
  display: inline-block;
  padding-bottom: 10px;
}

#confirmation-button-container {
  padding-top: 5px;
  padding-bottom: 0;
  display: flex;
  justify-content: center;
}

.confirmation_btn {
  margin: 0 15px;
  padding: 5px 10px;
  border: 1px solid black;
  cursor: pointer;
  font-weight: 700
}

.confirm_btn {
  background-color: red;
  color: white;
  border: 2px solid red;
}

.cancel_btn {
  color: red;
  border: 2px solid red;
}

.dropdown {
    width: 100%;
    margin-top: 5px;
    padding: 8px 16px;
    font-size: 14px;
    border: 2px solid black;
}

#document-dropdown {
  margin: 0 auto;
}


@media (max-width: 1255px) {

  body {
    min-width: 600px;
  }

  #main-content {
    display: flex;
    flex-flow: column;
    align-items: center;
  }

  #main-content > div {
    padding: 20px 40px;
    width: 75%;
    height: fit-content;
    max-width: 600px;
  }

  #main-content > div:first-child {
    border-bottom: 1px solid #bbbbbb;
    border-right: none;
  }
}
