@import url('https://fonts.googleapis.com/css2?family=Nunito&display=swap');

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

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  /* height: 100vh; */
  color: #333;
  /* background-image: linear-gradient(to top left, #753682 0%, #bf2e34 100%); */
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn i {
  color: lightgreen;
  font-size: 2.5rem;
}
/* LAYOUT */
main {
  position: flex;
  width: 100rem;
  /* height: 60rem; */
  background-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(200px);
  filter: blur();
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.25);
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* justify-content: end; */
  /* border: 3px solid red; */
  margin-top: 40px;
}
.buttons {
  /* border: 3px solid black; */
  padding: 10px;
  box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1);
  display: flex;  
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}
.pictures {
  min-height: 300px;
  padding-top: 1rem;
  font-size: 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1);
  /* border: 3px solid brown; */
}
.picture {
  height: 150px; 
  margin-left: 5px;
}
/* 
.players-wrapper {
  position: absolute;
  bottom: 0px;
  width: 100%;
} */
.players {
  display: flex;
  justify-content: end;
  /* border: 3px solid blue; */
  /* bottom: 0; */
}
.player {
  flex: 50%;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: last baseline;
  align-items: center;
  transition: all 0.75s;
  border-radius: 5px;
  /* border: 2px black solid; */
  
}

/* ELEMENTS */
.name {
  position: relative;
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  word-spacing: 2px;
  font-weight: 300;
  margin-bottom: 1rem;
}

.score {
  font-size: 8rem;
  font-weight: 300;
  color: #c7365f;
  margin-bottom: auto;
}

.player--active {
  background-color: rgba(255, 255, 255, 0.4);
  background: lightgreen;
}
.player--active .name {
  font-weight: 700;
}
.player--active .score {
  font-weight: 400;
}

.player--active .current {
  opacity: 1;
  /* background: lightgreen; */
}

.current {
  background-color: #faf2f4;
  opacity: 0.8;
  border-radius: 350px;
  /* color: #fff; */
  width: 65%;
  padding: 2rem;
  text-align: center;
  transition: all 0.75s;
}
a {
  text-decoration: none;
}
.current-label {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 1.7rem;
  outline: none;
  border: none;
  padding: 3px;
  width: 60%;
  border-radius: 5px;
  text-align: center;
  background: rgba(110, 110, 110, 0.7);
  color: lightgreen;
  /* color: black; */
}
.current-label::placeholder {
  color: lightgreen;
}
.current-score {
  font-size: 3.5rem;
}

/* ABSOLUTE POSITIONED ELEMENTS */
.btn {
  color: #444;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.8rem;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 400;
  transition: all 0.2s;
  
  background-color: white;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  
  padding: 0.7rem 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50rem;
  box-shadow: 0 1.75rem 3.5rem rgba(0, 0, 0, 0.1);
}
.input-phrase {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background: white;
}
.btn-input {
  text-align: center;
  box-shadow:5px 5px 15px rgba(0, 0, 0, 0.4);
  text-decoration: underline dotted;
}
.keyboard-image {
  /* position: absolute; */
  background: lightgreen;
  z-index: 12;
  width: 100%;
}
.btn::first-letter {
  font-size: 2.4rem;
  display: inline-block;
  margin-right: 0.7rem;
}

.btn:active {
  transform: translate(0, 3px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.btn:focus {
  outline: none;
}

.btn-dice {
  border-radius: 15px;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.2);
  cursor: pointer;
  padding: 0;
  padding-bottom: -3px;
  height: 70px;
  border-radius: 3px;
  padding: 0 3px;
  /* overflow:hidden; */
  /* float:right;   */
}
.player--winner {
  background-color: #2f2f2f;
  background: darkgreen;
}
.player--winner .current {
  background:lightgreen;
}
.player--winner .name {
  font-weight: 700;
  color: #c7365f;
}
.hidden {
  display: none;
}

.levels {
  width: 40%;
  height: 50px;
  display: flex;
  justify-content: center;
}
.level img{
  height: 100%;
  width: 100%;
  object-fit: contain;
}
  @media screen and (max-width: 500px) {
    .picture {
      height: 100px;
    }
    .pictures {
      min-height: auto;
    }
    .players {
      flex-direction: column;
    }
    .btn {
      font-size: 1.5rem;      
      /* text-transform: lowercase; */
    }
    main {
      margin: 0;
    }
  }