@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Roboto:wght@400;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html, body {
    display: flex;
    width: 100%;
    height: 100%;
}

#root {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}



/* tab section */
#tab-bar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
    width: 100%;
    height: 8%;
    background-color: rgb(234, 232, 232);
    gap: 20px;
    padding-left: 20px;
}


#tab-bar {
    display: flex;
    justify-content: flex-start;
    align-items: Center;
    width: 100%;
    height: 60%;
    overflow-x: scroll;
    overflow-y: hidden;
    gap: 20px;
}

#tab-bar::-webkit-scrollbar {
    width: 1px;
    height: 1px;
}

.tab-block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: 100%;
    border-radius: 10px;
}

.tab-block:hover {
    transform: scale(1.05);
    transition-duration: 150ms;
}

.fileName-input {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: 100%;
    border-radius: 10px 0px 0px 10px;
    background-color: whitesmoke;
    padding: 5px 10px 5px 10px;
    cursor: pointer;
    /* box-shadow: 10px 0px 10px rgba(0, 0, 0, 0.24); */
}

.fileName-input-selected {
    background-color: rgb(163, 163, 163);
}

.rename-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    height: inherit;
    background-color:whitesmoke;
    border: none;
    cursor: pointer;
    padding: 0px 5px 0px 5px;
}
.rename-button:hover {
    background-color: gray;
}

.delete-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 100%;
    background-color: whitesmoke;
    border-radius: 0px 10px 10px 0px;
    cursor: pointer;
}

.delete-button:hover {
    background-color: #ff8682;
}



#add-button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 30px;
    height: 60%;
    margin-left: auto;
    margin-right: 30px;
    cursor: pointer;
    background-color: whitesmoke;
    border-radius: 10px;
    box-shadow: 10px 0px 30px rgba(0, 0, 0, 0.24);
}

#add-button:hover {
    border: '0.5px solid black';
    background-color: lightgreen;
    transform: scale(1.20);
    transition-duration: 150ms;
}









/* iframe section */

#playground-window {
    display: flex;
    width: 100%;
    height: 88%;
}

#editor-container {
    display: flex;
    width: 100%;
    height: 100%;
}

#output-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100%;
}


#iframe-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border: none;
    overflow: visible;
}



#run {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 30px;
    min-height: 30px;
    width: 60px;
    height: 30px;
    cursor: pointer;
    background-color: whitesmoke;
    border-radius: 3px;
    box-shadow: 10px 0px 30px rgba(0, 0, 0, 0.24);
    z-index: 10;
}
#run:active {
    border: '0.5px solid black';
    background-color: lightgreen;
    transform: scale(1.20);
    transition-duration: 150ms;
}

#main-iframe {
    min-width: 300px;
    width: 320px;
    height: 650px;
    border: none;
}






/* media queries for screens less than 740 */
@media only screen and (max-width: 740px){
    #tab-bar-wrapper {
        min-height: 50px;
    }
    #playground-window {
        display: flex;
        flex-direction: column;
        gap: 20px
    }
    #editor-container {
        min-height: 300px;
        height: 50%;
    }
}








/* Media queries for screens less than 426 */
@media only screen and (max-width: 426px){
    #tab-bar-wrapper {
        min-height: 50px;
    }
    #playground-window {
        display: flex;
        flex-direction: column;
        gap: 20px
    }
    #editor-container {
        min-height: 300px;
        height: 50%;
    }
    
}




/* ##################### EDITOR STYLES ################################# */
.cm-editor,
.cm-scroller {
    min-width: 300px;
    /* height: 500px; */
    /* overflow-y: scroll; */
    width: inherit;
}

