/* Defaulting stuff */
:root {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #e6eef6;

  --bg: #0f1724;
  --card: #0b1220;
  --accent: #06b6d4;
  --muted: #94a3b8;
  --correct-color: #6c98c8;  
  --incorrect-color: #c57508;
  --correct-color-faded: #6c98c822;
  --incorrect-color-faded: #c5750822;
  --focal: " \2611";
  --not-focal: " \2612";
  --focal-color:#16a34a;
  --not-focal-color:rgb(243, 155, 122);
}

/* prev/next button animations */
@keyframes buttonClickAnim {
  5% {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 10px #06b6d4; 
  }
  100% { }
}
.buttonClickAnim {
  animation-name: buttonClickAnim;
  animation-duration: 300ms;
  animation-iteration-count: 1;
}

/* queue shuffle animation */
@keyframes queueShuffleAnim {
  0% {scale:1; opacity:1.0; }
  50% { scale: 0;  opacity:0.0; }
  100% {scale:1; opacity:1.0; }
}
.queueShuffleAnim {
  animation-name: queueShuffleAnim;
  animation-duration: 500ms;
  animation-iteration-count: 1;
}


html,
body {
  min-height: 100%;
  margin: 0;
  background: linear-gradient(180deg, #071025 0%, #071827 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
a, a:visited, a:active {
  color: #067694;
  text-decoration: none;
}
a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.app {
  margin: 10px 0;
  width: 1200px;
  max-width: 96%;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

h1 {
  font-size: 20px;
  margin: 0;
}

h2, h3 {
  margin-top: 2em;
  margin-bottom: -0.5em;
}

.normal_hr {
  border:none;
  height:1px;
  background:rgba(255,255,255,0.05);
  margin:14px 0;
}

.grid {
  display: grid;
  grid-template-columns: 750px 440px;
  gap: 18px;
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.options {
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
}

.nameOrCodesContainer, .autoplayContainer, .trainingModeContainer, .birdSelectionContainer, .vocalizationTypeContainer {  
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  justify-content: flex-start;
  gap: 1em;
}

.player {
  display: flex;
  gap: 12px;
  align-items: right;
  align-content: stretch;
}

#audioObject, audio {
  background: var(--card);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  display: block;
  width: 100%;
}


.prompt {
  margin-top: 12px;
  color: var(--muted);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.choice {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--muted);
}

.focal-ind, .not-focal-ind {
  display: inline-block;
}

.choice.focal::after, .focal-ind::after {
  content: var(--focal);
  color: var(--focal-color);
  font-size: 1.3em;
}

.choice.not-focal::after, .not-focal-ind::after {
  content: var(--not-focal);
  color: var(--not-focal-color);
  font-size: 1.3em;
}

.choice.correct {
  border-color: var(--correct-color);
}

.choice.incorrect {
  border-color: var(--incorrect-color);
}

#feedback {
  text-align: center;
}

#feedback.correct {
  background-color: var(--correct-color-faded);
  
}

#feedback.incorrect {
  background-color: rgba(255, 0, 0, 0.05);
  background-color: var(--incorrect-color-faded);
}

.controls {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

button.small {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
}



.stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  /* padding: 8px 10px; */
  /* background: rgba(255, 255, 255, 0.02); */
  /* border-radius: 8px; */
  font-size: 90%;
}

form.add-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

input[type="text"],
select {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: inherit;
}

input[type="file"] {
  color: var(--muted);
}

.small-muted {
  font-size: 12px;
  color: var(--muted);
}

.super-small-muted {
  font-size: 10px;
  color: var(--muted);
  line-height: 20px;
}

.shortcut-instructions {
  display: inline-block;
  margin: 0 2em 0 0;
}


#queueList {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1em;
}

.queueCard {
  min-width: 3em;
  height: 2.5em;
  padding:0.5em;
  background-color:#444;
  color:#000;
  border-radius: 10%;
  text-align:center;
  cursor: pointer ;
  box-sizing: border-box;
}

.queueCard:not(.currentCard) {
  opacity: 50%;;
}

.currentCard {  
  background-color: #aaa;
  border: 2px solid #aaa;
}

.cardCorrect:not(.cardIncorrect) {
  background-color: var(--correct-color);
}

.cardIncorrect:not(.cardCorrect) {
  background-color: var(--incorrect-color);
}

.cardIncorrect.cardCorrect {
  background: linear-gradient(90deg, var(--correct-color), var(--correct-color) 50%, var(--incorrect-color) 50%, var(--incorrect-color));
}

#shuffleBtn {
  width: 100%;
}

footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* About section */
.about {
  margin: 45px 25px;
  width:750px;
}

.note {
  border-left: #666 solid 1px;
  margin-left: 20px;
  padding-left: 15px;
}