/* @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap'); */

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: white;
}

body {
  background: #272727;
  font-family: 'Montserrat', sans-serif;
}
.pageBody {
  min-height: 100vh;
  display: flex; /* Center text (optional) */
  flex-direction: column;
  justify-content: center; /* Center text (optional) */
  align-items: center;
}

#navContainer {
  margin-top: 20px;
  width: 100%;
  display: grid;
  grid-template-areas:
    'logo menu'
    'logo title';
  grid-template-columns: 1fr 12fr;
  grid-template-rows: 1fr auto;
}

#navContainer .navLogo {
  grid-area: logo;
  width: 96%;
}

#navContainer .navMenu {
  grid-area: menu;
  display: flex;
  justify-content: space-around;
}

#home_title {
  grid-area: title;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* .navMenu .linkPage,
.navMenu .linkPagedisabled {
  color: #f6f4e6;
  text-decoration: none;
  font-size: 1.2em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-block;
  max-width: 120px;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
} */

.linkPageDisabled {
  cursor: not-allowed;
  color: gray;
}

.navMenu a:hover {
  color: #fddb3a;
}

/* .navMenu .dot {
  width: 6px;
  height: 6px;
  background: #fddb3a;
  border-radius: 50%;
  opacity: 0;
  -webkit-transform: translateX(30px);
  transform: translateX(30px);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.navMenu a:nth-child(1):hover ~ .dot {
  -webkit-transform: translateX(-560px);
  transform: translateX(-560px);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  opacity: 1;
}

.navMenu a:nth-child(2):hover ~ .dot {
  -webkit-transform: translateX(-440px);
  transform: translateX(-440px);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  opacity: 1;
}

.navMenu a:nth-child(3):hover ~ .dot {
  -webkit-transform: translateX(-310px);
  transform: translateX(-310px);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  opacity: 1;
}

.navMenu a:nth-child(4):hover ~ .dot {
  -webkit-transform: translateX(-190px);
  transform: translateX(-190px);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  opacity: 1;
}

.navMenu a:nth-child(5):hover ~ .dot {
  -webkit-transform: translateX(-70px);
  transform: translateX(-70px);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  opacity: 1;
} */

.instruction {
  text-align: left;
  background-color: #222;
  color: #f5f5f5;
  margin-left: 30px;
  padding: 10px 0;
}

.instruction li {
  list-style-type: decimal;
}

h1 {
  margin: 20px;
  padding: 0;
}

h2 {
  margin: 30px;
  padding: 0;
}

h3 {
  margin: 10px;
}

#kbrd_nav {
  max-width: 960px;
  margin: 20px 0px 16px 0px;
  border-top: solid wheat 1px;
}

#kbrd_lang,
.done {
  color: black;
  margin-left: 10px;
  border-left: solid wheat 2px;
  border-radius: 8ipx;
  margin-left: 10px;
  font-size: 1.1em;
}

#kbrd_lang {
  width: 7em;
}

.done {
  width: 5em;
}

#kbrd_lang option {
  color: black;
}

#kbrd_lang_select {
  display: flex;
}

#kbrd_lang_select > p {
  margin: 0;
  margin-bottom: 10px;
}

#add_control {
  display: flex;
}

#add_control div {
  margin-bottom: 10px;
  margin-left: 5px;
  padding-left: 5px;
  border-left: solid wheat 1px;
}

#kbrd_nav > div {
  text-align: left;
  margin-top: 16px;
  display: inline-flex;
}

article {
  column-count: 2;
  column-gap: 20px;
  text-align: left;
  margin: 10px;
}

footer {
  padding: 20px 0;
  border-bottom: solid white 2px;
  border-top: solid white 2px;
  width: 100%;
  text-align: center;
  color: white;
}

.row {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  display: flex;
  line-height: 2.5em;
  align-items: center;
  justify-content: space-around;
  align-items: stretch;
}

.key {
  flex: 1;
  text-align: center;
  border: 2px solid #f5f5f5;
  border-radius: 10px;
  color: white;
  background-color: black;
  position: relative;
}

#backspace {
  flex: 2;
}

#tab {
  flex: 1.5;
}

.slash {
  flex: 1.5;
}

#capslock {
  flex: 1.8;
}

#enter {
  flex: 2.2;
}

#shift_l {
  flex: 2.3;
}

#shift_r {
  flex: 2.7;
}

.bottom {
  flex: 1.25;
}

#space {
  flex: 6.25;
}

.char {
  display: inline-block;
  font-size: 1.2em;
}

#space {
  position: relative;
}

#space input {
  margin: 0;
  font-size: 1em;
  text-align: center;
  caret-color: darkgray;
  background-color: brown;
  color: brown;
}

#space input::placeholder {
  font-weight: bold;
  color: white;
  opacity: 0.5;
}

#space input:focus {
  background-color: white;
  color: white;
}

.backin {
  background-color: white;
  color: black;
}

span.upper {
  position: absolute;
  right: 0px;
  top: -10px;
  font-size: 1em;
}

.second {
  color: antiquewhite;
  margin: 0;
  padding: 0;
  position: absolute;
  top: -8px;
  right: 1px;
}

#kbrd_virt {
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: solid 1px;
}

.break {
  flex-basis: 100%;
  height: 0;
}

#offGame {
  width: 100%;
}

#offGame span {
  width: 1.5em;
  height: 1.5em;
  display: inline-block;
  text-align: center;
  margin: 2px;
  background-color: rgba(100, 100, 100, 0.5);
}

#offGame span {
  cursor: pointer;
}

.activeColor {
  color: aqua;
}

colorless {
  color: white;
}

.played {
  color: brown;
}

.ingameFalse {
  color: gray;
}

.blankKeyboard {
  color: black;
}

.titleCap {
  color: crimson;
  font-size: larger;
}

.fontSize2em {
  position: absolute;
  bottom: -1.8em;
  left: 2em;
  font-size: 2em;
  border: thick solid green;
  padding: 0 8px;
  border-radius: 10px;
  color: black;
  background-color: wheat;
  margin-left: 10px;
}

#kbrd_control {
  position: relative;
}

#add_control input,
#add_control label {
  cursor: pointer;
}

/* wrds section */
#wrds_section {
  margin: auto;
  max-width: 960px;
  /* height: 100vh; */
  display: flex;
  background-color: rgb(16, 16, 16);
  color: white;
}

.linkPage {
  font-size: 1em;
  cursor: pointer;
}

#wrds_section > div {
  padding: 10px;
  margin: 3px;
  background-color: rgb(60 60 60);
  min-width: 16em;
}

#header {
  margin-top: 0px;
  padding-top: 20px;
  width: 100%;
  background-color: aliceblue;
  text-align: center;
}

.leftContainer {
  flex-grow: 1;
  min-width: 11em;
}

.mainContainer {
  flex-grow: 6;
  position: relative;
  /* background-color: burlywood */
}

.rightContainer {
  flex-grow: 1;
  min-width: 14em;
}

#leftheader {
  height: 2em;
}

#lang_select {
  position: relative;
}

#lang_select,
.addcontrol {
  border: solid wheat 1px;
  border-radius: 10px;
  text-align: left;
}

#lang_select > div,
.addcontrol div {
  margin: 6px 6px;
}

.lang_list,
#confirmLangSelect {
  border-radius: 6px;
  /* color: wheat; */
  background-color: black;
  padding: 4px;
  cursor: pointer;
}

.lang_list {
  color: wheat;
}

.addcontrol > div {
  border-radius: 6px;
  color: wheat;
  background-color: black;
  padding: 4px;
  cursor: pointer;
}

.addcontrol input,
.addcontrol label,
li.lesson,
li.wrd,
#target_lang + span {
  cursor: pointer;
  margin: 0.5em;
}

.enabled {
  background-color: black;
  box-shadow: -2px -3px rgba(250, 250, 200, 0.5);
  color: cyan;
}

.disabled {
  background: black;
  box-shadow: 1px 1px rgba(250, 250, 200, 0.5);
  color: gray;
}

#dashboard {
  position: relative;
}

#message {
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  background-color: lightgray;
  color: black;
  padding: 10px;
  border: solid black thin;
  border-radius: 10px;
  font-size: 1.2em;
}

#message span {
  display: block;
}

.hidden {
  visibility: hidden;
}

ul,
li {
  list-style: none;
}

li.wrd {
  padding-left: 10px;
  text-indent: 10px;
}

/* #lang_select span {
  background-color: coral;
  position: absolute;
  left: 2em;
  top: 4.2em;
  border-radius: 6px;
  font-size: 1.2em;
  padding: 6px;
} */

.lesson {
  margin-bottom: 10px;
  border-bottom: solid white 1px;
}

.lesson a {
  display: block;
}

#wrds_palyground > fieldset {
  border-radius: 10px;
}

.wrdToLearn {
  display: inline;
  border-radius: 6px;
  padding: 0 6px;
  margin: 4px;
  text-align: center;
}

.wrdsInput {
  background-color: rgb(60 60 60);
  margin: 2px;
  color: rgb(60 60 60);
  text-align: center;
  font-size: 1.2em;
}

.outOfVision {
  color: rgb(60 60 60);
  background-color: rgb(60 60 60);
}

.inGame {
  background-color: rgb(84 84 84);
  color: wheat;
}

.displayNone {
  display: none;
}

.oneWordMode {
  font-size: 2em;
  border: thick solid green;
  border-radius: 10px;
  color: black;
  background-color: #f5deb387;
  width: 90%;
}

.backToGame {
  background: chartreuse;
  border-radius: 10px;
  padding: 0 6px;
  font-size: 1em;
  color: black;
  box-shadow: 2px 3px rgba(250, 250, 200, 0.5);
  color: gray;
}

#swap {
  position: absolute;
  top: 20%;
  left: 90%;
  display: flex;
  width: 20px;
  /* text-align: center; */
  margin: 0;
  padding: 0;
  justify-content: center;
  /* text-align: center; */
  font-size: 3em;
  background-color: rgb(60 60 60);
  cursor: pointer;
  color: wheat;
}

.onDevelopment {
  border-bottom: solid 1px wheat;
}

.onDevelopment > a {
  display: block;
  color: lightgray;
}

/* end of wrds section */

/* Loader part */

.loader {
  background: #000;
  background: radial-gradient(#222, #000);
  bottom: 0;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 99999;
  visibility: visible;
  opacity: 0.5;
}

.loader-inner {
  bottom: 0;
  height: 60px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 100px;
}

.loader-line-wrap {
  animation: spin 2000ms cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
  box-sizing: border-box;
  height: 50px;
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  transform-origin: 50% 100%;
  width: 100px;
}

.loader-line {
  border: 4px solid transparent;
  border-radius: 100%;
  box-sizing: border-box;
  height: 100px;
  left: 0;
  margin: 0 auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 100px;
}

.loader-line-wrap:nth-child(1) {
  animation-delay: -50ms;
}

.loader-line-wrap:nth-child(2) {
  animation-delay: -100ms;
}

.loader-line-wrap:nth-child(3) {
  animation-delay: -150ms;
}

.loader-line-wrap:nth-child(4) {
  animation-delay: -200ms;
}

.loader-line-wrap:nth-child(5) {
  animation-delay: -250ms;
}

.loader-line-wrap:nth-child(1) .loader-line {
  border-color: hsl(0, 80%, 60%);
  height: 90px;
  width: 90px;
  top: 7px;
}

.loader-line-wrap:nth-child(2) .loader-line {
  border-color: hsl(60, 80%, 60%);
  height: 76px;
  width: 76px;
  top: 14px;
}

.loader-line-wrap:nth-child(3) .loader-line {
  border-color: hsl(120, 80%, 60%);
  height: 62px;
  width: 62px;
  top: 21px;
}

.loader-line-wrap:nth-child(4) .loader-line {
  border-color: hsl(180, 80%, 60%);
  height: 48px;
  width: 48px;
  top: 28px;
}

.loader-line-wrap:nth-child(5) .loader-line {
  border-color: hsl(240, 80%, 60%);
  height: 34px;
  width: 34px;
  top: 35px;
}

@keyframes spin {
  0%,
  15% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

.tip {
  background-color: wheat;
  color: black;
  border-radius: 6px;
  padding: 6px;
  font-size: 1.1em;
}

#wrds_lessons {
  text-align: left;
}

.wraper {
  cursor: pointer;
}

#wrds_lessons li,
#wrds_lessons span {
  display: inline-block;
}

#phrs_section div,
fieldset {
  background-color: rgb(60, 60, 60);
}

#phrs_section .instruction {
  grid-area: tips;
}

#phrs_section .topContainer {
  grid-area: top;
}

#phrs_section .leftContainer {
  grid-area: left;
}

#phrs_section .mainContainer {
  grid-area: main;
}

#phrs_section .lang_select {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
}

#phrs_section .select_lang {
  margin: 6px;
}

#phrs_section {
  margin: auto;
  max-width: 960px;
  color: white;
  display: grid;
  grid-template-rows: 12rem auto;
  grid-template-areas:
    'tips tips tips tips tips'
    'left top top top top'
    'left main main main main'
    'left main main main main';
}

#phrs_section .dashboard {
  display: flex;
  flex-wrap: wrap;
}

header {
  text-align: center;
}

#phrs_section fieldset {
  border-radius: 10px;
  /* background-color: rgb(60 60 60); */
}

#phrs_section > fieldset > legend {
  padding: 0 10px;
  margin: 3px;
  font-size: 1.5em;
}

.invisible {
  visibility: hidden;
}

legend {
  background-color: rgb(44 44 44);
  border-bottom: solid thin;
  border-radius: 8px;
}

/* to delete */
.wrdsInput {
  background-color: rgb(60 60 60);
  margin: 2px;
  color: wheat;
  text-align: center;
  font-size: 1.2em;
}

#phrs_section p.phrs {
  position: relative;
  width: 100%;
}
p.phrs input[type='checkbox'] {
  position: absolute;
  right: 0;
  top: 4px;
}

.toLearn {
  position: fixed;
  top: 2em;
  right: 15%;
  z-index: 100;
  font-size: 1.5em;
  color: wheat;
  background-color: gray;
}
.toLearn p {
  color: inherit;
  padding: 0 10px;
  border-radius: 6px;
}
#swapLangs {
  font-size: 2.5em;
  rotate: 90deg;
  color: aqua;
  cursor: pointer;
}
.phrs_lessons {
  text-align: left;
}
.phrs_input {
  text-align: left;
  margin: 0 10px;
}
