/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styling */
body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
  background-color: white;
  overflow-x: hidden;
}

/* Container for the input box and word display */
.container {
  text-align: center;
  width: 100%;
  margin-bottom: 100px; /* Space for separation */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 50vh; /* Center the content in the top half */
}

/* The input box */
#verbInput {
  padding: 10px;
  font-size: 1.5rem;
  width: 300px;
  border: 1px solid rgb(214, 214, 214);
  border-radius: 5px;
  margin-bottom: 20px;
}

/* Styling for the word and suffix */
.word {
  font-size: 2rem;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
  padding: 0px;
  border: none;
  outline: none;
  position: relative;
  background: none;
}

.suffix {
  position: absolute;
  top: -4px;
  left: 100%;
  white-space: nowrap;
  transform: translateY(10%);
  transition: transform 1s ease-out, opacity 1s ease-out;
  color: inherit;
}

.falling {
  animation: fallAndSpin 1s forwards;
}

@keyframes fallAndSpin {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: translateY(250px) rotate(180deg);
    opacity: 0.7;
  }
  100% {
    transform: translateY(500px) rotate(360deg);
    opacity: 0;
  }
}

/* The ship image container */
.ship-container {
  text-align: center;
  position: relative;
  visibility: hidden; /* Hide the ship initially */
  margin-top: 100px;
  opacity: 0; /* Hide the ship initially */
  transition: opacity 1s ease-out;
}

#shipImage {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 0 auto;
}

/* Scissors cursor */
#scissor {
  position: absolute;
  pointer-events: none;
  width: 50px;
  height: 50px;
  transition: transform 0.1s ease;
}
