/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  padding: 0;
  height: 100vh;
  background: linear-gradient(to bottom, #fffbe6, #f0f0f0);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Splash screen */
#splash {
  position: fixed;
  top:0; left:0;
  width:100vw;
  height:100vh;
  background: linear-gradient(to bottom, #ffebf0, #ffe6c2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

#splash h1 {
  font-size: 3rem;
  color: #ff6f91;
  margin-bottom: 10px;
}

#splash p {
  color: #333;
  margin-bottom: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ffcc80;
  border-top: 6px solid #ff6f91;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

#game { display: none; }

#workspace {
  position: relative;
  margin-top: 20px;
  width: 500px;
  height: 400px;
  background-color: #e0f7fa;
  border: 5px solid #b0bec5;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

#workspace h3 {
  text-align: center;
  margin: 0;
  padding: 5px 0;
  font-size: 1.5rem;
  color: #333;
}

.word-tile {
  position: absolute;
  background-color: #fff;
  color: #333;
  border: 2px solid #555;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: grab;
  user-select: none;
  font-size: 14px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.word-tile:active { transform: scale(1.1); }

#controls { margin-top: 15px; }

button {
  margin: 0 5px 5px 0;
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  background-color: #ffcc80;
  color: #333;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

button:hover { background-color: #ffa726; }

#saved-poem {
  margin-top: 10px;
  width: 500px;
  height: 150px;
  resize: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  padding: 10px;
}