@import url('https://fonts.googleapis.com/css2?family=Nova+Flat&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
  Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: #16213e;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #0052cc;
  color: white;
  text-align: center;
  padding: 1.5rem;
  font-size: 1.7rem;
  font-weight: 700;
}

#dropzone {
  border: 3px dashed #0052cc;
  border-radius: 8px;
  background: #dbe7ff;
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.3rem;
  color: #003a99;
  cursor: pointer;
  user-select: none;
  transition: background .3s ease;
}

#dropzone.dragover {
  background: #aec4ff;
}

input[type='file'] {
  display: none;
}

.file-list {
  margin-top: 1rem;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: white;
  padding: .5rem;
}

.file-item {
  display: flex;
  justify-content: space-between;
  padding: .4rem .6rem;
  border-bottom: 1px solid #eee;
  font-size: .95rem;
}

.file-item:last-child {
  border-bottom: none;
}

.file-name {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-status {
  margin-left: 1rem;
  min-width: 120px;
  text-align: right;
  font-weight: 600;
}

button {
  background: #0052cc;
  color: white;
  border: none;
  padding: .45rem .8rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background .25s ease;
}

button:hover:not(:disabled) {
  background: #003a99;
}

button:disabled {
  background: #aac4ff;
  cursor: default;
}

.actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

#zipName {
  padding: .45rem;
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 5px;
  width: 200px;
}

#progress {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
  color: #0052cc;
  font-family: monospace;
}

.rotating {
  display: inline-block;
  animation: rotate 1s linear infinite;
}

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

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

/* Header */
header {
  background: #1a1a2e;
  border-bottom: 1px solid #3a3a5e;
  padding: 12px 24px;
  text-align: center;
}

header a {
  font-family: 'Nova Flat', cursive;
  font-size: 22px;
  color: #ffd700;
  text-decoration: none;
}

/* Main content */
main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 3rem 1rem;
  background: white;
  color: #000;
  border-radius: 16px;
  border: 1px solid #3a3a5e;
  box-shadow: 0 8px 24px rgb(0 71 171 / .15);
}

header a {
  font-family: 'Nova Flat', cursive;
  font-size: 22px;
  color: #ffd700;
  text-decoration: none;
}

header a:hover {
  text-decoration: none;
}

/* Footer */
footer {
  background: #1a1a2e;
  border-top: 1px solid #3a3a5e;
  color: white;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
  Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

footer .left a, footer .right a {
  color: #0dcaf0;
  text-decoration: none;
  margin: 0 .6rem;
}

footer .left a:hover, footer .right a:hover {
  text-decoration: none;
}

footer .left {
  flex: 1 1 40%;
  text-align: left;
}

footer .right {
  flex: 1 1 50%;
  text-align: right;
}

/* Responsive */

p {
  font-size: 20px;
  text-align: center;
}

@media (max-width: 950px) {
  main {
    flex: 1;
    max-width: 600px;
  }
}

@media (max-width: 650px) {
  main {
    flex: 1;
    max-width: 480px;
  }
}

@media (max-width: 500px) {
  main {
    flex: 1;
    max-width: 480px;
  }
}

@media (max-width: 480px) {
  header a {
    font-size: 22px;
  }

  main {
    flex: 1;
    max-width: 400px;
  }

  footer {
    flex-direction: column;
    gap: .5rem;
    font-size: 13px;
    text-align: center;
  }

  footer .left, footer .right {
    flex: unset;
    text-align: center;
  }

  footer .right a {
    margin: 0 .4rem;
  }
}
