:root 
{
    font-family: sans-serif;

    /*background: radial-gradient(circle farthest-side at left top, #020314 0%,  #871c87 100%), radial-gradient(circle farthest-side at center bottom, #010343 0%, hsl(0, 0%, 0%) 100%);*/
    background: url(videobg.webm);

    color: #fff;
    /*--accent-color: #941a9459;*/
    --accent-color: #441d46;
    /*--accent-color-pale: #df44cccc;*/
    /*--accent-color-pale: #f558ff;*/
    --accent-color: #ca0065;
    --accent-color-pale: #e2388d;
    --accent-color-grey: #aaa;
    --background-color: #0c0609;
    --button-action-shadow: #111 5px 5px 14px 2px;
    --color-error: #7d0f23;
    --color-error-pale: #9d3044
}

@font-face {
    font-family: Sauce;
    src: url(/Fonts/OpenSauceOne-Light.ttf);
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-text-fill-color: transparent;
    background-color: transparent;
    -webkit-background-clip: text;

}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -100;
    background: url("videobg.webm") no-repeat;
    background-size: cover;
}

::-webkit-scrollbar {
    background-color: #eeeeee4b;
    height: 10px;
    width: 10px;
    border-radius: 50px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 50px;
}

body
{
    margin: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    background-color: var(--background-color);
    max-width: 100vw;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6
{
    font-family: Sauce;

}


h1 {
    font-size: 41px;
    text-align: center;
    color: var(--accent-color-pale);
    text-transform: uppercase;
}

h1.portrait-only
{
    font-size: 24px;
    margin: 15px 0;
}

.layout-full
{
    max-width: 50vw;
    width: 100%;
}

/*h1 span
{
    display: block;
    font-size: 20px;
    color: var(--accent-color);
}*/

h2
{
    text-align: center;
    margin-bottom: 4em;
}

h2 span
{
    color: var(--accent-color-pale);
}

header {
    padding-top: 15px;
    padding-right: 15px;
    margin-bottom: 2em;
    overflow: hidden;
}

.hamburger {
    cursor: pointer;
    width: 30px;
    display: none;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    position: absolute;
    width: 100%;
    transition: all 0.3s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 11px;
}

.hamburger span:nth-child(3) {
    top: 22px;
}

.hamburger.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

.flex-column
{
    display: flex;
    flex-direction: column;
}

.flex-row
{
    display: flex;
    flex-direction: row;
}

.flex-column > *
{
    flex: 1;
}

.flex-container
{
    display: flex;
    flex-wrap: wrap;
    flex: 1;
}

.flex-container.center-top
{
    align-items: flex-start;
}

section 
{
    margin-bottom: 8em;
}

article
{
    display: inline-block;
    flex: 1;
    margin: 1em;
    padding: 1em;
}

.cta 
{
    display: flex;
}

button, .button
{
    outline: none;
    border: 1px solid #fff;
    background: none;
    color: white;
    padding: 0.5em 1em;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    margin: auto;
    width: 33%;
    text-decoration: none;
    font-family: 'Sauce';
}

.btn-primary, .button, button[type="submit"]
{
    border-color: var(--accent-color-pale);
    transition: 300ms;
    box-shadow: #111 5px 5px 14px 2px;
    padding: 1em 0em;
    width: 50%;
    margin-top: 15px;
    text-align: center;
}

:is(.btn-primary, .button, button[type="submit"]):is(:hover, :focus, .selected)
{
    background-color: var(--accent-color);
}

:is(.btn-primary, .button, button[type="submit"]):disabled, :is(.btn-primary, .button, button[type="submit"]):hover:disabled
{
    background-color: var(--accent-color-grey);
    border-color: #fff;
}

.input-invalid
{
    border-color: var(--color-error-pale) !important;
}

.error-message
{
    color: var(--color-error-pale);
}

.input-spacer
{
    margin-bottom: 40px;
}

.input-spacer label
{
    display: block;
    margin-bottom: 10px;
}

.input-spacer input:not([type="checkbox"], [type="radio"])
{
    margin-bottom: 10px;
}

.input-spacer ul
{
    display: none;
}


.checkbox-default input[type="checkbox"]
{
    appearance: none;
    background-color: transparent;
    margin: 0;
    font: inherit;
    color: #fff;
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid #fff;
    border-radius: 0.15em;
    transform: translateY(-0.075em);
    vertical-align: middle;
    display: inline-grid;
    place-content: center;
}

.checkbox-default input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transition: 100ms;
    box-shadow: inset 1em 1em var(--accent-color);
}

.checkbox-default input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.checkbox-default {
    margin: 2em 0;
    text-align: center;
}

.checkbox-default label:nth-child(1)
{
    margin-right: 15px;
}

.flash-success, .flash-error
{
    max-width: 50%;
    margin: 30px auto;
    text-align: center;
    padding: 1em;
    border-radius: 25px;
}

.flash-success
{
    background-color: var(--accent-color-pale);
}

.flash-error
{
    background-color: var(--color-error);
}

ul
{
    margin: 0;
}
li {
    display: inline-block;
    flex: 1;
    text-align: center;
}

#integration-steps
{
    padding: 4em;
    box-shadow: #111 2px 2px 10px 2px;
}

#integration-steps li.step-arrow::after
{
    position: relative;
    content: '→';
    right: -128px;
    top: -85px;
    font-size: 50px;
    color: #fff;
}

#integration-steps .nb {
    background-color: #e600ff45;
    border-radius: 50%;
    font-size: 20px;
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    margin-bottom: 24px;
    
}

#portraits li
{
    padding: 0.5em;
}


#portraits img
{
    max-height: 40vh;
    border-radius: 25px;
}

.arg-illu img
{
    max-width: 128px;
}

article h3
{
    text-align: center;
}

.glass
{
    background-color: hsl(0deg 0% 100% / 10%);
    background-color: rgba(236,163,240,0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    color: #FFF;
    text-align: center;
    box-shadow: hsl(0deg 0% 100% / 20%) 1px 1px 2px 0px;
}


#price
{
    margin-bottom: 0;
    padding: 5em 0;
}

footer
{
    padding-top: 3em;
    padding-bottom: 2em;
    margin-top: 50px;
    
    overflow: hidden;
}

footer.glass
{
    border-radius: 0;
}

footer ul
{
    display: flex;
}

footer a, footer a:is(:visited, :hover)
{
    color: var(--accent-color-pale);
}

form
{
    padding: 3em 2em 2em 2em;
    width: 50%;
    margin: auto;
}

input:not([type="checkbox"], [type="radio"]) {
    background-color: transparent;
    outline: none;
    border-radius: 25px;
    display: block;
    margin: auto;
    padding: 0.5em;
    margin-bottom: 20px;
    width: 75%;
    border: 1px solid #fff;
    text-align: center;
    transition: 300ms;
    color: #fff;
}

textarea
{
    display: block;
    border-radius: 25px;
    outline: none;
    padding: 15px;
    width: calc(75% - 15px);
    min-height: 50px;
    margin: auto;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

input:not([type="checkbox"]):is(:focus, :hover) {
    border-color: var(--accent-color-pale);
}

.radio-wrapper
{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.hidden, .hidden *
{
    opacity: 0;
    display: none !important;
}

.width-hidden
{
    max-width: 0 !important;
}


#form-remember input
{
    display: inline-block;
    width: auto;
    margin-right: 1em;
}

#login-to-create
{
    display: block;
    color: #fff;
    font-size: 14px;
    margin-top: 3em;
    text-align: right;
}

.maintenance-page
{
    text-align: center;
}

.maintenance-page p
{
    margin: 64px 0;
}

.banner-full
{
    background-color: var(--accent-color-pale);
    padding: 15px 0;
    text-align: center;
    display: block;
    color: #fff;
}



/* -------------------- IMAGE GENERATION --------------------- */

.progress-container {
    width: 100%;
    height: 18px;             /* Height of the bar track */
    background-color: var(--accent-color-grey);   /* A light gray background */
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden; 
    max-width: 45%;
    margin: 25px auto;
    display: none;
}
  
.progress-bar {
    height: 100%;
    width: 100%;                /* Start at 0% */
    transition: width 0.4s ease;
    background: linear-gradient(to right, var(--accent-color), var(--accent-color-pale), var(--accent-color));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    text-align: center;
    font-weight: bold;
}

#generation-container, #generation-container div:not(#options-selector)
{
    display: flex;
    align-items: flex-start;
    flex: 1;
    width: 100%;
}

#generation-container img
{
    max-height: 75vh;
    margin: auto;
    border-radius: 25px;
}

#generation-container :is(h1, .padding-container)
{
    margin-left: 40px;
    padding-left: 30px;
}

#generation-form, #generation-form-show-container
{
    width: 51%;
    padding: 15px 40px;
    margin-left: 45px;
    max-height: 80vh;
    min-height: 80vh;
    overflow-y: auto;
}

#generation-form-show-container > div
{
    display: flex;
    flex-wrap: wrap;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 80%;
    padding: 15px;
}

#generation-form-show-container > div div {
    max-width: 20%;
    overflow: hidden;
}

#generation-form-show-container > div > p {
    width: 100%;
    font-size: 24px;
    text-align: center;
}

#generation-form-show-container > div div:hover img {
    -ms-transform: scale(1.2); /* IE 9 */
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    cursor: pointer;
}

#generation-form-show-container > div img {
    max-width: 100%;
    transition: 300ms;
    display: block;
}

#generation-form h1
{
    font-size: 30px;
    margin: 0;
}

#generation-form form
{
    width: 100%;
    padding: 0;
    padding-top: 20px;
}

#generation-form input[type="radio"]
{
    display: none;
}

#generation-form .option-tab > div
{
    width: calc(20% - 10px);
    min-width: unset;
}

.generation-form .option-tab label
{
    border: 1px solid #fff;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    padding: 1em;
    transition: 100ms;
    cursor: pointer;
    box-shadow: #111 5px 5px 14px 2px;
    margin: auto 0;
    max-width: calc(100% - 2em - 2px);
    width: 100%;
    height: 240px;
}


.generation-form .option-tab label img
{
    border-radius: 15px;
    height: 180px;
    width: 124px;
    margin: auto;
    margin-top: 0;
    transition: 300ms;
}

/*.generation-form .option-tab label:hover img {
    width: calc(124px* 1.3);
    height: calc(180px* 1.3);
}*/

.generation-form .option-tab label:hover
{
    background: radial-gradient(circle, rgba(202, 0, 101, 1) 0%, rgba(148, 187, 233, 0) 100%);
}

.generation-form .option-tab label.selected
{
    border-color: var(--accent-color-pale);
    outline: 2px solid var(--accent-color-pale);
}


.generation-form input:is([type="checkbox"], [type="radio"])
{
    opacity: 0;
}


.generation-mode-selector
{
    width: 7%;
    margin-left: 40px;
}

.generation-mode-selector div
{
    width: 100%;
}

#generated_image, #generated_portrait
{
    align-content: start;
    flex: 1;
}

#generated_portrait
{
    margin: auto;
    display: flex;
    flex-direction: column;
}

#generated_image_waiter img
{
    margin: auto;
    text-align: center;
    display: none;
    max-width: 100%;
    border-radius: 25px;
}

#status-cont 
{
    text-align: center;
    font-size: 24px;
    margin-top: 30px;
    display: none;
}

#generated_image img {
    max-height: 100%;
    max-width: 100%;
    border-radius: 25px;
    margin: auto;
}

#generated_image_waiter
{
    height: 76%;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    background: radial-gradient(circle, rgba(9, 9, 121, 0) 0%, rgba(236, 163, 240, 0.13769257703081228) 35%, rgba(9, 9, 121, 0) 100%);
    background: linear-gradient(234deg, rgba(9, 9, 121, 0) 0%, rgba(236, 163, 240, 0.10688025210084029) 35%, rgba(236, 163, 240, 0.1516981792717087) 100%);
    background: transparent;
    position: relative;
    max-height: 80vh;
    min-height: 80vh;
}

#generated_image_waiter .waiter
{
    position: absolute;
    margin: 0;
    border-radius: 50%;
}

#generated_image_waiter .waiter-text
{
    top: calc(50% - 40px);
    font-size: 40px;
    font-family: 'Sauce';
}

#generated_image_waiter .waiter-small
{
    width: 256px;
    height: 256px;
    top: calc(50% - 256px / 2 - 5px);
    left: calc(50% - 256px / 2 - 5px);
    border-top: 5px solid var(--accent-color);
    border-right: 5px solid var(--accent-color);
    border-radius: 50%;

    animation: rotate 2s linear infinite;

}

#generated_image_waiter .waiter-large
{
    width: 384px;
    height: 384px;
    top: calc(50% - 384px/2 - 5px);
    left: calc(50% - 384px/2 - 5px);
    border-right: none;
    border-left: 10px solid var(--accent-color);
    border-top: 5px solid var(--accent-color);

    animation: rotate 2s linear infinite reverse;
    backdrop-filter: blur(5px);
}

#portrait-form-cont
{
    display: flex;
}

#portrait-form-cont > div:not(.layout-full)
{
    flex: 1;
    max-width: 50%;
    transition: 300ms;
}

#portrait-form-cont img
{
    max-height: 80vh;
}




#form-part2 form
{
    margin-left: 0;
}

#form-part2 form input
{
    margin-left: 0;
    margin-bottom: 50px;
    color: #fff;
}

.padding-container
{
    padding: 1em 1em;
}

.flex-container-column
{
    flex-direction: column;
    width: 100%;
}

div.option-tab
{
    transition: 300ms;
    display: flex;
    gap: 10px;
    overflow: auto;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    flex-flow: wrap;
    max-height: 50vh;
    min-height: 50vh;
    padding: 5px;
}


#category-selector
{
    padding-top: 1em;
    padding-bottom: 2em;
    border-bottom: 1px solid var(--accent-color-grey);
    overflow: auto;
}

#options-selector
{
    width: 33%;
    padding: 4em 2em;
}

.category
{
    margin-bottom: 1em;
    flex: 1;
    position: relative;

}

.category-indicator {
    position: absolute;
    top: 10px;
    right: 5px;
    width: 15px;
    height: 15px;
    font-size: 10px;
    color: #fff;
    background-color: var(--accent-color-pale);
    border-radius: 50%;
    display: none;
}

.category .category-name
{
    padding: 1em;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    transition: 100ms;
}

.category .category-name:hover
{
    color: var(--accent-color);
}

.category .category-name.selected
{
    color: var(--accent-color-pale);
}

.switch-root
{
    height: 20px;
    background-color: var(--accent-color-grey);
    transition: 500ms;
    border-radius: 25px;
}

.switch-root.selected
{
    flex-direction: row-reverse;
    background-color: #fff;
}

.switch-in
{
    height: 20px;
    max-width: 20%;
    background-color: #d291d2;
    border-radius: 25px;;
}

.switch-root.selected .switch-in
{
    background-color: var(--accent-color);
}

.option-tab > div {
    min-width: 20%;
}


/* --------------------- CHARACTER LIST ----------------- */

.character-card-container
{
    justify-content: center;
    padding: 0 35px;
    gap: 35px;
}

.character-card-list-item
{
    position: relative;
    width: 23%;
    overflow: hidden;
    padding: 5px;
}

.character-card
{
    display: flex;
    flex-direction: column-reverse;
    text-decoration: none;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 60vh;
    overflow: hidden;
    position: relative;
    transition: 300ms;
    outline: 4px solid #ffffff00;
}

.character-card:not(.character-card-detail):hover
{
    outline-color:  var(--accent-color-pale);
}

.character-card-name
{
    margin: 0;
    border-radius: 15px;
    padding: 0.5em;
    font-size: 26px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    background-color: hsl(0deg 0% 0% / 30%);
    color: #ffffff;
}

.character-card-shortcut-container
{
    position: absolute;
    display: flex;
    flex-direction: column;
    bottom: 4em;
    right: 0;
    width: 100%;
    align-items: flex-end;
    transition: 300ms;
    padding: 0 15px;
    pointer-events: none;
}

.character-card-list-item:hover .character-card-shortcut-container
{
    bottom: 4em;
}

.character-card-shortcut img
{
    max-width: 100%;
    margin: auto;
    border-radius: 50px;
    width: 24px;
    height: 24px;
    padding: 16px;
    background-color: var(--accent-color);
    transition: 300ms;
    box-shadow: #111 5px 5px 14px 2px;
    pointer-events: all;
}

.character-card-shortcut:hover img
{
    background-color: var(--accent-color-pale);
}

.character-card-shortcut.shortcut-delete img
{
    background-color: var(--color-error-pale);
}

.character-card-shortcut.shortcut-delete:hover img
{
    background-color: var(--color-error);
}

.character-card-center-symbol
{
    position: absolute;
    top: calc(50% - 218px);
    left: calc(50% - 80px);
    font-size: 128px;
    border-radius: 50%;
    padding: 0 40px;
    background-color: var(--accent-color);
    box-shadow: #111 5px 5px 14px 2px;
}

.character-card-list-item:hover .character-card-center-symbol
{
    background-color: var(--accent-color-pale);
}



/* ------------ NAV ---------------- */

#nav-language-selector
{
    background: var(--background-color);
    color: #fff;
    padding: 12px;
    margin-right: 35px;
    border-radius: 25px;
}

nav
{
    display: flex;
    align-items: center;
}


nav #login-link
{
    text-align: right;
}

nav a {
    color: #fff;
    padding-bottom: 5px;
    transition: 100ms;
    text-decoration: none;
}

nav a:not(.link-logo)
{
    border-bottom: 1px solid;
    align-items: center;
    display: flex;
}

nav a:hover
{
    border-color: var(--accent-color-pale);
} 

nav a.selected
{
    color: var(--accent-color-pale);
}

#logout
{
    border: none;
}

#logout .icon
{
    width: 18px;
    margin-right: 10px;
}


#pages-menu
{
    flex-grow: 1;
}

#pages-menu ul
{
    align-items: center;
    display: flex;
    justify-content: flex-start;
}

#pages-menu li
{
    flex: 0;
    margin-right: 20px;
    min-width: fit-content;
}

#pages-menu li.separator {
    padding-right: 25px;
    margin-right: 25px;
    border-right: 1px solid;
}

#pages-menu li:nth-child(2)
{
    margin-right: 80px;
}

#pages-menu .logo
{
    max-width: 50px;
}

#user-menu
{
    display: block;
    overflow: hidden;
    max-height: 0;
    transition: 300ms;
    position: absolute;
    text-align: left;
}

#user-menu li
{
    text-align: left;
}

#user-profile
{
    display: flex;
    align-items: center;
}

#user-profile > div
{
    margin-right: 36px;
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    padding: 0.5em 1em;
    align-items: center;
    display: flex;
    justify-content: center;
}

#user-profile > div p
{
    margin: 0;
}


#user-profile > div img
{
    margin: auto;
    width: 24px;
}

#user-profile.selected
{
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

#user-profile.selected #user-menu
{
    max-height: fit-content;
    background-color: hsl(0deg 0% 100% / 10%);
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
    width: 100%;
}

#user-menu li
{
    display: block;
}

#user-profile > :is(a, div):not(:last-child)
{
    margin-right: 35px;
}

#user-profile a
{
    border-bottom: 1px solid transparent;
    transition: 100ms;
}

#user-profile a:is(:hover, :focus)
{
    border-bottom: 1px solid var(--accent-color);
}

#user-profile img
{
    max-height: 24px;
    margin-right: 10px;
}



/* ------------------- Subscription --------------------------- */

#current_subscription
{
    padding: 5em 0;
    margin: auto;
}

#current_subscription h2
{
    font-size: 70px;
    margin-bottom: 1em;
}

#current_subscription p
{
    margin-bottom: 8em;
    font-size: 26px;
}

#offers-container
{
    display: flex;
    justify-content: space-evenly;
    max-width: 75%;
    margin: auto;
}

#offers-container > div
{
    flex: 1;
}

.offer-arg-container
{
    flex: 1;
}

.offer-arg-container li {
    display: flex;
    align-items: center;
    margin-bottom: 2em;
    text-align: left;
}

.offer-arg-container li img {
    border-radius: 50%;
    margin-right: 15px;
    background-color: var(--accent-color-pale);
    padding: 0.5em;
    width: 15px;
}

.offer-arg-container li p
{
    display: flex;
}

.offer .cta-button
{
    margin-bottom: 20px;
    padding: 1em;
    width: 50%;
}

.offer
{
    width: 90%;
    margin: auto;
}

.offer h2
{
    padding: 2em 0;
    margin: auto;
}

.offer > div
{
    width: 90%;
    margin: auto;
    height: 480px;
    display: flex;
    flex-direction: column;
}

/* ------------- Login -------------- */

#login-form img
{
    max-width: 15%;
    display: block;
    margin: auto;
}

#login-form label
{
    vertical-align: middle;
}

#login-form input:not([type="checkbox"])
{
    max-width: 50%;
    padding: 1em;
    color: #fff;
    margin: 3em auto;
}




/* ------ PAYMENT ---------- */

.payment-result
{
    max-width: 50%;
    margin: auto;
    padding: 2em 0;
}



/* --------- CHARACTER DETAIL -----------------*/

.character-card-detail
{
    flex-direction: row;
    max-height: 70vh;
    margin: 0 auto;
    width: 75vw;
}

.character-card-detail > img
{
    max-height: 100%;
}

.character-card-detail .action
{
    max-width: 100%;
    margin: auto;
    border-radius: 50px;
    height: 24px;
    padding: 16px;
    background-color: var(--accent-color);
    transition: 300ms;
    box-shadow: #111 5px 5px 14px 2px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: 'Sauce';
}

.character-card-detail .action:hover
{
    background-color: var(--accent-color-pale);
}

.character-card-detail .action img
{
    margin-right: 15px;
    max-width: 24px;
}

.character-card-detail .details
{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 40px;
    width: 100%;
}

.character-card-detail .details h1
{
    text-align: left;
    text-transform: none;
    font-weight: 600;
}

.character-card-detail .details h1 span
{
    font-weight: 400;
}

.character-card-detail .full-actions-container
{
    display: flex;
    justify-content: flex-start;
    width: fit-content;
    gap: 40px;
}

.character-card-detail .action.action-delete
{
    background-color: var(--color-error-pale);
}

.character-card-detail .action.action-delete:hover
{
    background-color: var(--color-error);
}

.character-card-detail article {
    border: 1px solid;
    border-radius: 25px;
    text-align: center;
    margin: 0;
}

.character-card-detail h2 {
    margin-bottom: 20px;
}

.article-container
{
    gap: 40px;
}

.character-card-detail ul
{
    padding: 0;
}

.character-card-detail li
{
    text-align: left;
    margin-bottom: 20px;
    display: block;
}

#description-container
{
    margin: 50px auto;
}

#description-container h2
{
    text-align: left;
}


#generation-show-container {
    display: flex;
    max-width: 75vw;
    margin: 30px auto;
    flex-wrap: wrap;
    border-radius: 25px;
    overflow-x: hidden;
}

#generation-show-container div {
    max-width: 20%;
    overflow: hidden;
}

#generation-show-container > p {
    width: 100%;
    font-size: 24px;
    text-align: center;
}

#generation-show-container div:hover img {
    -ms-transform: scale(1.2); /* IE 9 */
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    cursor: pointer;
}

#generation-show-container img {
    max-width: 100%;
    transition: 300ms;
    display: block;
}

#generation-type-selector
{
    max-width: 15%;
    margin: auto;
    border-radius: 25px;
    border: 1px solid;
    margin-top: 50px;
    overflow: hidden;
    display: flex;
}

#generation-type-selector div
{
    text-align: center;
    padding: 5px;
    flex: 1;
}

#generation-type-selector div.selected
{
    background-color: var(--accent-color-pale);
}

#popin-image .popin
{
    display: flex;
}

#popin-image img
{
    max-height: 100vh;
    margin: auto;
    display: block;
}

#popin-image .popin-arrow {
    height: 80vh;
    align-items: center;
    text-align: center;
    background-color: var(--accent-color);
    padding: 9px;
    margin: auto;
    cursor: pointer;
    align-content: center;
    font-weight: bold;
    transition: 300ms;
}

#popin-image .to-previous
{
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

#popin-image .to-next
{
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}


#popin-image :is(.to-next, .popin-close, .to-previous):hover
{
    background-color: var(--accent-color-pale);
}

#popin-image :is(.to-next, .to-next:hover, .to-previous, .to-previous:hover).disabled
{
    background-color: var(--accent-color-grey);
}

/* ----------- CREATION FORM -------------- */

#character-creation-form #form > div
{
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

#character-creation-form .option-tab
{
    padding-bottom: 30px;
    margin-bottom: 40px;
    min-height: 33vh;
}

#character-creation-form .option-tab-title
{
    margin: 25px;
    padding-bottom: 15px;
    padding-top: 15px;
    border-bottom: 1px solid var(--accent-color-grey);
    font-size: 24px;
    text-align: left;
    display: block;
}

#character-portrait-form
{
    padding: 0;
    margin-top: 250px;
}

:is(#character-portrait-form, #character-creation-form) button[type="submit"]
{
    margin: auto;
    display: block;
}

#status-retry
{
    margin-top: 30px;
}

#status-retry .button
{
    margin: auto;
    display: block;
}



/* ------------------------------------------ FRONT ----------------------------------- */

#intro
{
    display: flex;
    margin-bottom: 0;
    padding-left: 2em;
    flex-direction: column;
}

#intro h2
{
    font-size: 30px;
    margin-top: 50px;
}

#intro h2 span
{
    font-size: 30px;
    display: block;
    color: var(--accent-color-pale);
}

#intro #title-container
{
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 55%;
    margin: 20px auto;
    padding: 20px 66px;
}

#title-container img
{
    max-width: 140px;
}

#title-container h1
{
    font-size: 70px;
    text-align: center;
    color: var(--accent-color);
    text-transform: uppercase;
    align-content: center;
    display: inline-block;
}

#pre-register h2
{
    margin-bottom: 0;
}

#pre-register form
{
    padding-top: 60px;
}


#pre-register button
{
    margin: auto;
    display: block;
    margin-top: 3em;
}

#popin-intro-adult .popin
{
    padding: 30px;
}


/* --------------------- POPIN -------------------- */
.popin h3
{
    font-size: 24px;
}
.popin-container
{
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 999;
    transform: scale(0);
}

.popin-container.enabled
{
    transform: scale(1);
}

.popin-bg
{
    backdrop-filter: blur(20px);
    height: 100%;
    align-content: center;
}

.popin
{
    max-width: fit-content;
    margin: auto;
}

.popin-close
{
    position: absolute;
    top: 15px;
    right: 32px;
    width: 52.5px;
    height: 50px;
    line-height: 18px;
    background-color: var(--accent-color);
    text-align: center;
    align-content: center;
    border-radius: 500px;
    font-size: 24px;
    padding: 0;
    padding-bottom: 3px;
    box-shadow: var(--button-action-shadow);
    cursor: pointer;
    transition: 300ms;
}

/* ------------------------- PROFILE --------------------------------*/

#profile-index-container, .profile-index-container
{
    margin: auto;
    min-height: 60vh;
    padding: 50px 0;
}

#profile-index-container ul
{
    padding: 0;
}

#profile-index-container h1
{
    margin-bottom: 75px;
}

#profile-index-container img
{
    display: block;
    margin: auto;
    margin-bottom: 15px;
    max-width: 33%;
}

#profile-index-container .button
{
    font-size: 18px;
    padding: 50px 30px;
    height: 128px;
    width: 175px;
    align-content: center;
}

#profile-index-container select
{
    padding: 30px 50px;
    border-radius: 25px;
    background: transparent;
    color: #fff;
    font-family: 'Sauce';
    font-size: 18px;
    border-color: var(--accent-color);
}

#profile-index-container option
{
    color: #000;
}


/* -------------------- CONTACT ---------------- */

#contact-form-container
{
    width: 75%;
    margin: auto;
    min-height: 60vh;
    padding: 50px 0;
}

#contact-form-container :is(input, textarea)
{
    margin-bottom: 30px;
}



/* -------------------------  AFFILIATE -------------------------- */

#affiliate-container h2
{
    margin-bottom: 1em;
}

#affiliate-container article
{
    display: block;
    margin: 0;
}

table
{
    width: 50%;
    margin: auto;
    border-radius: 5px;
    border: 1px solid var(--accent-color-pale);
}

thead tr {
    border-bottom: 1px solid var(--accent-color-pale);
}

tbody tr:not(:nth-last-of-type()) {
    border-bottom: 1px solid var(--accent-color-grey);
}

tr
{
    display: flex;
    justify-content: space-evenly;
    padding: 30px;
}

tr > :is(th,td)
{
    width: 100%;
    text-align: left;
}

@media (max-width: 1700px) {

    #generation-form .option-tab > div {
        width: calc(25% - 10px);
    }
}

@media (orientation: landscape) and (max-width: 1500px)
{

    #generated_image_waiter
    {
        width: 75%;
    }
}

@media (orientation: landscape) and (max-width: 1300px)
{
    #generation-form .option-tab > div {
        width: calc(50% - 10px);
    }
    #generation-form, #generation-form-show-container {
        width: 45%;
        padding: 15px 15px;
    }
}

@media (orientation: landscape) and (max-width: 1200px) {
    
    .character-card-list-item
    {
        width: 40%;
    }
}

@media (orientation: landscape) and (max-width: 700px) 
{
    #generation-form, #generation-form-show-container {
        width: 33%;
    }

    #generation-form .option-tab > div {
        width: calc(100% - 10px);
    }
}


@media (orientation: portrait), (max-width: 1600px) {
    header
    {
        position: fixed;
        z-index: 999;
        background-color: var(--background-color);
        height: 100vh;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        transition: 300ms;
        margin-left: -5000px;
    }

    #nav-language-selector
    {
        margin-right: auto;
        margin: auto;
        margin-top: 20px;
    }

    #pages-menu ul, nav, #user-profile
    {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        padding-left: 0;
    }

    .hamburger {
        display: block;
        position: fixed;
        top: 30px;
        left: 30px;
    }

    #intro #title-container
    {
        display: none;
    }

    #mobile-title
    {
        display: flex;
    }

    nav:not([aria-label="breadcrumb"])
    {
        padding: 30px;
    }

    nav[aria-label="breadcrumb"]
    {
        margin-top: 15px;
    }

    nav[aria-label="breadcrumb"] li
    {
        width: fit-content;

    }

    header.active
    {
        margin-left: 0;
    }

    nav li
    {
        margin-bottom: 20px;
        width: 100%;
    }

    #pages-menu li.separator
    {
        border-right: none;
        margin-top: 30px;
    }

    nav a:not(.link-logo) {
        border-bottom: none;
        width: 100%;
        padding-bottom: 20px;
    }

    nav a:not(.link-logo), nav li:not(:nth-last-of-type()) a, nav li:not(.separator) a
    {
        border-bottom: 1px solid var(--accent-color-grey);
    }

    nav li.separator a
    {
        border-bottom: 1px solid var(--accent-color-pale);

    }

    #user-profile {
        width: 100%;
        margin-top: 50px;
    }

    .token-indicator
    {
        margin: auto !important;
    }

    #user-profile a
    {
        margin-top: 20px;
    }
    
}

@media (orientation: portrait) 
{

    .layout-full
    {
        max-width: 95%;    
        width: 100%;
        padding: 0;
        margin: auto;
    }

    .character-card-list-item {
        width: 95%;
    }

    .character-card-detail {
        flex-direction: column;
        max-height: unset;
        max-width: 95vw;
        width: 100%;
    }

    .article-container
    {
        flex-direction: column;
        
        margin-bottom: 50px;
    }

    .character-card-detail .details
    {
        width: unset;
    }

    #generation-show-container div {
        max-width: 50%;
    }

    #popin-image img {
        max-height: 75vh;
    }

    .character-card-detail .full-actions-container
    {
        flex-direction: column;
        margin: auto;
        width: 100%;
    }

    #intro #title-container
    {
        flex-direction: column;
    }

    #title-container img
    {
        margin-top: 40px;
    }

    #intro {
        padding: 0;
        width: 90%;
        margin: auto;
    }

    #pre-register form
    {
        width: 95%;
        padding: 30px 0;
    }



    #generated_image_waiter
    {
        width: 100%;
        /*margin-top: 200px;*/
        min-height: 550px;
    }

    #generated_image_waiter img
    {
        /*margin-top: -200px;*/
        min-height: 550px;
    }


    #image-creation-page
    {
        flex-direction: column-reverse;
    }

    #image_generation
    {
        padding: 20px 0;
    }

    #generation-form, #generation-form-show-container
    {
        margin: auto;
        padding: 15px;
        width: 90%;
        overflow-y: auto;
    }


    .landscape-only
    {
        display: none !important;
    }

    .generation-mode-selector
    {
        display: flex;
        width: calc(100% - 80px);
        margin: 30px 40px;
        gap: 30px;
    }

    #form-part2 form {
        margin: auto;
        width: 80%;
        text-align: center;
    }

    #portrait-form-cont > div:not(.layout-full)
    {
        max-width: 100%;
    }

    #form-part2 form input
    {
        width: 85%;
        margin: auto;
    }

    #portrait-form-cont
    {
        flex-direction: column;
    }

    #generated_image_waiter .waiter-small {
        width: 196px;
        height: 196px;
        top: calc(50% - 196px / 2 - 5px);
        left: calc(50% - 196px / 2 - 5px);
    }

    #generated_image_waiter .waiter-large {
        width: 256px;
        height: 256px;
        top: calc(50% - 256px / 2 - 5px);
        left: calc(50% - 256px / 2 - 5px);
    }

    #generation-form .option-tab > div {
        width: calc(50% - 10px);
    }
}

@media (orientation: portrait) and (max-height: 700px) 
{
    #generation-form div.option-tab
    {
        max-height: 40vh;
        min-height: 40vh;
    }
}
@media (orientation: landscape) 
{
    .portrait-only
    {
        display: none !important;
    }
}


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