.cursive {
    font-family: 'Pacifico', cursive;
}
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    /* overflow-y: hidden; */
}
.title-bar {

    background-color: #650015; 
    color: #FFFFFF;
    /* background-color: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(10px); 
    color:#800020; */
    text-align: center;
    padding: 5px 15px;
    font-size: 32px;
    /* font-weight: bold; */
    /* border-bottom:1px solid #b7b7b7; ; */
    position: sticky;
    top: 0;
    z-index: 1000;
}
.content {
    /* padding: 0px 20px; */
}
.flat-button {
    /* background: linear-gradient(135deg, #a445b2, #d41872, #06bcff); */
    /* background: #650015; */
    background: #dddddd; 
    border: none;
    color: white;
    padding: 15px 20px;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
    float:right;
    font-size: 22px;
    border-radius: 40px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    width:90%;
    position: absolute;
    left:5%;
    z-index: 0;
    font-weight: bold;
}
.flat-button-sub {
    background:  #06bcff;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 18px;
    border-radius: 30px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    width:100%;
}
.subControlButton{
    background:  #ffffff;
    border: 1px solid;
    border-color: #646464;
    color: #646464;
    font-size: 24px;
    cursor: pointer;
    width: 45%;
    border-radius: 10px;
}
main {
    padding: 0 0.5em;
}
/* section {
    margin-bottom: 2em;
    
} */
 #h2_style{
    text-align: left;
    font-size: 24px;
 }
.gender {
    display: flex;
    gap: 1em;
    background-color: #ebebeb;
    border-radius: 50px;
}

.styles, .backgrounds {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    align-items: center;
}
.HotImg{
    width: 100%;
}
.HotImg img{
    width: 100%;
    overflow: hidden;
    aspect-ratio: 1; 
}
.styles div, .backgrounds div{
    flex: 1 1 23%; /* Two items per row with some space between */
    box-sizing: border-box;
    padding: 2px;
    margin:0;
    overflow: hidden;
    
    /* border: 1px solid #ccc;  */
    /* text-align: center; */
}
.styles div{
    aspect-ratio: 3 / 4; 
}
.backgrounds div{
    aspect-ratio: 1; 
}
.styles img, .backgrounds img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* position: absolute;
    top: 0;
    left: 0; */
}
.backgrounds .placeholder ,.styles .placeholder {
    visibility: hidden; /* Make placeholders invisible */
}
.gender div {
    /* border: 1px solid #800020; */
    
    padding: 1em;
    cursor: pointer;
    flex: 1;
    text-align: center;
    border-radius: 50px;

}

#clothing-style-man {
    display: none;
}


/* .styles div:hover, .backgrounds div:hover, .gender div:hover{
    background-color: #ff7272;
} */
.selected {
    color: #ffffff;
    /* border-color: #212121; */
    background-color: #800020;
    /* border-radius: 10px; */
}
 /* 로딩 스크린 스타일 */
 #loading {
    /* position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center; */
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 로딩 스피너 스타일 */
.spinner {
    /* border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: absolute; */
    width: 120px;
    height: 120px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 50px;
}
#loading_text{
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 20px;
}
#againButton{
    display: none;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.resultImage{
   width: 100%;
   border-radius: 10px;
   z-index: 1;

}
.button-container {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}
.resultImageContainer{
    display: flex;
    justify-content: center;
     align-items: flex;
    flex-wrap: wrap; 
}
.resultImageSet{
    width: 40%;
    text-align: center;
    position: relative;
    padding: 5px;
}
.addon-img-size {
    width: 25px;
    height: 25px;
    display: block;
}
a {
    display: inline-block;
}
.new-badge {
    background-color: red;
    color: white;
    padding: 2px 2px !important;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
}
.category-btn{
    background:  #c9c9c9;
    border: 1px solid;
    /* border-color: #646464; */
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 10px;
}
.category-btn.selected {
    background-color: #007bff;
    color: #eee;
}
#voteSystem{
    justify-content: center;
    text-align: center;
    height:100%;
    
}
#imagesContainer{
    height:100%;
}
#voteImagesContainer{
    margin-top: 24px;
    display: flex ;
    justify-content: center; /* 중앙 정렬을 위해 */
    gap: 10px; /* 이미지 사이 간격 조정 */
}
.voteImageSet {
    width: 45%;
    cursor: pointer;
    margin: 0 10px; /* 이미지 사이 간격 조정 */
}
.voteImage{
    border-radius: 5px;
    border-color: #111111 1px;
    width:100%;
}
.container {
    display: block;
    flex-direction: row;
    height: 100%;
}
.footer{
    background-color: #fff;
    /* border-top:solid #b7b7b7;  */
    height:80px;
    
    position:fixed;
    bottom: env(safe-area-inset-bottom);
    width: 100%;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1;
    align-items: center;
}

.contents{
    height: calc(100vh - 145px);
    /* overflow-y: auto; */
}
.selected_footer_img{
    width:40px;
    height:40px;
    border-radius: 50%;
    border: solid 1px ;
    border-color:  #cdcdcd ;
    cursor: pointer;
    z-index: 2;
    position: absolute;
    
}
#selected_footer_style {
    left: 0;
}

#selected_footer_bg {
    left: 40px; /* Adjust this value to overlap half of the image */
}

#selected_footer_photo {
    left: 70px; /* Adjust this value to overlap half of the image */
}
.image-title {
    position: absolute;
    bottom: 2px;
    left: 8px;
    right: 0;
    color: white;
    text-align: center;
    padding: 4px;
    background-color:#007bff ;
    width:40px;
    border-radius: 20px;
    font-size: 12px;
}
.image-title2 {
    position: absolute;
    bottom: 2px;
    left: 76px;
    right: 0;
    color: white;
    text-align: center;
    padding: 4px;
    background-color:#007bff ;
    width:40px;
    border-radius: 20px;
    font-size: 12px;
}
.image-title3 {
    position: absolute;
    bottom: 2px;
    left: 144px;
    right: 0;
    color: white;
    text-align: center;
    padding: 4px;
    background-color:#007bff ;
    width:40px;
    border-radius: 20px;
    font-size: 12px;
}
.btnInImage{
    width:12%;
    opacity: 0.6;
    cursor: pointer;
    position: absolute;
    
    z-index: 2;
    right: 6%;
    top: 10px;
    display: none;
}
.btnInImage2{
    width:12%;
    opacity: 0.6;
    cursor: pointer;
    position: absolute;
    
    z-index: 2;
    right: 20%;
    top: 10px;
    display: none;
}
.downloadimg{
    width: 100%;
    border-radius: 5px;
}
.shareimg{
    width: 100%;
    border-radius: 5px;
}
.resultImageSet:hover .btnInImage, .resultImageSet:hover .btnInImage2 {
    display: block;
}