/* set mieye background image for the index page */
body {
  background-image: url('/images/bg.jpg');
  /*background-size: 400px;
  background-position: top 40px right;
  background-repeat: no-repeat;
  background-attachment: fixed;*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* set up grid for dropzones and submit button */
#upload-zones {
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.5fr 0.5fr;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "mieye-upload sleep-upload"
    "submit-btn submit-btn";
}

/* style the upload zones */
#mieye-upload,
#sleep-upload {
    width: 50%;
    background-color: #E0E0DB;
    background-size: 60px;
    background-position: top 20px right 20px;
    background-repeat: no-repeat;
    background-attachment: local;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* set the background icon for the sleep upload zone */
#sleep-upload { 
    background-image: url('/images/sleep-icon.svg');
    grid-area: sleep-upload;
}

#sleep-upload a {
  color: #000000;
}

/* set the background icon for the mieye upload zone */
#mieye-upload { 
    background-image: url('/images/mieye-icon.svg');
    grid-area: mieye-upload; 
}

/* style the headers for the upload zones */
#mieye-upload h2, 
#sleep-upload h2 {
    font-family: 'Inter', sans-serif;
    color: #000000;
    text-align: left;
    width: 100%;
    padding-left: 20px;
    transform: translateY(-5px);
}

/* style the dropzone areas */
.dropzone {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  background: #2a2a2a;
  padding: 20px;
  min-height: 200px;
  height: 200px;
  max-width: 200px;
  border-radius: 10px;
  text-align: center;
  font-size: 16px;
  color: #000000;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* style the dropzone when files are dragged over it */
.dropzone:hover {
  background: #747474;
}

/* style the submit button */
#submit-btn { 
  grid-area: submit-btn; 
  display: flex;
  justify-content: center;
  align-items: center;
}

/* style for the progress bar container */
#progress-container {
  width: 75vw;
  height: 8px;
  background-color: #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin: 20px auto;
  position: relative;
}

/* animates the progress bar */
@keyframes loadingAnimation {
  from { left: -30%; }
  to { left: 100%; }
}

/* style the progress bar */
#progress-bar {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, #ffbb56, #6bbcff);
  position: absolute;
  left: -30%;
  animation: loadingAnimation 1.5s infinite linear;
  border-radius: 4px;
}

