@font-face {
  font-family: 'Okesip';
  src: url('fonts/Okesip.ttf') format('truetype');
}

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

html, body {
  word-break: break-word;
  background: url('img/moon.svg') no-repeat top center;
  background-size: cover;
  font-family: 'Okesip', sans-serif;
  font-size: 20px;
  cursor: url('img/sheep-cursor.png'), auto;
  line-height: 1.6;
  overflow-x: hidden;
}

a, .clickable-sheep {
  cursor: url('img/sheep-clicker.png'), pointer;
}

.prairie {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 300px;
  background: url('img/prairie.svg') repeat-x;
  background-size: cover;
  z-index: 5;
}

header {
  width: 100%;
  height: 150px;
  background: rgba(255, 255, 255, 0.8);
  background: url('img/clouds.svg') repeat-x;
  background-size: auto 150px;
  z-index: 1000;
  position: fixed;
  top: 0;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  justify-content: space-between;
}

.menu-icon {
  display: none;
  color: #fff;
  font-size: 2em;
  cursor: pointer;
}

.shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-5px) rotate(-5deg); }
  50% { transform: translateX(5px) rotate(5deg); }
  75% { transform: translateX(-5px) rotate(-5deg); }
}

header nav {
  width: 100%;
  position: relative;
  z-index: 1001;
}

header nav .sheep-container {
  display: none;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: auto auto;
}

header nav ul li {
  text-align: center;
  transform-origin: bottom center;
  background-color: #fff;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 1.2em;
  font-weight: bold;
  font-family: 'Okesip', sans-serif;
}

header nav ul li.item1 {
  transform: rotate(-10deg);
}

header nav ul li.item2 {
  transform: rotate(5deg);
}

header nav ul li.item3 {
  transform: rotate(-15deg);
}

header nav ul li.item4 {
  transform: rotate(10deg);
}

header nav ul li a {
  text-decoration: none;
  color: #333;
}

header .buy-button {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border: 2px solid #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Okesip', sans-serif;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  text-align: center;
  height: auto;
  line-height: 1.2;
  margin-right: 10px;
}

header .buy-button:hover {
  background-color: #444;
}

main {
  padding-top: 160px;
  padding-bottom: 250px;
  z-index: 0;
}

section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  padding-left: 10%;
  padding-right: 10%;
  position: relative;
  z-index: 0;
}

.intro-section {
  background: transparent;
  padding: 40px 20px;
}

.intro-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.intro-image-container, .intro-text-container {
  flex: 1;
  min-width: 300px;
}

.intro-image {
  width: 300px;
  height: auto;
  animation: float 10s infinite alternate ease-in-out;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0); }
}

.intro-text-container {
  text-align: left;
  color: white;
}

.intro-text-container h2, .intro-text-container p {
  color: white;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;
}

.intro-text-container h2 {
  font-size: 3em;
  margin-bottom: 20px;
}

.intro-text-container p {
  font-size: 1.2em;
}

/* Section Content */
.section-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
  transition: opacity 0.5s, transform 1s ease-in-out;
  width: 100%;
}

.section-content:nth-child(odd) {
  flex-direction: row;
}

.section-content:nth-child(even) {
  flex-direction: row;
}

.section-image {
  max-width: 300px;
  max-height: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.section-text {
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 10px;
  color: white;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;
  flex: 1;
  max-width: 800px;
  text-align: left;
  line-height: 1.6;
  font-family: 'Okesip', sans-serif;
  margin: 20px;
}

.section-text h2 {
  color: white;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;
  text-align: center;
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 30px;
  font-family: 'Okesip', sans-serif;
}

.section-text h3 {
  color: white;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;
  font-size: 2em;
  font-family: 'Okesip', sans-serif;
}

.section-text p, .section-text li {
  color: white;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;
  margin-bottom: 25px;
}

.section-text p, .section-text ul {
  position: relative;
  transition: opacity 0.5s;
}

.section-text .inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.section-text .inline .button {
  padding: 10px 20px;
  border: 2px solid #333;
  border-radius: 10px;
  background-color: #333;
  color: #fff;
  font-family: 'Okesip', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

ul {
  list-style-type: disc;
  margin-left: 40px;
  font-size: 1.1em;
  color: #333;
}

ul li {
  margin-bottom: 15px;
  line-height: 1.6;
}

ul li strong {
  color: white;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.download-button {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
  background-color: #5a67d8;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-family: 'Okesip', sans-serif;
}

.download-button:hover {
  background-color: #4c51bf;
}

.contract-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 50px 20px;
}

.contract-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.contract-info h2 {
  color: white;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;
  font-size: 2.5em;
  font-weight: bold;
  margin-right: 10px;
}

.contract-info .contract-address-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #333;
  border-radius: 10px;
  background-color: #f9f9f9;
  padding: 10px;
  font-size: 1.2em;
  font-family: 'Okesip', sans-serif;
  width: 100%;
  max-width: 800px;
}

.contract-info .contract-address {
  flex: 1;
  word-break: break-all;
}

.contract-info button {
  padding: 10px 20px;
  border: 2px solid #333;
  border-radius: 10px;
  background-color: #333;
  color: #fff;
  font-size: 1.2em;
  font-family: 'Okesip', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contract-info button:hover {
  background-color: #444;
}

@keyframes sway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(3deg); }
}

footer {
  width: 100%;
  height: 200px;
  background: url('img/fence.svg') repeat-x;
  background-size: auto 200px;
  background-position: bottom;
  text-align: center;
  z-index: 1000;
  position: fixed;
  bottom: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

footer .buy-button {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border: 2px solid #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Okesip', sans-serif;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  margin-bottom: 10px;
}

footer .buy-button:hover {
  background-color: #444;
}

.footer-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}

.social-icon img {
  transform-origin: bottom center;
  background-color: #fff;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 5px;
  font-size: 1.2em;
  font-weight: bold;
  font-family: 'Okesip', sans-serif;
  width: 50px;
  height: 50px;
}

.footer-sign {
  font-size: 1em;
  color: #fff;
  z-index: 1003;
}

@media (max-width: 600px) {
  .footer-sign {
    font-size: 0.8em;
  }
}

.grass {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: url('img/grass.svg') repeat-x;
  background-size: auto 40px;
  z-index: 1002;
}

.grass::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 40px;
  background: url('img/grass.svg') repeat-x;
  background-size: auto 40px;
  opacity: 0.8;
  z-index: 1003;
}

.sheep-pop {
  position: fixed;
  display: none;
  z-index: 1003;
  transform-origin: 50% 50%;
}

.sheep-pop img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  transform-origin: 50% 50%;
}

.cloud {
  position: absolute;
  width: 100px;
  height: auto;
  opacity: 0.8;
  animation: moveClouds linear infinite;
}

@keyframes moveClouds {
  0% {
    transform: translateX(-20vw);
  }
  100% {
    transform: translateX(100vw);
  }
}

@media (max-width: 1200px) {
  .menu-icon {
    display: block;
  }

  header nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 999;
    transition: all 0.3s ease-in-out;
  }

  header.nav-open nav {
    display: block;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  header.nav-open .sheep-container {
    display: none;
  }

  header nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    height: auto;
    padding-left: 20px;
  }

  header nav ul li {
    margin: 0;
  }

  .close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    cursor: pointer;
    z-index: 1004;
  }

  header.nav-open .close-menu {
    display: block;
  }
}

@media (min-width: 1201px) {
  .close-menu {
    display: none;
  }
  .sheep-icon {
    display: none;
  }
}

@media (max-width: 800px) {
  section {
    max-width: 100%;
    padding: 20px;
    padding-left: 10%;
    padding-right: 10%;
  }

  .section-content {
    flex-direction: column;
  }

  .intro-content {
    flex-direction: column;
  }

  .intro-text-container {
    text-align: center;
  }

  .section-text {
    text-align: center;
  }

  .section-image {
    width: 100%;
    height: auto;
  }

  /* Added styles for image above text on mobile */
  .section-content {
    flex-direction: column !important;
  }

  .section-image {
    order: -1;
  }

  .section-text h2 {
    font-size: 1.8em;
  }

  .section-text h3 {
    font-size: 1.5em;
  }

  /* Move the boat image up on mobile */
  .boat-image {
    margin-bottom: 150px;
  }
}

@media (max-width: 600px) {
  .section-text h2 {
    font-size: 1.5em;
  }

  .section-text h3 {
    font-size: 1.2em;
  }

  /* Move the boat image up further on very small devices */
  .boat-image {
    margin-bottom: 150px;
  }
}

.clickable-sheep {
  font-weight: bold;
  cursor: url('img/sheep-clicker.png'), pointer;
  position: relative;
  display: inline-block;
}

.clickable-sheep:hover {
  animation: vibrate 0.3s linear;
}

@keyframes vibrate {
  0% { transform: translateX(0); }
  20% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

@keyframes sheepPopInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes sheepPopOutLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes sheepPopInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes sheepPopOutRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes sheepPopInTop {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes sheepPopOutTop {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100%);
  }
}

@keyframes sheepPopInBottom {
  from {
    transform: translateY(100%);
  }
  to { transform: translateY(0); }
}

@keyframes sheepPopOutBottom {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

.bubble {
  position: absolute;
  background-color: white;
  border: 2px solid #333;
  border-radius: 10px;
  padding: 10px;
  max-width: 150px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1004;
  font-family: 'Okesip', sans-serif;
  font-size: 1em;
  display: none;
  animation: fadeInOut 3s ease-in-out forwards;
}

.bubble::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
  border-top-color: white;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

footer .copyright {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 1em;
  color: #333;
  background: #fff;
  padding: 5px;
}

.flying-sheep {
  position: absolute;
  width: 50px;
  height: 50px;
  z-index: 1004;
  animation: floatSheep 10s linear infinite;
}

@keyframes floatSheep {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  50% {
    transform: translateY(-100px) translateX(100px) rotate(20deg);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
}

::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar-track {
  background: #f4f4f4;
  border-radius: 8px;
}

.boat-image {
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: 1001;
  animation: moveBoat 10s linear infinite;
  overflow: hidden;
}

@keyframes moveBoat {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
