/* Color pallet */
:root{
    --bg: #242424;
    --bg-accent: #484848;
    --bg-light: #e5e5e5;
    --text-color: #fff;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    background-color: var(--bg);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.5;
}

.top-nav{
    background-color: var(--bg-accent);
    border-bottom: 1px solid var(--bg-light);
    position: relative;
    z-index: 999;
    height: 50px;

    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.top-nav .nav-icon{
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    margin: 2px;
}

.top-nav .nav-icon:hover{
    color: var(--bg-light);
    background-color: var(--bg);
    border-radius: 10px;
}

.top-nav select{
    margin-left: auto;
    margin-right: 1rem;
    padding: 5px;
    border-radius: 10px;
    border: none;
    outline: none;
    background-color: var(--bg-light);
    color: var(--bg);
    font-size: 1rem;
    cursor: pointer;
}
main {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: stretch;
    align-content: flex-start;
}

.controlls{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    margin: 1rem;
    max-width: 50vw;
    width: 100%;
}

.controlls textarea{
    background-color: var(--bg-accent);
    color: var(--text-color);
    border: 1px solid var(--bg-light);
    outline: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    margin: 10px;
    height: 200px
}

.controlls select{
    background-color: var(--bg-accent);
    color: var(--text-color);
    border: 1px solid var(--bg-light);
    outline: none;
    padding: 5px;
    border-radius: 10px;
    font-size: 1rem;
    margin: 10px;
}

.actions{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    padding: 5px;
    background-color: var(--bg-accent);

    display: flex;
    justify-content: space-around;
    align-items: center;
}

.actions span{
    width: 100%;
    background-color: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5px;
    border-radius: 10px;
    margin: 0 3px;
}

.actions span:hover{
    background-color: var(--bg-light);
    color: var(--bg);
    cursor: pointer;
}

.preview{
    width: 50vw;
   max-height: 80vh;
    margin: 1rem;
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    color: #1a1a1a;
    padding: 1rem;
}

.doc-preview{
    width: 100%;
    height: 100%;
    padding: 1rem;
    border-radius: 10px;
    overflow-y : scroll;
}

.doc-preview h1{
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.doc-preview h2{
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.doc-preview p{
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.question-holder h1{
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.question-holder p{
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

/* Mobile */
@media screen and (max-width: 600px){
    .controlls{
        max-width: 100vw;
        width: 100vw;
    }
    .preview{
        display: none;
    }
}



span {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}