:root {
  --word-letter-size: 2em;
  --word-letter-wrapper-size: 1em;
  --button-border-radius: 15px;
  --bg-light: rgb(236, 255, 253);
  --bg-dark: rgb(0, 7, 2);
  --fg-color: rgb(236, 255, 254);
  --button-green: rgba(0, 216, 65, 0.3);
  --alphabet-size: 2rem;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
*,
*::before,
*::after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

body {
  background-color: var(--bg-dark);
  color: var(--fg-color);
  margin: 0;
  padding: 0;
}

#word {
  min-height: 4em;
  margin: 1em 1em;
}

#letters-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: var(--word-letter-size);
  font-weight: 800;
}

.letter-wrapper {
  border-bottom: 4px solid #abdbaa;
  min-width: var(--word-letter-wrapper-size);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 2ch;
}

section#buttons {
  position: absolute;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 50%;
  margin-left: 10px;
}

#buttons>button {
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--fg-color);
  background-color: var(--button-green);
  font-size: 2em;
  border-radius: var(--button-border-radius);
  padding: 2px 15px;
}

#buttons>button:hover {
  box-shadow: 0 0 15px rgba(0, 216, 65, 0.3);
}

#letters {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 5rem;
  text-align: justify;
}

#letters .alphabet {
  font-size: var(--alphabet-size);
}

.alphabet-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(var(--alphabet-size) * 2);
  height: 3ch;
  margin-bottom: 2rem;
  border-radius: 12px;
  cursor: pointer;
}

.alphabet-wrapper:hover {
  background-color: rgba(0, 216, 65, 0.3);
}

#top-modal {
  font-size: 2rem;
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  border: 1px solid var(--fg-color);
  background-color: rgba(0, 100, 30, 0.9);
  border-radius: var(--button-border-radius);
  visibility: hidden;
  padding: 5px 15px;
  box-shadow: 0 0 5px var(--bg-dark);
}
#dictionary-modal {
  visibility: hidden;
  position: absolute;
  top: 0;
  background-color: rgba(0, 100, 30, 0.9);
  width: 100%;
  font-size: 1.5rem;
}
#bottom-modal {
  position: absolute;
  bottom: 70px;
  left: 0;
  width: 100%;
  visibility: hidden;
  background-color: rgba(0, 216, 65, 0.3);
  border-radius: var(--button-border-radius);
  padding: 5px;
  display: flex;
  justify-content: center;
}

input {
  border-radius: var(--button-border-radius);
  width: 100%;
  font-size: 2rem;
  border: 2px solid #00da0b;
}

img {
  border-radius: var(--button-border-radius);
  height: 200px;
}

#image-wrapper {
  position: absolute;
  bottom: 7px;
  right: 15px;
  float: right;
}