:root {
  background-color: #FFF;
}

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

body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#symbol-label {
  text-transform: uppercase;
}

#symbol-form {
  width: 13rem;
  display: flex;
  flex-direction: column;
}

#symbol-input {
  height: 13rem;
  width: auto;
  margin: 1rem 0;
  padding: 1rem;
  text-align: center;
  font-size: 3rem;
  border-radius: 5px;
  animation-duration: 200ms;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  direction: forwards;
}

@keyframes right-answer {
  0% {
    transform: scale(1.05);
    background-color: rgb(185, 255, 185);
    border-color: green;
  }
}

@keyframes wrong-answer {
  0% {
    transform: translateX(-5px);
    background-color: rgb(255, 185, 185);
    border-color: red;
  }
  50% {
    transform: translateX(5px);
  }
  100% {
    transform: none;
  }
}

.switch-container {
  display: flex;
  align-items: center;
}

.switch {
  margin: 0 0.5rem;
  position: relative;
  display: inline-block;
  width: 60px;
  height: 25px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 17.5px;
  width: 17.5px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(33px);
  -ms-transform: translateX(33px);
  transform: translateX(33px);
}

.slider.round {
  border-radius: 50px;
}

.slider.round:before {
  border-radius: 50%;
}