

.codearea {
    border: none;
    outline: none;
    resize: none;
    height: 100%;
    width: var(--code-width);
    min-width: 5px;
    font-size: large;
    line-height: 30px;

    background-image: repeating-linear-gradient(
        to bottom,
        #333333,            /* line color */
        #333333 1px,        /* line thickness */
        #1a1a1a 1px,        /* start of background color */
        #1a1a1a 30px        /* match the line height exactly */
    );

    background-attachment: local;
}

.line-numbers {
    text-align: center;
    justify-self: unset;
    user-select: none;
    line-height: 30px;
    min-width: var(--label-width);
    height: 100%;
    overflow: hidden; /* hides scrollbar */
    box-sizing: border-box;
    padding-bottom: 5px;
    
    background-image: repeating-linear-gradient(
        to bottom,
        #333333,
        #333333 1px,
        #1a1a1a 1px,
        #1a1a1a 30px
    );
    background-attachment: local;
}

#learn-project {
    display: flex;
    flex-direction: column;
}

:root{
    --label-width: 2em;
    --code-height: 20vw;
    --code-width: 50vw;
}

.code-editor {
    display: flex;
    align-items: flex-start;
    background: transparent;
    height: var(--code-height); /* match textarea height */
}

.output {
    color: #fff;
    user-select: none;
    height: var(--code-height);;
    width: 30vw;
    padding-left: 10px;
    overflow-y: auto;
    box-sizing: border-box;
    white-space: pre-wrap; /* Preserve whitespace and wrap as needed */
    word-wrap: break-word; /* Break long words to fit within the container */
        background-image: repeating-linear-gradient(
        to bottom,
        #333333,            /* line color */
        #333333 1px,        /* line thickness */
        #1a1a1a 1px,        /* start of background color */
        #1a1a1a 30px        /* match the line height exactly */
        
    );
    font-size: large;
    line-height: 30px;
    resize: none;
    border: none;

    background-attachment: local;
}

@media screen and (max-width: 50em) {
    .input-output {
        flex-direction: column !important;
    }
    .output {
        width: calc(var(--code-width) + var(--label-width)) !important;
    }
}

.input-output {
    align-content: center;
}

.top-bar {
    display: flex;
    flex-direction: row;
    justify-content: left;
}



.output:active, .output:focus {
    outline: none;
    border: none;
}


.button {
    padding-right: 20px;
}

.button button {
    width: 50px;
    height: 50px;
    
}

.button img {
    width: 30px;
    height: 30px;
}

.instructions
{
    position: relative;
    left: 0%;
    text-align: center;
    width: 100%;
}

#project-parent {
    display: flex;
    flex-direction: row;
    align-self: start;
    gap: 16px;
    padding: 16px;
    background: #222;
    box-sizing: border-box;
    margin: 16px;
    flex-wrap: wrap;
    justify-content: left;
    
    grid-auto-rows: min-content;
    position: relative;
}

.project {
    position: inherit;
    transition:
        max-height 0.5s cubic-bezier(.4,1,.3,1),
        flex-basis 0.4s cubic-bezier(.4,1,.3,1),
        width 0.6s cubic-bezier(.4,1,.3,1),
        opacity 0.3s ease,
        box-shadow 0.3s ease;
    -webkit-transition: cubic-bezier(0.39, 0.575, 0.565, 1) all ease-in-out;
    max-height: 700px;
    opacity: 1;
    box-shadow: 0 4px 16px #0006;
    overflow: hidden;
    display: block;
    flex: 1 1 100%;
}

.gone {
    max-height: 0px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    opacity: 1 !important;
    pointer-events: none;
    overflow: hidden !important;
    flex: 0 0 0 !important;
}


.project.mini {
    align-self: center;
    max-height: 200px;
    opacity: 0.7;
    box-shadow: 0 2px 8px #0004;
    flex: 0 0 100%;
}

@media (min-width: 900px) {
    .project.mini {flex: 0 0 31%;}
}

.project.mini p:not(#project-title), .project.mini textarea,  .project.mini .run-code, .project.mini .button{
    opacity: 0;
    position: absolute;
}

.project.notmini p:not(#project-title), .project.notmini textarea,  .project.notmini .run-code, .project.notmini .button{
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.project.mini .input-output {
    visibility: hidden;
}

.project.mini:hover {
    opacity: 1;
}

.run-button {
    border: #00000000;
    border-radius: 0%;
    background: none;
}

.run-button:active {
    border: #000000;
    border-radius: 10%;
    background:fixed;
    transform: translateY(10px);
}

.run-button:hover:not(:active) {
    transform: translateY(-1px);
}

.run-code {
    width: fit-content;
    font-size: large;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
}

.next-project {
    font-size: large;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 1px;
    background-color: #00000000;
    border-color: #00000000;
    overflow-y: auto;
    box-sizing: border-box;
}