@font-face {
 font-family: "Dosis";
 src: url("../assets/fonts/Dosis-VariableFont_wght.ttf");
}

:root {
  --sd-blue : #20124D;
  --sd-red : #E6354D;
  --sd-green : #5FBFBC;
  --type : "Dosis" !important;
}

* {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
    -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important;
    outline: none !important;
    overflow: hidden;
    font-family: var(--type);
}

body {
  height: 100vh;
}

main{

    display: flex;
    flex-direction: column;

    /* align-items: center; */
    /* justify-content: center; */
    overflow: hidden;
    height: 100%;

    background-color: var(--sd-blue);

}

textarea {
  resize: none;

  text-align: center;
  height: 4rem !important;
  line-height: 4rem;
  width: 30rem;
  background: none;
  border: solid 5px var(--sd-red);
  border-radius: 1rem;

  color: var(--sd-red);
}

#refresh-button {
 position: absolute;
 top: 30px;
 left: 30px;
 background-color: var(--sd-red);
 border-radius: 1rem;
 border: none;
 padding: 1rem;
 font-size: 1.3rem;
 color: white;
}

#targetField{
  font-size: 2rem;
  font-family: sans-serif;
  color: var(--sd-red);
  font-family: var(--type);
  margin: 1rem;
  margin-top: 0;
  padding: 1rem;
}

#inputField {
  font-size: 2rem;
}

#win-container {
  display: none;
  width: 100%;
  height: 70vh;
  display: none;
  align-items: center;
  justify-content: center;
}

#win-h1 {
  font-size: 3rem;
  width: 60%;
  text-align: center;
  color: var(--sd-red);
  overflow: visible;
}

#win-h1 span {
  color: white;
}

.keyboard {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 10px 0;
    background: var(--sd-blue);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    user-select: none;
    transition: bottom 0.4s;
}

.keyboard--hidden {
    bottom: -100%;
}

.keyboard__keys {
    text-align: center;
}

.keyboard__key {
    height: 70px;
    width: 7%;
    max-width: 90px;
    margin: 3px;
    padding: 10px;
    border-radius: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.05rem;
    outline: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: top;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.keyboard__key:active {
    background: rgba(255, 255, 255, 0.12);
}

.keyboard__key--wide {
    width: 10%;
}

.keyboard__key--extra-wide {
    width: 24%;
    max-width: 500px;
}

.keyboard__key--activatable::after {
    content: '';
    top: 10px;
    right: 10px;
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
}

.keyboard__key--active::after {
    background: #08ff00;
}

.keyboard__key--dark {
    background: rgba(0, 0, 0, 0.25);
}

.timer-container {
  position: absolute;
  top: 30px;
  right: 30px;

  width: 400px;
  height: 120px;
}

.timer-container img {
  position: absolute;
  width: 120px;
  float: right;
  right: 0;
}

.img-timer-container {
  animation-name: shakeTimer;
  animation-duration: 6s;
  transform-origin: center;
  animation-iteration-count: infinite;
  animation-delay: 1s;
  width: 120px;
  height: 120px;
  float: right;
}

#aiguille {
  animation-name: aiguille;
  animation-duration: 10s;
  transform-origin: center;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes aiguille {
  from {transform: rotate(0deg);}
  to {transform: rotate(360deg);}
}

@keyframes shakeTimer {
  0% {transform: rotate(0deg);}
  5% {transform: rotate(-15deg);}
  10% {transform: rotate(15deg);}
  15% {transform: rotate(0deg);}
}


#timer {
  position: absolute;
  top: 30px;
  right: 30px;
  margin: 0;
  font-family: var(--type);
  /* background-color: var(--sd-red); */
  color: var(--sd-red);
  font-size: 2rem;
  margin-right: 130px;
}

.top-elements-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-fields-container{
  margin-top: 20vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
