@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;700&display=swap');

body {
  display: grid;
  justify-content: center;
  background: #f0f0f0;
}

h1, p, div, input, button, img, select, label, a {
  font-family: 'Quicksand', sans-serif;
  justify-self: center;
}

p, input, button, img, select, label, a {
  font-size: medium;
}

input, input:hover, input:active, input:focus {
  height: 30px;
  border: dashed #dddddd 1px;
  border-radius: 5px;
  margin: 0;
  padding: 5px;
}

button {
  width: fit-content;
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  padding: 15px;
  box-shadow: 0 0.75rem 1rem 0 rgba(0, 0, 0, 0.1);
  transition: 0.2s;
}

button:hover {
  background: #d8d8d8;
  box-shadow: -15px -15px 30px 0 #fff, 15px 15px 30px 0 #1d0dca17;
  box-shadow: inset 0 0 0 1px rgba(225, 225, 225, 0.1),
    0 0 4rem 1rem rgba(225, 225, 225, 0.1y);
}

select {
  height: 30px;
  border: dashed #dddddd 1px;
  border-radius: 5px;
}

svg {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

.gallow-component {
  display: none;
}

.footer {
  width: 100%;
  display: grid;
  align-items: center;
}

.display {
  width: calc(45vw - 30px); /* Adjust the width as needed */
  padding: 35px;
  aspect-ratio: 1 / 0.5;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  border: dashed #c5c5c5 1px;
  margin-top: 15px;
}

.gallow {
  display: grid;
  align-items: center;
  border: dashed #dddddd 1px;
  border-radius: 5px;
  height: 80%;
}

.controls {
  width: 45vw; /* Adjust the width as needed */
  border-radius: 15px;
  border: dashed #c5c5c5 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-top: 20px;
}

.buttons {
  width: 35%;
  margin: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}

.buttons button {
  margin-top: 5px; /* Adjust the margin as needed */
}

.game-config {
  width: 25%;
  margin: 10px 10px 0 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.game-config select,
.buttons button {
  margin-left: 5px;
  margin-bottom: 10px;
}

.alert-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  overflow: hidden;
}

.alert {
  position: relative;
  margin-top: 5px;
  border-radius: 6px;
  background-color: #606437;
  color: #e5ec8a;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.5s, transform 0.5s, margin 0.5s;
}

.alert.show {
  opacity: 1;
  transform: translateY(0);
}

.alert_icon {
  height: 22px;
  width: 22px;
  margin-right: 10px;
}

.alert_body {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 15px;
  margin-top: 5px;
}

.alert_animation {
  position: absolute;
  left: 4px;
  top: 4px; /* Changed from bottom */
  width: calc(100% - 8px);
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(to right, #6d6c3c, #ecea8a);
  animation: alert_anim 2.5s 0.3s linear forwards;
}

@keyframes alert_anim {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

#hidden-word {
  font-weight: bold;
  text-transform: capitalize;
  letter-spacing: 4px;
  word-spacing: 6px;
  text-align: center;
  border-top: dashed #dddddd 1px;
  padding-top: 3vh;
  margin-top: 15px;
  margin-bottom: 15px;
}
