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

html {
  font-family: "Fredoka", sans-serif;
  font-size: 16px;
}

html,
body {
  min-height: 100vh;
  height: auto;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  background: url(images/melanie-magdalena-VdFkSO3uePI-unsplash.jpg) no-repeat
    center center;
  background-size: cover;
  padding: 1.5625rem;
}

/* --- Main Header & Container ---*/
.main-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.875rem;
  width: 100%;
  max-width: 40rem;
}

/* --- Logo --- */
.logo {
  width: 100%;
  max-width: 37.5rem;
  margin-bottom: 1.875rem;
}

/* --- Instructions --- */
.instructions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: number;
  color: #e4b860;
}

/* --- Labels & Inputs --- */
label {
  font-size: 1.5rem;
  color: #e4b860;
}

input[type="text"] {
  width: clamp(12rem, 50%, 18.75rem);
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  color: #ffffff;
  background-color: #222;
  border: 0.125rem solid #4fc3dc;
  border-radius: 0.625rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 0.5rem rgba(79, 195, 220, 0.5);
}

input[type="text"]::placeholder {
  color: #aaa;
}

input[type="text"]:focus {
  border-color: #00e5ff;
  box-shadow: 0 0 0.75rem rgba(0, 229, 255, 0.7);
  background-color: #1a1a1a;
}

/* --- Eight Ball --- */
.eight-ball {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80vw;
  max-width: 18.75rem;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle at 65% 35%, #666 0%, #000 70%);
  box-shadow: inset -0.625rem -0.625rem 1.5625rem rgba(0, 0, 0, 0.7),
    inset 0.625rem 0.625rem 1.5625rem rgba(255, 255, 255, 0.1),
    0 0 1.875rem rgba(0, 0, 0, 0.8);
}

.eight-ball:hover {
  border: 0.125rem solid #4fc3dc;
  transition: all 0.3s ease;
}

.eight-ball:active {
  box-shadow: 0 0 1.25rem rgba(0, 229, 255, 0.7);
  transition: all 0.3s ease;
}

/* Inner circle */
.inner-circle {
  opacity: 75%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 7.8125rem;
  height: 7.8125rem;
  background: radial-gradient(circle at 30% 30%, #ffffff, #e0e0e0 60%, #b0b0b0);
  border: 0.0625rem solid black;
  border-radius: 50%;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2),
    0 0.375rem 1.25rem rgba(0, 0, 0, 0.19);
  padding: 0.625rem;
}

/* --- Answer Message --- */
.answerMsg {
  color: black;
  font-size: clamp(5rem, 10vw, 6rem);
  font-weight: 500;
}

/* --- Button --- */
.button {
  padding: 0.625rem 1rem;
  border-radius: 0.625rem;
  border: 0.0625rem solid;
  background-color: transparent;
  color: #e4b860;
  font-size: clamp(1rem, 4vw, 1.5rem);
}

.button:hover {
  border-color: #00e5ff;
}

.button:active {
  color: #ff7a00;
  box-shadow: 0 0 0.75rem rgba(0, 229, 255, 0.7);
}

/*--- Media Queries ---*/
@media (max-height: 600px) {
  body {
    justify-content: flex-start;
  }
}

@media (max-width: 500px) {
  .instructions {
    flex-direction: column;
    gap: 1rem;
  }
}
