/* MOBILE */
/* container top and heights */
.style-middle-container {
    height: min(calc(52svh - 26px),(92svw - 26px));
    top: calc(22svh + 43px) !important;
}
.style-bottom-container {
    height: calc(22svh - 21px) !important;
    top: calc((24svh + 46px) + min(calc(48svh - 22px), calc(88svw - 21px))) !important;
}
.style-top-container {
    height: calc(22svh - 21px);
    top: 64px;
}

@keyframes animate-stripes {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 0;
    }
}

@keyframes auto-progress {
  0% {
    width: 0%;
  }

  100% {
    width: 96%;
  }
}

@keyframes blink {
    0% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20%) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
    to {
        opacity: 0;
        display: none;
        transform: translateY(20%) translateX(-50%);
    }
}

/* Overlay style */
.overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    z-index: 1; /* Layer behind the highlighted content */
}

.slide-up {
    animation: slideUp .25s forwards;
}

.slide-down {
    animation: slideDown .25s forwards;
    display: none !important;
}

.close-button:hover {
  background-color: darkred;
}

.ai-portrait-popupMessage {
    height: 15svw;
    width: 60svw;
    z-index: 4;
    position: absolute;
    text-align: center;
    font-family: var(--rubik);
    font-weight: 600;
    font-size: 8svw;
    color: white;
    border: white solid .5svh;
    border-radius: 2svh;
    top: 50svh;
    left: 50svw;
    background-color: #702BD0;
    padding: 2svw;
}

.basic-link-social-media-container {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 1svh;
    left: 50%;
    transform: translateX(-50%);
}

.basic-link-share-icon {
    height: 3.2svh;
    width: 3.2svh;
}

.ai-portrait-facebook-square-icon-container {
    height: 4.8svh;
    width: 4.8svh;
    background-color: #1877F2;
    padding: .8svh;
}

.ai-portrait-twitter-square-icon-container {
    height: 4.8svh;
    width: 4.8svh;
    background-color: black;
    padding: .8svh;
}

.ai-portrait-linkedin-square-icon-container {
    height: 4.8svh;
    width: 4.8svh;
    background-color: #0077B5;
    padding: .8svh;
}

.ai-portrait-url-square-icon-container {
    height: 4.8svh;
    width: 4.8svh;
    background-color: #808080;
    padding: .8svh;
}

.ai-portrait-url-square-icon-container:hover {
    cursor: pointer;
}

.ai-portrait-share-links-container {
    aspect-ratio: 1;
    padding: 0px;
    border: 2px solid #fff;
    border-radius: 2.5vh;
    justify-content: space-evenly;
    font-family: var(--rubik);
    font-weight: 600;
    color: #fff;
    margin: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(20%);
    display: flex;
    flex-direction: column;
    background: white;
    background-attachment: fixed;
    background-size: cover;
    z-index: 2;
}
 
.ai-portrait-cover-image{
    aspect-ratio: 1;
    padding: 0px;
    border: 2px solid #fff;
    border-radius: 2.5vh;
    font-family: var(--rubik);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: auto;
    position: absolute;
    display: flex;
    justify-content: center;
    flex-direction: column;
    left: 50%;
    transform: translateX(-50%);
}

.ai-portrait-scene-select-container {
    position: absolute;
    display: flex;
    justify-content: center;
    flex-direction: column;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(48svh - 21px), (88svw - 21px));
}

.ai-portrait-after-download-image {
    aspect-ratio: 1;
    align-self: center;
    border-radius: 22px;
}

.ai-portrait-loading-title {
    margin-left: 5%;
    margin-right: 5%;
    font-size: 1.2rem;
    color: #333;
    display: block;
}

.ai-portrait-progress-bar {
    background-color: #702BD0;
    height: 6vh;
    width: 80%;
    margin-inline: auto;
    border-radius: 4vh;
    box-shadow: 0 1px 5px #000 inset, 0 1px 0 #444;
    overflow: hidden;
}

.ai-portrait-loading-message {
    margin-left: 10%;
    margin-right: 10%;
    font-size: 1rem;
    color: #333;
    display: block;
    height: 2rem;

    transition: opacity 1s ease-in-out;;
    opacity: 1;
}
  
.ai-portrait-fade-out {
  opacity: 0;
}

.ai-portrait-fade-in {
  opacity: 1;
}

.stripes {
    background-size: 30px 30px;
    background-image: linear-gradient(135deg, rgba(38, 193, 227, 0.55) 25%, transparent 25%, transparent 50%, rgba(38, 193, 227, .55) 50%, rgba(38, 193, 227, 0.55) 75%, transparent 75%, transparent);
}

.stripes.animated {
  animation: animate-stripes 0.6s linear infinite;
}

.stripes.animated.slower {
  animation-duration: 1.25s;
}

.stripes.reverse {
  animation-direction: reverse;
}

.ai-portrait-progress-bar-inner {
  display: block;
  height: 100%;
  width: 0%;
  background: url(./ai-portrait-demo-bg.svg) top right no-repeat, linear-gradient(107.73deg, #26C1E3 -13.9%, #702BD0 99.92%);
  background-attachment: fixed;
  background-size: cover;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset;
  position: relative;
  animation: auto-progress 30s linear;
  animation-fill-mode: forwards;
}

.ai-portrait-demo-body {
    background: url(./ai-portrait-demo-bg.svg) top right no-repeat, linear-gradient(107.73deg, #26C1E3 -13.9%, #702BD0 99.92%);
    background-attachment: fixed;
    background-size: cover;
    position: relative;
    height: 100svh;
}

.couple-game-wrapper {
    height: calc(100svh - 64px) !important;
}

.ai-profile-button-container {
    position: absolute;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(48svh - 21px), calc(88svw - 21px))
}

.beta-message {
    text-align: center;
    font-style: italic;
    font-size: 2vh;
    padding-top: 1vh;
}

span.allign {
    border: 4px solid #FFFFFF;
    width: 44%;
    aspect-ratio: 1 / 1.2;
    border-radius: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2.2vh;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}


.video-container {
    aspect-ratio: 1;
    padding: 0px;
    border: 2px solid #fff;
    border-radius: 2.5vh;
    display: grid;
    gap: 34px 0;
    justify-content: center;
    font-family: var(--rubik);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.ai-profile-title {
    font-size: 2rem;
    display: flex;
    flex-direction: column;
}

.ai-profile-subtitle {
    font-size: 1rem;
    display: flex;
    flex-direction: column;
}

.title-container {
    font-family: var(--rubik);
    font-weight: 700;
    color: #fff;
    padding: 0 20px;
    text-align: center;
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.learn-more {
    text-decoration: none !important;
    color: #6A39D2 !important;
}

.after-download-container {
    font-family: var(--rubik);
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    text-align: center;
    height: 10px;
    position: absolute;
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    text-align: left;
}

.done-title {
    font-size: 2rem;
}

.allign {
    position: absolute;
}

.noDisplay {
    display: none !important;
}

#ai-portrait-result {
    position: absolute;
    border: 6px solid #FBBA22;
    aspect-ratio: 1 / 1;
    background: #FFFFFF url(../img/profile-placeholder.svg) center center no-repeat;
    background-size: 33% auto;
    padding: 0;
    overflow: hidden;
    border-radius: 24px;
    left: 50%;
    transform: translateX(-50%);
}

#ai-portrait-result.expanded {
    position: fixed;
    left: 50%;
    transform: translateY(50%) translate(-50%, -50%) scale(1.9);
    z-index: 1000;
}
.ai-portrait-custom-background-labels {
    display: flex;
    height: 100%;
    font-family: var(--rubik);
    font-weight: 700;
    color: #fff;
    font-size: 20px;
    margin-left: 1rem;
}

.ai-portrait-custom-background-radio {
    display: flex;
    flex-direction: row;
    margin-block: 1rem;
}

.loading-screen {
    background-color: #fff;
    text-align: center;
    aspect-ratio: 1;
    padding: 0px;
    border: 2px solid #fff;
    border-radius: 22px;
    font-family: var(--rubik);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: auto;
    position: absolute;
    top: 30vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

#ai-portrait-custom-background-prompt-textbox {
    padding: 10px; /* same padding as other elements */
    border: 2px solid #FFD700; /* matching the orange border color */
    border-radius: 20px; /* matching the rounded corners */
    background: rgba(255, 255, 255, 0.1); /* semi-transparent white background */
    color: #ffffff; /* white text color */
    font-family: 'Arial', sans-serif; /* matching the font family */
    font-size: 1.2rem; /* matching the font size */
    resize: none; /* disable resizing */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* subtle shadow */
    height: 6rem;
    margin-left: 2.5rem;
    width: calc(100% - 2.5rem);
}

/* Hover and focus styles for the textbox */
#ai-portrait-custom-background-prompt-textbox:hover,
textarea.custom-scene:focus {
    border-color: #FFA500; /* change border color on hover/focus */
    outline: none; /* remove default outline */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* slightly darker shadow */
}

/* Style for the placeholder text */
#ai-portrait-custom-background-prompt-textbox::placeholder {
    color: rgba(255, 255, 255, 0.7); /* lighter color for readability */
    font-size: 1.2rem; /* matching the font size */
    opacity: 1; /* fully opaque */
}

.couple-game-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    height: 100%;
    margin-top: 4vh;
}

.couple-game-btn {
    width: 100%;
    height: 6vh;
    border-radius: 4vh;
    border: 0;
    background: linear-gradient(92.74deg, #FFF275 0.94%, #F9A300 101.84%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5vh;
    font-weight: 700;
    color: #6A39D2;
    box-shadow: 10px 10px 20px 0px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.2 ease-in;
    text-transform: uppercase;
    font-family: var(--rubik);
}

.couple-game-btn2 {
    cursor: pointer;
    width: 100%;
    height: 6vh;
    border-radius: 4vh;
    border: 2px solid #fff;
    background-color: transparent;
    min-width: 186px;
    font-family: var(--rubik);
    font-weight: 700;
    font-size: 2.5vh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ai-portrait-share-button {
    width: 40%;
    height: 6vh;
    border-radius: 4vh;
    border: 0;
    background: linear-gradient(92.74deg, #FFF275 0.94%, #F9A300 101.84%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5vh;
    font-weight: 700;
    color: #6A39D2;
    box-shadow: 10px 10px 20px 0px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.2 ease-in;
    text-transform: uppercase;
    font-family: var(--rubik);
}

.ai-portrait-share-icon {
    margin-block: 1vh;
    margin-left: 7%;
    margin-right: 10%;
}

.ai-portrait-download-button, .ai-portrait-retry-button  {
    cursor: pointer;
    width: 20%;
    height: 6vh;
    border-radius: 4vh;
    border: 2px solid #fff;
    background-color: transparent;
    font-family: var(--rubik);
    font-weight: 700;
    font-size: 2.5vh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ai-portrait-svg-icon {
    width: 4vh;
}

/*FACEBOOK BUTTON*/
.ai-portrait-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.ai-portrait-share-link-btn-container {
    display: flex;
    justify-content: center;
}

.ai-portrait-facebook-btn, .ai-portrait-twitter-btn, .ai-portrait-pinterest-btn {
    width: 80%;
    border-radius: 4vh;
    background-color: white;
    text-decoration: none !important;
    border: solid 3px #383838;
}

.ai-portrait-share-link-text-span {
    color: black !important;
    height: 2.5vh;
    font-size: 2.5vh;
}

.ai-portrait-share-link-text-container {
    height: 7vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.ai-portrait-share-link-inside-container {
    display: flex;
    justify-content: left;
}

.niftybutton-facebook {
    display: block;
    fill: currentColor;
}
/*END FACEBOOK BUTTON*/

@media (min-width: 1000px) {
    /* DESKTOP */
    /* container top and heights */
    .style-middle-container {
        height: calc(52vh - 21px) !important;
        top: calc(22vh + 43px) !important;
    }
    .style-bottom-container {
        height: calc(22vh - 21px) !important;
        top: calc((26vh + 43px) + (48vh - 22px)) !important;
    }
    .style-top-container {
        height: calc(22vh - 21px) !important;
        top: 64px !important;
    }


    .basic-link-share-icon {
        height: 2.4svh;
        width: 2.4svh;
    }
    
    .ai-portrait-facebook-square-icon-container {
        height: 3.6svh;
        width: 3.6svh;
        background-color: #1877F2;
        padding: .8svh;
    }
    
    .ai-portrait-twitter-square-icon-container {
        height: 3.6svh;
        width: 3.6svh;
        background-color: black;
        padding: .8svh;
    }
    
    .ai-portrait-linkedin-square-icon-container {
        height: 3.6svh;
        width: 3.6svh;
        background-color: #0077B5;
        padding: .6svh;
    }
    
    .ai-portrait-url-square-icon-container {
        height: 3.6svh;
        width: 3.6svh;
        background-color: #808080;
        padding: .6svh;
    }

    .ai-portrait-popupMessage {
        height: 8svh;
        width: 28svh;
        z-index: 4;
        position: absolute;
        text-align: center;
        font-family: var(--rubik);
        font-weight: 700;
        font-size: 4vh;
        color: white;
        border: white solid .5svh;
        border-radius: 2svh;
        top: 50svh;
        left: 50svw;
        background-color: #702BD0;
        padding: 1svh;
    }

    .ai-portrait-demo-body {
        background: url(./ai-portrait-demo-bg.svg) top right no-repeat, linear-gradient(107.73deg, #26C1E3 -13.9%, #702BD0 99.92%);
        background-attachment: fixed;
        background-size: cover;
        position: relative;
        height: 100vh;
    }
    
    .couple-game-wrapper {
        height: calc(100vh - 64px) !important;
    }

    .ai-portrait-cover-image{
        aspect-ratio: 1;
        padding: 0px;
        border: 2px solid #fff;
        border-radius: 2.5vh;
        font-family: var(--rubik);
        font-size: 20px;
        font-weight: 700;
        color: #fff;
        margin: auto;
        position: absolute;
        display: flex;
        justify-content: center;
        flex-direction: column;
        left: 50%;
        transform: translateX(-50%);
    }
    .ai-portrait-share-link-text-span {
        color: black !important;
        height: 3vh;
        font-size: 3vh;
    }
    .ai-portrait-share-icon {
        margin-block: 1vh;
        margin-left: 7%;
        margin-right: 14%;
    }
    .ai-profile-title {
        font-size: 3rem;
        display: flex;
        flex-direction: column;
        padding-top: 2vh;
        padding-bottom: 2vh;
    }
    .ai-profile-subtitle {
        font-size: 1.5rem;
        display: flex;
        flex-direction: column;
    }
    .after-download-container {
        font-family: var(--rubik);
        font-weight: 700;
        /* font-size: 24px; */
        color: #fff;
        padding: 0 3rem;
        text-align: center;
        height: 10px;
        position: absolute;
        top: 20vh;
        width: 70vh;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        font-size: 1rem;
        border-radius: 22px;
    }
    .title-container {
        font-family: var(--rubik);
        font-weight: 700;
        color: #fff;
        padding: 0 20px;
        text-align: center;
        position: absolute;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .done-title {
        font-size: 3rem;
    }

    .ai-portrait-loading-title {
        margin-left: 10%;
        margin-right: 10%;
        font-size: 2rem;
        color: #333;
        display: block;
    }

    .ai-portrait-after-download-image {
        height: 100%;
        align-self: center;
        border-radius: 22px;
    }
}

.confirm-upload-btn, .retry-upload-btn {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.confirm-upload-btn {
    background-color: #4CAF50;
    color: white;
}

.retry-upload-btn {
    background-color: #f44336;
    color: white;
    margin-left: 10px;
}

.confirm-upload-btn:hover, .retry-upload-btn:hover {
    opacity: 0.8;
}