* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #222831;
}

header {
    width: 100vw;
    height: 60px;
    line-height: 60px;
    color: #E8E8E8;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    background-color: 222831;
    user-select: none
}

.nav-links {
    width: 20%;
    display: flex;
    justify-content: space-around;
}

.nav-links li {
    list-style: none;
}

.nav-links li a {
    color: #E8E8E8;
    text-decoration: none;
    user-select: none
}

main {
    width: 100vw;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: row;
}

aside {
    width: 250px;
    height: calc(100vh - 60px);
    background-color: rgb(218, 218, 218);
}

.editor {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.editor-main {
    width: calc(100vw - 250px);
    height: calc(100vh - 60px - 30px);
    padding: 20px 50px;
    overflow-wrap: break-word;
    overflow-y: scroll;
    flex: 1;
    background-color: lightyellow;
}

#editor_html, #editor_css, #config {
    min-height: calc(100vh - 90px);
    min-width: 50vw;
}

#config {
    background-color: #E8E8E8;
    color: #222831;
}

#output {
    height: calc(100vh - 60px);
    width: 50vw;
    background-color: white;
}

h2 {
    padding: 20px;
}

#config button {
    margin-left: 20px;
    margin: 10px 20px;
}

.flex-direction-vertical {
    flex-direction: column;
}

.flex-direction-horizon {
    flex-direction: row;
}

.flex-direction-rev-horizon {
    flex-direction: row-reverse;
}

.tabs {
    display: flex;
    justify-content: left;
    align-items: center;
    height: 30px;
    width: 50vw;
}

.tabs li {
    list-style: none;
    width: 25%;
    line-height: 30px;
}

.tab {
    border: none;
    display: block;
    width: 100%;
    cursor: pointer;
    background-color: #30475E;
    color: #E8E8E8;
    padding: 0 10px;
    border-left: 1px solid #000000;
    user-select: none
}

.show {
    display: block;
}

.config_show {
    display: block;
    width: 100vw;
}

.unshow {
    display: none;
}

.active_tab {
    background-color: #F05454;
}

label {
    font-size: 1.2rem;
}

#column, #row {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    padding: 0.3rem;
}

#table {
    padding-left: 20px;
    width: 100%;
    height: calc(100vh - 400px);
}

.flex {
    display: flex;
    justify-content: space-around;
    line-height: 20px;
}

.input_table_cel {
    width: 10rem;
    height: 3rem;
    font-size: 1.4rem;
    padding: 0.5rem;
}

iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.c-th {
    background-color: #e1e1e1 !important;
}

.config_details {
    margin-left: 30px;
    width: 500px;
}

.control {
    display: flex;
    align-items: center;
    justify-content: left;
}

.control_label {
    width: 150px;
}
.control_select{
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}
footer {
    width: 50%;
    margin: 200px auto;
    position:relative;
}
footer::before {
    content:"";
    display:block;
    width:200px;
    height:2px;
    background-color:#9c9c9c;
    position:absolute;
    top: -20px;
    left: calc(100vw / 4 - 200px / 2);
}
.thanks {
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
}
.thanks a {
    margin: 0 20px;
    color: #9c9c9c;
}

@media all and (max-width: 550px) {
    main {
        flex-direction: column;
    }
    #editor_html, #editor_css, #output {
        width: 100vw;
        height: 70vh;
    }
    .tabs {
        width: 100%;
    }
    h1 {
        font-size: 5vw;
    }
    .nav-links {
        width: 50%;
    }
}