body {
    background-color: #272935;
}

#editing, #highlighting {
    /* Both elements need the same text and space styling so they are directly on top of each other */
    margin: 10px;
    padding: 10px;
    border: 0;
    width: calc(100% - 32px);
    height: 150px;
}

#editing, #highlighting, #highlighting * {
    /* Also add text styles to highlighting tokens */
    font-size: 15pt;
    font-family: monospace;
    line-height: 20pt;
}

#editing, #highlighting {
    position: absolute;
    top: 0;
    left: 0;
}

#editing {
    color: transparent;
    background: transparent;
    caret-color: white; /* Or choose your favorite color */
}

#editing {
    z-index: 1;
}

#highlighting {
    z-index: 0;
}

#editing, #highlighting {
    overflow: auto;
    white-space: nowrap; /* Allows textarea to scroll horizontally */
}

#editing {
    resize: none;
}

#app {
    font-family: "Roboto", sans-serif;
    /* display: grid;
    grid-template-areas:
      "assignement"
      "code"
      "controls"
      "results" */
}

h3 {
    grid-area: assignement;
    margin: 10px;
    padding: 10px;
    font-size: 1.5em;
    text-align: center;
    color: #f8f8f2;
}

#code {
    grid-area: code;
    position: relative;
    height: 200px;
}

#controls {
    grid-area: controls;
    margin: 10px;
    padding: 10px;
    text-align: center;
    height: 60px;
}

#controls button {
    font-size: 1.5rem;
    line-height: .5;
    border-radius: 0.3rem;
    color: #f76497;
    border-color: #f76497;
    display: inline-block;
    font-weight: 400;
    cursor: pointer;
    padding-right: 1rem !important;
    padding-left: 1rem !important;
    padding-bottom: 0.5rem !important;
    padding-top: 0.5rem !important;
    background-color: transparent;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#controls button:hover {
    color: #fff;
    background-color: #f76497;
    border-color: #f76497;
}

#results {
    grid-area: results;
    margin: 10px;
    padding: 10px;
    text-align: center;
    font-size: 2em;
    color: #f76497;
}

#results.perfect {
    /*color: #f76497;*/
    color: #f8f8f2;
}

#suggest {
    margin: 10px;
    padding: 10px;
    text-align: center;
}

#suggest img {
    margin: auto;
    width: 500px;
}

.query-toolbar {
    padding: 10px;
    color: #f8f8f2;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.query-toolbar label {
    color: #f8f8f2;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.query-toolbar select {
    background-color: #44475a;
    color: #f8f8f2;
    border: 1px solid #f76497;
    border-radius: 6px;
    padding: 0.55rem 0.8rem;
    font-size: 1rem;
    font-family: "Roboto", sans-serif;
    outline: none;
    min-width: 280px;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.query-toolbar select:hover {
    background-color: #4f5368;
}

.query-toolbar select:focus {
    border-color: #ff8db3;
    box-shadow: 0 0 0 3px rgba(247, 100, 151, 0.25);
}

.query-toolbar select option {
    background-color: #272935;
    color: #f8f8f2;
}

.loader {
    border: 4px solid #44475a;
    border-radius: 50%;
    border-top: 4px solid #f76497;
    border-bottom: 4px solid #f76497;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    display: inline-block;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#counter {
    text-align: center;
    width: 50%;
    margin: 0 auto;
}

#counter span {
    color: #f8f8f2;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
}