@font-face {
      font-family: "EB Garamond";
      src: url("fonts/EBGaramond.otf") format("opentype");
      font-weight: normal;
      font-style: normal;
    }
@font-face {
      font-family: "League Script";
      src: url("fonts/LeagueScript.otf") format("opentype");
      font-weight: normal;
      font-style: normal;
    }

body {
  margin: 0;
  font-family: 'Georgia', serif;
  background: #d5dcdf;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  text-align: center;
  color: #ed6320;
  font-family: 'League Script';
  font-size: 65px
}

h3{
  margin-top: 40px;
  color: #ed6320;
  font-family: "EB Garamond", serif;
  text-align: center;
  font-size: 20;
  width: 100%;
}

.meadow {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;

  /* layered grass + sky */
  background:
    linear-gradient(to top, #4caf50 30%, transparent 30%),
    linear-gradient(45deg, #3ea634 25%, #4caf50 25%, #4caf50 50%, #3ea634 50%, #3ea634 75%, #4caf50 75%, #4caf50 100%);
  background-size: 20px 20px, 40px 40px; 
}

.grass-blade {
  position: absolute;
  width: 2px;
  height: 20px;
  background: #2e7d32;
  bottom: 0;
  transform: rotate(calc(-15deg + 30deg * var(--rand)));
}

.flower {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stem {
  width: 4px;
  height: 50px;
  background: #2f5229; /* dark green */
  position: relative;
}

/* leaves */
.leaf {
  width: 16px;
  height: 8px;
  background: #3f7f43;
  border-radius: 50% 50% 50% 50%;
  position: absolute;
  top: 40%;
}

.leaf.left {
  left: -14px;
  transform: rotate(-25deg);
}

.leaf.right {
  right: -14px;
  transform: rotate(25deg);
}

.bloom {
  position: absolute;
  width: 24px;
  height: 24px;
  top: -20px; 
  left: -6px;     
}

.flower::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  position: absolute;
}

/*flower shapes*/

.bloom.flower-round {
  background: var(--flower-color);
  border: 2px solid #000;
  border-radius: 50%;
}

.bloom.flower-daisy {
  background: white;
  border-radius: 50%;
  border: 2px solid #000;
  width: 24px;
  height: 24px;
  box-shadow:
    -12px 0 var(--flower-color),
     12px 0 var(--flower-color),
      0 -12px var(--flower-color),
      0  12px var(--flower-color),
    -8px -8px var(--flower-color),
     8px -8px var(--flower-color),
    -8px  8px var(--flower-color),
     8px  8px var(--flower-color);
}

.bloom.flower-daisy::before,
.bloom.flower-daisy::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--flower-color);
  top: -6px;
  left: -6px;
  z-index: -1;
}

.bloom.flower-tulip {
  background: var(--flower-color);
  border: 2px solid #000;
  border-bottom-left-radius: 50% 70%;
  border-bottom-right-radius: 50% 70%;
}

.flower:hover::before {
  background: yellow;
}

.button-group {
  display: flex;
  flex-direction: row; 
  justify-content: center; 
  gap: 15px; 
  width: 100%;
}

#entryContainer{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  width: 90%;
  max-width: 800px;
}

#entryText {
  width: 100%; 
  max-width: 600px;
  height: 200px;
  font-size: 18px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #888;
  resize: vertical;
}

#saveBtn, #deleteBtn, #backBtn {
  font-size: 16px;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  color: white;
  flex-grow: 1;
}

#saveBtn{
  background-color: #86915d;
}

#deleteBtn{
  background-color: #e65855;
}

#backBtn{
  background-color: #224653;
}

