@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    z-index: -1;
    background-color: #000;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
    color: #fff;
    margin-bottom: -50px;
    padding: 0;
}

/* Scrollbar */

::-webkit-scrollbar {
    width: 0;
}

/* Nav */

nav {
    margin-top: -35px;
    display: flex;
    padding: 13px 20px;
    padding-left: 30px;
    padding-right: 30px;
    justify-content: space-between;
    align-items: center;
}

nav div h2 {
    font-weight: 300;
    display: inline-block;
    transform: scale(1);
    transition: transform 0.3s ease;
    margin-left: 10px;
}

nav div h2:hover {
    transform: scale(0.9);
}

nav img {
    width: 20px;
}

.right-nav {
    color: #fff;
}

.right-nav a {
    color: #fff;
    margin: 0 10px;
}

.nav__links {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav__links i {
    display: inline-block;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.nav__links:hover i {
    transform: scale(1.2);
}

/* Container editor */

.container-editor {
    margin-top: -55px;
    width: 100%;
    height: 94vh;
    padding: 20px;
    display: flex;
    color: #fff;
}

label.name-language {
    display: flex;
    align-items: center;
    background: #000;
    height: 30px;
}

label.name-language i {
    margin-right: 10px;
    margin-left: 15px;
}

.container-flex {
    flex-direction: column;
}

.left-bar-flex {
    display: flex;
    flex-basis: 100%;
}

.left-bar,
.right-bar {
    flex-basis: 50%;
    padding: 10px;
    margin-top: -10px;
}

.rotate-nav {
    margin-top: -23px !important;
    margin-bottom: 10px !important;
}

.rotate-leftBar {
    margin-top: -10px !important;
    max-height: 325px;
}

.rotate-rightBar {
    margin-top: 40px !important;
}

.line-numbers-container{
    width: 100%;
    height: 28%;
    margin-bottom: 5px;
    display: flex;
    flex-direction: row;
    background: #1f1f1f;
}

.line-numbers-container textarea {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #1f1f1f;
    color: #fff;
    border: 0;
    outline: 0;
    font-size: 18px;
    resize: none;
    line-height: 1.5;
    padding-top: 1px;
    padding-left: 10px;
}

.line-numbers {
    overflow: auto;
    line-height: 1.5;
    width: 30px;
    padding-top: 1px;
    padding-left: 2px;
    overflow: hidden;
    text-decoration: none;
    background: #1f1f1f;
    color: #999;
    font-family: monospace;
    text-align: right;
    user-select: none;
    font-size: 18px;
}

iframe {
    width: 100%;
    height: 95%;
    background: #fff;
    border: 0;
    outline: 0;
}

@media (max-width: 650px) {
    body {
        background-position: center;
    }

    .container-editor {
        flex-direction: column;
    }

    nav {
        padding-left: 20px;
        padding-right: 18px;
        margin-top: -43px;
    }

    nav div h2 {
        font-size: 23px;
        margin-left: 0px;
        margin-right: 2px;
    }

    textarea {
        height: 90px;
    }

    .left-bar,
    .right-bar {
        padding: 1px;
    }

    .left-bar {
        margin-top: -13px;
        max-height: 300px;
    }

    .line-numbers {
        width: 32px;
    }

    .right-bar {
        margin-top: 60px;
    }

    iframe {
        height: 95%;
    }

    .rotate-btn {
        display: none;
    }
}

@media (max-width: 320px) {
    nav div h2 {
        font-size: 19.5px !important;
    }

    .left-bar {
        max-height: 275px;
    }
}

@media (max-width: 165px) {
    nav div h2 {
        font-size: 15px !important;
    }
}
