:root {
  --primary-bg: rgb(12, 26, 54);
  --secondary-bg: rgb(6, 19, 41);
  --primary-text: rgb(122, 166, 254);
  --secondary-text: rgb(69, 122, 227);
  --highlight-text: rgb(166, 192, 244);
  --selected-text: rgb(132, 159, 213);
  --text-correct: #7aff7a;
  --text-incorrect: #d184ff;
}

body {
    background-color:rgb(12, 26, 54);
    overflow:hidden;
}
body[data-theme="dark"] {
    background-color:rgb(27, 27, 27);
}
body[data-theme="light"] {
    background-color:white;
}
body[data-theme="forest"] {
    background-color:rgb(12, 26, 54);
}

.GT {
    position:absolute;
    top:8px;
    left:16px;
    color:rgb(98, 135, 209);
    font-size:32px;
}

.text-box {
    width:700px;
    height:100px;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    border-radius:10px;
    border:none;
    outline:none;
    font-size:30px;
}
.text-box::placeholder {
    color: var(--primary-text);
}

.box-position {
    display:flex;
    flex-direction: column;
    justify-content:center;
    align-items:center;
    height:60vh;
}

.test-options {
    padding: 5px 10px;
    margin: 5px;

    color: var(--secondary-text);
    font-family: monospace;
    font-size: 10pt;
}
#test-options {
    max-width: 90%;
    min-height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 25px;

    background-color: var(--secondary-bg);
    border-radius: 1rem;
}
.test-options-btn {
    font-family: monospace;
    font-size: 10pt;

    color: var(--secondary-text);

    background: none;
    border: none;
    margin: 0px 5px;

    transition-duration: 150ms;
    cursor: pointer;
}
.test-options-btn:hover{
    color: var(--highlight-text);
}

.bottom-buttons {
    position: absolute;
    bottom:10px;
    left:10px;
}
.btns {
    background-color:rgb(74, 104, 165);
    color:rgb(203, 220, 255);
    border:none;
    border-radius:10px;
    width:80px;
    height:33px;
    font-size:16.5px;
    cursor:pointer;
}

.typing-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-text);
    font-size: 24px;
    text-align: left;
    padding: 20px;
    max-width: 80%;
}

#carat {
    position: absolute;

    width: 2px;
    height: 25px;
    background-color: var(--text-incorrect);
    border-radius: 5px;
}
#carat.visible {
    background-color: var(--text-incorrect);
}
#carat.invisible {
    background-color: rgba(0,0,0,0);
}

#sentenceDisplay {
    margin-bottom: 20px;
    font-size: 28px;
    font-family: monospace;
    color: var(--primary-text);
}

#textInput {
    width: 700px;
    height: 60px;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 30px;
    text-align: center;
    caret-color: white; /* custom caret */
    font-family: monospace;
}

#wpmDisplay {
    margin-top: 20px;
    font-size: 20px;
    color: rgb(203, 220, 255);
}

#wpmDisplay {
    margin-top: 20px;
    font-size: 20px;
    color: rgb(203, 220, 255);
    text-align: center;
}

#textInput {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.highlighted-sentence {
    font-family: monospace;
    font-size: 28px;
    flex-wrap: wrap;
    gap: 5px;
    line-height: 2;
    user-select: none;
}

.correct {
    color: var(--text-correct);
}
.incorrect {
    color: var(--text-incorrect);
    border-bottom: 2px solid var(--text-incorrect);
    border-radius: 1px;
}
.pending {
    color: var(--primary-text);
}

.hint {
    font-size:15px;
}

.selected {
    color: var(--selected-text);
}

.settings-container {
    position: relative;
    display: inline-block;
}

.theme-menu {
    position: absolute;
    bottom: 100%; /* appears above the button */
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 5px 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10;
}
.theme-menu button {
    background: none;
    border: none;
    padding: 8px 12px;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.theme-menu button:hover {
    background-color: #f0f0f0;
}


.console {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 70%;
    min-height: 15px;

    background-color: var(--secondary-bg);
    margin: 20px;
    padding: 5px;
    border-radius: 1rem;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    transition-duration: 200ms;
}
#consoleInput{
    display: flex;
    flex-direction: column;
    color: var(--primary-text);
    font-family: monospace;

    background: none;
    border: none;
    outline: none;
    caret-color: var(--secondary-text);

    margin: 0px 5px;
}
#consoleIcon {
    height: 15px;
    aspect-ratio: 1;
    margin: 5px;
}


.hidden {
    display: none;
}