body {
  font-family: 'Jua', sans-serif;
  background-color: #ffffff; /* Light mode background */
  box-sizing: border-box;
  color: #35465d; /* Light mode text color */
  transition: background-color 0.3s ease, color 0.3s ease; /* Add transition for smooth change */
}

/* --- Dark Mode Specific Styles --- */
body.dark-mode {
  background-color: #1a1a2e; /* Dark background */
  color: #e0e0e0; /* Light text color */
}

/* --- Custom Utility Classes (for Dark Mode Toggle Button) --- */
/* Positioning and stacking context */
.fixed {
    position: fixed;
}
.top-4 {
    top: 1rem; /* Equivalent to 16px from the top */
}
.right-4 {
    right: 1rem; /* Equivalent to 16px from the right */
}
.z-50 {
    z-index: 50; /* Ensures the button stays on top of other content */
}

/* Button general styling */
.p-2 {
    padding: 0.5rem; /* ~8px padding */
}
.rounded-full {
    border-radius: 9999px; /* Makes the button perfectly circular */
}
/* Shadow effects */
.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}
.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.08);
}
.focus\:outline-none:focus {
    outline: none; /* Removes the focus outline */
}
/* Transitions for smooth changes */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.duration-300 {
    transition-duration: 300ms; /* Apply to transitions on the button */
}

/* Icon sizing */
.w-6 {
    width: 1.5rem; /* 24px width */
}
.h-6 {
    height: 1.5rem; /* 24px height */
}
/* For showing/hiding icons */
.hidden {
    display: none;
}

/* Styles for the dark mode button itself */
#darkModeToggle {
    border: none; /* Remove default button border */
    cursor: pointer; /* Indicate it's clickable */
}

/* Default (Light Mode) Button Colors */
#darkModeToggle {
    background-color: #f6f7fa; /* Light card background */
    color: #35465d; /* Dark text/icon color */
}

/* Dark Mode Button Colors */
body.dark-mode #darkModeToggle {
    background-color: #2c2c4d; /* Darker card background */
    color: #e0e0e0; /* Light text/icon color */
}


/* --- Existing styles with dark mode adjustments --- */

body.dark-mode .file-upload {
  background-color: #2c2c4d; /* Darker background for upload section */
  border-color: #3e3e60;
}

body.dark-mode .image-upload-wrap {
  background-color: #1a1a2e; /* Dark background for upload box */
  border-color: #e0e0e0; /* Lighter border for contrast */
}

body.dark-mode .image-dropping,
body.dark-mode .image-upload-wrap:hover {
  background-color: #3e3e60; /* Hover effect for dark mode */
  border-color: #ffffff;
}

body.dark-mode .upload-text {
  color: #e0e0e0; /* Light text for upload instructions */
}

body.dark-mode .navbar-light .navbar-brand,
body.dark-mode .navbar-light .nav-link,
body.dark-mode .title,
body.dark-mode .subtitle,
body.dark-mode h3,
body.dark-mode h4 {
  color: #e0e0e0; /* Light text for titles and headings */
}

body.dark-mode .navbar-light .navbar-toggler {
  border-color: #e0e0e0; /* Lighter border for toggler */
}

body.dark-mode .navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); /* Adjust toggler icon for dark mode */
}


body.dark-mode .try-again-btn {
  background-color: #5d6d8a; /* Darker button for try again */
  border-color: #5d6d8a;
}

body.dark-mode .try-again-text {
  color: #ffffff; /* White text for try again button */
}

body.dark-mode .youtube-link {
  color: #ff9999; /* Adjust link color for dark mode */
}

/* Specific bar colors in dark mode - you might want to adjust these to be slightly desaturated or darker */
body.dark-mode .dinosaur-box,
body.dark-mode .deer-box {
  background-color: rgba(117, 204, 84, 0.1);
}
body.dark-mode .dinosaur-bar,
body.dark-mode .deer-bar {
  background-color: rgba(117, 204, 84, 0.7);
}

body.dark-mode .dog-box {
  background-color: rgba(27, 175, 234, 0.1);
}
body.dark-mode .dog-bar {
  background-color: rgba(27, 175, 234, 0.7);
}

body.dark-mode .cat-box {
  background-color: rgba(251, 176, 59, 0.1);
}
body.dark-mode .cat-bar {
  background-color: rgba(251, 176, 59, 0.7);
}

body.dark-mode .bear-box {
  background-color: rgba(195, 140, 102, 0.1);
}
body.dark-mode .bear-bar {
  background-color: rgba(195, 140, 102, 0.7);
}

body.dark-mode .fox-box {
  background-color: rgba(49, 132, 155, 0.1);
}
body.dark-mode .fox-bar {
  background-color: rgba(49, 132, 155, 0.7);
}

body.dark-mode .rabbit-box {
  background-color: rgba(235, 166, 190, 0.1);
}
body.dark-mode .rabbit-bar {
  background-color: rgba(235, 166, 190, 0.7);
}

/* Adjust text colors for results in dark mode */
body.dark-mode .dinosaur-animal-title,
body.dark-mode .dinosaur-animal-celeb,
body.dark-mode .deer-animal-title,
body.dark-mode .deer-animal-celeb {
  color: #75cc54; /* Brighter green */
}

body.dark-mode .cat-animal-title,
body.dark-mode .cat-animal-celeb {
  color: #ffb03b; /* Brighter orange */
}

body.dark-mode .dog-animal-title,
body.dark-mode .dog-animal-celeb {
  color: #1bafea; /* Brighter blue */
}

body.dark-mode .rabbit-animal-title,
body.dark-mode .rabbit-animal-celeb {
  color: #ebadd1; /* Brighter pink */
}

body.dark-mode .bear-animal-title,
body.dark-mode .bear-animal-celeb {
  color: #c38c66; /* Brighter brown */
}

body.dark-mode .fox-animal-title,
body.dark-mode .fox-animal-celeb {
  color: #31849b; /* Original fox color, ensure it's visible on dark bg */
}

body.dark-mode .percent-text,
body.dark-mode .animal-label,
body.dark-mode .result-message,
body.dark-mode .animal-explain {
    color: #e0e0e0;
}


/* Gender toggle in dark mode */
body.dark-mode label {
  box-shadow: 0 0 0 8px #4a4a4a inset; /* Darker shadow for knob track */
}

body.dark-mode .knob {
  box-shadow: 0 0 0 8px #a1c6dd inset; /* Keep blue for 'male' side */
  background-color: #e2ecf4; /* Keep light blue for 'male' side */
}

body.dark-mode .knob > i,
body.dark-mode .knob > i:before,
body.dark-mode .knob > i:after {
  background-color: #a1c6dd; /* Keep blue for 'male' icon */
}

body.dark-mode input:checked + label > .knob {
  box-shadow: 0 0 0 8px #f470a7 inset; /* Keep pink for 'female' side */
  background-color: #fbd4e6; /* Keep light pink for 'female' side */
}

body.dark-mode input:checked + label > .knob > i,
body.dark-mode input:checked + label > .knob > i:before,
body.dark-mode input:checked + label > .knob > i:after {
  background-color: #f470a7; /* Keep pink for 'female' icon */
}


.file-upload {
    padding: 15% 3%;
    margin: 0 auto;
    border-radius: 10px;
    border: solid 1.5px #f6f7fa;
    background-color: #f6f7fa;
}
.file-upload-btn {
  width: 100%;
  margin: 0;
  color: #fff;
  background: #1FB264;
  border: none;
  padding: 10px;
  border-radius: 4px;
  border-bottom: 4px solid #15824B;
  transition: all .2s ease;
  outline: none;
  text-transform: uppercase;
  font-weight: 700;
}

.file-upload-btn:hover {
  background: #1AA059;
  color: #ffffff;
  transition: all .2s ease;
  cursor: pointer;
}

.file-upload-btn:active {
  border: 0;
  transition: all .2s ease;
}

.file-upload-content {
  display: none;
  text-align: center;
}
#loading {
  display: none;
}

.file-upload-input {
  position: absolute;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  outline: none;
  opacity: 0;
  cursor: pointer;
}

.image-upload-wrap {
    width: 60%;
    margin: 0 auto;
    position: relative;
    object-fit: contain;
    border-radius: 10px;
    border: dashed 1.5px #35465d;
    background-color: #ffffff;
}

.image-dropping,
.image-upload-wrap:hover {
    background-color: #35465d82;
    border: 1.5px dashed #ffffff;
}

.image-title-wrap {
  padding: 0 15px 15px 15px;
  color: #222;
}

.drag-text {
  text-align: center;
}

.drag-text h3 {
  font-weight: 500;
  text-transform: uppercase;
}

.file-upload-image {
  max-height: 60%;
  max-width: 60%;
  margin: auto;
  padding: 10px;
}

.try-again-btn {
  border-radius: 40px;
  border: solid 1.5px #35465d;
  background-color: #35465d;
}

.try-again-text {
  display: block;
  font-size: 1.5rem;
  text-align: center;
  color: #ffffff;
  padding: 4px 15px;
}

.remove-image:hover {
  background: #c13b2a;
  color: #ffffff;
  transition: all .2s ease;
  cursor: pointer;
}

.remove-image:active {
  border: 0;
  transition: all .2s ease;
}

.navbar-light .navbar-brand {
  line-height: 1.68;
  text-align: left;
  color: #35465d; 
}

.navbar-light .navbar-toggler {
    border-color: #ffffff;
}

.section {
    margin-top: 50px;
}

.title {
  line-height: 1.67;
  text-align: center;
  color: #35465d;
}

.subtitle {
  line-height: 1.53;
  text-align: center;
  color: #35465d;
}

/* On screens that are 600px or less, set the background color to olive */
@media screen and (max-width: 600px) {
  html {
    font-size: 10px;
  }
    .navbar-brand {
        font-size: 2rem;
    }
}


.youtube-link {
    font-size: 1.5rem;
    line-height: 1.71;
    text-align: center;
    color: #f73737;
    text-decoration: underline;
}

.youtube-link:hover {
    font-size: 1.5rem;
    line-height: 1.71;
    text-align: center;
    color: #f73737;
    text-decoration: underline;
}

.youtube-icon {
    width: 30px;
    height: 27.262px;
}

.upload {
    width: 20%;
}

.upload-text {
    width: 58%;
    font-size: 1.5rem;
    line-height: 1.53;
    text-align: center;
    color: #35465d;
    margin: 0 auto;
}

.footer {
    background-color: initial;
    color: initial;
}

.bar-container {
  height: 2.7rem;
}
.dinosaur-box {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  border-radius: 10px;
  width: 100%;
  background-color: rgba(117, 204, 84, 0.2);
}
.dinosaur-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  border-radius: 10px;
  background-color: rgba(117, 204, 84, 1);
}
.deer-box {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  border-radius: 10px;
  width: 100%;
  background-color: rgba(117, 204, 84, 0.2);
}
.deer-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  border-radius: 10px;
  background-color: rgba(117, 204, 84, 1);
}
.dog-box {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  border-radius: 10px;
  width: 100%;
  background-color: rgba(27, 175, 234, 0.2);
}
.dog-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  border-radius: 10px;
  background-color: rgba(27, 175, 234, 1);
}
.cat-box {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  border-radius: 10px;
  width: 100%;
  background-color: rgba(251, 176, 59, 0.2);
}
.cat-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  border-radius: 10px;
  background-color: rgba(251, 176, 59, 1);
}
.bear-box {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  border-radius: 10px;
  width: 100%;
  background-color: rgba(195, 140, 102, 0.2);
}
.bear-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  border-radius: 10px;
  background-color: rgba(195, 140, 102, 1);
}
.fox-box {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  border-radius: 10px;
  width: 100%;
  background-color: rgba(49, 132, 155, 0.2);
}
.fox-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  border-radius: 10px;
  background-color: rgba(49, 132, 155, 1);
}
.rabbit-box {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  border-radius: 10px;
  width: 100%;
  background-color: rgba(235, 166, 190, 0.2);
}
.rabbit-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  border-radius: 10px;
  background-color: rgba(235, 166, 190, 1);
}
.percent-text {
  font-size: 1rem;
  color: #ffffff;
}
.animal-label {
    width: 20%;
    text-align: left;
    height: 2rem;
}
#label-container {
    width: 80%;
    margin: 0 auto;
}
.result-message {
    font-size: 2rem;
}


.animal-explain {
    font-size: 1.5rem;
}
.dinosaur-animal-title {
    color: #3ba363;
}
.dinosaur-animal-celeb {
    color: #3ba363;
    font-size: 1.2rem;
}
.deer-animal-title {
    color: #3ba363;
}
.deer-animal-celeb {
    color: #3ba363;
    font-size: 1.2rem;
}
.cat-animal-title {
    color: #ff6c0a;
}
.cat-animal-celeb {
    color: #ff6c0a;
    font-size: 1.2rem;
}
.dog-animal-title {
    color: #548dd4;
}
.dog-animal-celeb {
    color: #548dd4;
    font-size: 1.2rem;
}
.rabbit-animal-title {
    color: #e56995;
}
.rabbit-animal-celeb {
    color: #e56995;
    font-size: 1.2rem;
}
.bear-animal-title {
    color: #9b6b43;
}
.bear-animal-celeb {
    color: #9b6b43;
    font-size: 1.2rem;
}
.fox-animal-title {
    color: #31849b;
}
.fox-animal-celeb {
    color: #31849b;
    font-size: 1.2rem;
}

/* gender */
input#gender {
  display: none;
}

label {
  cursor: pointer;
  display: inline-block;
  width: 90px;
  height: 41px;
  box-shadow: 0 0 0 8px #e5e9ea inset;
  border-radius: 30px;
  position: relative;
}

.knob {
  position: absolute;
  width: 41px;
  top: 0;
  left: 0;
  height: 41px;
  border-radius: 50%;
  box-shadow: 0 0 0 8px #f470a7 inset;
  background-color: #fbd4e6;
  transition: 0.3s;
}

.knob > i {
  position: absolute;
  width: 4px;
  height: 18px;
  top: 100%;
  background-color: #f470a7;
  left: calc(50% - 2px);
}

.knob > i:before,
.knob > i:after {
  width: 6px;
  position: absolute;
  top: 42%;
  content: "";
  height: 4px;
  background-color: #f470a7;
}

.knob > i:before {
  left: 4px;
}
.knob > i:after {
  left: -6px;
}

input:checked + label > .knob {
  box-shadow: 0 0 0 8px #a1c6dd inset;
  background-color: #e2ecf4;
  transform: translateX(49px) rotate(-140deg);
}

input:checked + label > .knob > i {
  background-color: #a1c6dd;
}

input:checked + label > .knob > i:after,
input:checked + label > .knob > i:before {
  background-color: #a1c6dd;
}

input:checked + label > .knob > i:after {
  top: 14.5px;
  width: 12px;
  left: -7px;
  transform: rotate(45deg);
}
input:checked + label > .knob > i:before {
  top: 13px;
  width: 12px;
  left: 0px;
  transform: rotate(134deg);
}

.ad-banner {
    max-width: 320px;
}