@import url('https://fonts.googleapis.com/css?family=Poppins:200i,400&display=swap');

:root {
    --black: rgba(0,0,0,1);
    --grey: rgb(40, 50, 60);
    --soft-white: rgba(0,100,130,0.2);
    --white: rgba(255,255,255,1);
    --main-col: rgba(0,100,130,1);
    --soft-shadow: 0px 0px 10px 5px rgba(230,230,230,1);
    --dark-shadow: 0px 0px 15px 10px rgba(200,200,200,1);
    --soft-radius: 30px;
    --hard-radius: 20px;
    --filter-hover: brightness(200%);
    --filter-active: brightness(60%);
}

* {
    transition: all 200ms;
    font-family: Poppins , sans-serif;
	margin: 0;
	padding: 0;
}

body {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--black);
    text-align: left;
    background: var(--white);
    margin: 10px 0;
}

.colorScheme, .editorWrap textarea, #preview {
    background-color: var(--soft-white);
    box-shadow: var(--soft-shadow);
    border-radius: var(--soft-radius);
    border-top: none;
}

.toolbar {
    display: flex;
    align-items: center;
    background-color: var(--main-col);
    padding: 0.3rem;
    box-shadow: var(--soft-shadow);
    border-radius: var(--soft-radius);
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 10px;
}

.toolbar i {
    width: 25px;
    margin-left: 5px;
}

.toolbar .fa-arrows-alt, .toolbar .fa-compress {
    margin-left: auto;
}

.fa-retweet:hover, .fa-compress:hover, .fa-arrows-alt:hover {
    color: var(--main-col);
    cursor: pointer;
}

.fa-free-code-camp {
    margin-right: 3px;
}

.editorWrap {
    max-width: 600px;
    margin: 1.125rem auto;
}

.editorWrap .toolbar {
    width: 99%;
}

.editorWrap textarea {
    width: 99%;
    min-height: 200px;
    margin-bottom: -5px;
    resize: vertical;
    outline: none;
    padding-left: 5px;
    padding-top: 5px;
    font-size: 0.875rem;
    border: none;
}

.converter {
    width: 100px;
    text-align: center;
    font-size: 35px;
    margin: auto;
}

.previewWrap {
    max-width: 800px;
    margin: 1.25rem auto;
    min-height: 200px;
    overflow-wrap: break-word;
}

@media screen and (max-width: 850px) {
    .previewWrap {
        max-width: 630px;
   }
   
    .editorWrap {
        max-width: 550px;
   }
   
}

.maximized {
    width: 96%;
    min-height: 100vh;
    margin: auto;
}

.maximized textarea {
    min-height: 95vh;
    resize: none;
}

.hide {
    display: none;
}

@media screen and (max-width: 650px) {
    body {
        margin: 5px 0;
   }
   
    .editorWrap {
        width: 80vw;
        margin: 0 auto;
   }
   
    .maximized {
        width: 95%;
        margin: auto;
   }
   
    .previewWrap {
        width: 90vw;
   }
   
}

#preview {
    margin-top: 10px;
    padding: 40px;
}

#preview blockquote {
    color: var(--main-col);
    padding-left: 5px;
    margin-left: 25px;
}

#preview > p > code {
    padding: 3px;
}

#preview code {
    background: var(--white);
    font-size: 0.875rem;
    font-weight: bold;
}

#preview pre {
    display: block;
    overflow: auto;
    background: var(--white);
    padding: 5px;
    line-height: 1.2;
}

#preview table {
    border-collapse: collapse;
}

#preview td, #preview th {
    padding-left: 5px;
    padding-right: 5px;
}

#preview img {
    display: block;
    max-width: 90%;
    margin: 2rem auto;
}

@media screen and (max-width: 420px) {
    body {
        font-size: 0.875rem;
   }
   
}