/* --- BASE BODY --- */
body {
  font-family: 'Fredoka One', cursive;
  text-align: center;
  background: linear-gradient(135deg, #1e1e2f, #2c2a3a); /* darker gradient for easy reading */
  color: #f0f0f0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease, color 0.3s ease;
}

/* --- CONTAINER --- */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  border: 2px solid #5a189a;
  text-align: center;
  background: linear-gradient(135deg, #1e1e2f, #2c2a3a);
  color: white;
}

/* --- IMAGE CONTAINER --- */
.image-container {
  position: relative; /* for absolute positioning of word */
  width: 100%;
}

.image-container .bg-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  /* optional dark overlay */
  filter: brightness(0.7);
}

.image-container .word {
  position: absolute;
  top: 45%;
  left: 50%;
  font-size: 3rem;
  color: #ffb703;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  margin: 0;
  z-index: 2;
  animation: pop 0.6s ease-in-out;
}

/* --- LOGIN CONTAINER --- */
.login-container {
  width: 100%;
  height: 100%;
  margin-top: 50%;
  position: absolute;
  font-size: smaller;
  color: white;
  text-shadow: 2px 2px 0 black, -2px 2px 0 black, 2px -2px 0 black, -2px -2px 0 black;
  z-index: 1;
}

/* --- TEXT --- */
.word {
  text-transform: uppercase;
}

.repetition {
  font-size: 1.2rem;
  color: #dcdcdc;
}

.username {
  color: #90e0ef;
}

/* --- BUTTONS --- */
.record-btn {
  background: #ff595e;
  border: 2px solid #ffb703; /* accent outline */
  color: white;
  font-size: 1.5rem;
  border-radius: 100%;
  width: 120px;
  height: 120px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.record-btn:hover {
  transform: scale(1.1);
  background: #ff6b6b;
  box-shadow: 0 8px 25px rgba(0,0,0,0.7);
}

.big-btn {
  background: #ff595e;
  border: 2px solid #ffb703;
  color: white;
  font-size: 1.5rem;
  padding: 15px 40px;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.big-btn:hover {
  background: #ff6b6b;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

/* --- STATUS TEXT --- */
.status-text {
  margin-top: 20px;
  font-size: 1.1rem;
  color: #f0f0f0;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  body {
    /* Keep centering */
    flex-direction: column;
    align-items: center;  /* center horizontally */
    justify-content: center;  /* center vertically */
    padding: 20px;
  }

  .container {
    padding: 30px 20px;
    width: 95%;
    max-width: 400px; /* optional smaller max width for mobile */
    margin: 0; /* remove extra top/bottom margin */
    font-size: 0.9rem;
  }

  .login-container {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }
}
/* Even smaller devices */
@media (max-width: 480px) {
  .image-container .word { font-size: 1.6rem; }
  .record-btn { width: 170px; height: 170px; }
  .big-btn { font-size: 1rem; padding: 8px 20px; }
}
