/*
Live Code Editor 
By: Coding Design

You can do whatever you want with the code. However if you love my content, you can subscribed my YouTube Channel
🌎link: www.youtube.com/codingdesign

*/

:root {
    --dark-blue: #1f2641;
    --blue: #6c63ff;
    --light-blue: #424890;
    --pink: rgb(255, 40, 113);
}

/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.webide{
    height: 100vh;
    font-family: sans-serif;
    background-image: linear-gradient(45deg,var(--light-blue), var(--blue));

    display: flex;
    justify-content: center;
    align-items: center;
} */

.code-editor {
    margin: auto;
    width: 90vw;
    height: 100vh;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: #fff;
    /* border-radius: 1rem; */
    overflow: hidden;
    border: 1px solid var(--dark-blue);
}

.code {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    overflow-y: auto;

    background-color: var(--light-blue);
    padding: 1rem;
    /* border-radius: 0 1rem 1rem 0; */
}

.head1 {
    font: 600 1.2rem sans-serif;
    margin: 1rem 0;
    color: #fff;
    display: flex;
}

.head1 > img {
    width: 1.3rem;
    margin-right: 1rem;
    vertical-align: middle;
}

.code textarea {
    width: 100%;
    height: calc(100% - 4rem);
    background-color: var(--blue);
    color: var(--dark-blue);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    resize: vertical;
}

.code textarea::-webkit-scrollbar {
    width: .4rem;
}
.code textarea::-webkit-scrollbar-thumb {
    background-color: var(--pink);
    border-radius: .4rem;
}

#result {
    width: 100%;
    height: 100%;
    border: none;
}

@media screen and (max-width:1024px) {
    .code-editor{
    grid-template-columns: repeat(1, 1fr);
}
}

