body {
  font-family: cursive;
  text-align: center;
  margin-top: 50px;
}

.fon::before {
  content: "";
  background-image: url('/picture/fon.jpg');
  opacity: 0.4;
  position: absolute;
  z-index: -1;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* #username {
  margin-top: 10px; 
  padding: 10px; 
  font-size: 1em;
} */

.custom-field {
  font-size: 14px;
  position: relative;
}

.custom-field input {
  border: none;
  -webkit-appearance: none;
  -ms-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #57af7d;
  color: #f0f8ff;
  padding: 12px;
  border-radius: 3px;
  width: 250px;
  font-size: 14px;
}

.custom-field .placeholder {
  position: absolute;
  left: 12px;
  bottom: 50%;
  top: 22px;  
  transform: translateY(-50%);
  width: calc(100% - 24px);  
  color: #aaa;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#advice {
  font-size: 1.3em;
  margin: 20px auto;
  color: #1d5535;
  transition: opacity 0.5s ease;
}

button {
  padding: 10px 20px;
  font-size: 1em;
  background-color: #1d5535;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

button:hover {
  background-color: #38b76d;
  color: #1d5535;
}

img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-top: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease;
}

img:hover {
  transform: scale(1.1);
}

#counter, #history {
  margin: 20px auto;
  font-size: 1.2em;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin: 5px 0;
  color: #2e8b57;
}

#tgk {
  margin-top: 30px;
  background-color: #1d5535;
  color: white;
  padding: 0.5em 1em;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 30px;
}

#tgk:hover {
  background-color: #38b76d;
  cursor: pointer;
  color: #1d5535
}

#tgk:active {
  box-shadow: none;
  top: 5px;
}