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

/**********************************************
                Global styles
**********************************************/
*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #000;
  --secondary-color: #fff;
  --silver-color: #ddd;
}

body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  _background: url(../img/world-of-tanks-small.jpg) center no-repeat;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-shadow: 2px 2px 5px #000;
  text-align: center;
}

/**********************************************
                Specific styles
**********************************************/
.logo {
  width: 100%;
  margin-top: 10px;
}

.logo img {
  width: 100%;
}

.form-control label {
  display: block;
  letter-spacing: 2px;
}

#player-results {
  display: flex;
  flex-direction: column;
  min-width: 320px;
}

#player-results span {
  cursor: pointer;
  text-align: center;
  font-size: 1rem;
}

input {
  font-family: inherit;
  text-indent: 5px;
  height: 30px;
  margin: 10px 0;
}

input::placeholder {
  color: var(--silver-color);
  text-indent: 5px;
}

input:focus {
  outline: none;
}

.btn {
  cursor: pointer;
  height: 30px;
  padding: 0 10px;
}

.ccw-word {
  cursor: pointer;
}

#rating img {
  display: inline-block;
}

#rating p span.rt {
  padding: 0 5px;
  color: yellow;
}

#player-ratings-btn {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  min-width: 300px;
  gap: 5px;
  margin: 10px 0;
}

.rbtn {
  cursor: pointer;
  padding: 5px 10px;
  border: 1px solid var(--silver-color);
  border-radius: 5px;
  font-weight: bold;
  color: var(--silver-color);
  background-color: var(--primary-color);
}

.rbtn:hover {
  color: var(--primary-color);
  background-color: var(--silver-color);
  border-color: var(--secondary-color);
}

.rbtn:active {
  transform: scale(.9);
}

#player-rating-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#player-rating-text span {
  margin-left: 10px;
  color: yellow;
}

#player-rating-text span.ccw-word {
  cursor: pointer;
}

#player-rating-text span.ccw-word:hover {
  color: var(--silver-color);
  text-decoration: underline;
}

#player-rating-text span.vehiclesStats {
  color: var(--silver-color);
  text-align: center;
}

.tankAnimation {
  position: absolute;
  top: 50%;
  right: 0;
  width: 50%;
  animation: tank 6s linear .2s forwards;
}

@keyframes tank {
  0% {
    top: 50%;
    right: 0px;
  }

  25% {
    top: 50%;
    right: 60%;
    transform: rotate(0deg);
  }

  55% {
    top: 50%;
    right: 60%;
    transform: rotate(90deg);
  }

  90% {
    opacity: 1;
  }

  100% {
    top: 0px;
    right: 60%;
    transform: rotate(90deg);
    opacity: 0;
  }
}

#tankAnimation {
  width: 100%;
  height: auto;
}

#myFooter {
  margin: 30px 0;
  font-size: 1rem;
}

#myFooter a {
  color: var(--secondary-color);
  text-decoration: none;
}

/*********************************************
               @media Queries
*********************************************/

@media all and (min-width: 768px) {
  .logo {
    width: 80%;
    margin-top: 20px;
  }

  #tankAnimation {
    width: 80%;
  }

  #player-ratings-btn {
    width: 600px;
    margin: 20px 0;
  }
}

@media all and (min-width: 992px) {
  .logo {
    width: 60%;
  }

  #tankAnimation {
    width: 60%;
  }

  #myFooter {
    font-size: 1.3rem;
  }
}

@media all and (min-width: 1200px) {
  .logo {
    width: 40%;
  }

  #tankAnimation {
    width: 40%;
  }
}

@media all and (min-width: 1400px) {
  .logo {
    width: 30%;
  }

  #tankAnimation {
    width: 30%;
  }
}