/** Hash Configs **/


/* Importing Google Fonts for different sections of the website */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Handlee&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Poppins:wght@100;300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
    /** Font **/
    --font1: ;
    --font2: ;
    --font3: ;
    --font4: ;
    --fontSize1: 5rem;
    --fontSize2: 2rem;
    --fontSize3: ;
    --fontSize4: ;
    --fontSize5: ;
    --fontSize6: ;
    /** Colors **/
    --color1: #ADA2FF;
    --color2: #2D294E;
    --color3: ;
    --color4: ;
    --color5: ;
    --color6: ;
    --color7: ;
    /* Percentage variables */
    --xs: 1%;
    --sm: 2.5%;
    --md: 5%;
    --lg: 7.5%;
    --xl: 10%;
    /* Pixel variables */
    --px-xs: 1%;
    --px-sm: 2.5%;
    --px-md: 5%;
    --px-lg: 7.5%;
    --px-xl: 10%;
}

/** Hash Configs Ends **/

/* ==================================================================================================== */

body,
html {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

.Home-page {
    background: linear-gradient(#ED3264 5%, #F7682F 38%, #ffffff 30%);
    /* background-image: url(../img/header-bg.png); */
    background-repeat: no-repeat;
    background-size: contain;
}

.header {
    /* background: linear-gradient(to right, #ED3264 30%, #F7682F 100%); */
    padding: 5px 3% 0% 3%;
    opacity: 1;
    height: 10vh;
}

/* --------------------------------------------- */
.logo img {
    width: 100%;
    height: auto;
}

/* ---------------------------------------------- */
.active {
    display: flex;
}

.active button {
    border-radius: 5px;
    outline: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 10px;
    padding: 5px 30px 5px 15px;
}

/* ------------------------------------------------ */
.btn-published {
    margin-right: -10px;
    background-color: white !important;
    z-index: 1;
}

/* -------------------------------------------- */
.sort select {
    width: 100px;
    border-radius: 5px;
    outline: none;
    border: none;
    padding: 8px;
}

/* ------------------------------------------- */
.search-bar input {
    padding: 10px 10px 10px 30px;
    border-radius: 5px;
    outline: none;
    border: none;
    background-image: url(../img/search-img.png);
    background-repeat: no-repeat;
    background-position: 5px 6px;
    width: 400px;
}

/* ---------------------------------------------- */
.profile h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    text-align: start;
    color: #ffffff;
    font-size: 1.5rem;
}

/* ========================================================================================== */
/* projects styling */

.Projects {
    display: grid;
    grid-template-columns: 22% 22% 22% 22%;
    gap: 35px;
}

/* Projects scrolling*/
.Projects {
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    cursor: pointer;
}

.Projects::-webkit-scrollbar {
    background-color: transparent;
}

.Projects::-webkit-scrollbar-thumb {
    background: linear-gradient(#ED3264, #F7682F);
    border-radius: 50px;
}

.Projects a {
    text-decoration: none;
}

/* ---------------------------------------------------------- */
/* Open Editor Styling */
.open-editor {
    background-image: url(../img/editor-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 10px 10px 5px rgba(74, 169, 238, 0.4);
    position: relative;
    animation: bounceEffect 2s infinite ease-in-out 2s;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.6s ease-in-out, filter 0.6s ease-in-out;
    animation-play-state: running;
}

/* Reset the animation when hover ends */
.open-editor:hover {
    box-shadow: 0px 12px 15px 7px rgba(74, 169, 238, 0.5);
    animation: none;
    filter: brightness(1.1);
    transition: box-shadow 0.6s ease-in-out, filter 0.6s ease-in-out;
}

/* Text inside the Open Editor */
.open-editor h1 {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 400;
    padding-left: 10%;
    animation: textGlow 2s infinite ease-in-out 2s;
    transition: text-shadow 0.6s ease-in-out;
}

/* Reset text glow animation on hover */
.open-editor:hover h1 {
    animation: none;
    transition: text-shadow 0.6s ease-in-out;
}

/* Keyframes for bounce animation */
@keyframes bounceEffect {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Keyframes for glowing text effect */
@keyframes textGlow {
    0% {
        text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.3);
    }

    50% {
        text-shadow: 0px 0px 20px rgba(255, 255, 255, 0.7);
    }

    100% {
        text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.3);
    }
}

/* ------------------------------------------------------------------- */
.project-cart {
    padding: 10px;
    background-color: #ffffff;
    border-radius: 10px;
}

.orange-cart {
    box-shadow: 0px 13px 10px rgba(217, 123, 0, 0.4);
}

.skyblue-cart {
    box-shadow: 0px 13px 10px rgba(95, 241, 206, 0.4);
}

.purple-cart {
    box-shadow: 0px 13px 10px rgba(142, 95, 241, 0.4);
}

.green-cart {
    box-shadow: 0px 13px 10px rgba(177, 241, 95, 0.4);
}

.blue-cart {
    box-shadow: 0px 13px 10px rgba(95, 163, 241, 0.4);
}

/* ---------------------------------------------------------------------- */

.top-icon {
    position: absolute;
    top: 0;
    right: 10%;
}

.three-dots img {
    width: 15%;
}

/* --------------------------------------------------- */
.project-cart h2 {
    font-size: 1.8rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}

.project-cart h3 {
    font-size: 1.5rem;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}

.project-cart h4 {
    font-size: 1.3rem;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}

/* =====================================================================================*/
/* Code Editor page styling */

.editor-header {
    background: linear-gradient(to right, #ED3264, #F7682F);
    opacity: 0.9;
    height: 10vh;
    /* Fixed height for the header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3%;
}

.head-right input {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    outline: none;
    background-color: #1515151F;
    color: #ffffff;
    font-size: 1.5rem;
}

::placeholder {
    color: #FAFAFA;
    font-size: 1.5rem;
    letter-spacing: 1px;
    font-weight: 500;
}

.save-btn {
    color: #ffffff;
    background-color: transparent;
    border: 2px solid #ffffff;
    border-radius: 5px;
    padding: 3px 20px;
    font-size: 1.5rem;
}

.head-right img {
    width: 40px;
    cursor: pointer;
}

/* ------------------------------ */
/* menu-icon dropdown */

.dropdown-menu {
    display: none;
    position: absolute;
    right: 15px;
    top: 61px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 30px 10px 20px;
    border-radius: 12px;
}

.dropdown-menu img {
    width: 20%;
    height: auto;
}

.dropdown-menu hr {
    color: #EDF0F4;
    height: 1px;
    width: 100%;
    margin: 10px 0;
}

.dropdown-menu h3 {
    color: #151515;
    white-space: nowrap;
    margin-top: 5px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 400;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 20%;
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    /* border-radius: 15% 10% 20% 20%; Create the curve */
    transform: translateX(50%) rotate(135deg);
    border: none;
}

/* ====================================================================== */
/* code editor */

.codezing-editor {
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* Full viewport height */
    width: 100%;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 90vh;
    /* Remaining height for the container */
    width: 100%;
}

.editor-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 50%;
    background-color: #f7f7f7;
}

/* ---------------------------------------------------- */
.editor-menu {
    display: flex;
    gap: 15px;
    margin: 10px 10px 0px 29px;
    /* border-bottom: 1px solid #A5A5A5; */
    width: 100%;
}

.editor-menu button {
    font-size: 14px;
    font-weight: 700;
    padding: 5px 25px;
    cursor: pointer;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: none !important;
    text-align: center;
    color: #A5A5A5;
    background-color: #fff;
    border: 1px solid #dddddd;
    font-family: Lato, sans-serif;
}

.editor-menu .non-active-button {
    color: #FAFAFA;
    background-color: #00000029;
    border: 1px solid #A5A5A5;
}

/* ----------------------------------------------------- */
.editor-menu img {
    width: 30px;
    height: auto;
    position: relative;
    top: -5px;
    right: 10px;
    cursor: pointer;
}

/* =======================================================================================*/
/* html css js code area */

.editors {
    flex: 1;
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ========================================================================================= */
/* Result area*/

.output {
    flex: 1;
    border-left: 1px solid #A5A5A5;
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
}

/* Add this to your CSS */
#output-frame {
    width: 100%;
    height: 100%;
    background-color: #ffffff
}

/* ============================================================================================= */
/* console styling*/

.console-editor {
    position: relative;
    bottom: 2px;
    right: 0;
    width: 100%;
    height: calc(100% - 60%);
    resize: none;
    border: none;
    padding-left: 5px;
    box-sizing: border-box;
    outline: none;
    box-sizing: border-box;
}

/* -------------------------------------------- */

#console-output {
    flex: 1;
    width: 100%;
    font-size: 16px;
}

.console-run {
    color: #ffffff;
    background-color: #A5A5A5;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    margin: 2px 2px 4px 2px;
    font-weight: 500;
}

.console-title {
    background-color: #00000029;
    padding: 5px;
}

.console-title h3 {
    color: #151515;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
}

/* .console-title img {
    width: 50%;
    height: auto;
    padding: 50px;
    margin-bottom: 60px;
    display: none;
} */

/* ====================================================================================== */
/* codemirror */

.CodeMirror {
    height: 100% !important;
    width: 100%;
    font-size: 14px;
    color: #61687C;
    overflow-x: scroll;
}

/* Placeholder styling */
.CodeMirror-placeholder {
    position: absolute;
    top: 1%;
    left: 5%;
    color: #ccc;
    pointer-events: none;
}



/* ------------------------------------------------------------- */
/* portrait moblie responsive */

.mobile p {
    display: none;
}

.mobile img {
    display: none;
}

/* ========================================= END ============================================== */

/*** 
====================================================================
   Responsive - START
====================================================================
***/

/* large laptop screen*/
@media only screen and (min-width: 1367px) and (max-width: 1910px) {

    /* Placeholder styling */
    .CodeMirror-placeholder {
        position: absolute;
        top: 1%;
        left: 8%;
    }
}

/* laptop screen*/
@media only screen and (min-width: 856px) and (max-width: 1365px) and (orientation: landscape) {

    /* Placeholder styling */
    .CodeMirror-placeholder {
        position: absolute;
        top: 1%;
        left: 8%;
    }

}

/* laptop screen*/
@media only screen and (min-width: 856px) and (max-width: 1365px) and (orientation: portrait) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgb(202, 209, 228);
    }

    .codezing-editor,
    .Home-page {
        display: none;
    }

    .mobile {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 2.5rem;
        height: 100vh;
    }

    .mobile p {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2.5rem;
    }

    .mobile img {
        width: 10%;
        display: flex;
    }
}

/* small laptop screen*/
@media only screen and (max-width: 1024px) and (orientation: portrait) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgb(202, 209, 228);
    }

    .codezing-editor,
    .Home-page {
        display: none;
    }

    .mobile {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 2.5rem;
        height: 100vh;
    }

    .mobile p {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2.5rem;
    }

    .mobile img {
        width: 10%;
        display: flex;
    }
}

/* tablet screen*/
@media only screen and (min-width:768px) and (max-width: 849px) and (orientation: portrait) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgb(202, 209, 228);
    }

    .codezing-editor,
    .Home-page {
        display: none;
    }

    .mobile {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 2.5rem;
        height: 100vh;
    }

    .mobile p {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2.5rem;
    }

    .mobile img {
        width: 10%;
        display: flex;
    }
}

/* mobile screen landscape*/
@media (min-width:300px) and (max-width:951px) and (orientation: landscape) {

    .header {
        padding: 0px 1% 0% 1%;
        opacity: 1;
        height: 18vh;
    }


    /* ---------------------------------------------- */
    .active button {
        border-radius: 5px;
        outline: none;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: left;
        gap: 10px;
        padding: 3px 10px 3px 15px;
        font-size: 14px;
    }

    /* ------------------------------------------------ */
    .btn-published {
        margin-right: -10px;
        padding: 3px 10px 3px 5px !important;
    }

    /* -------------------------------------------- */
    .sort select {
        width: 100%;
        border-radius: 5px;
        outline: none;
        border: none;
        padding: 8px 4px;
        font-size: 14px;
    }

    /* ---------------------------------------------- */
    .profile h3 {
        font-size: 1.3rem;
        font-weight: 400;
    }

    /* ========================================================================================== */
    /* projects styling */

    .Projects {
        display: grid;
        grid-template-columns: 30% 30% 30%;
        gap: 0px;
        height: 88vh;
    }

    /* ---------------------------------------------------------- */
    .open-editor {
        box-shadow: 0px 5px 5px 3px rgb(74, 169, 238, 0.4);
        margin-bottom: 20%;
    }

    .open-editor h1 {
        font-size: 2.5rem;
        font-weight: 400;
        padding-left: 10%;
    }

    /* ------------------------------------------------------------------- */
    .project-cart {
        margin-bottom: 20%;
        zoom: 0.9;
    }

    .orange-cart {
        box-shadow: 0px 8px 8px rgba(217, 123, 0, 0.4);
    }

    .skyblue-cart {
        box-shadow: 0px 8px 8px rgba(95, 241, 206, 0.4);
    }

    .purple-cart {
        box-shadow: 0px 8px 8px rgba(142, 95, 241, 0.4);
    }

    .green-cart {
        box-shadow: 0px 8px 8px rgba(177, 241, 95, 0.4);
    }

    .blue-cart {
        box-shadow: 0px 8px 8px rgba(95, 163, 241, 0.4);
    }

    /* --------------------------------------------------- */
    .project-cart h2 {
        font-size: 1.5rem;
        font-weight: 500;
    }

    .project-cart h3 {
        font-size: 1.3rem;
        font-weight: 400;
    }

    .project-cart h4 {
        font-size: 1.1rem;
        font-weight: 400;
    }

    /* =====================================================================================*/
    /* Code Editor page styling */

    .logo img {
        width: 80%;
        height: auto;
        margin-top: 8px;
        margin-left: -15px;
    }


    .editor-header {
        padding: 0 3%;
        height: 15vh;
    }

    .head-right input {
        padding: 5px;
        border-radius: 5px;
    }

    ::placeholder {
        font-size: 1.3rem;
    }

    .save-btn {
        padding: 3px 15px;
        font-size: 1.3rem;
        border-radius: 5px;
    }

    .head-right img {
        width: 5%;
        height: auto;
        cursor: pointer;
        border-radius: 5px;
    }

    /* ------------------------------ */
    /* menu-icon dropdown */

    .dropdown-menu {
        right: 5px;
        top: 40px;
    }

    .dropdown-menu img {
        width: 20%;
        height: auto;
    }

    /* ------------------------------ */
    /* Placeholder styling */

    .CodeMirror-placeholder {
        position: absolute;
        top: 1%;
        left: 10%;
    }

    .container {
        height: 85vh;
    }

}

/* mobile screen portrait */
@media (min-width:0px) and (max-width:449px)and (orientation: portrait) {

    body {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgb(202, 209, 228);
    }

    .codezing-editor,
    .Home-page {
        display: none;
    }

    .mobile {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-size: 2.5rem;
        height: 100vh;
    }

    .mobile p {
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2.5rem;
    }

    .mobile img {
        width: 10%;
        display: flex;
    }
}

/*** 
 ====================================================================
    Responsive - END
 ====================================================================
 ***/