@import url("https://fonts.googleapis.com/css2?family=Delicious+Handrawn&display=swap");
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

body {
  font-family: "Delicious Handrawn", cursive;
  font-size: clamp(1rem, 7.5vw, 2.5rem);
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  justify-items: center;
  padding: clamp(0.5rem, 5vw, 1.5rem);
  background-color: #eeeeee;
}

main {
  width: min(100%, 50rem);
  display: grid;
  grid-template-rows: max-content 1fr;
  gap: 0.5rem;
}

@media screen and (min-width: 668px) {
  main {
    grid-template-rows: minmax(0, 2fr) minmax(0, 1fr);
  }
}
.header {
  width: min(100%, 50rem);
  display: flex;
  justify-content: space-between;
}

.board {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  justify-items: center;
  box-shadow: inset 0 0 0 0.15rem #393e46;
  border-radius: 1rem;
  overflow: hidden;
}

.board__text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 400%;
  text-transform: capitalize;
}

@media screen and (min-width: 668px) {
  .board {
    aspect-ratio: unset;
  }
}
.options {
  width: 100%;
  height: max-content;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  justify-self: center;
}

.option {
  width: 100%;
  aspect-ratio: 1;
  box-shadow: inset 0 0 0 0.15rem #393e46, 0 1rem 1rem 0.1rem rgba(57, 62, 70, 0.25);
  border-radius: 1rem;
  background-color: #eeeeee;
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.option:hover {
  transform: translateY(-10%);
  background-color: rgba(0, 93, 223, 0.1);
  animation: wiggle 0.45s infinite;
}

.option--disabled {
  opacity: 0.5;
  pointer-events: none;
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(1deg);
  }
  50% {
    transform: rotate(-1deg);
  }
}
.hand {
  height: 100%;
  aspect-ratio: 1;
  background-image: url("https://i.ibb.co/frgrPjb/up-facing-fist.png");
  background-size: cover;
  background-position: 200% 0;
  background-repeat: no-repeat;
  transition: opacity 0.1s ease-in-out;
}

.user__hand.hand--moving {
  animation: user-back-and-forth 0.5s ease-in infinite;
}

.oponent__hand {
  transform: rotate(-180deg);
}

.oponent__hand.hand--moving {
  animation: oponent-back-and-forth 0.5s ease-in infinite;
}

.loser {
  opacity: 0.7;
}

@keyframes user-back-and-forth {
  0%, 100% {
    transform: translateY(0) scale(0.75);
  }
  70% {
    transform: translateY(30%);
  }
}
@keyframes oponent-back-and-forth {
  0%, 100% {
    transform: rotate(-180deg) translateY(0) scale(0.75);
  }
  70% {
    transform: rotate(-180deg) translateY(30%);
  }
}
.user__score {
  color: #005ddf;
}

/*# sourceMappingURL=styles.css.map */
