/* Metropolis Font Faces */
@font-face {
    font-family: "Metropolis";
    src: url("/fonts/Metropolis-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/Metropolis-RegularItalic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/Metropolis-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/Metropolis-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/Metropolis-SemiBold.otf") format("opentype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Metropolis";
    src: url("/fonts/Metropolis-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
}

/* Custom CSS for M for Coding - Dark Theme */
:root {
    --primary-color: #a41c1c;
    --primary-dark: #7d1515;
    --primary-light: #c92828;
    --primary-gradient: linear-gradient(135deg, #a41c1c 0%, #7d1515 100%);
    --secondary-gradient: linear-gradient(45deg, #a41c1c, #c92828);
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-bg: #1a1a1a;
    --dark-surface: #2d2d2d;
    --dark-card: #3a3a3a;
    --dark-text: #e0e0e0;
    --dark-text-muted: #b0b0b0;
    --dark-border: #4a4a4a;
}
*{
    margin: 0;
    padding: 0;
    font-family: "Metropolis", sans-serif;
    font-optical-sizing: auto;
    box-sizing: border-box;
}
body{
    width: 100%;
    height: 100vh;
    background: #0D0D0D;
    overflow-y: hidden;
    overflow-x: hidden;
}
.brand{
    width:170px;
    position: fixed;
    top:20px;
    left: 20px;
}
.phone-input{
    position: relative;
}
#phone {
  padding-left: 50px; /* Adjust padding to make space for +91 */
}
#otp{
    padding-left: 20px;
}

.gradient-blob-top{
    position: absolute;
    width: 356px;
    height: 356px;
    top: -94px;
    right: 0px;
    background: linear-gradient(90deg,#FFB0A3 -26.2%,#F44EDD 18.6%,#8355F7 57.09%,#526CFC 90.84%);
    opacity: .5;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}
.gradient-blob-bottom {
    position: absolute;
    width: 315px;
    height: 315px;
    top: 604px;
    left: -86px;
    background: linear-gradient(90deg,#FFB0A3 -26.2%,#F44EDD 18.6%,#8355F7 57.09%,#526CFC 90.84%);
    opacity: .5;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}
#profile_menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 6px;
    background: #181818;
}
#profileIcon img {
    cursor: pointer;
}
#profileIcon:hover #profile_menu {
    display: block;
}

.menulist {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menulist li {
    padding: 8px 16px;
    border-bottom: 1px solid #eee;
}

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

.menulist a {
    text-decoration: none;
    color:#888888
}

.hc {
    position: relative;
    display: inline-block;
}
#content,#result_content{
    max-width: 1200px;
    height: 100vh;
    margin: 0 auto;
    padding-top: 80px;
    position: relative;
}
#content.hide{
    display: none;
}

#header{
    width:100%;
    height:80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Set relative positioning for centering the middle div */
    padding:0px 20px 0px 20px;
    box-sizing: border-box; /* Ensure padding is included in the width calculation */
    border-bottom: 1px solid #1C1C1C;
    position: fixed;
    top: 0;
    left: 0;
}


div#scLogo img {
    width: 220px;
    height: 40px;
}
div#modelLogo {
    position: unset;
    transform:translateX(0)
}
div#modelLogo img {
    width: 188.5px;
    height: 60px;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

form {
    display: flex;
    flex-direction: column;
    width: 400px;
    gap: 20px;
    margin-top: -85px;
    padding: 20px;
}

input {
    width: 100%;
    height: 52px;
    background: #181818;
    border: none;
    border-radius: 8px;
    color:#EEEEEE;
    padding-left: 10px;
    font-size: 14px;
    font-weight: 400;
}
input:focus{
    outline: none;
}
button {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    border: none;
    color: #888888;
    background: #222222;
    cursor:pointer
}
#submit-otp.active{
    background: var(--primary-color);
    color: #EEEEEE;
}

#verify-otp{
    pointer-events: none;
}
#verify-otp.active{
    background: var(--primary-color);
    color: #EEEEEE;
    pointer-events: all;
}
#active.active{
    background: var(--primary-color);
    color: #EEEEEE;
    pointer-events: all;
}

p.form-heading {
    font-size: 20px;
    font-weight: 700;
    color: #EEEEEE;
    margin-bottom: 20px;
    margin-top: 20px;
    text-align: center;
}
label.input-level {
    font-size: 16px;
    font-weight: 500;
    color: #EEEEEE;
    position: relative;
    bottom: 10px;
}

.hc{
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

#greet{
    display: flex;
    flex-direction: column;
    gap: 12px;
}
p.greeting{
    font-size: 32px;
    font-weight: 500;
    color: #EEEEEE;
}
p.greeting-action{
    font-size: 20px;
    font-weight: 400;
    color:#888888;

}
#promptWrapper{
    margin-top: 100px;
    /*margin-top: 50px;*/
}
p.default-ask{
    color:#EEEEEE;
    font-size: 24px;
    font-weight: 400;
}
.prompt{
    cursor: pointer;
    min-width:360px;
    height: 160px;
    padding: 20px;
    border:1px solid #1C1C1C;
    background: #181818;
    border-radius: 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.prompt:hover{
    background-image:linear-gradient(94.82deg, #5E75F0 0%, #ED5EF0 21%, #FFEBF7 79%, #E76923 100%);
    animation: flow 3s infinite ease-in-out;
    background-size: 200% 100%;
}
.prompt p.prompt-text{
    font-weight: 400;
    font-size: 16px;
    color: #888888;
}
#promptList{
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px;
    box-sizing: border-box;
    padding-left: 0;
}

/* Hide scroll bar but keep scrolling */
#promptList::-webkit-scrollbar {
    display: none; /* Hide the scrollbar in Webkit-based browsers (Chrome, Safari) */
}

/* For Firefox */
#promptList {
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}
.prompt-box{
    position: fixed;
    width: 100%;
    bottom: 20px;
    max-width: 1200px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
}

 /* Text box (input) styling */
 .prompt-textbox {
    width: 100%;
    height: 80px;
    padding: 16px;
    border: 1px solid #1C1C1C;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 400;
    box-sizing: border-box;
    color: #888888;
    position: relative;
    background: #181818;
    resize: none;
    line-height: 45px;
    padding-right:150px;
}
.prompt-textbox:focus{
    min-height: 80px !important;
    line-height: normal;
    outline: none;
}
.prompt-textbox.singleline{
    min-height: 80px !important;
    line-height: 45px;
}
 /* Rounded button inside the text box */
 .prompt-submit-button {
    width:143px;
    height:48px;
    background: #222222;
    color: #67686B;
    position: absolute;
    right: 16px;
    bottom:19px;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    border-radius: 100px;
    border:none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap:12px;
}

#promptSubmit img{
    filter: grayscale(1);
}
#promptSubmit.active img{
    filter: grayscale(0);
}

.prompt-gray {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #181818;
    border-radius: 20px;
    box-sizing: border-box;
    left: 1px;
    top: 1px;
    bottom: 1px;
    right: 1px;
}
.prompt-gray-bt {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    height: 100%;
    width: 100%;
    background: #000;
    border-radius: 40px;
    margin: 1px;
    box-sizing: border-box;
    background: #222222;
}
div#backdrop{
    background-image: none;
    width: 145px;
    height: 50px;
    bottom: 18px;
    right: 15px;
}
div#backdrop.active{
    background-image:linear-gradient(90deg, #FBAFA2 0%, #DA7CCD 26%, #4E23B9 63%, #687BE2 88%);
    filter: blur(4px);
    animation: flow 4s infinite ease-in-out;
    background-size: 200% 100%;
}
#generateTextlabel.active{
    color: #EEEEEE;
}
#promptSubmit{
    cursor: not-allowed;
}
#promptSubmit.active{
    cursor: pointer;
    background: #0D0D0D;
}
@keyframes flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


#result_image_wrapper{
    display: flex;
    flex-direction: column;
    gap:20px;
}
.image_holder{
    width:500px;
    height:500px;
    background: #1C1C1C;
    border-radius: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.download_btn{
    height:60px;
    width:100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:10px;
    background: #181818;
    border-radius: 100px;
}
.download-text{
    color: #888888;
    font-size: 16px;
    font-weight: 500;
}
.prompt_message{
    font-size: 16px;
    font-weight: 400;
    color: #EEEEEE;
}
#genImg{
    max-width: 500px;
    max-height: 500px;
    border-radius: 30px;
}
#download_image_button.active{
    background:#1E56F5;
    cursor: pointer;
}
#download_image_button.active span{
    filter: brightness(4);
}

.auth-form-footer {
    color: #000;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    color: #888888;
    line-height: 2;
}
.auth-form-footer a {
    color: #888888;
    text-decoration: none;
    font-weight: 700;
}

@media only screen and (max-width: 600px) {
    form{
        min-width: 80%;
        margin-top: -85px;
    }

    #result_content.show{
        flex-direction: column;
    }
    #content,#result_content{
        padding: 25px 20px 0px 20px;

    }
    .image_holder {
        width: 100%;
        height: auto;
    }
    #genImg {
        min-width: 300px;
        min-height: 300px;
        max-width: 100%;
        max-height: 100%;
        border-radius: 30px;
    }
    #header{
        height:55px;
    }
    .prompt-box{
        left:0;
        transform:translateX(0%);
    }
    .prompt-textbox.singleline{
        line-height: 20px !important;
    }
    textarea#promptTextArea {
        font-size: 12px !important;
    }
    div#scLogo img {
        width: 100px;
        height: 18px;
    }
    div#modelLogo img {
        width: 100px;
        height: 31px;
    }
}
@media only screen and (max-width: 500px) {
    div#modelLogo {
        position: unset;
        transform:translateX(0)
    }

}