/*

NEW


*/


/* Variables */

:root {
    --main-color-1: #E9DB70;
    --main-color-2: #8D4B99;
    --main-color-3: #5861A1;
    --main-nav-font-color: #FFFFFF;
    --main-font-color: #FFFFFF;
    --main-error-color: var(--main-nav-font-color);
    --main-error-background-color: var(--main-color-2);
}

::selection {
    background: var(--main-color-1);
    /* WebKit/Blink Browsers */
}

::-moz-selection {
    background: var(--main-color-1);
    ;
    /* Gecko Browsers */
}

.nav--suffix>input::selection {
    background: var(--main-color-2);
    /* WebKit/Blink Browsers */
}

.nav--suffix>input::-moz-selection {
    background: var(--main-color-2);
    ;
    /* Gecko Browsers */
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    padding: 0;
    margin: 0;
}

h1 {
    all: unset;
}

.wrapper {
    margin: auto;
    width: 60%;
    margin-top: 120px;
    position: relative;
}

.content {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: min-content min-content min-content min-content 1fr;
}

.content>label {
    padding: 5px 0;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 100px;
    width: 100vw;
    color: var(--main-nav-font-color);
    background-color: var(--main-color-1);
    z-index: 1000;
    box-shadow: 0 8px 6px -6px rgba(0, 0, 0, 0.1);
}

nav>.container {
    width: 60%;
    height: 100%;
    margin: auto;
    overflow: hidden;
    display: grid;
    grid-template-columns: 25% 75%;
}

nav>.container>div {
    padding: 25px 0;
    height: 50px;
    width: 100%;
}

.nav--name {
    text-align: start;
}

.nav--name>img {
    height: 50px;
    width: 50px;
}

.nav--name>h1>span {
    padding-left: 10px;
    font-size: 25pt;
    text-align: left;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.nav--suffix {
    display: grid;
    grid-template-columns: 75% 25%;
    text-align: center;
}

.nav--suffix>input {
    all: unset;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 0 10px var(--color-shadow-black);
    padding: 5px 15px;
    font-size: 25px;
    /*width: calc(80% - 20px);*/
    height: 40px;
}

.nav--suffix>a.button>span {
    width: 10.5%;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.nav--suffix>a.button {
    width: calc(100% - 10px);
    margin-left: 10px;
    border: 0.1em solid var(--main-font-color);
    background-color: var(--main-color-1);
    color: var(--main-font-color);
}

.nav--suffix>a.button:hover {
    background-color: var(--main-font-color);
    color: var(--main-color-1);
}

.grid {
    display: grid;
    grid-template-columns: 48% 48%;
    column-gap: 4%;
}

pre, .editor {
    width: calc(100% - 1em);
    padding: 0.5em;
    background-color: var(--main-color-1);
    margin-top: 0;
    overflow-x: auto;
}

.content>pre, .editor {
    min-height: 200px;
    width: calc(100% - 1em)
}

code {
    height: 100%;
    width: 100%;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

code::-webkit-scrollbar {
    display: none;
}

a.button {
    display: inline-block;
    height: 50px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    font-weight: 300;
    text-align: start;
    transition: all 0.2s;
    border: 0.1em solid var(--main-color-1);
    background-color: var(--main-font-color);
    color: var(--main-color-1);
}

a.button>span {
    width: 100%;
    text-align: center;
    position: relative;
    display: block;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

a.button:hover {
    background-color: var(--main-color-1);
    color: var(--main-font-color);
    cursor: pointer;
}

.wrapper>a.button{
    margin-bottom: 5px;
}

.content>a.button{
    margin-top: 5px;
}

input {
    all: unset;
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 0 10px var(--color-shadow-black);
    padding: 5px 15px;
    font-size: 12pt;
    width: calc(100% - 30px);
    height: 40px;
}

[contenteditable]:focus {
    outline: 0px solid transparent;
}

[contenteditable] {
    width: 100%;
}

.explanation {
    margin-top: 15px;
}

ul {
    list-style: none;
    /* Remove default bullets */
}

ul li::before {
    content: "\2022";
    /* Add content: \2022 is the CSS Code/unicode for a bullet */
    color: var(--main-color-1);
    /* Change the color */
    font-weight: bold;
    /* If you want it to be bold */
    display: inline-block;
    /* Needed to add space between the bullet and the text */
    width: 1em;
    /* Also needed for space (tweak if needed) */
    margin-left: -1em;
    /* Also needed for space (tweak if needed) */
}

a,.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
  }

  .backup>a.button{
      margin-bottom: 5px;
  }

/* Dropdown*/
#dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 12px 16px;
    z-index: 100;
  }


@media only screen and (max-width: 600px) {
    body{
        width: 100vw;
    }
    .wrapper{
        width: 90%;
        margin-top: 280px;
    }
    .grid {
        grid-template-columns: 100%;
    }
    nav>.container{
        grid-template-columns: auto;
        grid-template-rows: 1fr 2fr;
        width: 90%;
    }
    .nav--suffix{
        grid-template-columns: auto;
        height: 200px;
    }
    nav>.container>div{
        padding-top: 10px;
    }
    nav{
        height: 250px;
        position: absolute;
    }
    .nav--name>h1>span{
        position: relative;
        top: 0%;
        transform: none;
    }
    .nav--suffix>a.button{
        margin-left: 0;
        margin-top: 25px;
        width: calc(100% - 2px);
    }
    .nav--suffix>a.button>span{
        width: 100%;
        text-align: center;
        position: relative;
    }
}