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

body {
  font-family: 'Gowun Batang', serif; /* Changed font to Nanum Pen Script */
  background-color: #f8f9fa; /* Light gray background */
  box-sizing: border-box;
  color: #495057; /* Darker gray for text */
  font-size: clamp(14px, 1.8vw, 18px);
}
.file-upload-container {
    border-radius: 15px; /* More rounded corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    background-color: #ffffff;
    padding: 20px;
}
.file-upload-btn {
  width: 100%;
  margin: 0;
  color: #fff;
  background: #ff8c94; /* Cute pink */
  border: none;
  padding: 10px;
  border-radius: 25px; /* Fully rounded button */
  border-bottom: 4px solid #e06666; /* Darker pink for depth */
  transition: all .3s ease; /* Smoother transition */
  outline: none;
  text-transform: uppercase;
  font-weight: 700;
}

.file-upload-btn:hover {
  background: #ff6b7a; /* Slightly darker pink on hover */
  color: #ffffff;
  transition: all .3s ease;
  cursor: pointer;
}

.file-upload-btn:active {
  border: 0;
  transition: all .3s 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: 15px; /* More rounded corners */
    border: dashed 2px #ffafb5; /* Lighter, cuter dashed border */
    background-color: #ffffff;
    overflow: hidden; /* Ensures content stays within rounded corners */
}

.image-dropping,
.image-upload-wrap:hover {
    background-color: #ffe0e3; /* Lighter pink on hover */
    border: 2px dashed #ff8c94; /* Solid pink on hover */
}

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

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

.drag-text h3 {
  font-weight: 500;
  /* text-transform: uppercase; */ /* Removed uppercase for softer look */
}

.file-upload-image {
  max-height: 60%;
  max-width: 60%;
  margin: auto;
  padding: 10px;
  border-radius: 10px; /* Rounded image corners */
}

.try-again-btn {
  border-radius: 25px; /* Fully rounded button */
  border: solid 1.5px #ff8c94; /* Cute pink border */
  background-color: #ff8c94; /* Cute pink background */
  transition: all .3s ease;
}

.try-again-btn:hover {
    background-color: #ff6b7a;
    border-color: #ff6b7a;
}

.try-again-text {
  display: block;
  font-size: clamp(1rem, 2.5vw, 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: #495057; 
}

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

.section {
    margin-top: 30px;
}

.title {
  line-height: 1.67;
  text-align: center;
  color: #343a40; /* Darker text for contrast */
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-family: 'Gowun Batang', serif; /* Applied to title as well */
}

.subtitle {
  line-height: 1.53;
  text-align: center;
  color: #6c757d; /* Muted text */
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
}

.youtube-link {
    font-size: 1.5rem;
    line-height: 1.71;
    text-align: center;
    color: #ff8c94; /* Use cute pink for links */
    text-decoration: underline;
}

.youtube-link:hover {
    font-size: 1.5rem;
    line-height: 1.71;
    text-align: center;
    color: #ff6b7a; /* Darker pink on hover */
    text-decoration: underline;
}

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

.upload {
    width: 20%;
}

.upload-text {
    width: 58%;
    font-size: clamp(1.2rem, 2.8vw, 1.8rem);
    line-height: 1.53;
    text-align: center;
    color: #495057;
    margin: 0 auto;
}

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

.bar-container {
  height: 2.7rem;
  margin-bottom: 10px; /* Add some space between bars */
}

/* Redefine result-box and result-bar for a unified look */
.result-box {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 10px;
  width: 100%;
  background-color: #e9ecef; /* Light gray background for all bars */
}
.result-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 10px;
  background-color: #ff8c94; /* Default cute pink for bars */
  transition: width 0.5s ease-in-out; /* Smooth animation for bar growth */
}

.percent-text {
  font-size: clamp(0.8rem, 2vw, 1rem) !important;
  color: #495057; /* Darker text for better contrast */
  position: absolute;
  right: 10px; /* Position percentage inside the bar */
}
.animal-label {
    width: 20%;
    text-align: left;
    height: 2rem;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #495057; /* Darker text */
}
#label-container {
    width: 80%;
    margin: 0 auto;
}
.result-message {
    font-size: clamp(1.8rem, 4.5vw, 2.3rem);
    color: #343a40; /* Darker text */
    margin-bottom: 20px;
}

.animal-result-section {
    background-color: #fff3f5; /* Very light pink background */
    border-radius: 15px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.animal-result-section h3 {
    color: #ff6b7a; /* Pink headline */
    margin-bottom: 15px;
}

.animal-result-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.animal-result-section ul li {
    margin-bottom: 8px;
    color: #495057;
}

.animal-result-section .hashtags {
    color: #868e96; /* Muted hashtags */
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

/* Specific colors for each animal bar (optional, can be removed for unified look) */
.dog-bar { background-color: #87CEEB; } /* Sky Blue */
.cat-bar { background-color: #FFD700; } /* Gold */
.fox-bar { background-color: #FF8C00; } /* Dark Orange */
.deer-bar { background-color: #90EE90; } /* Light Green */
.tiger-bar { background-color: #FFA500; } /* Orange */

/* gender (keep existing styles if they are functional and desired) */
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;
}

.animal-image-container {
    text-align: center;
}

.animal-result-image {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}