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

:root {
  --main-color: #F4EBDB;
  --second-color: #8E9B97;
  --hover-color: #537072;
  --text-color: #2C4A52;
}

body {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

body.dark {
  background-color: var(--text-color);
  transition: all 0.3s;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 994px;
  margin: 0 auto;
  gap: 20px;
}

.textAreaField {
  caret-color: var(--text-color);
  display: flex;
  border-radius: 5px;
  padding: 5px;

  max-width: 100%;
  min-width: 100%;

  height: 100px;
  max-height: 300px;

  background-color: var(--main-color);
  color: var(--text-color);
  border: 1px solid black;

  font-size: 1.3rem;
}

.textAreaField.dark{
  caret-color: var(--main-color);
  background-color: var(--hover-color);  
  color: var(--main-color);
}

.textAreaField:focus {
  outline: none !important;
  border: 1px solid black;
}

.keyboard {
  border: 2px solid black;
  padding: 10px;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
  overflow-x: hidden;
  background-color: rgba(0, 0, 0, .7);
  border-radius: 5px;
  transition: all 0.3s;
}

.keyboard.dark {
  background: linear-gradient(90deg, pink, red, orange, yellow, DeepSkyBlue, blue, DarkBlue, pink, red);
  background-size: 900% 900%;
  -webkit-animation: AnimationName 15s cubic-bezier(0, 0, 1, 1) infinite;
  -moz-animation: AnimationName 15s cubic-bezier(0, 0, 1, 1) infinite;
  animation: AnimationName 15s cubic-bezier(0, 0, 1, 1) infinite;
  transition: all 0.3s;
}

@-webkit-keyframes AnimationName {
  0% {
    background-position: 0% 51%
  }

  50% {
    background-position: 100% 50%
  }

  100% {
    background-position: 0% 51%
  }
}

@-moz-keyframes AnimationName {
  0% {
    background-position: 0% 51%
  }

  50% {
    background-position: 100% 50%
  }

  100% {
    background-position: 0% 51%
  }
}

@keyframes AnimationName {
  0% {
    background-position: 0% 51%
  }

  50% {
    background-position: 100% 50%
  }

  100% {
    background-position: 0% 51%
  }
}

.row {
  display: flex;
  width: 100%;
  gap: 15px;
}

.key{
  padding: 3px;
  width: 50px;
  height: 50px;
  background-color: var(--main-color);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  transition: all 0.1s;
  font-size: 1.8rem;
  user-select: none;
}


.key.click {
  transform: scale(95%);
  color: var(--main-color);
  background-color: var(--hover-color);
}


.key:hover {
  cursor: pointer;
  transform: scale(95%);
  transition: all 0.1s;
}

.key:active {
  color: var(--main-color);
  background-color: var(--hover-color);
  transition: all 0.1s;
}

.key-special {
  background-color: var(--second-color);
  font-size: 1.6rem;
}

.backspace {
  width: 125px;
}

.tab {
  width: 55px;
}

.delete {
  width: 55px;
}

.caps-lock {
  width: 120px;
}

.enter {
  width: 120px;
}

.shift {
  width: 125px;
}

.ctrl {
  width: 85px;
}

.space {
  width: 380px;
}

.description {
  text-align: center;
  color: var(--text-color);
  font-size: 0.8rem;
}

.description.dark {
  color: var(--second-color);
}

/* -----------------------switch-theme */
.switch-theme {
  border: 0;
  width: 64px;
  height: 64px;
  background-image: url(./assets/sun.png);
  transition: all 0.3;
}

.switch-theme:hover {
  cursor: pointer;
}

.switch-theme.active {
  background-image: url(./assets/moon.png);
  transition: all 0.3;
}