@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

* {
    font-family: "Source Code Pro", monospace;
}

body {
    background-color: #c7bfbf;
    align-items: center;
    margin: 30px;
    /* overflow: hidden; */
}

nav {
    background-color: rgb(175, 175, 175);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    border-radius: 10px;
    box-shadow: 0px 3px 8px;
    flex-direction: column;
    padding-top: 10px;
}

.header {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.header-main{
    background: #d2cfcc;
    border-radius: 10px;
    padding: 10px;
    border: 3px solid rgb(79, 77, 77);
    box-shadow: 0px 3px 8px;
}

.header-main img{
    width: 200px;
    height: 50px;
}

/* ----------------------- */

.utils{
   display: flex;
   justify-content: space-between;
   align-items: end;
   width: 95%;
   height: 40%;
   /* background-color: aqua; */
}



.social {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    /* background-color: red; */
    margin-top: 10px;
    min-width: 150px;
    max-width: 300px;
}

.links {
    font-size: 2em;
    color: rgb(74, 71, 71);
    transition: 0.5s ease-in-out;
}

.links:hover {
    color: #000000;
}

.local{
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    /* background-color: red; */
    margin-top: 10px;
    min-width: 150px;
    max-width: 300px;
    
}

.local-btn{
    padding: 8px 10px;
    border-radius: 80px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgb(74, 71, 71);
    color: antiquewhite;
}

.local-btn ion-icon{
   font-size: 20px;
}

/* -----------------------triggers */

.social-trigger{
    font-size: 30px;
    display: none;
}

.local-trigger{
    font-size: 30px;
    display: none;
}

/* ------------------------------ */

.container {
    /* background-color: white; */
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    border-radius: 10px;
    background-color: rgb(55, 55, 55);
    margin-bottom: 5px;
    padding: 20px;
}

.heading,
.description {
    padding: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.511);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.code-area {
    padding: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.511);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: space-between;
}

.heading-input {
    background: transparent;
    border-radius: 5px;
    color: rgb(168, 168, 168);
    padding: 5px 20px;
    border: 2px solid rgb(97, 97, 97);
    height: 25px;
}

.description-input,
.code-input {
    background: transparent;
    border-radius: 5px;
    color: rgb(168, 168, 168);
    padding: 5px 20px;
    border: 2px solid rgb(97, 97, 97);
    resize: vertical;
}

.language {
    background: transparent;
    color: whitesmoke;
    border: 2px solid rgb(97, 97, 97);
    border-radius: 5px;
}

.language option {
    background-color: #212121;
}

/* ------------------------------------------------- */

.change-section-btn {
    /* background-color: aqua; */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}

.add-section {
    padding: 5px 20px;
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #212121;
    color: antiquewhite;
    border: 0.5px solid black;
    margin-right: 10px;
}

.del-section {
    padding: 5px 20px;
    border-radius: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #212121;
    color: antiquewhite;
    border: 0.5px solid black;
    margin-left: 10px;
}

/* ------------------------------------------------- */


/* ------------------------------------------------- */

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: sticky;
    bottom: 0;
    z-index: 1000;
}

.visual-circle{
    background-color: rgb(255, 255, 255);
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 10px;
    width: 40px;
    box-shadow: 0px 3px 8px;
}

.visual-circle ion-icon{
    font-size: 20px;
}

.visual-holder {
    background-color: rgb(255, 255, 255);
    height: 40px;
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 10px;
    width: 80%;
    padding: 0 20px;
    box-shadow: 0px 3px 8px;
}

.visual-container {
    background-color: rgb(115, 115, 115);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 10px;
    width: 80%;
    padding: 0 20px;
    box-shadow: 0px 3px 8px;
}

.mkd-section {
    width: 100%;
    display: none;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px;
    /* background-color: aqua; */
}

.pvw-section {
    width: 100%;
    display: none;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px;
    /* background-color: aqua; */
}

.mkd-heading,
.pvw-heading {
    /* background-color: blue; */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    color: #acabab;
    font-size: 15px;
    border-radius: 10px;
}

.mkd-text-area,
.pvw-text-area {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mkd-txt,
.pvw-txt {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: inherit;
    white-space: pre-wrap;
    width: 100%;
    overflow-y: scroll;
    height: 50%;
    max-height: 200px;
}

/* For Webkit browsers (Chrome, Safari) */
.mkd-txt::-webkit-scrollbar {
    width: 10px;
    /* Set the width of the scrollbar */
}

.mkd-txt::-webkit-scrollbar-track {
    background-color: transparent;
    /* Make the track color transparent */
}

.mkd-txt::-webkit-scrollbar-thumb {
    background-color: #908f8f;
    /* Set the color of the slider */
    border-radius: 3px;
    /* Add rounded corners to the slider */
}

/* For Webkit browsers (Chrome, Safari) */
.pvw-txt::-webkit-scrollbar {
    width: 10px;
    /* Set the width of the scrollbar */
}

.pvw-txt::-webkit-scrollbar-track {
    background-color: transparent;
    /* Make the track color transparent */
}

.pvw-txt::-webkit-scrollbar-thumb {
    background-color: #908f8f;
    /* Set the color of the slider */
    border-radius: 3px;
    /* Add rounded corners to the slider */
}

.markdown,
.preview {
    padding: 5px 20px;
    border-radius: 10px;
    border: 0.5px solid black;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #212121;
    color: antiquewhite;
}

.download{
    padding: 5px 20px;
    border-radius: 10px;
    /* border: none; */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgb(74, 71, 71);
    color: antiquewhite;
    font-weight: 500;
}

/* ------------------ */

.pvw-txt pre {
    background-color: white;
    /* Set the background color for code blocks */
    padding: 10px;
    /* Add some padding */
    border-radius: 5px;
    /* Optional: round the corners */
    overflow: auto;
    /* Allow scrolling if the code is too long */
}

/* ---------------------- */

@media only screen and (max-width: 450px){
    .social-trigger{
        display: block;
    }

    .social{
        display: none;
    }
    
    .local-trigger{
        display: block;
    }

    .local{
        display: none;
    }

}