:root {
    --accent: #EA5B0B;
    --bg: #22262F;
    --editor-bg: #1C1C1F;
    --navBar: #2D2D30;
    --text-color: white;
    --fancy-text: #fae0d1ed;
    --title-bg: url(./Assets/Img/lightMatrix.png);
    --unselected-text: #D9DFE4;
    --console: black;
    --variable: #98D6EE;

    --moon: var(--editor-bg);
    --sun: #EBEBEB;
    --toggle-background: #2D2D30;

    --console-outline: white;

    --extras-bg: rgba(58, 53, 53, 0.077);

    --edi-pos-col: rgb(181, 181, 181);

    --edi-pos-bar: #2E2E31;

    --edi-pos-top: #424245;

    --topbar-bottom: #38383B;

    --toggle-outline: white;

    --codeMirror-bg: #1F1F1F;

    --codeMirror-identifier: #7C858F;

    --comments: #609955;
    --string: #CE916C;
    --native: #d2d68a;

    --tab-underline-width: 100%;
    --box-top: #00000027;

    --console-gutter-width: 3%;
    

}

#pw-contact-form {
    position: relative;
    width: 98%;
    box-sizing: border-box;


}

#js-btn {

    cursor: not-allowed;

}

.lightMode {
    --bg: #c9d0e0;
    --editor-bg: #EBEBEB;
    --navBar: #EBEBEB;
    --text-color: rgb(56, 56, 56);
    --fancy-text: rgb(57, 55, 55);
    --title-bg: url(./Assets/Img/matrix.png);
    --unselected-text: rgb(95, 95, 95);
    --console: white;
    --moon: var(--text-color);
    --sun: white;

    --toggle-background: rgba(101, 101, 101, 0.184);

    --console-outline: rgb(95, 95, 95);

    --extras-bg: rgba(255, 255, 255, 0.21);

    --edi-pos-col: rgb(97, 97, 97);

    --edi-pos-bar: #EDEDED;
    --edi-pos-top: #4242451b;

    --topbar-bottom: rgb(222, 222, 222);

    --toggle-outline: var(--text-color);

    --codeMirror-bg: #FFFFFF;

    --codeMirror-identifier: #262627;

    --comments: rgb(97, 97, 97);
    --string: #a86b45;
    --variable: #3aa0c8;
    --native: #afb538;
}

html, body {
  min-height: 100vh; /* can grow taller if content overflows */
  margin: 0;
  height: auto;
  padding: 0;

}

.video-solution {

    color: var(--unselected-text) !important;
    cursor: not-allowed !important;



}




.past-paper {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: var(--toggle-background);
    padding-left: 20px;
    padding-top: 0;
    border-radius: 25px;
    gap: 2em;
    flex: 0 0 120%;

    overflow-x: auto;


}

.past-paper li {
    list-style: none;
    margin: 0;
    padding: 0;


}



#past-paper-collection li {

    padding: 0;
    margin: 0;

}

#past-paper-collection {
    display: flex;
    flex-direction: column;
    
    gap: 15px;
    position: relative;

    flex-shrink: 0;

    padding: 0;
    margin: 0;

    width: 100%;

}

* {

    box-sizing: border-box;

}

.past-paper h2 {

    font-size: medium;

}




.past-paper a {
    font-size: clamp(1rem, 0.2vw + 0.5rem, 2.5rem);
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

body#Home, body#About, body#Donate {

    --extras-righting: 0;

}


body#Home {
    --logo-padding: 6%;

}



body#Contact {

    --extras-righting: 0px;

}

body#emailConfo {
    --logo-padding: 9%;
    --extras-righting: -6px !important;
}

@font-face {
    font-family: raundet;
    src: url(Assets/Fonts/FredokaOne-Regular.ttf);
}

@font-face {
    font-family: consolas;
    src: url(Assets/Fonts/consolas.ttf);
}


body {

    min-width: 100%;
    width: 100%;

    
    background-repeat: no-repeat;

    margin: 0;
    
    position: relative;

    overflow-x: hidden;
    

    display: flex;
    flex-direction: column;

    min-height: 100vh;

}

#submissionList {

    position: relative;
    margin: 0 auto;

    display: flex;
    flex-direction: row;

    
    list-style: none;
    justify-content: space-between; /* Or center, as you prefer */
    align-items: stretch;

    max-width: 100%;
    width: 970px;
    height: 450px;



}



.submission {

    background-color: var(--toggle-background);
    position: relative;
    width: 30%;


    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    padding: 5px;

    margin: 0;
    list-style: none;

    border-radius: 10px;

    overflow-y: auto;

}

.submission-copy {
    position: relative;
    bottom: 10px;

    width: 100%;
    height: 100%;
    border-radius: 15px !important;


    font-size: clamp(0.5rem, 2vw, 1rem);


}

.submission-title {

    color: var(--text-color);

}



.open-icon svg {

    color: var(--unselected-text);
    transition: all 0.2s;

    height: auto;
    display: block;
}

.open-icon {

    padding: 0;
    margin: 0;

}

.open-icon svg:hover {

    color: var(--accent)

}

.sub-nav {

    align-self: stretch;




    box-sizing: border-box;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;


    position: relative;
    padding: 0;
    margin: 0;

}



.submission-author {

    color: grey;
    font-size: small;
    
}

.submission-author a {

    color: var(--accent);


}

.submission li {

    width: auto;
    margin: 0;
    text-align: center;
    padding: 0.1em;

    width: 100%;
}

.submission li p {

    display: inline-block;
    margin: 0;

    max-width: 100%;

}

.submission-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
}

#Home {
    background-color: var(--bg);

    height: 150vh !important;
    max-width: 100vw;


    
}

.more-tools-btn {

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;    /* vertical centering */
    justify-content: center;

    border: solid 2px var(--text-color);
    cursor: pointer;

    border-radius: 5px;
    background-color: var(--toggle-background);

    color: var(--text-color);

    transition: all 0.3s;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.229);

}

#more-tools {

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;

}



#more-tools li {

    margin: 0;
    padding: 0;

}

.more-tools-btn:hover {

    border-color: var(--accent);    

    color: var(--accent);
    box-shadow: 0 5px 10px rgba(160, 160, 160, 0.229);

}

.pp-hyperlink {


    display: inline-flex;
    height: 18.4px;
    width: auto;
    white-space: nowrap;

}

.ad-wrapper, .phantom-ad-block {


    position: relative;



    margin: 0;
    padding: 0;

    width: 12%;
    height: 80vh;


    color: transparent;

    user-select: none;



    top: 12vh;

}

#About {

    background-color: var(--bg);
    --logo-padding: 9vh;
    height: 120vh;

}



#Contact {
    
    min-height: 100vh !important;
    background-color: var(--bg);
    --logo-padding: 9vh;

}

#Donate {
    

    background-color: var(--bg);



    height: 20vh !important;

    --logo-padding: 9%;
    --genericPlate-x-offset: -2vw;
    
}

#Tokens {

    background-color: var(--bg);
    height: 120vh;

}

.program {
    user-select: all; /* Chrome, Edge, Safari, Firefox */
  -webkit-user-select: all;
  -moz-user-select: all;
  -ms-user-select: all;
}




#BasicFeatures {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    color: var(--text-color);
    padding-left: 10px;
    gap: 1em;

}

#BasicFeatures li::before {
    padding-left: 5px;
    content: "⚡";
    position: absolute;
    left: 0;
}



nav {

    padding: 15px 20px;

    width: 100vw;
    height: 8vh;


    display: flex;
    flex-direction: row;

    align-items: center;

    background-color: var(--navBar);

    position: fixed;

    z-index: 25;

    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.229);
}



#logo-svg {

    position: relative;
    height: 90%;

    min-height: 30px;

    aspect-ratio: 1 / 1;



    display: flex;
    justify-content: center;
    align-items: center;

}

logo-wrapper {

    position: relative;


    display: flex;
    flex-direction: row;
    align-items: center;



    height: 8vh;

    padding: 0;
    margin: 0;

    gap: 1rem;

}



#Submissions {
    min-height: 120vh !important;

    background-color: var(--bg);

    --platePos: 3.56%;
    
}

#PPS {
    min-height: 120vh !important;

    background-color: var(--bg);

    --platePos: 3.56%;
}


#emailConfo {
    min-height: 20vh !important;


}




@media (max-width: 1400px){

    .ad-wrapper {

        width: 0 !important;
        display: none !important;

    }

    .phantom-ad-block {

        width: 0 !important;

    }

    #extras {

        display: none !important;

    }

    #slogan {

        display: none !important;

    }

    #navBar {

        width: 90vw;

        position: relative;

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 50px !important;
        max-height: 9vh;
        
        overflow-x: auto;



        
    }


    #navBar a {

        font-size: small !important;

    }

    editor-main {

        gap: 0 !important;
        padding: 0 0 !important;

    }

    body#Donate editor-main {

        height: 50vh;

    }

    #genericPlate, body#Donate #genericPlate {

        width: 100% !important;
        transform: none !important;

    }

    body#Donate #genericPlate {

        margin: 0 auto !important;

    }

    #underlay {

        width: 100vw !important;

    }



}

@media (max-height: 625px){

    #underlay {

        max-height: 127vh;
        overflow-y: auto;

    }

}

@media (min-width: 760px){


    #mobile-navbox {

        width: 0;
        display: none;
    }

}

@media (max-width: 760px){

    #navBar {

       display: none;
        width: 0;

    }




}

#navBar::-webkit-scrollbar {
    display: none !important;
}

#mobile-nav-list {

    background: linear-gradient(to bottom, var(--accent) 0%, var(--accent) 8vh,
    var(--editor-bg) 8vh, var(--editor-bg) 100%);
    height: 100vh;

    max-width: 450px;
    width: 100vw;
    top: 0;
    right: -450px;

    padding-top: 8vh;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    font-size: small;
    transition: .3s ease;

    position: fixed;

    z-index: 15 !important;

}


#mobile-nav-box {

    padding: 1rem;
    display: flex;



}

.ham {

    z-index: 20 !important;
    height: 50px;
    width: 50px;

    margin-left: auto;
    position: relative;

    transform: scale(0.85);


}

.ham span {

    height: 5px;
    width: 100%;
    background-color: var(--toggle-outline);
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
    transition: .3s ease;

}

.ham.active span {

    background-color: white;

}

.ham span:nth-child(1) {

    top: 25%;

}

.ham span:nth-child(3) {

    top: 75%;

}

.ham.active span:nth-child(1) {

    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);

}

.ham.active span:nth-child(2) {

    opacity: 0;

}

.ham.active span:nth-child(3) {

    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);

}

#mobile-nav-list.active {

    right: 0;


}

#mobile-nav-list li {

    padding: 0;
    margin: 0;

    width: 100%;

    padding: 1rem;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    transition: all .2s ;
}

#mobile-nav-list li a {

    text-decoration: none;

    font-size: medium;
    color: var(--text-color);
    font-family: 'Courier New', Courier, monospace;
    
}

#mobile-nav-list li:hover {


    background-color: var(--toggle-background);

}

#mobile-nav-list li:hover a{

    color: var(--console-outline);
    font-weight:bolder;
}

#navextras {


    position: relative;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;

    gap: 2em;

    overflow-x: auto;

}


body#Donate #genericPlate {

    height: auto !important;

}



#extras {

    filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.5));
    background-color: var(--extras-bg);
    backdrop-filter: blur(10px);

    position: relative;


    top: 16vh;

    width: 200px;
    aspect-ratio: 1 / 1;


    border: solid 2px var(--accent);
    border-radius: 7px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    right: 0;

    list-style: none;
    margin: 0;
    padding: 0;

    gap: 0.5em;



}

#extras li {

    display: inline-flex;
    width: auto;
    margin: 0;
    padding: 0;

    font-family: 'Courier New', Courier, monospace;


}

#extras li a, #extras li h2 {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
}

#extras li a:hover {

    color: var(--accent);

}

h3 {
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-color);
    background-color: transparent;

    width: 100%;
    
}




#header {
    position: absolute;
    width: 100%;
    height: var(--logo-padding);

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;

    padding-left: 15px;

    gap: 1em;

}



#logo {

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;




}

#logo li {

    position: relative;
    margin: 0;
    padding: 0;

}

#svg-title a {

    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-color);
   
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    filter: drop-shadow(0 2px 2px var(--console-outline));

    transition: all 0.2s;

    font-size: clamp(16px, 1vw + 0.5rem, 24px);

}

#header li {

    margin: 0;
    padding: 0 !important;

}

nav a, #svg-title  {

    position: relative;

}

nav a svg {
    
    height: 100%;
    aspect-ratio: 1 / 1;

    filter: drop-shadow(0 0px 5px #8e5a3ca3);
    background-color: var(--extras-bg);
    backdrop-filter: blur(10px);
    transition: all 0.2s;




    cursor: pointer;
    color: var(--navBar) !important;

    position: relative;
    width: auto;

}






nav a:hover svg {

    filter: drop-shadow(0 0px 5px #ff6308ed) !important;

}

#header li a {
    width: auto;
    height: auto;

    right: 0;
    padding: 0;



}

#editor-box ul {

    border-top: var(--edi-pos-top) solid 1px;
    background-color: var(--edi-pos-bar);


}

#editor-box ul li {
    font-family: 'Courier New', Courier, monospace;
    margin-right: 0;
    height: 100%;
    font-size: small;
}





#tablink {
    position: relative;
    
}

#underline,  #tabs li:not(.selected) #underline{
    position: relative;
    height: 1px;
    width: 0%;
    background-color: var(--console-outline);

    transition: all 0.3s;
    z-index: 15;

}

p, p a {
    color: var(--text-color);
    align-self: center;
    font-family: 'Courier New', Courier, monospace;
    


}

p a {
    color: var(--accent);
}

#infoPara {
    position: relative;
    bottom: 0;

    text-align: center;

    width: 100%;


    bottom: 0;

    background-color: var(--toggle-background);
    border-radius: 10px;

    padding: 1px;

}

#tabs ul li:not(.def) {

    --tab-width: calc(100% - 25px);

}

#tabs ul li.def {

    --tab-width: 100%;

}

#tabs ul li:hover:not(.def) #underline {
    width: calc(100% - 25px);
}

#tabs li.selected a {
    color: var(--text-color);
    pointer-events: none;
}

#tabs li:hover a {
    color: var(--unselected-text);
}

#tabs li.selected:not(.def) #underline {

    width: calc(100% - 25px);

}

#tabs li.selected.def #underline,
#tabs li:hover:not(.selected).def #underline  {

    width: 100%;

}

#tabs li.selected #underline {
    

    background-color: var(--accent);
    pointer-events: none;
    z-index: 10;
}

/*#topBar {
    position: absolute;
    top: 213px;
    

    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;

    background-color: rgba(253, 253, 253, 0.077);
    backdrop-filter: blur(10px);
    height: 25px;
    width: 939px;
    left: 285px;

    padding-left: 10px;

    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
    z-index: 5;

    border-top: solid 1px rgb(196, 196, 196);
    border-left: solid 1px rgb(237, 237, 237);
    border-right: solid 1px rgb(237, 237, 237);
}}*/


#topBar {

    position: relative;



    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;

    background-color: rgba(253, 253, 253, 0.077);
    backdrop-filter: blur(10px);
    height: 25px;
    width: 100%;
    

    padding-left: 10px;


    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    align-items: flex-end;
    z-index: 5;

    border-top: solid 1px var(--console-outline);
    border-bottom: solid 1px var(--topbar-bottom);
    border-left: solid 1px var(--console-outline);
    border-right: solid 1px var(--console-outline);
}


#editor-position-table {
    margin: 0;
    padding: 0;
    list-style: none;     /* remove bullet points */
    height: 20px;

    display: flex;
    align-items: center;  /* <-- vertically centers li’s in the bar */
    gap: 4px;
    
    list-style-position: inside !important;
}



#editor-position-table li {
    display: flex;        /* make li content behave consistently */
    align-items: center;  /* center text inside li */
    height: 100%;         /* optional, matches bar height */

    margin-top: 0;

}


.ediPosPlate {
    
    color: var(--edi-pos-col);
}

#contentBody {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#contentBody li {
    margin-right: 15px;
}

#topBar li {
  position: relative;
    user-select: none !important;
}

#topBar li a {
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    color: rgb(148, 146, 146);
    transition: all 0.2s;
}



#tabs ul li::before {
    content: "";
    background-color: transparent;


    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;

    

    position: absolute;

    z-index: -1;

    width: 100%;
    height: 100%;

}

#input-modal {

    background-color: var(--editor-bg);

    color: var(--text-color);

    border: solid 2px var(--accent);
    border-radius: 7px;

    font-family: 'Courier New', Courier, monospace;

    max-width: 400px;


}

#input-modal[open] {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#modal-title {
    margin: 0;
    text-align: center;
    align-self: center;
    width: 100%;

    white-space: normal;
    word-wrap: break-word;
}    

#input-box {
    font-family: 'Courier New', Courier, monospace;


    border-radius: 5px;


    background-color: var(--toggle-background) !important;
    
    outline: transparent;

    border: none;

    box-shadow: none; 

    color: var(--text-color);

    height: 20px;

    width: 90%
}

#editor-footer {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;

    width: 100%;

    position: relative;

    height: 120px;
}

#console-options {

    background-color: var(--toggle-background);


    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;

    border-top: solid 1px var(--console-outline);
    border-left: solid 1px var(--console-outline);
    border-bottom: solid 1px var(--console-outline);
    border-right: none;

    
    gap: 10px;

    width: 25px;
    height: 100%;

}

.red-squiggle {
    text-decoration: underline wavy rgb(170, 43, 43);
}

#editor-ui {

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;

}

#minimap-wrapper {

    position: relative;
    width: 10%;
    height: 250px;

    max-height: 100%;

    background-color: var(--codeMirror-bg);

    overflow: hidden;
    user-select: none;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    

}

#src-map {

    position: relative;


    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    margin-top: 0;

    transform-origin: top left;
    opacity: 0.3;
    color: var(--text-color);

    width: 100%;

    font-size: 0.1rem;
}

.console-btn {
    color: var(--unselected-text);
    cursor: pointer;
    margin-left: 2px;
    transition: all 0.2s;

    
}  

.console-btn svg {

    width: 100% !important;
    height: auto !important;

}

.console-btn:hover {
    background-color: #454545;
    color: white;

}

#Output {
    font-family: consolas,'Courier New', Courier, monospace ;
    background-color: var(--console);
    color: var(--toggle-selected, black) !important;   /* fallback if var unset */
    
    border-top: 1px solid var(--console-outline);
    border-right: 1px solid var(--console-outline);
    border-bottom: 1px solid var(--console-outline);
    border-left: none;   /* left side blank */

    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;


    resize: none;

    flex: 1;
    height: 100% !important;

    overflow-x: auto;
}


.modal-buttons {

    display: flex;
    flex-direction: row;

    justify-content: center;
    align-items:  center;
    gap: 25px;
}

#tabs ul li#tabLink::before {

    transition: width ease 0.2s;
    width: var(--tab-width) !important;

}

#tabs ul li#tabLink:hover::before {
    background-color: #9c96966c;
    

}

#tabs ul li#tabLink button {
    background-color: transparent;
    box-shadow: none;
    background-image: none;
    border: none;
    cursor: pointer;

    font-size: small;
    text-align: center;

    color: transparent;
    font-family: raundet;
    z-index: 3;
    transition: all 0.2s;


    padding-inline: 0;
    padding-block: 0;

    position: relative;

    width: 15px;
    height: 15px;
    line-height: 10px;


}


#hiddenDownload {

    width: 0;
    height: 0;

}

#tabs {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: nowrap;

    overflow-x: auto;
    overflow-y: hidden; 
    white-space: nowrap;

    scrollbar-width: thin;      
    scrollbar-gutter: stable; 
    
    margin: 0 !important;

    z-index: 10 !important;
}

#tabs ul li#tabLink button:hover {
    color: var(--text-color);

    
}

#tabs ul li#tabLink:has(button:hover) {
    --tab-width: 100% !important;

    
}

#tabs ul li#tabLink button::before {
    position: absolute;
    content: "";
    width: 15px;
    height: 15px;
    background-color: transparent;
    z-index: -1;

    top: 0;
    left: 0;

    border-radius: 50%;


    transform: translateX(-3%) translateY(13%);


    transition: all 0.2s;
}

#tabs ul li#tabLink button:hover:before{
    background-color: #5b545479;
    
}

#tabs ul li#tabLink button:hover ~ #underline {
    
    width: 100%;

}

#footer {
    width: 100%;
    position: relative;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    filter: drop-shadow(10px 10px 10px rgba(0, 0, 0, 0.5));

    left: 0;
    bottom: 0;

    z-index: 10 !important;

}

#copy-right {
    background: var(--accent);
    color: var(--editor-bg);
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    padding: 5px;
    font-weight: bold;
}


#Socials {
    
    


    background-color: var(--navBar);


    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;

    

}

#Socials ul {


    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;

}

#Socials ul li {

    margin: 0;
    padding: 0;

}

#Socials ul li svg {
    cursor: pointer;
}

#Socials ul li#youtube svg,  #Socials ul li#discord svg {
    stroke: var(--text-color);
    fill: transparent !important;
    stroke-width: 2 !important;
    transition: all 0.2s;
}

#Socials ul li#mailIcon svg {
    fill: var(--text-color);

    stroke-width: 0.2 !important;
    transition: all 0.2s;
    height:45px;

    width:50px
}

#Socials ul li:hover#youtube svg, #Socials ul li:hover#mailIcon svg,  #Socials ul li:hover#discord svg {
    stroke: var(--accent);
    transform: scale(1.1);
    transform-origin: center;
}

#Socials ul li:hover#mailIcon svg {
    fill: var(--accent);
}

#Socials ul li:hover svg {

    stroke: var(--accent);

}

h1 {


    font-family: 'Courier New', Courier, monospace;
    background: var(--title-bg);

    background-attachment: fixed;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));

    font-size: 2vw;


    transition: all 0.3s;
}



#sloganContainer {
    top: 8.2vh;
    position: absolute;  /* establishes a containing block for absolute children */
    padding-left: 10px;   /* space from the screen edge */
    max-width: 100%;          /* full width of parent/viewport */




}

#slogan {

    

    left: 0;              /* start at the left edge of container (after padding) */
    color: var(--fancy-text);
    font-family: 'Courier New', Courier, monospace;
    font-size: medium;
    overflow-wrap: break-word;  /* keep text on a single line */
    width: max-content;          /* grow naturally with content */
    text-align: left;     /* ensure text flows to the right from left edge */

    max-width: 60vw;


    z-index: 10;
}


input[type="button"] {
    background-color: transparent;
    outline: solid 1px var(--accent);
    color: var(--text-color);
    font-family: 'Courier New', Courier, monospace;
    border-radius: 1px;
    box-shadow: none;
    background-image: none;
    border: none;
    font-weight: normal;
    
}

#addFiles {
    font-family: raundet;



    display: inline-flex;          
    align-items: center;          
    justify-content: center;       
    line-height: 1; 
    
    width: 19px;
    height: 19px;

    position: absolute;
    top: 50%;
    transform: translateY(-110%);

    z-index: 20;

}

#name, #email {
    background-color: var(--toggle-background) !important;
}

.form-group input:focus:invalid,
.form-group textarea:focus:invalid {
  outline: 2px solid crimson;   /* red border */
  background-color: rgba(220, 20, 60, 0.1); /* faint red tint */
}


.program {


    font-style: normal !important;
    background-color: var(--codeMirror-bg);
    padding: 2px;
    border-radius: 5px;
    outline: solid var(--console-outline) 1px;
    color: var(--codeMirror-identifier);


}



input[type="button"]:hover,  input[type="submit"]:hover{
    background-color: var(--accent);
    outline: solid 1px var(--accent);
    color: var(--editor-bg);
    transition: 0.35s;
    font-weight: bold;

    
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

li {
    display: inline-block;
    margin-right: 38px;
    z-index: 10;
}





#proxy-toggle-clickme {
    height: auto;

    z-index: 999;
    position: absolute;
    top: 135px;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;

    right: max(10px, 15%);
    margin-right: 47px;

    width: 45px;

    opacity: 0;
    cursor: pointer;

    /* Dynamically shift left based on screen width */
    


}








#underlay {
    position: relative;


    background-color: var(--editor-bg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);

    width:1000px;

    max-width: 100vw;


    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;


    padding: 20px;


    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    
    font-family: 'Courier New', Courier, monospace;
    box-sizing: border-box;

    top: 8vh;
    
    max-height: 100%;

}

#form-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;


    width: 100%;
}

#form-body h3 {
    transform: translateX(10);
}
                                                                                              
.form-group {
    
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-bottom: 20px;
}

.form-group label, #form-group input {
    display: block !important;
}

.form-group label {
    left: 50% !important;
    color: rgba(146, 146, 146, 0.608);
}

.form-group textarea {

    padding-top: 10px;

}

.form-group input, .form-group textarea {
    font-family: 'Courier New', Courier, monospace;
    padding-left: 17px;
    padding-right: 0px;


    


    background-color: var(--toggle-background) !important;
    border-radius: 5px;

    outline: solid 2px transparent;



    border: none;

    color: var(--text-color);

}

.form-group input:focus, .form-group textarea:focus {
    outline-color: var(--accent) !important;
}



#genericPlate {

    position: relative;


    width:970px;
    max-width: 100vw !important;

    overflow-y: auto !important;

    

    background-color: var(--editor-bg);
    filter: drop-shadow(0 20px 10px rgba(0, 0, 0, 0.5));
    isolation: isolate;

    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;

    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    
    font-family: 'Courier New', Courier, monospace;


    transform: translateX(var(--genericPlate-x-offset));
  
    height: 100%;
    max-height: 100vh;

    top: 8vh;
}

editor-main {



    position: relative;

    width: 100%;



    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;

    gap: 2.5em;

    padding: 0 1em;

    

}

main {

    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;



}

#genericPlate h2 {
    color: var(--text-color);
}

#genericPlate p a {
    
    cursor: pointer;
}

#genericPlate p {
    position: relative;
    
    transform: translateX(0);


    color: var(--unselected-text);


}


#menu-right {

    margin-left: auto;
    position: relative;
    
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;

    padding: 0;
    gap: 1rem;



}

#theme-toggle-container {   
    
    


    background-color: var(--toggle-background);


    

    border-radius: 20px;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    padding: 10px;

    max-width: 65px;



}

#output-mode-container {

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;

    color: var(--unselected-text);
    gap: 0.5rem;

    background-color: var(--toggle-background);

    padding: 0.3em;
    border-radius: 5px;
    user-select: none;

    

}

.dropdown {

    position: relative;

}

.content {

    width: 100%;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: flex-start;


    background-color: var(--codeMirror-bg);

    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;

    outline: solid 1px var(--toggle-background);

    overflow: hidden;

    z-index: 25;

    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.175);

}

.content a {

    text-decoration: none;
    color: var(--text-color);


}

.content a:hover {

    background-color: var(--accent);
    color: white;

}

.output-mode-panel {

    background-color: var(--editor-bg);
    padding: 0.1em;
    border-radius: 5px;
    color: var(--text-color);
    cursor: pointer;
    outline: solid var(--unselected-text) 1px;

}

#theme-toggle-outline {

    
    outline: solid 2px var(--toggle-outline);
    width: 100%;
    height: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    border-radius: 20px;

    position: relative;



}

#theme-toggle-svg-container {

    width: 100%;
    cursor: pointer;

    height: 100%;

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;

    gap: 15px;


}

#theme-toggle-svg-container li {

    margin: 0;
    padding: 0;

}

#theme-toggle-svg-container li svg {

    cursor: pointer;

    width: 15px;
    aspect-ratio: 1/1;
    height: auto;
    transform: translateY(15%);


}

.sun {


    stroke: var(--sun);
    fill: var(--sun);


}

.moon {

    stroke: var(--moon);
    fill: var(--moon);
}

#toggle-highlight {

    position: absolute;
    cursor: pointer;
    height: 100%;
    aspect-ratio: 1 / 1; 

    background-color: var(--toggle-outline);




    left: 0;

   z-index: 0;

   border-radius: 50%;

   transition: all 0.2s;
}


#theme-toggle:checked ~ #toggle-highlight {

    left: 61%;



}



#ConsoleObject {
    display:flex;
    justify-content: center;
    outline: solid var(--text-color) 5px ;
}




#themeToggle {
    position: relative;
    left: 10px;
    

}


#navBar {
    position: relative;

    margin-left: auto;  /* pushes it right */
    margin-right: 0;

    gap: 2em;

    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;




} 

#navBar li {

    margin: 0;
    padding: 0;


    min-width: 0;
    flex-shrink: 1;

}



#navBar a {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 1000;
    font-size: clamp(5px, 1vw + 0.5rem, 16px);
    text-decoration: none;
    text-transform: capitalize;
    color: var(--unselected-text);
    position: relative;


}





#navBar a:hover {

    color: var(--text-color);

}


#navBar a::before{
    content:'';
    position: absolute;
    top: 1.25em;
    left: 0;
    width: 0%;
    height:3px;
    background-color: var(--accent);
    transition: all 0.5s;
}

#navBar a:hover::before{

    width: 100%;

}


editornav {

    width: 100%;
    max-width: 100vw;

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;



    position: relative;

    margin: 0 auto;
    


}

#menu {
    position: relative;

    background-color: var(--toggle-background);
    border-radius: 5px;
    padding: 5px 10px;


    backdrop-filter: blur(10px);
    height: 30px;

   

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;


    gap: 1em;



}


#menu li {


    display: inline-flex;
    margin: 0;
    padding: 0;

    flex: 1;

    
}





.form-group input {

    line-height: 26.2px !important;


}

.form-label, .form-group input, .form-group textarea {
    width: 100%;
    max-width: 100vw;

}



.form-group input[type="submit"] {

    position: relative;

    outline: solid var(--accent) 2px;
    color: var(--text-color);
    background-color: transparent !important;


    width: 100%;



    text-align: center;

    box-sizing: border-box;
    padding-right: 5%;

    font-size: large;

    margin: 0;
    line-height: normal;

    


}

.form-group input[type="submit"]:hover {
    background-color: var(--accent) !important;
    color: var(--editor-bg);
    
}

.form-label {
    
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

#donate-btn {
    width: 950px;      /* fixed width needed */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: block;    /* necessary for non-block elements */
    font-size: large;
    border-radius: 5px;

    padding: 4px;

    
}



::selection {
    background-color: var(--accent);
    color: var(--console);
}

#contact-disclaimer {
    color: var(--text-color) !important;
    background-color: var(--toggle-background);
    padding: 1%;
    border-radius: 10px;
}

input:-webkit-autofill {
  box-shadow: 0 0 0px 1000px var(--toggle-background) inset !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--toggle-background) inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
  transition: background-color 9999s ease-in-out 0s; /* Optional fade-in hack */
}


.form-group textarea {

    resize: none;
    border: none;


    color: var(--text-color);

    display: block !important;

    height: 200px;
}

#sourceCode {
    border: var(--text-color) solid 5px;
    text-align: left;
    padding: 0px;
    max-width: 70vw;

    
}


#editor-container h3, #tabs ul {
    align-self: flex-start;
    margin-left: 0px;


}

#tabs ul {

    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 2em;

    height: 100%;

}

#tabs ul li {

    padding: 0;
    margin: 0;
    position: relative;

}

#topBar, #editor-box {
    box-sizing: border-box;
}


#editor-box {
    border-bottom: solid 1px var(--text-color);
    border-left: solid 1px var(--text-color);
    border-right: solid 1px var(--text-color);


    border-bottom-left-radius: 5px;
    border-top-left-radius: 0px;
    border-bottom-right-radius: 5px;

    width: 100%;
    z-index: 1 !important;
}



#editor-container {

    display:flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;





    width: 100%;
    max-width: 100vw;

    
}

.cm-keyword { color: #4793ee  !important; }
.cm-variable {color: var(--variable) !important}
.cm-string { color: var(--string) !important; }
.cm-number { color: #e25e2a !important; }
.cm-comment {color: var(--comments); font-style: italic !important;}
.cm-datatype {color: #4DB5A1 !important;}
.cm-other-token {color: #BD86B7 !important;}
.cm-native { color: var(--native) !important; }
.cm-none {color: rgba(93, 93, 93, 0.759) !important};
.cm-error {color: blue !important;}