@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Jaro:opsz@6..72&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Press+Start+2P&family=Rubik+Doodle+Shadow&display=swap");
.round-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(3);
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 40px 60px;
  border-radius: 20px;
  font-size: 4rem;
  font-weight: bold;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  opacity: 0;
  z-index: 1000;
  border: 4px solid rgba(255, 255, 255, 0.3);
  animation: roundPopup 2s ease-out forwards;
}

@keyframes roundPopup {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3) rotate(-5deg);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2) rotate(2deg);
  }
  40% {
    transform: translate(-50%, -50%) scale(0.9) rotate(-1deg);
  }
  60% {
    transform: translate(-50%, -50%) scale(1.1) rotate(0.5deg);
  }
  80% {
    transform: translate(-50%, -50%) scale(0.95) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}
@keyframes hidePopup {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}
.round-popup.hide {
  animation: hidePopup 0.5s ease-in forwards;
}

.round-popup.Rock {
  top: calc(50% - 7.2rem);
  background: linear-gradient(45deg, #74b9ff, #0984e3);
  padding: 10px;
}

.round-popup.Paper {
  top: 50%;
  background: linear-gradient(45deg, #00b894, #00a085);
  padding: 10px;
}

.round-popup.Scissors {
  top: calc(50% + 7.2rem);
  background: linear-gradient(45deg, #fdcb6e, #e17055);
  padding: 10px;
}

.round-popup.Shoot {
  top: 50%;
  background: linear-gradient(45deg, #e84393, #fd79a8);
  padding: 25px 45px;
  font-family: "Rubik Doodle Shadow";
}

@media (max-width: 570px) {
  .round-popup {
    font-size: 1.9rem;
    padding: 25px 40px;
  }
  .round-popup.Shoot {
    font-size: 1.5rem;
  }
  .round-popup.Rock {
    top: calc(50% - 4.5rem);
  }
  .round-popup.Scissors {
    top: calc(50% + 4.5rem);
  }
}
#cResult {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  position: relative;
}
#cResult .loading-img {
  border-radius: 15px;
  width: 75px;
  height: 75px;
  animation: spin 1s linear infinite;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}
#cResult .loading-img.small {
  width: 50px;
  height: 50px;
}
#cResult .loading-img.large {
  width: 80px;
  height: 80px;
}
#cResult .loading-img.fade-in {
  animation: fadeIn 0.3s ease-in-out, spin 1s linear infinite;
}
#cResult .loading-img.fade-out {
  animation: fadeOut 0.3s ease-in-out;
}
#cResult.loading {
  justify-content: center;
  align-items: center;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
@keyframes fadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}
#cResult .loading-img.pulse {
  animation: pulse 1.5s ease-in-out infinite;
}
#cResult .loading-img.bounce {
  animation: bounce 1s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.1) rotate(180deg);
    opacity: 0.7;
  }
  100% {
    transform: scale(1) rotate(360deg);
    opacity: 1;
  }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  40% {
    transform: translateY(-10px) rotate(180deg);
  }
  60% {
    transform: translateY(-5px) rotate(270deg);
  }
}
@media (max-width: 768px) {
  #cResult {
    min-height: 70px;
  }
  #cResult .loading-img {
    width: 50px;
    height: 50px;
  }
  #cResult .loading-img.small {
    width: 35px;
    height: 35px;
  }
  #cResult .loading-img.large {
    width: 65px;
    height: 65px;
  }
}
@media (max-width: 480px) {
  #cResult {
    min-height: 60px;
  }
  #cResult .loading-img {
    width: 50px;
    height: 50px;
  }
  #cResult .loading-img.small {
    width: 30px;
    height: 30px;
  }
  #cResult .loading-img.large {
    width: 55px;
    height: 55px;
  }
}
.slide-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 200;
  font-size: 1.5rem;
  max-width: calc(100vw - 40px);
  transform: translateX(calc(100% + 40px));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
}

.slide-message.show {
  transform: translateX(0);
}

.slide-message::before {
  content: "⚠️";
  margin-right: 8px;
  font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .slide-message {
    bottom: 15px;
    right: 15px;
    left: 15px;
    max-width: none;
    padding: 14px 20px;
    font-size: 1.5rem;
    text-align: center;
    transform: translateY(calc(100% + 35px));
  }
  .slide-message.show {
    transform: translateY(0);
  }
}
@media (max-width: 480px) {
  .slide-message {
    bottom: 10px;
    right: 10px;
    left: 10px;
    padding: 12px 16px;
    font-size: 1.2rem;
  }
}
html {
  overflow: hidden;
  font-size: 96.5%;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 100%;
  width: 100%;
  background: #73877b;
  font-family: Jaro, sans-serif;
  color: #F7FFF7;
}

h1 {
  font-size: 2rem;
  font-family: "Rubik Doodle Shadow";
}

p, .rounds {
  font-size: 1.5rem;
}

a {
  text-decoration: none;
  color: #F7FFF7;
  font-size: 1.5rem;
}

.gray-overlay, .name-cont {
  transition: all 200ms ease-in-out;
}

.rounds {
  font-size: 2rem;
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.answers {
  background-color: #F7FFF7;
  width: 12rem;
  height: 13rem;
  border-radius: 14px;
}

.answers-cont {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10%;
  margin-bottom: 1.5rem;
}
.answers-cont div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.answers-cont p {
  width: 100%;
  padding-left: 10%;
  margin: 0;
}

.choices-cont {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 10rem;
  margin-bottom: 3rem;
}
.choices-cont div {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin: 1%;
}
.choices-cont .c {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 14px;
  transition: transform 200ms ease-in-out;
}
.choices-cont .c:hover {
  transform: scale(1.1) !important;
}
.choices-cont .c img {
  width: 2.6rem;
  height: 2.6rem;
  pointer-events: none;
}
.choices-cont .rock {
  background-color: #ED3B32;
}
.choices-cont .paper {
  background-color: #1EA4E6;
}
.choices-cont .scissors {
  background-color: #4CD964;
}

button {
  font-family: "Press Start 2P", sans-serif;
  font-size: 1rem;
  padding: 1rem;
  color: #73877b;
  background-color: #F7FFF7;
  height: 5rem;
  width: 8rem;
  border-radius: 11px;
  border: none;
  transition: transform 200ms ease-in-out;
}
button:hover {
  transform: scale(1.1) !important;
}

footer {
  position: fixed;
  bottom: 0;
  height: 50px;
  width: min(70%, 600px);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  justify-content: space-around;
}
footer a {
  font-size: 1.4rem;
  width: 30%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4%;
}

.splash-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(115, 135, 123, 0.95);
  z-index: 9;
  animation: fadeOut 1s ease 2.5s forwards;
  pointer-events: none;
}
.splash-message .splash-text {
  font-family: "Rubik Doodle Shadow";
  color: #F7FFF7;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  animation: textGlow 2s ease-in-out infinite;
}
.splash-message .splash-subtext {
  font-family: Jaro, sans-serif;
  color: rgb(247.8, 255, 247.8);
  font-size: 1.6rem;
  text-align: center;
  line-height: 1.5;
}

.gray-overlay {
  z-index: 5;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: gray;
  opacity: 80%;
}

.name-cont {
  z-index: 6;
  background-color: #F7FFF7;
  color: #73877b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 34rem;
  height: 16rem;
  padding: 1rem 0;
  border-radius: 14px;
}
.name-cont h1 {
  text-align: center;
  color: #b2967d;
  margin: 1.5rem 0;
}
.name-cont input[type=text] {
  height: 2rem;
  width: 15rem;
  border: 1px solid #73877b;
  padding: 1rem;
  font-family: Jaro;
  border-radius: 12px;
  margin: 1.5rem 0;
}
.name-cont input[type=text]:focus {
  outline: none;
  border: 3px solid #73877b;
}
.name-cont button {
  border: 1px solid #73877b;
  height: 3rem;
  width: 6rem;
}

@media (max-width: 570px) {
  h1 {
    font-size: 1.5rem;
  }
  p, .rounds {
    font-size: 1.2rem;
  }
  .name-cont {
    width: 15rem;
    height: auto;
    margin: 0;
  }
  .name-cont input[type=text] {
    width: 8rem;
    height: 1.7rem;
  }
  .answers {
    width: 8rem;
    height: 9rem;
  }
  button {
    height: 3rem;
    width: 6rem;
    font-size: 0.9rem;
    text-align: center;
  }
  footer {
    width: 90%;
    font-size: 0.9rem;
  }
  footer a {
    width: 40%;
  }
}
.answers > p {
  color: black;
  padding-left: 0;
  text-align: center;
}

.fade-out {
  animation: fadeOut 500ms ease 100ms forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}
@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 10px #F7FFF7;
  }
  50% {
    text-shadow: 0 0 20px rgba(247, 255, 247, 0.8);
  }
}
.img-res {
  width: 7rem;
  height: 7rem;
}
