@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body {
  min-height: 100vh;
  font-size: 20px;
  font-family: Inter, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  color: #e0e5e9;
  background: url(./bg-ancora.png) no-repeat 0% bottom,
    linear-gradient(270deg, #062138, #082b49);
}

header {
  background: linear-gradient(to right, #061b27, #062138);
  padding: 30px 0;
  box-shadow: -0px -5px 8px 1px black;
  margin-bottom: 40px;
}

body:has(.changeSuper) header {
  padding-bottom: 0;
}

* {
  box-sizing: border-box;
}

.logo {
  width: 300px;
  margin: 0 auto;
  display: block;
}

h1 {
  margin: 0;
  font-size: 3em;
}

.changeSuper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  gap: 20px;
  margin: auto;
  margin-top: 20px;
}

.changeSuper button {
  width: 350px;
  height: 41px;
  text-align: center;
  background-color: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.1s ease;
  border-radius: 6px 6px 0 0;
  margin-bottom: -4px;
}

.changeSuper button:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.changeSuper::after {
  position: absolute;
  content: '';
  bottom: -5px;
  left: 0;
  width: 350px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(#10706a, #00a59b);
  transition: all 0.2s ease;
  pointer-events: none;
}

body:has(main.numero) .changeSuper::after {
  left: 370px;
}

body:has(main.nome) .changeSuper:has(button:nth-child(1):hover)::after {
  height: 6px;
}

body:has(main.numero) .changeSuper:has(button:nth-child(2):hover)::after {
  height: 6px;
}

.input-panel {
  margin: 20px auto;
  max-width: 600px;
}

label {
  font-size: 26px;
  font-family: 'Poopins', sans-serif;
  font-weight: 600;
}

textarea {
  width: 100%;
  min-height: 150px;
  max-height: 50vh;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  resize: none;
  box-shadow: 0 0 6px #00a59b;
  margin: 10px 0;
  border: #00a59b 1px solid;
}

main.numero textarea {
  opacity: 0;
  z-index: -1;
  height: 0;
  min-height: 0;
  padding: 0;
}

main.nome .sub {
  display: none;
}

main.nome .numerosContainer {
  height: 0;
  opacity: 0;
  pointer-events: none;
}

main.numero .numerosContainer {
  opacity: 1;
  margin-bottom: 30px;
  pointer-events: all;
}

body:has(main.numero) h2 {
  display: none;
}

main button {
  background: linear-gradient(#10706a, #00a59b);
  color: white;
  border: none;
  padding: 10px 30px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
}

/* input.nums {
    background-color: white;
    color: #061b27;
    text-align: center;
    height: 40px;
    width: 50px;
    border-radius: 8px;
    border: none;
    box-shadow: 1px 1px 5px 2px #008b842f;
    font-size: 16px;
} */

input[type='number'] {
  background-color: white;
  color: #061b27;
  font-weight: 600;
  text-align: center;
  height: 40px;
  width: 50px;
  border-radius: 8px;
  border: none;
  box-shadow: 1px 1px 5px 2px #008b842f;
  font-size: 16px;
}

input[type='number']:hover,
input[type='number']:focus-visible {
  border: #00a59b 1px solid;
  outline: none;
  box-shadow: 0 0 10px #00a59b;
}

ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

main button:hover {
  background-color: #008b83;
}

/* Após o sorteio */
.countdown {
  font-size: 48px;
  margin: 20px;
}

.result-screen {
  margin-top: 30px;
}

.result-screen h1 {
  font-size: 2em;
  line-height: 1.5em;
}

.winner {
  color: #00a59b;
  font-weight: bold;
  font-size: 1.5em;
}

.hidden {
  display: none;
}

.button-panel {
  margin-top: 50px;
}

.button-panel button {
  margin: 10px;
}
