/* @import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;400;600&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap'); */

body {
    font-size: 16px;
    color: #e7e7e7;   /* a subtle grey */
  
    font-family: sans-serif;
  
    font-weight: 400;
  
    /* background: linear-gradient(rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.80)), url('/assets/images/bg.jpg') fixed; */
    /* background-image: url('test.jpg'); */
  
    /* background-color: #202124; */
    /* background-color: #424242; */
    margin: 0;
    padding: 0;
  }
  
  
  * {
      box-sizing: border-box;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  h1, h2, h3, h4 {
    /* font-family: Raleway, Verdana, sans-serif; */
    font-weight: 700;
  }
  
  ul li {
    margin-top: 0.3em;
    margin-bottom: 0.3em; 
  }
  
  header {
    padding: 0.8em 1.5em 0.8em 1.5em;
  }
  

  .logo-text {
    display: inline-block;
    vertical-align: top;
    margin-top: 30px;
    margin-left: 20px;
    margin-right: 8px;
  }

  .logo {
    height:100px; 
    border-radius: 50px;
  }

  .logo-word {
    height:90px; 
    vertical-align: top;
    margin-top: 5px;
  }

  .rotating {
    transition: transform 0.25s ease;
  }

  .rotating:hover {
      transform: rotate(3deg);
  }




  details summary {
    font-size: 1.7em;
    font-weight: 600;
    cursor:pointer;
    width: fit-content;
  }

  details summary:hover {
    color: #7ed321;
  }

  details summary::marker {
    font-size: 1.2em;
    color: #7ed321;
  }

  details[open] summary {
    display: inline list-item;
    margin-bottom: 0.5em;
    margin-right: 0.4em;
  }

  details[closed] summary {
    display: block list-item;
  }


    

.main-content {
    margin: 0 1.5em 1em 1.5em;
    padding: 1.5em 1.5em 2em 1.5em;
    border-radius: 6px;

    background-color: rgba(66, 66, 66, 0.85);

    /* display: grid;
    grid-template-areas: 
    "left right"
    "bottom bottom"; */
    /* grid-template-columns: 1fr 1fr;  Creates two equal columns */
    /* gap: 1em;  Adds space between columns */

}

/* .left-column {
  grid-area: left;
}

.right-column {
  grid-area: right;
  padding: 0.5em;
}

.bottom {
  grid-area: bottom;
} */

/* Mobile layout */
/* @media (max-width: 768px) {
  .main-content {
    grid-template-areas: 
      "left"
      "right"
      "bottom";
    grid-template-columns: 1fr;
  }
} */

@media (max-width: 768px) {
  .drop-zone { max-width: 80%; }
}
  
  footer {
    background-color: #202124;
    padding: 0.3em 2em;
  
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  footer p {
    flex: 0 1 auto;
    /* display: inline-block; */
  }
  
  footer .rendered {
    flex: 0 1 auto;
    font-size: 0.7em;
    color: #ADADAD;
    /* text-align: right;  */
  }
  
  h2 {
    font-size: 1.7em;
    margin-top: 0.4em;
    margin-bottom: 0.4em;
  }
  
  h1.header {
    font-size: 1.7em;
    margin-bottom: 0.1em;
    margin-top: 0em;
    text-align: center;
  }
  
  /* default p styles */
  p {
    margin: 0.8em 0;
    line-height: 1.4em;
  }
  
  a, a:link, a:visited {
    text-decoration: none;
    color: #35cdf3;
    font-weight: 600;
  }
  
  a:hover {
    color: white;
  }
  
  .error {
    color: orange;
  }
  
  .center {
    text-align: center;
  }
  
  label {
    font-size: 1.1em;
    font-weight: 600;
  }





/* TABLE STYLING */

table {
  table-layout: auto;
  border-collapse: collapse;
  width: initial !important;

}

/* tr:first-child td, */
thead td,
thead th,
tr:first-child th {
	border-bottom: 1px solid #AEACAF;
	vertical-align: bottom;
  font-size: 0.8em;
  font-weight: 200;
}

thead th b {
  font-weight: 600;
}

span.approx {
  color:#ccc; 
  font-size:0.7em; 
  font-weight:200;
}

td, th {
  text-align: left;
	vertical-align: top;     /* used to be text-top */
	padding: 6px 10px;
  border: none;
  width: initial !important;    /* override fixed cell widths for NZ BDMs  */
}


/* File upload stuff */


/* File upload styles */

.drop-zone {

  position: relative;

  margin: auto;
  max-width: 40%;
  /* height: 200px; */
  aspect-ratio: 1;
  padding: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* font-family: "Quicksand", sans-serif; */
  font-weight: 500;
  font-size: 20px;
  cursor: pointer;
  color: #cccccc;
  border: 4px dashed #7ed321;
  border-radius: 10px;
}

.drop-zone:hover,
.drop-zone--over {
  border-style: solid;
}

.drop-zone__input {
  display: none;
}

.drop-zone__thumb {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background-color: #cccccc;
  background-size: cover;
  position: relative;
}

.drop-zone__thumb::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5px 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.75);
  font-size: 14px;
  text-align: center;
}

h1.processing {
  color: #7ed321;
  text-align: center;
  display: none;
}

div.processing {
  width: 100%;
  height: 300px;
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 120px 1fr;
}

.balls {
  grid-row: 2 / 3;
  grid-column: 2 / 3;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 60px 60px;
}

.up, .down {
  display: grid;
  grid-template-columns: repeat(5, 1fr); 
  place-items:center;
}

.up .ball {
  animation: wave 2s ease-in-out infinite;
  
  background-color:#eb3ee5;
}

.down .ball {
  animation: reverseWave 2s ease-in-out infinite;
  background-color:#17e8a8;
  
}

.ball {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-color: #000;
}

.up .ball:nth-child(2) {
  animation-delay: -0.25s;
  background-color:#c53ced;
}

.up .ball:nth-child(3) {
  animation-delay: -0.5s;
  background-color:#8f39db;
}

.up .ball:nth-child(4) {
  animation-delay: -0.75s;
  background-color:#7223cb;
}

.up .ball:nth-child(5) {
  animation-delay: -1s;
  background-color:#4427d8;
}

.down .ball:nth-child(2) {
  animation-delay: -0.25s;
  background-color:#1fddc0;
}

.down .ball:nth-child(3) {
  animation-delay: -0.5s;
  background-color:#2fd3d9;
}

.down .ball:nth-child(4) {
  animation-delay: -0.75s;
  background-color:#27b4ea;
}

.down .ball:nth-child(5) {
  animation-delay: -1s;
  background-color:#2887e2;
}

@keyframes wave {
  0%, 100% {
   
    transform: translateY(100px);
  }
  50% {
    
    transform: translateY(-80px);
  }
}

@keyframes reverseWave {
  0%, 100% {
    transform: translateY(-100px);
  }
  50% {
    
    transform: translateY(80px);
  }
}




/* The scanning line */
.scanning-line {
  display: none;
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px; /* Thickness of the scanning line */
  /* border: 4px dashed #7ed321; */
  /* background: rgba(0, 120, 255, 0.7); /* Blue semi-transparent line */
  background: #7ed321;
  /* box-shadow: 0 0 10px rgba(0, 120, 255, 0.9); /* Glow effect */
  box-shadow: 0 0 30px rgba(126, 211, 33, 0.9); /* Glow effect */

  animation: scanAnimation 4s cubic-bezier(0.45, 0, 0.55, 1) infinite; /* Easing for slowdown at ends */
  pointer-events: none; /* Make sure the line doesn't interfere with image interaction */
  border-radius: 2px;

  z-index: 1;
}

/* Animation for the scanning line */
@keyframes scanAnimation {
  0% {
    top: 4px;
    opacity: 0.5;
  }
  5% {
    opacity: 1; /* Fade in at the start */
  }

  47.5% {
    top: calc(100% - 4px); /* Move to bottom */
  }
  52.5% {
    top: calc(100% - 4px); /* Pause at bottom */
    opacity: 1;
  }

  95% {
    top: 4px; /* Move back to top */
    opacity: 1;
  }
  100% {
    top: 4px; /* End at top */
    opacity: 0.5; /* Fade out slightly at the end */
  }
}