html,
body {
    overflow-x: hidden;
}
body {
    font-family: 'MaruBuriBold';
    background-color: #ffffff;
    box-sizing: border-box;
    color: #35465d;
    overflow-x: hidden;
}


.iframebox {
    position: relative;
    width: 100%;
    padding: 0%;
    min-height: 0px;
    max-height: 200px;
}
.file-upload {
    padding: 1% 1%;
    margin: 0 auto;
    margin-bottom: 10px;
    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 0.2s ease;
    outline: none;
    text-transform: uppercase;
    font-weight: 700;
}
.result-section {
    max-width: 1100px;
}

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

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

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

.progress-bar {
    background-color: #09B864;
    border-radius: 4px;
    box-shadow: inset 0 0.5em 0.5em rgba(0,0,0,0.05);
    height: 5px;
    margin: 2rem 0 2rem 0;
    overflow: hidden;
    position: relative;
    transform: translateZ(0);
    width: 100%;
}

.progress-bar__bar {
    background-color: #ececec;
    box-shadow: inset 0 0.5em 0.5em rgba(94, 49, 49, 0.05);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.progress-bar__bar.active {
    transition: all 5000ms ease-out;
    transform: translateX(100%);
    -webkit-transform: translateX(100%)
}

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

.image-upload-wrap {
    width: 80%;
    margin: 0 0;
    display: flex;
    align-items: center;
    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;
	display: inline-block;
	width: 100%;
}

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

#modalMessage {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
}

.result-title{
    line-height: 1.6;
    /* padding: 5px; */
    text-align: center;
    color: #ffffff;
}

.celeb-explain {
    font-size: 1.5rem;
}
.text-center {
    font-size: 1.5rem;
}
.file-upload-image {
    /* max-height: 10%; */
    position: absolute;
    /* max-height: 180px; */
    top: 0;
    left: 0;
    transform: translate(50, 50);
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: auto;
    padding: 10px;
    /* max-height: 100%;
		max-width: 100%;
		-ms-interpolation-mode: bicubic; */
}
.wrapper {
    /* display: block; 
		overflow: hidden;  */
    height: 260px;
    width: 260px;
    position: relative;
    margin: auto;
}
.try-again-btn {
    border-radius: 40px;
    border: 0px;
	margin-top: 2%;
    padding: 4px 16px;
    background-color: #fd8114;
}

div.gsc-result-info {
    font-size: 0;
    padding: 0;
}
div.gsc-above-wrapper-area {
    padding: 0;
}
.my-share-btn {
    border-radius: 40px;
    border: 1px;
	margin-top: 2%;
    padding: 4px 16px;
    background-color: #fd8114;
}

.search-btn {
    border-radius: 20px;
    border: solid 1.5px #35465d;
	margin: 5px;
    margin-top: 20px;
    background-color: #35465d;
    
}

.donation-btn {
    border-radius: 40px;
    border: solid 1.5px #f6cd4c;
    background-color: #f6cd4c;
}

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

.search-text {
    display: block;
    font-size: 1.3rem;
    text-align: center;
    color: #ffffff;
    /* padding: 4px 15px; */
}

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

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

.remove-image:active {
    border: 0;
    transition: all 0.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;
    font-size: 2.0rem;
    text-align: center;
    color: #35465d;
}

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

.normaltext {
    line-height: 1.53;
    font-size: 1.3rem;
    text-align: center;
    color: #35465d;
}
.language {
    font-size: 1.8rem;
    padding: 0 20px;
}

.custom-select{
    font-size: 1.5rem;
    max-width: 50vw;
}

/* 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;
    }
    .navbar-nav {
        font-size: 1.5rem;
    }
}

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

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


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

.upload {
    width: 80%;
    max-width: 30vw;
	max-height: 30vw;
	align-items: center;
    justify-content: center;
    object-fit: contain;
    overflow: hidden; 
    margin-top: 1rem !important;
    /* filter: invert(48%) sepia(0%) saturate(2841%) hue-rotate(251deg) brightness(67%) contrast(80%); */
}

.upload-text {
    width: 80%;
    /* font-size: 1.2rem; */
	font-size: 1.8rem;
    line-height: 1.53;
    text-align: center;
    color: #35465d;
    margin: 3% auto;
}

.upload-text-bottom {
    font-size: 1.3rem;
    margin-bottom: 3%;
    line-height: 1.35;
}

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

.bar-container {
    height: 2.7rem;
}

.percent-text {
    font-size: 1rem;
    color: #ffffff;
}
.celeb-label {
    width: 20%;
    text-align: left;
    height: 2rem;
}
#label-container {
    width: 80%;
    margin: 0 auto;
}
.result-message {
    font-size: 1.8rem;
}
.loading-message {
    font-size: 1.4rem;
}
.loading-sub {
    font-size: 1.3rem;
    padding-top: 3%;
}

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;
}

.face-box {
    border: 1px solid #ff0000;
    position: absolute;
}


.my-button {
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    /* margin-top: 20px; */
    margin: 20px;
    font-size: 1em;
    margin-bottom: 0;
}


/* toggle button */
/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 34px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hotpink;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(45px);
    -ms-transform: translateX(45px);
    transform: translateX(45px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

.app-download-icon {
    width: 200px
}

.text-app-center {
    font-size: 1.4rem;
    text-align: center; /* !important; */
}

/* 이미지 나란히 배치용 CSS */
.grid-image {
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    margin:30px 0;
}
.grid-image img {
    width:calc(33.333% - 10px);
    margin:0 15px 15px 0;
}
.grid-image img:nth-of-type(3n),
.grid-image img:last-child {
    margin-right:0;
}
@media screen and (max-width:640px){
  .grid-image img {
    width:calc(30% - 15px);
  }
}
@media screen and (max-width:480px){
  .grid-image img:nth-of-type(2n) {
    margin-right:0;
  }
  .grid-image img:nth-of-type(3n) {
    margin-right:15px;
  }
}

.json-container {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: #f9f9f9;
    margin: 20px;
    font-size: 1.3rem;
  }
.json-key {
color: #007bff;
}
.json-string {
color: #28a745;
}

div#disqus_thread iframe[sandbox] {
max-height: 0px !important;
}

@keyframes borderAnimation {
    0% {
        border-color: #4a90e2;
    }
    50% {
        border-color: #f06;
    }
    100% {
        border-color: #4a90e2;
    }
}

.styled-canvas {
    border: 5px solid #4a90e2;
    border-radius: 10px;
    animation: borderAnimation 2s infinite;
    margin: 10px;
}

.gs-image {
  object-fit: cover;
  width: 100%;
}

.giffont {
    font-size: 1.8em;
}

.gifloading {
    width: 5rem;
    height: 5rem;
    margin: 50px;
}

.file-upload-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2px;
    margin-top: 20px;
    flex-wrap: nowrap; 
    width: 100%;
}

.file-upload-area {
    width: 45%;
    
    /* max-width: 300px; */
    /* min-width: 200px; */
    align-items: center;
    /* flex: 1; */
}
/* @media (max-width: 300px) {
    .file-upload-container {
        align-items: center;
    }

    .file-upload-area {
        width: 100%;
        max-width: 30vw;
        max-height: 30vw;
    }
} */
.preview-image {
    display: none;
    max-width: 100%;
    max-height: 100%;  /* 이미지 최대 높이 설정 */
    object-fit: contain;
    
    position: absolute;  /* 추가 */
    top: 0;  /* 추가 */
    left: 0;  /* 추가 */
    width: 100%;  /* 추가 */
    height: 100%;  /* 추가 */
}

.couple-image-upload-wrap {
    border: 2px dashed #1FB264;
    position: relative;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    object-fit: contain;
    /* margin: 20px; */
    overflow: hidden; 
    /* width: 40vw;  /* 추가 */
    height: 40vw;  /* 높이 설정, 필요에 따라 조정 가능 */
    aspect-ratio: 1;
    max-width: 400px;
    max-height: 400px;
}
.couple-image-upload-wrap:hover {
    background-color: #a8a8a8;
}

.preview-image {
    display: none;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    position: absolute;
    padding: 0;
    margin: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.start-button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 4px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 1.6rem;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 40px;
}

.start-button:hover {
    background-color: #45a049;
}

.result-text {
    font-size: 1.4rem;
}

.image-comparison {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.image-comparison img {
    width: 80%;
    max-width: 300px;
    height: 80%;
    max-height: 300px;
}

/* Personal Color Container */
.personal-color-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Color Grid Container */
.color-grid-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    border-radius: 5%;
    padding: 20px;
    
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* .cropped-face-container {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    width: 100px;
    height: 100px;
    margin: 0 auto;
} */



.cropped-face-spring::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: conic-gradient(
        #FF6B6B 0% 20% /* 코랄핑크 */,
        #FFCBA4 20% 40% /* 피치 */,
        #FF6347 40% 60% /* 오렌지레드 */,
        #DAA520 60% 80% /* 골드브라운 */,
        #B87333 80% 100% /* 코퍼 */
      );
    padding: 10px;
    animation: spin 5s linear infinite;
    border-radius: 50%;
    z-index: -1;
}


.cropped-face-summer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: conic-gradient(
        #FFC0CB 0deg 72deg,     /* 로즈핑크 */
        #E6E6FA 72deg 144deg,   /* 라벤더 */
        #FFB6C1 144deg 216deg,  /* 베리핑크 */
        #C0C0C0 216deg 288deg,  /* 실버 */
        #B76E79 288deg 360deg   /* 로즈골드 */
    );
    padding: 10px;
    animation: spin 5s linear infinite;
    border-radius: 50%;
    z-index: -1;
}

.cropped-face-autumn::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: conic-gradient(
        #DC143C 0deg 72deg,     /* 브릭레드 */
        #800020 72deg 144deg,   /* 버건디 */
        #8B4513 144deg 216deg,  /* 브라운 */
        #FFD700 216deg 288deg,  /* 골드 */
        #CD7F32 288deg 360deg   /* 브론즈 */
      );
    padding: 10px;
    animation: spin 5s linear infinite;
    border-radius: 50%;
    z-index: -1;
}

.cropped-face-winter::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: conic-gradient(
        #FF0000 0deg 60deg,     /* 레드 */
        #8B008B 60deg 120deg,   /* 베리 */
        #DDA0DD 120deg 180deg,  /* 플럼 */
        #C0C0C0 180deg 240deg,  /* 실버 */
        #000000 240deg 300deg,  /* 블랙 */
        #000080 300deg 360deg   /* 네이비 */
    );
    padding: 10px;
    animation: spin 5s linear infinite;
    border-radius: 50%;
    z-index: -1;
}

.cropped-face-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
    overflow: hidden;
    padding: 20px;
}


@keyframes rotateColors {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Color Grid */
.color-grid {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 5%;
    background: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    overflow: hidden;
}

/* Color Quadrants */
.color-quadrant {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.color-quadrant:hover {
    transform: scale(1.05);
    z-index: 10;
}

#spring-quadrant {
    background: linear-gradient(135deg, #FFE4E1, #FFB6C1);
}

#summer-quadrant {
    background: linear-gradient(135deg, #E6F3FF, #B8E6B8);
}

#autumn-quadrant {
    background: linear-gradient(135deg, #DEB887, #CD853F);
}

#winter-quadrant {
    background: linear-gradient(135deg, #F0F8FF, #E6E6FA);
}

/* Season Labels */
.season-label {
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Face Display */
.face-display {
    width: 3rem;
    height: 3rem;
    border-radius: 5%;
    /* overflow: hidden; */
    /* border: 3px solid rgba(255, 255, 255, 0.8); */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.face-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: white;
}

/* Best Badge */
.best-badge {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.7); }
    50% { transform: scale(1.0); }
    100% { transform: scale(0.7); }
}

/* Style Cards Container */
.style-cards-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Style Cards */
.style-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.style-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.style-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4);
}

.fashion-card::before {
    background: linear-gradient(90deg, #FF6B6B, #FF8E8E, #FFA8A8);
}

.beauty-card::before {
    background: linear-gradient(90deg, #E91E63, #F06292, #F8BBD9);
}

/* Card Icon */
.card-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Card Header */
.style-card .card-header {
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.style-card .card-header h3 {
    color: #333;
    /* font-size: 1.5rem; */
    font-weight: 600;
    text-align: center;
    margin: 0;
}

/* Card Content */
.card-content {
    text-align: left;
    font-size: 1.4rem;
}

.card-content h4 {
    color: #555;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content h4::before {
    content: '✨';
    font-size: 1rem;
}

/* Style Badges */
.style-card .badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.4rem;
    margin: 0.2rem;
    display: inline-block;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.style-card .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.fashion-card .badge {
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
}

.beauty-card .badge {
    background: linear-gradient(45deg, #E91E63, #F06292);
}

/* Lists */
.style-card ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.style-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 1.5rem;
}

.style-card li::before {
    content: '•';
    color: #667eea;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.fashion-card li::before {
    color: #FF6B6B;
}

.beauty-card li::before {
    color: #E91E63;
}

.style-card li:last-child {
    border-bottom: none;
}

/* Color Display */
.color-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media screen {
    .color-grid-container {
        width: 100%;
        height: 100%;
    }
    
    .face-display {
        width: 110px;
        height: 110px;
    }
    
    .season-label {
        font-size: 1.6rem;
    }
    
    .style-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
}