@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;400;600;700&family=Purple+Purse&display=swap');

body{
    background: linear-gradient(135deg, #111c2e, #2a3a66);
    font-family: 'Poppins';
}

h1{
    color: #fff;
    text-align: center;
    font-family: 'Purple Purse', cursive;
    font-size: 150px;
}

h4{
    font-size: 40px;
    text-align: center;
    font-family: 'Purple Purse', cursive;
    color: #fff;
    position: relative;
    top: -30px;
}

h6 {
    font-size: 20px;
    text-align: center;
    font-family: 'Purple Purse', cursive;
    color: #ccc;
    position: relative;
    top: -30px;
}

#start {
    display: block;
    margin: 1rem auto;
    padding: 1rem 3rem;         
    font-size: 1.5rem;          
    border: none;
    border-radius: 2rem;        
    background-color: #9b9ea3;
    color: black;
    cursor: pointer;
    position: relative;
    top: -50px;                
    transition: all 0.2s ease;  
}

#start:hover {
    background-color: #b1b3b7;
    transform: scale(1.05);
}

.instructions-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
  gap: 2rem;
}

.instructions-left {
  width: 50%;
  text-align: left;
}

.instructions-right {
  width: 40%;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 1rem;
}

.instructions-right select,
.instructions-right button {
  width: 100%;
  font-size: 1.1rem;
  padding: 0.6rem;
  margin-top: 0.5rem;
  border-radius: 0.5rem;
  border: none;
}

#instructions h2, #instructions p {
  text-align: left;
  color: #fff;
}

#begin:hover {
    background-color: #b1b3b7;
    transform: scale(1.05);
}

#game {
  background: linear-gradient(135deg, #111c2e, #2a3a66);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 500px;
  margin: 2rem auto;
  box-shadow: 0 0 20px rgba(42, 58, 102, 0.7);
}

#scrambledWord {
  font-family: 'Purple Purse', cursive;
  font-size: 4rem;
  margin-bottom: 1rem;
  user-select: none;
  letter-spacing: 0.15em;
}

#timer {
  font-weight: 700;
  font-size: 2rem;
  color: #f39c12; /* bright orange */
}

#userInput {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 1.25rem;
  border-radius: 1rem;
  border: none;
  width: 80%;
  max-width: 350px;
  text-align: center;
  outline: none;
  box-shadow: inset 0 0 5px #2a3a66;
  transition: box-shadow 0.3s ease;
}

#userInput:focus {
  box-shadow: inset 0 0 8px #6b7dd9;
}

#nextWord {
  margin-top: 2rem;
  padding: 0.75rem 2.5rem;
  font-size: 1.25rem;
  border-radius: 2rem;
  border: none;
  background: linear-gradient(90deg, #4a69bd, #6b7dd9);
  color: white;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

#nextWord:disabled {
  background: #8a8f9a;
  cursor: not-allowed;
}

#nextWord:not(:disabled):hover {
  background: linear-gradient(90deg, #6b7dd9, #4a69bd);
  transform: scale(1.05);
}

#scorecard {
  background: linear-gradient(135deg, #111c2e, #2a3a66);
  padding: 2rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 20px rgba(42, 58, 102, 0.7);
  margin: auto;
}
#scorecard button {
  padding: 1rem 3rem;
  font-size: 1.2rem;
  border-radius: 2rem;
  border: none;
  background-color: #9b9ea3;
  color: black;
  cursor: pointer;
  transition: all 0.2s ease;
}
#scorecard button:hover {
  background-color: #b1b3b7;
  transform: scale(1.05);
}

