/* styles.css */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #fdfbf2;
  flex-direction: column;
}

.title {
  margin-bottom: 100px;
  font-size: 64px;
  font-weight: regular;
  font-family: Arial, Helvetica, sans-serif;
}

.word-hearts-container {
  flex-direction: row;
}

.timer {
  margin-top: 100px;
  font-size: 24px;
  font-weight: regular;
  font-style: italic;
  font-family: Arial, Helvetica, sans-serif;
}

.word-hearts-container {
  display: flex;
  flex-direction: row; /* Arrange child divs (diamond and words) left to right */
  justify-content: center; /* Center the content horizontally */
  align-items: center; /* Center the content vertically */
  gap: 20px; /* Add some space between the diamond and words divs */
}

#words {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 100px;
  font-size: 24px;
  font-family: Arial, Helvetica, sans-serif;
  align-items: left;
}

.correct {
  color: green;
}

.incorrect {
  color: red;
}

.word input {
  margin-left: 10px; /* Add some space between the number and the input field */
}

.diamond {
  display: flex;
  flex-wrap: wrap;
  width: 200px;
  height: 200px;
  position: relative;
  border-radius: 10px;
  transform: rotate(45deg);
  box-shadow: 3px 3px 0px 7px rgba(0, 0, 0, 1);
}

.lettersquare {
  width: 100px;
  height: 100px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
}

.lettersquare input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  color: rgb(0, 0, 0);
  text-align: center;
  font-size: 48px;
  font-style: italic;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  transform: rotate(-45deg);
}

.lettersquare input:focus {
  outline: none;
}

.square {
  width: 100px;
  height: 100px;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fcf3cd;
}

.square input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  color: rgb(0, 0, 0);
  text-align: center;
  font-size: 48px;
  font-family: inherit;
  transform: rotate(-45deg);
  font-family: Arial, Helvetica, sans-serif;
  font-style: italic;
  cursor: pointer;
}

.square input:focus {
  outline: none;
}

/* Positioning the squares within the diamond */
.right {
  top: 0;
  left: 50%;
  border-radius: 0 10px 0 0;
  outline: 2px solid #000;
}

.bottom {
  top: 50%;
  right: 0;
  border-radius: 0 0 10px 0;
  outline: 2px solid #000;
}

.top {
  bottom: 50%;
  left: 0;
  border-radius: 10px 0 0 0;
  outline: 2px solid #000;
}

.left {
  bottom: 0;
  right: 50%;
  border-radius: 0 0 0 10px;
  outline: 2px solid #000;
}

.letter-1 {
  bottom: 50%;
  left: 0;
  transform: translate(-100%, 0%);
}

.letter-2 {
  bottom: 50%;
  left: 0;
  transform: translate(0%, -100%);
}

.letter-3 {
  bottom: 0;
  right: 50%;
  transform: translate(-100%, 0%);
}

.letter-4 {
  top: 0;
  left: 50%;
  transform: translate(0%, -100%);
}

/* Blurred background effect */
.blurred {
  filter: blur(10px);
  pointer-events: none;
}

/* Modal styling */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  outline: 1px solid #d6d6d6;
  z-index: 1000;
  text-align: center;
  border-radius: 10px;
  /* font-weight: bold; */
  font-family: Arial, Helvetica, sans-serif;
}

/* Modal button */
.modal button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #ff6f61;
  color: white;
}

/* Hide the modal */
.hidden {
  display: none;
}
