@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --main-color: #E5359C;
  --main-dark: #2EB2F6;
  --text-dark: #060A47;
}

* {
  padding: 0px;
  margin: 0pt;
  box-sizing: border-box;
  list-style-type: none;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  outline: none;
  cursor: default;
}

html,
body {
  width: 100%;
  height: 100%;
}

header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  align-items: center;
  width: 100%;
  height: 15%;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  overflow: hidden;
}

header img {
  height: 120px;
}

header div {
  display: flex;
  align-items: center;
  flex-direction: column;
}

main {
  height: 85%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../img/background.png");
  background-attachment: fixed;
  background-repeat: repeat;
  background-size: cover;
}

.name {
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  width: 600px;
  height: 10%;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;

}

main>.name>p {
  font-weight: 500;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hands {
  height: 30%;
  width: 700px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.hands img {
  width: 100px;
  height: 100px;
}

.cpu-hand {
  transform: rotateY(180deg);
}

.words {
  height: 10%;
  width: 600px;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.btn {
  height: 40%;
  width: 700px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
}

.btn div {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.btn div img {
  width: 40px;
  height: 40px;
}

.btn button {
  --angle: 0deg;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 10rem;
  height: 6rem;
  border: 5px solid;
  border-image: conic-gradient(from var(--angle), #E5359C, #2EB2F6, #d367c1, #dedf40, #62cb5c, #00bbcb, #ab79d6, #E5359C) 1;
  background-color: #fff;
  filter: blur(10);
  font-size: 1.5rem;
  font-weight: 500;
  margin-left: 30px;
  color: var(--text-dark);
  transition: transform .3s ease-out;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  to {
    --angle: 360deg;
  }
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.btn .Restart {
  margin-top: 30px;
  width: 10rem;
  height: 3rem;
  border-radius: 50px;
  font-weight: 300;
  border: 2px solid #fff;
  background: none;
  color: #fff;
}

.btn button:hover {
  transform: scale(1.1);
  transition: transform .3s ease-out;
  background: #060A47;
  color: #fff;
}

.btn .Restart:hover {
  transform: scale(1.1);
  transition: transform .3s ease-out;
  background: #060A47;
  border: 2px solid #fff;
}

footer a:hover {
  color: #2EB2F6;
  cursor: pointer;
}

.cursor {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  position: absolute;
  z-index: 2;
  transition-duration: 200ms;
  transition-timing-function: ease-out;
  animation: cursorAnim .5s infinite alternate;
  pointer-events: none;
}

.cursor::after {
  content: '';
  width: 40px;
  height: 40px;
  position: absolute;
  border-radius: 50%;
  border: 8px solid gray;
  opacity: .5;
  top: -9px;
  left: -9px;
  animation: cursorAnim2 .5s infinite alternate;
}

#btnPip {
  width: 140px;
  height: 50px;
  background-color: #fff;
  border: none;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation: moveX 1s ease-in-out;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

#btnPip:hover {
  background: conic-gradient(#E5359C, #2EB2F6, #d367c1, #dedf40, #62cb5c, #00bbcb, #ab79d6, #E5359C);
  color: #fff;
  font-weight: 900;
}

@keyframes moveX {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.5);
  }

  100% {
    transform: scale(1);
  }
}

.expand {
  animation: cursorAnim3 .5s forwards;
  border: 1px solid #E5359C;
}

@keyframes cursorAnim {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(.7);
  }
}

@keyframes cursorAnim2 {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(.4);
  }
}

@keyframes cursorAnim3 {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(3);
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes shakecpu {
  0% {
    transform: rotateY(180deg) rotate(0deg);
  }

  15% {
    transform: rotateY(180deg) rotate(-90deg);
  }

  25% {
    transform: rotateY(180deg) rotate(0deg);
  }

  35% {
    transform: rotateY(180deg) rotate(-90deg);
  }

  50% {
    transform: rotateY(180deg) rotate(0deg);
  }

  65% {
    transform: rotateY(180deg) rotate(-90deg);
  }

  75% {
    transform: rotateY(180deg) rotate(0deg);
  }

  85% {
    transform: rotateY(180deg) rotate(-90deg);
  }

  100% {
    transform: rotateY(180deg) rotate(0deg);
  }
}

@keyframes shakeuser {
  0% {
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(-90deg);
  }

  25% {
    transform: rotate(0deg);
  }

  35% {
    transform: rotate(-90deg);
  }

  50% {
    transform: rotate(0deg);
  }

  65% {
    transform: rotate(-90deg);
  }

  75% {
    transform: rotate(0deg);
  }

  85% {
    transform: rotate(-90deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

footer {
  position: absolute;
  z-index: 5;
  bottom: 0%;
  left: 0;
  width: 100%;
  height: 125px;
  background-color: transparent;
}

.hero-waves {
  display: block;
  margin-top: 60px;
  width: 100%;
  height: 60px;
  z-index: 5000;
  position: relative;
}


.wave1 use {
  -webkit-animation: move-forever1 10s linear infinite;
  animation: move-forever1 10s linear infinite;
  -webkit-animation-delay: -2s;
  animation-delay: -2s;
}

.wave2 use {
  -webkit-animation: move-forever2 8s linear infinite;
  animation: move-forever2 8s linear infinite;
  -webkit-animation-delay: -2s;
  animation-delay: -2s;
}


.wave3 use {
  -webkit-animation: move-forever3 6s linear infinite;
  animation: move-forever3 6s linear infinite;
  -webkit-animation-delay: -2s;
  animation-delay: -2s;
}

@keyframes move-forever1 {
  0% {
    transform: translate(85px, 0%)
  }

  100% {
    transform: translate(-90px, 0%)
  }
}

@keyframes move-forever2 {
  0% {
    transform: translate(-90px, 0%)
  }

  100% {
    transform: translate(85px, 0%)
  }
}

@keyframes move-forever3 {
  0% {
    transform: translate(-90px, 0%)
  }

  100% {
    transform: translate(85px, 0%)
  }
}

@media only screen and (min-width: 1px) and (max-width: 1200px) {
  html {
    font-size: 12px;
  }

  header img {
    width: 170px;
    height: 100px;
  }

  header div {
    justify-content: space-around;
  }

  .btn button {
    width: 9rem;
    height: 6rem;
    font-weight: 400;
    margin-left: 10px;
  }

  .name {
    font-size: 1.7rem;
    font-weight: 500;
    width: 100%;
  }

  .words {
    width: 100%;
  }

  .hands {
    width: 100%;
  }

  .hands img {
    width: 100px;
    height: 100px;
  }

  .btn button img {
    width: 24px;
    height: 24px;
  }

  #btnPip {
    width: 100px;
    height: 50px;
    background-color: #fff;
    border: none;
    top: 85%;
    right: 0;
    font-size: 14px;
    transform: translateY(-50%);
    animation: moveX 1s ease-in-out;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
  }
}