/* I have no idea how to do CSS so the checkbox is entirely AI-Generated LMAO, but the rest I made by myself */

@font-face {
  font-family: "Robot";
  src: url("../assets/fonts/Robot-Regular.woff2") format("woff2");
}

* {
  font-family: Robot, Arial, Helvetica, Tahoma, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

body {
  height: 100vh;
  width: 100vw;
  margin: 0;
}

.captcha-container {
  display: flex;
  position: absolute;
  align-items: center;
  justify-content: space-between;

  background-color: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 5px;
  color: black;

  height: 12vh;
  width: 25vw;

  left: 50vw;
  top: 50vh;
  transform: translate(-50%, -50%);
  text-align: center;

  transition: display 3s linear;
}

.captcha-checkbox {
  display: flex;
  margin: 10px 10px;
  align-items: center;
  cursor: pointer;
  position: relative;
  user-select: none;
  font-family: sans-serif;
  font-size: 1rem;
}

.captcha-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.captcha-checkbox .checkmark {
  width: 30px;
  height: 30px;
  background-color: white;
  border: 2px solid #d3d3d3;
  border-radius: 4px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden; /* needed for ripple */
  transition: all 0.2s ease;
}

.captcha-checkbox:hover .checkmark {
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

/* The checkmark */
.captcha-checkbox .checkmark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%) rotate(45deg);
  transform-origin: center center;
  width: 8px;
  height: 14px;
  border: solid #4285f4;
  border-width: 0 3px 3px 0;
  opacity: 0;
  transition: all 0.2s ease;
}

/* Show checkmark when checked */
.captcha-checkbox input:checked + .checkmark::after {
  opacity: 1;
}

/* Ripple effect */
.captcha-checkbox .ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(66, 133, 244, 0.3);
  border-radius: 50%;
  transform: scale(0);
  pointer-events: none;
}

.captcha-checkbox input:checked + .checkmark .ripple {
  animation: ripple 0.4s ease-out forwards;
}

.captcha-heading {
  font-size: 1.25rem;

  flex-shrink: 1; /* allow it to shrink if needed */
  flex-grow: 1; /* take remaining space */
  min-width: 0; /* critical to allow shrinking inside flex */
  margin: 0 10px; /* some horizontal spacing */

  overflow-wrap: break-word;
  word-break: break-word;
}

.captcha-logo-area {
  margin-left: auto;
  margin-right: 10px;
}

.captcha-logo-area .captcha-logo-label {
  font-weight: 100;
  font-size: 0.7rem;
  color: gray;
}

.game-finish-banner {
  position: absolute;
  left: 50vw;
  top: 10vh;
  transform: translate(-50%, -50%);

  font-size: 3rem;
  transition: display 3s linear;
}

.game-over-banner {
  position: absolute;
  left: 50vw;
  top: 10vh;
  transform: translate(-50%, -50%);

  color: red;
  font-weight: bold;
  font-size: 3rem;
  transition: display 3s linear;
}

.loading-banner {
  position: absolute;
  left: 50vw;
  top: 10vh;
  transform: translate(-50%, -50%);

  font-size: 2rem;
  font-weight: bold;
  color: #ccc;
}

.disclaimer {
  position: absolute;
  opacity: 0.4;
  bottom: 10px;
  margin-left: 10px;
  font-size: 1rem;
}

#giraffe-feeding-area {
  position: absolute;
  bottom: 20vh;
  left: 50vw;
  transform: translate(-50%, -50%);
}

.alert-area {
  position: absolute;
  bottom: 30vh;
  left: 50vw;
  text-align: center;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
}

input[type='text'] {
  font-size: 1.25rem;
}

#msgs-upload {
  display: none;
}

@keyframes ripple {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}
