@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700&family=Source+Code+Pro&display=swap');

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type='number'] {
  -moz-appearance: textfield;
}

img {
  width: 100%;
  max-width: 50rem;
  display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  font-family: 'Montserrat', sans-serif;
}

body {
  margin: 0;
  background-color: #2d3453;
  color: white;
}

h1,
h2,
h3 {
  text-align: center;
  color: white;
}

button:not(.xd),
.button {
  display: block;
  margin-inline: auto;
  margin-top: 1em;
  background-image: linear-gradient(to right, #8e2de2, #4a00e0);
  color: white;
  font-size: 1.25rem;
  border: none;
  padding: 0.5em 0.75em;
  border-radius: 1em;
  transition: transform 400ms;
  width: fit-content;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.button:hover {
  transform: scale(1.15);
}

.container {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2.5em 0.75em;
}

.mini-container {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.xd {
  position: absolute;
  bottom: 1em;
  right: 1em;
  color: black;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.input-group {
  display: flex;
  gap: 1em;
  color: white;
  align-items: center;
}

.input-group input {
  width: 1.5em;
  height: 1.5em;
  cursor: pointer;
}

.input-group label {
  padding: 0.5em;
  cursor: pointer;
  vertical-align: middle;
}

.voltereta {
  display: flex;
  justify-content: center;
  gap: 1em;
  animation: voltereta 1500ms infinite;
  margin-block: 4em;
  margin-inline: auto;
}

.voltereta img {
  width: 2em;
}

.titulito-cacorro,
.arcoiri {
  animation: rainbow-colors 1000ms linear infinite;
}

.hide {
  display: none !important;
}

.spinner {
  border: 8px solid #ddd;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-inline: auto;
  margin-top: 1em;
  animation: spin 1.5s linear infinite;
}

#ticks-table {
  margin-inline: auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes voltereta {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rainbow-colors {
  0% {
    color: hsl(0turn, 90%, 65%);
  }
  25% {
    color: hsl(0.25turn, 90%, 65%);
  }
  50% {
    color: hsl(0.5turn, 90%, 65%);
  }
  75% {
    color: hsl(0.75turn, 90%, 65%);
  }
  100% {
    color: hsl(1turn, 90%, 65%);
  }
}
