:root {
  /* Colors */
  --green-primary: #76cb8f;
  --winner-green: #7bf659;
  --red-primary: #db5461;
  --trophy-gold: #ffd700;
  --yellow-primary: #ff9b42;
  --purple-primary: #9c27b0;
  /* Drop Shadows */
  --default-shadow: -1px 10px 5px -3px rgba(0, 0, 0, 0.53);
}

/* Main Body Styles */
body {
  background-color: var(--green-primary);
  font-family: "Open Sans", sans-serif;
}

.wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

h1,
h2 {
  text-align: center;
  font-family: "Love Ya Like A Sister", cursive;
  letter-spacing: 3px;
  margin-bottom: 10px; /* Platz zwischen der Überschrift und dem Wort */
}

.title {
  border-bottom: 2px solid black;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 10px;
  font-size: 1.5rem;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Gameboard and input */
.gameboard {
  width: 640px;
  height: 640px;
  background-image: url(../img/bg.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border-radius: 15px 30px;
  -webkit-box-shadow: var(--default-shadow);
  -moz-box-shadow:var(--default-shadow);
  box-shadow: var(--default-shadow);
}

input {
  text-align: center;
  padding: 10px;
  font-size: 1rem;
  border: none;
  border: 2px solid black;
  opacity: 0.8;
}

input:focus {
  outline: none;
  opacity: 1;
}

#guess-btn:focus {
  outline: none;
}

#guess-btn {
  font-size: 1rem;
  padding: 10px;
  border: none;
  background-color: var(--green-primary);
  margin-left: -5px;
  border-top: 2px solid black;
  border-bottom: 2px solid black;
  border-right: 2px solid black;
  cursor: pointer;
}

/* River Tiles */
#river {
  display: flex;
  flex-direction: row;
}

#waterfall {
  margin-top: 100px;
  margin-left: 100px;
  display: none;
}

.water {
  height: 50px;
  width: 25px;
}

.river {
  margin: 120px;
}

.water-block {
  margin-top: 130px;
  display: flex;
}

#player {
  position: absolute;
  margin-top: 135px;
  margin-left: 0;
  width: 100px;
  height: 100px;
}

.img {
  margin: 0;
}

/* Word Styling/Player Box */
.word-wrap {
  flex-direction: column;
  justify-content: space-evenly;
  border-radius: 8px;
  text-align: center;
  align-items: center;
  margin: 40px;
  width: 300px;
  height: 600px;
  border-radius: 15px;
  padding: 10px;
  opacity: 0.7;
  display: flex;
  background-color: #eee;
}

.mystery-word {
  display: block;
    word-wrap: break-word; /* Lässt lange Wörter umbrechen */
  white-space: normal; /* Ermöglicht den Umbruch von Text */
  flex-direction: row;
  align-items: center;
  margin: -20px;
}

i {
  padding: 5px;
}

/* Hint Box */
#show-hint {
  padding: 10px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: var(--green-primary);
  font-size: 1rem;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  -webkit-box-shadow: var(--default-shadow);
  -moz-box-shadow: var(--default-shadow);
  box-shadow: var(--default-shadow);
}

.hint {
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  text-transform: lowercase;
}

#hint {
  border: 2px solid black;
  margin: 4px;
  padding: 2px;
  background-color: rgb(255, 255, 255);
  display: none;
  -webkit-box-shadow: var(--default-shadow);
  -moz-box-shadow: var(--default-shadow);
  box-shadow: var(--default-shadow);
}

#playBtn,
#campBtn {
  background: var(--green-primary);
  border-radius: 7px;
  box-shadow: 0 1px #444444;
  border: 2px black solid;
  padding: 10px 35px;
  margin-right: 10px;
  color: #ffffff;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  border-radius: 8px 16px;
}

#playBtn:focus {
  outline: none;
  box-shadow: none;
}

#playBtn:active {
  position: relative;
  top: 1px;
}

#notification-lost {
  display: none;
  font-size: 1.5rem;
  border-radius: 12px;
  background: var(--red-primary);
  color: white;
  width: 200px;
  text-align: center;
  margin-left: 220px;
  margin-top: 100px;
  position: absolute;
}

#notification-winner {
  display: none;
  font-size: 1.5rem;
  border-radius: 12px;
  background: var(--winner-green);
  width: 200px;
  text-align: center;
  margin-left: 220px;
  margin-top: 100px;
  position: absolute;
}

#notification-double-letter {
  display: none;
  font-size: 1.5rem;
  border-radius: 12px;
  background: var(--trophy-gold);
  color: black;
  width: 200px;
  text-align: center;
  margin-left: 220px;
  margin-top: 100px;
  position: absolute;
}

.fa-heart {
  color: red;
}

.input-container {
  padding-bottom: 200px;
  margin-bottom: 200px;
  margin: 10px;
  display: flex;
  flex-direction: row;
  display: none;
  position: absolute;
}

#campaign-container {
  padding-bottom: 200px;
  margin-bottom: 200px;
  margin: 10px;
  display: flex;
  flex-direction: row;
  display: none;
  position: absolute;
}

#normal-mode,
#arcade-mode {
  background-color: transparent;
  border: 2px white solid;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  letter-spacing: 1.2px;
  display: flex;
  margin-bottom: 200px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0.6;
  margin: 4px;
}

#normal-mode:hover,
#arcade-mode:hover {
  opacity: 1;
}

/* Trophy Styles */
#trophyBox {
  display: none;
  align-items: center;
  border-radius: 50px;
  margin-left: 100px;
  text-align: center;
  width: 400px;
  background: rgba(39, 31, 31, 0.658);
  color: white;
}

#trophy-txt {
  text-align: center;
  padding: 10px;
  font-size: 1.7rem;
}

#modeBtn {
  padding: 10px;
  cursor: pointer;
}

.trophy-holder {
  display: flex;
  flex-direction: column;
}

.fa-trophy {
  color: var(--trophy-gold);
  padding: 20px;
}

#tr1,
#tr2,
#tr3,
#tr4,
#tr5 {
  cursor: pointer;
  filter: grayscale(100%);
  transition: ease-in-out 1s;
}

#tr1 .trophyDesc,
#tr2 .trophyDesc2,
#tr3 .trophyDesc3,
#tr4 .trophyDesc4,
#tr5 .trophyDesc5 {
  visibility: hidden;
  width: 120px;
  background-color: rgba(0, 0, 0, 0.678);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 10px 0;
  margin-left: 20px;
  /* Position for the tooltip */
  position: absolute;
  z-index: 1;
}

#tr1:hover .trophyDesc,
#tr2:hover .trophyDesc2,
#tr3:hover .trophyDesc3,
#tr4:hover .trophyDesc4,
#tr5:hover .trophyDesc5 {
  visibility: visible;
}

#gamemode {
  display: flex;
  justify-content: space-evenly;
  width: 260px;
  position: absolute;
  padding: 10px;
  height: 130px;
  margin: 100px;
  margin-left: 200px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.575);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.12),
    0 4px 4px rgba(0, 0, 0, 0.12), 0 8px 8px rgba(0, 0, 0, 0.12),
    0 16px 16px rgba(0, 0, 0, 0.12);
}

/*Style for color chooser */
#red {
  color: var(--red-primary);
  border: 1px solid var(--red-primary);
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
}

#red:focus {
  background-color: var(--red-primary);
  color: black;
  border: 1px solid var(--red-primary);
}

#yellow {
  color: var(--yellow-primary);
  border: 1px solid var(--yellow-primary);
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
}

#yellow:focus {
  background-color: var(--yellow-primary);
  color: black;
  border: 1px solid var(--yellow-primary);
}

#purple {
  color: var(--purple-primary);
  border: 1px solid var(--purple-primary);
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
}

#purple:focus {
  background-color: var(--purple-primary);
  color: black;
  border: 1px solid var(--purple-primary);
}