﻿* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #fff;
  font-family: sans-serif;
  font-size: calc(16rem / 16);
  line-height: calc(20 / 16);
  color: #383838;
}

fieldset {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
}

input[type="email"] {
  font-family: sans-serif;
  font-size: calc(16rem / 16);
  line-height: calc(20 / 16);
  color: #383838;
  border-radius: 0.25rem;
  border: 1px solid #ccc;
  padding: 0.66rem 1rem;
  outline: none;
}

  input[type="email"]:focus {
    outline: 2px solid var(--color);
    outline-offset: -2px;
  }

.button,
a {
  appearance: none;
  display: inline-block;
  background-color: var(--button-background);
  color: var(--button-color);
  border: 0;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  font-weight: 600;
  outline: none;
  text-decoration: none;
  font-size: calc(16rem / 16);
  line-height: calc(20 / 16);
}

  .button:disabled {
    pointer-events: none;
    background-color: #00000010;
    color: #00000060;
    filter: grayscale(100%);
  }

  .button:not(:disabled):hover,
  button:not(:disabled):focus,
  a:hover,
  a:focus {
    opacity: 0.9;
  }

  .button:active {
    opacity: 0.8;
  }

  .button:focus {
    outline: 2px solid var(--button-outline-color);
    outline-offset: -2px;
  }

label {
  font-weight: 600;
  font-size: 90%;
  color: #666;
}

.logo-container {
  background: var(--background);
  border: 1px solid #ccc;
  display: flex;
  justify-content: center;
}

.logo {
  padding: 1rem;
  text-align: center;
  flex: 0 1 800px;
}

  .logo > img {
    max-height: var(--logo-height);
    max-width: 100%;
  }

  .logo.logo-left {
    text-align: left;
  }

  .logo.logo-right {
    text-align: right;
  }

.vinga-footer {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  color: #666;
}

  .vinga-footer img {
    height: 60px;
  }

.container {
  margin: 0 auto;
  padding: 1rem;
  max-width: 800px;
}

.information {
  margin: 1rem 0 2rem;
  white-space: pre-wrap;
}

#files,
#file-input {
  display: none;
}

#file-drop {
  appearance: none;
  display: block;
  width: 100%;
  background-color: transparent;
  padding: 2rem;
  border: 2px dashed #aaa;
  border-radius: 0.25rem;
  text-align: center;
  font-weight: 600;
  font-size: calc(16rem / 16);
  line-height: calc(20 / 16);
  color: #000000b0;
  outline: none;
}

  #file-drop:focus {
    outline: 2px dashed var(--color);
    outline-offset: -2px;
    background-color: var(--highlightcolor);
  }

  #file-drop.over,
  #file-drop:not(:disabled):hover {
    border-color: var(--color);
    background-color: var(--highlightcolor);
    cursor: pointer;
  }

.file-list {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 90%;
}

  .file-list thead tr th:first-child {
    text-align: left;
  }

  .file-list thead tr th {
    padding: 0.5rem 0.5rem;
    text-align: right;
  }

  .file-list tbody tr {
    border-top: 1px solid #ccc;
  }

    .file-list tbody tr:last-child {
      border-bottom: 1px solid #ccc;
    }

#inputs:not(:disabled) .file-list tbody tr:hover {
  background-color: var(--highlightcolor);
}

.file-list tr > td {
  word-break: break-word;
  padding: 0.5rem 0.5rem;
}

  .file-list tr > td + td {
    width: 100px;
    white-space: nowrap;
    text-align: end;
  }

.file-list td:has(.button) {
  padding-top: 0;
  padding-bottom: 0;
  vertical-align: middle;
}

.file-list td .button {
  padding: 0.33rem;
  font-size: 80%;
}

  .file-list td .button:not(:focus):not(:hover) {
    background-color: transparent;
    color: inherit;
  }

.file-list tfoot {
  font-weight: 600;
}

#email {
  width: 100%;
  margin: 2px 0;
}

#email-validation,
#file-too-large {
  color: #e71829;
  font-size: 90%;
}

#file-too-large {
  margin-top: -1.5rem;
}

#busy {
  position: fixed;
  inset: 0;
  background-color: #ffffffa0;
  display: none;
  justify-content: center;
  align-items: flex-start;
}

  #busy .wrapper {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 7px #00000050;
  }

  #busy .loader {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
  }

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

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