* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  background: linear-gradient(
    to bottom,
    #87ceeb 0%,
    #b7e1f2 30%,
    #4caf50 30%,
    #45a31a 100%
  );
  min-height: 100vh;
  color: #2e7d32;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: white;
  border: 4px solid #8d6e63;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 4px 4px 0px #654321;
}
.card-farmer {
  background: #4caf50;
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.card-code {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.code-area {
  flex: 1;
  min-width: 300px;
}

.header {
  text-align: center;
  color: white;
  text-shadow: 2px 2px 0px #000;
  margin: 20px 0;
}

.btn {
  font-family: "Press Start 2P", monospace;
  background: #4caf50;
  color: white;
  border: 3px solid #2e7d32;
  padding: 15px 25px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin: 10px 5px;
  transition: all 0.2s;
}

.btn:hover {
  background: #66bb6a;
  transform: translateY(-2px);
}

.btn-orange {
  background: #ff8c00;
  border-color: #e65100;
}

.btn-orange:hover {
  background: #ff9500;
}

input,
textarea,
select {
  width: 100%;
  padding: 15px;
  border: 3px solid #8d6e63;
  border-radius: 6px;
  font-size: 12px;
  margin: 10px 0;
}

.crops {
  font-size: 24px;
  text-align: center;
  margin: 20px 0;
  animation: sway 2s ease-in-out infinite alternate;
}

.code-editor {
  width: 100%;
  font-family: "Courier New", monospace;
  font-size: 14px;
  background: #2d3748;
  color: #90ee90;
  padding: 15px;
  border-radius: 6px;
  border: 3px solid #8d6e63;
}

@keyframes sway {
  0% {
    transform: rotate(-2deg);
  }
  100% {
    transform: rotate(2deg);
  }
}

.code-area {
  background: #2d3748;
  color: #90ee90;
  padding: 15px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 14px;
  white-space: pre-wrap;
  margin: 15px 0;
}

.center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.chicken {
  position: fixed;
  width: 32px;
  height: 32px;
  background: url("../images/chicken.gif") no-repeat;
  background-size: contain;
  animation: chickenRealistic 60s ease-in-out infinite;
  z-index: 999;
}

@keyframes chickenRealistic {
  0% {
    right: -40px;
    transform: scaleX(1) translateY(0);
  }

  8% {
    right: 10%;
    transform: scaleX(1) translateY(0);
  }

  10% {
    right: 10%;
    transform: scaleX(1) translateY(2px);
  }
  11% {
    right: 10%;
    transform: scaleX(1) translateY(0);
  }
  12% {
    right: 10%;
    transform: scaleX(1) translateY(2px);
  }
  13% {
    right: 10%;
    transform: scaleX(1) translateY(0);
  }
  14% {
    right: 10%;
    transform: scaleX(1) translateY(2px);
  }
  16% {
    right: 10%;
    transform: scaleX(1) translateY(0);
  }

  28% {
    right: 35%;
    transform: scaleX(1) translateY(0);
  }

  30% {
    right: 35%;
    transform: scaleX(1) translateY(2px);
  }
  31% {
    right: 35%;
    transform: scaleX(1) translateY(0);
  }

  42% {
    right: 70%;
    transform: scaleX(1) translateY(0);
  }

  44% {
    right: 70%;
    transform: scaleX(1) translateY(0);
  }
  46% {
    right: 70%;
    transform: scaleX(-1) translateY(0);
  }

  58% {
    right: 40%;
    transform: scaleX(-1) translateY(0);
  }
  /* Another pecking session */
  60% {
    right: 40%;
    transform: scaleX(-1) translateY(2px);
  }
  61% {
    right: 40%;
    transform: scaleX(-1) translateY(0);
  }
  62% {
    right: 40%;
    transform: scaleX(-1) translateY(2px);
  }
  64% {
    right: 40%;
    transform: scaleX(-1) translateY(0);
  }

  80% {
    right: 15%;
    transform: scaleX(-1) translateY(0);
  }

  82% {
    right: 15%;
    transform: scaleX(-1) translateY(2px);
  }
  83% {
    right: 15%;
    transform: scaleX(-1) translateY(0);
  }

  100% {
    right: -40px;
    transform: scaleX(-1) translateY(0);
  }
}

.butterfly {
  position: fixed;
  width: 24px;
  height: 24px;
  background: url("../images/butterfly.gif") no-repeat center;
  background-size: contain;
  animation: butterflyFly 25s infinite;
  z-index: 1001;
}

@keyframes butterflyFly {
  0% {
    left: -30px;
    top: 20%;
    transform: scale(1) rotate(0deg);
  }
  10% {
    left: 15%;
    top: 15%;
    transform: scale(1.1) rotate(5deg);
  }
  25% {
    left: 40%;
    top: 25%;
    transform: scale(0.9) rotate(-10deg);
  }
  40% {
    left: 65%;
    top: 10%;
    transform: scale(1.2) rotate(15deg);
  }
  55% {
    left: 80%;
    top: 30%;
    transform: scale(1) rotate(-5deg);
  }
  70% {
    left: 90%;
    top: 20%;
    transform: scale(1.1) rotate(8deg);
  }
  85% {
    left: 100%;
    top: 35%;
    transform: scale(0.8) rotate(-12deg);
  }
  100% {
    left: 110%;
    top: 15%;
    transform: scale(1) rotate(0deg);
  }
}

.cloud {
  position: fixed;
  background: url("../images/cloud.gif") no-repeat center;
  background-size: contain;
  z-index: 1;
  pointer-events: none;
}

.cloud-1 {
  width: 120px;
  height: 80px;
  top: 6%;
  animation: floatCloud 30s infinite linear;
  animation-delay: 0s;
}
.cloud-2 {
  width: 90px;
  height: 60px;
  top: 23%;
  animation: floatCloud 40s infinite linear;
  animation-delay: -8s;
}
@keyframes floatCloud {
  0% {
    left: -150px;
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    left: calc(100vw + 50px);
    transform: scale(1);
  }
}
