body, html {
    margin: 0;
    padding: 0;
    font-family: MyriadPro-Regular, 'Myriad Pro Regular', MyriadPro, 'Myriad Pro', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  header {
    padding-top: 1rem;
    text-align: center;
    margin: auto auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 850px;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  #footer a{
    color: #6e6b6b;
  }

  #footer {
    text-align: right;
    clear: both;
    margin-top: 5rem;
    display: block;
    width: 100%;
    max-width: 800px;
    color: #6e6b6b;
    margin: auto auto;
    padding-top: 3rem;
    margin-bottom: 10rem;
    padding: 3rem 2rem 10rem 2rem;
    box-sizing: border-box;
  }
  
  .logo a{
    cursor: pointer;
  }
  .logo img {
    height: 60px;
  }
  
  nav a {
    text-decoration: none;
    color: #6e6b6b;
    margin-left: 20px;
    cursor: pointer;
  }
  
  .intro {
    position: relative;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background-image: url('/img/models-background.jpg');
    background-position: center;
    background-size: 1024px auto;
    background-repeat: no-repeat;
    max-width: 1024px;
    min-height: 625px;
    text-align: center;
    margin: auto auto;
    vertical-align: bottom;
  }


  .terms-text{
    position: relative;
    font-size: 0.8rem;
    line-height: 1.2rem;
    color: #6e6b6b;
    white-space: pre-wrap;
    text-align: left;
    margin: 40px;
    padding: 20px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .terms-page .intro {
    height: auto;
    min-height: auto;
    background-image: none;
    padding: 40px 0;
    align-items: flex-start;
  }

  .create-my-photos-div {
    position: absolute;
    text-align:center;
    display: block;
    height: 60px;
    width: 199px;
    text-align: center;
    font-size: 0.8rem;
    color: #6e6b6b;
    background-image: url('/img/create_photos_bg.png');
    background-size: 100% 100%;
    bottom: 90px;
  }
  .create-my-photos-div a{
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    font-size: larger;
    text-decoration: none;
    color: white;
    line-height: 60px;
  }
  
  
  .intro-text {
    position: absolute;
    text-align: center;
    width: 400px;
    font-size: 0.9rem;
    color: #6e6b6b;
    word-wrap: break-word;
  }
  
  .customer-snapshots {
    text-align: center;
    margin: auto auto;
    max-width: 1000px;
    margin-top: 1rem;
  }
  
  .customer-snapshots h2 {
    margin: 0;
    padding: 0;
    padding-left: 2rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
    color: #6e6b6b;
    padding-bottom: 0rem;
  }

  .snapshots-container{
    display: block;
    justify-content:space-around;
    align-items: center;
    text-align: center;
    margin: auto auto;
    position: relative;
    max-width: 900px;
  }

  .customer-snapshots div.user_image{
    width: 260px;
    height: 360px;
    float: left;
    margin-left: 5px;
    border-radius: 20px;
    background-size: cover;
    cursor: pointer;
  }
  
  .snapshots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  @media screen and (max-width: 768px) {
    .snapshots-container {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
  }


  #modal-background {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: .50;
    -webkit-opacity: .5;
    -moz-opacity: .5;
    filter: alpha(opacity=50);
    z-index: 1000;
}

#modal-content {
    background-color: white;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    box-shadow: 0 0 20px 0 #222;
    -webkit-box-shadow: 0 0 20px 0 #222;
    -moz-box-shadow: 0 0 20px 0 #222;
    display: none;
    height: 170px;
    left: 50%;
    margin: -120px 0 0 -160px;
    padding: 10px;
    position: absolute;
    top: 50%;
    width: 320px;
    z-index: 1000;
}

#modal-background.active, #modal-content.active {
    display: block;
}

#modal-content p{
  text-align: center;
}

.cancel-modeal-div{
  width: 100%;
  text-align: center;
  display: block;
}
.cancel-modeal-div a{
  color: gray;
  bottom: 10px;
}
.cancel-modeal-div a:hover{
  color: black;
}
#containerForImgUpload {
  display:block;
  width:100%;
  max-width: 1024px;
  margin:auto auto;
  padding-left: 30px;
  padding-right: 30px;
  margin-top:-150px;
  z-index:1000;
  box-sizing: border-box;
}



/* good bad imgages */
.container-examples-img {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  color: #6e6b6b;
  margin-top: 20px;
  justify-content: space-between;
}
.section-examples-img {
  border-radius: 10px;
  padding: 20px;
  width: calc(50% - 5px);
}
.section-examples-img p{
  height: 50px;
  display: flex;
  padding-top: 10px;
}
.section-examples-img h2 {
  margin-top: 0;
  display: flex;
  align-items: center;
}
.icon-examples-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}
.green {
  background-color: #4cd964;
}
.red {
  background-color: #ff3b30;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0px;
  margin-top: 15px;
}
.photo {
  border-radius: 10px;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}
.photo img {
  width: 80%;
  height: 80%;
  object-fit: cover;
}





@-webkit-keyframes rotate {
	0% {-webkit-transform:rotate(0deg);}
	100% {-webkit-transform:rotate(360deg);}
}

.chrome-loader {
	margin: auto auto !important;
  margin-top: 50px !important;
	width: 100px; height: 100px;
	position: relative;
	-webkit-animation: rotate 1.5s infinite linear;
}

.chrome-loader .disc {
	position: absolute;
	background: #4a4d4e;
	width: 100%; height: 100%;
	-webkit-border-radius: 50px;
}

.chrome-loader .ring-maker {
	position: absolute;
	background: white;
	width: 90%; height: 90%;
	-webkit-border-radius: 50px;
	top: 5px; left: 5px;
}

.chrome-loader .semi-circle {
	position: absolute; bottom: 0;
	background: white;
	width: 100%; height: 50%;
	-webkit-border-radius: 0 0 25px 25px;
}



/*------------------------------------------------------*/
/** select user parameters */
/*------------------------------------------------------*/

.container {
  max-width: 600px;
  margin: 0 auto;
}
h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #6e6b6b;
    font-weight: 300;
}
.options {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  text-align: center;
  /* all child elements should be centered */
  justify-content: center;

}
.option {
  padding: 10px 20px;
  background-color: #c2c1c1;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s;
  min-width: 120px;
}
.option.selected {
  background-color: #222;
  color: white;
}
#hair-color-options div.option{
  min-width: 30px;
  max-height: 40px;;
}
.option-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  vertical-align: middle;
}
.male-icon {
  width: 30px;
  height: 30px;
  background-image: url('/img/gender_men.png');
  background-size: auto 30px;
  background-repeat: no-repeat;
  position: relative;
}

.female-icon {
  width: 22px;
  height: 30px;
  background-image: url('/img/gender_women.png');
  background-size: auto 30px;
  background-repeat: no-repeat;
  position: relative;
}

.hair-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
}
select, input[type="text"], textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  background-color: #c2c1c1;
  border: none;
  color: #555;
  border-radius: 5px;
}

select#age-range{
  width: 400px;
}

textarea {
  /* create normal font style for textarea */
  font-family: MyriadPro-Regular, 'Myriad Pro Regular', MyriadPro, 'Myriad Pro', Helvetica, Arial, sans-serif;
  font-size: 16px;
}
button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}
button:hover {
  background-color: #45a049;
}

#userParamSelectContainer{
  text-align: center;
}


#userFaceImageContainer{
  position: relative;
  text-align: center;
  top: 20px;
  border-radius: 20px;
  width: 200px;
  height: 200px;
  margin: auto auto;
  /* drop shadow */
  /*box-shadow: 0 0 10px 0 #222;
  -webkit-box-shadow: 0 0 10px 0 #222;
  -moz-box-shadow: 0 0 10px 0 #222;
  overflow: hidden;
  background-size: cover;*/
  display: none
}
#userFaceImageContainer img{
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

#cookie-consent-background.active, 
#cookie-consent-modal.active {
    display: block;
}

/* Update modal position for better mobile display */
#cookie-consent-modal {
    background-color: white;
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    box-shadow: 0 0 20px 0 #222;
    -webkit-box-shadow: 0 0 20px 0 #222;
    -moz-box-shadow: 0 0 20px 0 #222;
    display: none;
    height: auto;
    left: 50%;
    transform: translateX(-50%);
    padding: 20px;
    position: fixed;
    bottom: 20px;
    width: 320px;
    z-index: 1000;
    margin: 0;
}

/* Make the accept button match your existing style */
#accept-cookies {
    padding: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
    background-image: url('/img/create_photos_bg.png');
    background-size: 100% 100%;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
    text-align: center;
    font-size: larger;
}


/* Button component styles */
.image-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, #a64dca, #8e2db3);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 20px;
    padding-right:8px;
    border-radius: 15px;
    border: none;
    position: relative;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-button:hover {
    background: linear-gradient(to bottom, #b455d8, #9932bc);
}

.badge-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #5a1a73;
    color: #fff;
    border-radius: 42%;
    width: 32px;
    height: 32px;
    font-weight: bold;
    font-size: 15px;
}

/* Video Gallery Styles */
.videos-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.video-item {
    display: flex;
    gap: 2rem;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Left Container - Video Thumbnail */
.video-left {
    flex: 0 0 450px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail.ratio-16-9 {
    aspect-ratio: 16/9;
}

.video-thumbnail.ratio-9-16 {
    aspect-ratio: 9/16;
    max-height: 500px;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.video-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    max-width: 70%;
    line-height: 1.3;
}

.like-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.like-button:hover {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 1);
}

.like-button.liked {
    background: rgba(255, 255, 255, 0.9);
    color: #e91e63;
}

.like-button svg {
    width: 18px;
    height: 18px;
}

.like-count {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Right Container - Description */
.video-right {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.video-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #e0e0e0;
    color: #666;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #333;
    color: white;
}

.quality-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quality-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quality-item label {
    color: #6e6b6b;
    font-weight: 600;
    min-width: 60px;
}

.quality-item label .percentage {
    color: #999;
    font-weight: 600;
    margin-left: 5px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a64dca, #8e2db3);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.reverse-prompt {
    flex: 1;
}

.reverse-prompt h4 {
    color: #6e6b6b;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-align: left;
}

.prompt-text p {
    color: #333;
    line-height: 1.5;
    margin: 0;
}

/* Markdown styling for prompt content */
.prompt-content {
    color: #666;
    line-height: 1.4;
    font-size: 0.9rem;
    text-align: left;
}

.prompt-content h2 {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    margin: 15px 0 8px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
    text-align: left;
}

.prompt-content h3 {
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 12px 0 6px 0;
    text-align: left;
}

.prompt-content strong {
    color: #666;
    font-weight: 600;
}

.prompt-content em {
    font-style: italic;
    color: #666;
}

.prompt-content .markdown-list {
    margin: 8px 0;
    padding-left: 0;
}

.prompt-content .numbered-list {
    counter-reset: item;
}



.prompt-content .numbered-item {
    display: block;
    margin: 6px 0;
    padding-left: 25px;
    position: relative;
    list-style: none;
    text-align: left;
}

.prompt-content .numbered-item .list-number {
    position: absolute;
    left: 0;
    top: 0;
    color: #888;
    font-weight: 600;
}

.prompt-content .bullet-item {
    display: block;
    margin: 4px 0;
    padding-left: 15px;
    position: relative;
    list-style: none;
    text-align: left;
}

.prompt-content .bullet-item::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #888;
}

.prompt-content br {
    line-height: 1.4;
}

.read-more-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-weight: 600;
    margin-top: 8px;
    text-align: right;
    display: block;
    width: 100%;
    padding: 0;
    text-decoration: underline;
    float: right;
    clear: both;
}

.read-more-btn:hover {
    color: #666;
    background: none;
}

/* Video Modal Styles */
#video-modal-background {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
}

#video-modal-content {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    z-index: 2001;
    max-width: 90vw;
    max-height: 90vh;
    /* Dynamic sizing using CSS custom properties */
    width: var(--modal-width, 800px);
    height: var(--modal-height, 450px);
    transition: width 0.3s ease, height 0.3s ease;
    /* Ensure modal never exceeds viewport */
    min-width: 300px;
    min-height: 200px;
}

#video-modal-header {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 2002;
}

#video-modal-close {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#video-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#video-modal-body {
    width: 100%;
    height: 100%;
    position: relative;
}

#video-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

#video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2003;
}

#video-modal-background.active,
#video-modal-content.active {
    display: block;
}

/* Responsive video modal */
@media screen and (max-width: 768px) {
    #video-modal-content {
        width: var(--modal-width-mobile, 95vw);
        height: var(--modal-height-mobile, 56.25vw);
        max-height: 85vh;
    }
}

@media screen and (max-width: 480px) {
    #video-modal-content {
        width: var(--modal-width-small, 98vw);
        height: var(--modal-height-small, 55.125vw);
        max-height: 80vh;
    }
    
    #video-modal-close {
        font-size: 24px;
        width: 30px;
        height: 30px;
        top: 5px;
        right: 10px;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .video-item {
        flex-direction: column;
        gap: 0;
        margin: 0 10px;
    }
    
    .video-left {
        flex: none;
        width: 100%;
    }
    
    .video-thumbnail.ratio-9-16 {
        aspect-ratio: 16/9;
        max-height: none;
    }
    
    .video-right {
        padding: 20px;
    }
    
    .video-info {
        padding: 15px;
    }
    
    .video-title {
        font-size: 1rem;
        max-width: 60%;
    }
    
    .customer-snapshots h2 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .videos-container {
        padding: 0 10px;
    }
    
    header {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    nav a {
        margin-left: 10px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .videos-container {
        padding: 0 5px;
        gap: 1.5rem;
    }
    
    .video-item {
        border-radius: 15px;
        margin: 0 5px;
    }
    
    .video-thumbnail {
        border-radius: 15px 15px 0 0;
    }
    
    .quality-item {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-direction: row;
    }
    
    .quality-item label {
        min-width: 80px;
        flex-shrink: 0;
    }
    
    .progress-bar {
        flex: 1;
        min-width: 100px;
    }
    
    #containerForImgUpload {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .customer-snapshots h2 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 0.9rem;
    }
    
    .intro-text {
        width: 90%;
        padding: 0 5%;
    }
    
    nav a {
        margin-left: 5px;
        font-size: 0.8rem;
    }
}