/* CSS reset START */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

html,
body {
  height: 100%;
  /* allows % heights in the application */
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* CSS reset END */
/* ------------------------------------------ */
/* ------------------------------------------ */
/* ------------------------------------------ */

body {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 16px;
  background: #3d405b;
  color: #f2cc8f;
  text-transform: uppercase;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  text-shadow: 1.5px 2px 1px #3d405b;
}

p {
  font-size: 1.5rem;
}

/* Layout START*/

.board {
  margin: 3em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5em;
}

.player-wrapper,
.computer-wrapper {
  width: 30em;
  height: 20em;
  padding: 1em;
  border: .5em solid;
  text-align: center;
  letter-spacing: .25em;
}

.player-wrapper {
  background: #e07a5f;
  border-image: linear-gradient(to right, #81b29a, #f2cc8f) 1;
}

.computer-wrapper {
  background: #81b29a;
  border-image: linear-gradient(to left, #e07a5f, #f2cc8f) 1;
}

.player-choice,
.computer-choice {
  margin: 1em;
  padding: .75em;
  font-size: 1.75rem;
  font-weight: 800;
  color: #3d405b;
}

.score {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2em;
}

.score-points {
  margin: 2em;
  display: flex;
  gap: 5em;
}

.go {
  display: block;
}

/* Buttons START*/

.choice-btn {
  margin: 1em .5em;
  padding: .75em 1.5em;
  border: none;
  border-radius: 5px;
  background: #3d405b;
  color: #f2cc8f;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  transition: transform 300ms; /* Zoom in effect when hover */
  transform: scale(1); /* Zoom in effect when hover */
}

.choice-btn:focus,
.choice-btn:hover {
  cursor: pointer;
  transform: scale(1.1); /* Zoom in effect when hover */
  background: #f2cc8f;
  color:#3d405b;
}

.result-message {
  text-align: center;
}

.confetti {
  background-image: url("handy-colorful-confetti.gif");
  background-size: contain;
  background-repeat: no-repeat;
}

.go {
  padding: .75em 2em;
  border: none;
  border-radius: 5px;
  background-image: linear-gradient(145deg, #e07a5f 15%, #81b29a);
  color: #3d405b;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 3px;
  transition: all 300ms;
  transform: scale(1);
}

.go:focus,
.go:hover {
    cursor: pointer;
    transform: scale(1.2);
}

/* Buttons END*/

/* Responsive/Media Query START*/

@media screen and (max-width: 70em) {
  
  .board {
    margin: 2em;
    display: flex;
    flex-direction: column;
  }

  .player-wrapper,
  .computer-wrapper {
    width: 25em;
    height: 15em;
    padding: .5em;
    border: .5em solid;
    text-align: center;
    letter-spacing: .2em;
  }

  .player-choice,
  .computer-choice {
    margin: .5em;
    padding: .75em;
    font-size: 1.5rem;
    font-weight: 600;
  }

  .choice-btn {
    padding: .5em 1em;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
  }

}

/* Responsive/Media Query END*/