@font-face {
  font-family: f;
  src: url("./media/VT323-Regular.ttf");
}
body {
  padding: 0;
  margin: 0;
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><text y="20" font-size="20">🧃</text></svg>'), auto;
}

::-webkit-scrollbar {
  background: transparent;
  opacity: 0;
  width: 15px;
}

::-webkit-scrollbar-thumb {
  background: skyblue;
  border-radius: 0px;
}

body, button, a, input, select, #home-section button, #end-section button, #howToPlay-section button, #leaderboard-section button {
  cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><text y="20" font-size="20">🧃</text></svg>'), auto;
}

#full-area {
  width: 100%;
  height: 100vh;
  background: black;
  position: absolute;
  overflow: hidden;
  user-select: none;
  font-family: f;
}

#full-area #game-area {
  width: 2000px;
  height: 1143px;
  background: black;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

#full-area #game-area #home-section {
  height: 100%;
  width: 110%;
  left: -5%;
  position: absolute;
  z-index: 9999; /* Ensure home section is on top */
  animation: animateHome infinite 4s linear;
}

#full-area #game-area #home-section #background-video {
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  z-index: 1; /* Background video stays behind everything */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.491);
}

#full-area #game-area #home-section #home-btns {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-110%);
  z-index: 99999; /* Ensure buttons are on top of everything */
  display: flex;
  flex-direction: column; /* Stack buttons vertically */
  align-items: center; /* Center-align buttons horizontally */
  gap: 10px; /* Adjust this value to control the spacing between all buttons */
  width: 100%; /* Ensure buttons take up the full width of the container */
}

#full-area #game-area #home-section #home-btns button {
  width: 350px;
  font-size: 30px;
  height: 57px;
  font-weight: 700;
  border: none;
  padding: 3px 0;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.56);
  background: rgba(255, 255, 255, 0.862);
  outline: none;
  letter-spacing: 2px;
  border-bottom: 7px solid #1d1d1d;
  overflow: hidden;
  text-align: center;
  margin: 0; /* Remove margin since gap handles spacing now */
}

#full-area #game-area #home-section #home-btns button:hover {
  background: white;
}

#full-area #game-area #play-section {
  width: 100%;
  height: 100%;
  position: absolute;
  background: url("media/background.png");
  background-size: cover;
  background-position: center center;
  z-index: 2; /* Play section is above the background video but below home section */
}

#full-area #game-area #play-section #score {
  font-size: 60px;
  width: 100%;
  text-align: center;
  font-weight: 900;
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.217);
  letter-spacing: 2px;
  position: absolute;
  z-index: 10;
}

#full-area #game-area #play-section #score span {
  font-size: 70px;
}

#full-area #game-area #play-section #character {
  position: absolute;
  width: 110px;
  height: 150px;
  transform: translateX(900px) translateY(890px);
  z-index: 3; /* Ensure character is above the play section background */
}

#full-area #game-area #play-section #character img {
  height: 250px;
  margin-left: -70px;
  margin-top: -50px;
}

#full-area #game-area #play-section .hurt {
  animation: hurt 0.5s infinite;
}

#full-area #game-area #play-section #enemy {
  position: absolute;
  width: 460px;
  top: 0;
  height: 200px;
  transform: translateX(570px) translateY(200px);
  z-index: 3;
}

#full-area #game-area #play-section #enemy img {
  height: 100%;
  justify-content: center;
  display: flex;
  margin: 0 auto;
}

#full-area #game-area #play-section #rocks {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 10;
}

#full-area #game-area #play-section #rocks .rock {
  height: 60px;
  width: 60px;
  border-radius: 60px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.483);
  transform: translateX(1000px) translateY(300px);
  position: absolute;
}

#full-area #game-area #play-section #rocks .rock img {
    height: 60px;
}


#full-area #game-area #end-section, 
#full-area #game-area #howToPlay-section, 
#full-area #game-area #leaderboard-section {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Ensure the background is visible and covers the entire game area */
  position: absolute;
  z-index: 9999; /* Ensure the end section is on top of everything */
  display: flex;
  justify-content: center;
  align-items: center;
}

#full-area #game-area #end-section .content, 
#full-area #game-area #howToPlay-section .content, 
#full-area #game-area #leaderboard-section .content {
  width: 950px;
  background: rgba(0, 0, 0, 0.8); /* Darker background for better contrast */
  padding: 20px 50px;
  border-radius: 5px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border: 5px solid white;
  color: white;
  font-weight: 900;
}

#full-area #game-area #end-section .content h1, 
#full-area #game-area #howToPlay-section .content h1, 
#full-area #game-area #leaderboard-section .content h1 {
  font-size: 100px;
}

#full-area #game-area #end-section .content p, 
#full-area #game-area #howToPlay-section .content p, 
#full-area #game-area #leaderboard-section .content p {
  font-size: 35px;
  letter-spacing: 2px;
  font-weight: 500;
}

#full-area #game-area #end-section .content button, 
#full-area #game-area #end-section .content input, 
#full-area #game-area #howToPlay-section .content button, 
#full-area #game-area #howToPlay-section .content input, 
#full-area #game-area #leaderboard-section .content button, 
#full-area #game-area #leaderboard-section .content input {
  font-size: 30px;
  margin: 10px;
  padding: 2px 30px;
  outline: none;
  border-radius: 5px;
  border: none;
}

#full-area #game-area #end-section .content button:hover, 
#full-area #game-area #end-section .content input:hover, 
#full-area #game-area #howToPlay-section .content button:hover, 
#full-area #game-area #howToPlay-section .content input:hover, 
#full-area #game-area #leaderboard-section .content button:hover, 
#full-area #game-area #leaderboard-section .content input:hover {
  opacity: 0.9;
}

#full-area #game-area #end-section .content h6, 
#full-area #game-area #howToPlay-section .content h6, 
#full-area #game-area #leaderboard-section .content h6 {
  font-size: 40px;
}

#full-area #game-area #end-section .content input, 
#full-area #game-area #howToPlay-section .content input, 
#full-area #game-area #leaderboard-section .content input {
  padding-left: 20px;
  padding-right: 20px;
}

#full-area #game-area #end-section .content input:hover, 
#full-area #game-area #howToPlay-section .content input:hover, 
#full-area #game-area #leaderboard-section .content input:hover {
  opacity: 1;
}

#full-area #game-area #howToPlay-section .content {
  width: 1200px;
  padding: 20px 40px;
}

#full-area #game-area #howToPlay-section .content svg {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

#full-area #game-area #howToPlay-section .content div {
  margin: 40px 0;
}

#full-area #game-area #howToPlay-section .content div p {
  text-align: left;
}

#full-area #game-area #howToPlay-section .content div p span {
  color: skyblue;
  font-weight: 900;
  text-decoration: underline;
}

#full-area #game-area #howToPlay-section .content button {
  background: skyblue;
}

#full-area #game-area #leaderboard-section .content {
  padding-right: 10px;
}

#full-area #game-area #leaderboard-section .content svg {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

#full-area #game-area #leaderboard-section .content h1 {
  margin-bottom: 40px;
}

#full-area #game-area #leaderboard-section .content #player-list {
  height: 500px;
  overflow: auto;
  padding-right: 20px;
}

#full-area #game-area #leaderboard-section .content #player-list #player {
  display: flex;
  justify-content: space-between;
  margin-bottom: -12px;
}

#full-area #game-area #leaderboard-section .content #player-list #player div {
  display: flex;
}

#full-area #game-area #leaderboard-section .content #player-list #player div p {
  margin-right: 10px;
}

@keyframes animateHome {
  0% {
    background: rgba(0, 0, 0, 0.8);
  }
  50% {
    background: rgba(0, 0, 0, 0.5);
  }
  100% {
    background: rgba(0, 0, 0, 0.8);
  }
}

@keyframes rockAnim1 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rockAnim2 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

@keyframes hurt {
  0% {
    opacity: 1;
    filter: grayscale(1);
  }
  50% {
    opacity: 0.5;
    filter: grayscale(1);
  }
  100% {
    opacity: 1;
    filter: grayscale(1);
  }
}

.lds-ring {
  display: inline-block;
  position: absolute;
  width: 60px;
  height: 60px;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%) scale(0.5);
  margin: 0;
  margin-top: 2px;
}

.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 60px;
  height: 60px;
  border: 6px solid black;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: black transparent transparent transparent;
  margin: 0;
  left: 0;
}

.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}

@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Heart animation */
@keyframes riseUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(1.5);
  }
}

.heart {
  position: absolute;
  font-size: 30px;
  animation: riseUp 2s ease-in-out forwards;
  z-index: 99999; /* Ensure hearts are on top of everything else */
}

#full-area #game-area #play-section .heart {
  top: 50px;
  left: 50px;
}

/* Additional styles for the GIFs */
.enemy-gif {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  bottom: 40px; /* Move the GIF up by 20px */
  left: -120px; /* Move the GIF slightly further left */
  width: 160px; /* Increase the width of the GIF */
  height: 160px; /* Increase the height of the GIF */
  transform: translateY(-20px); /* Fine-tune the vertical positioning */
}

.levelup-gif {
    position: absolute;
    z-index: 9999; /* Ensure it's on top of all elements */
    width: 200px;  /* Width of the GIF */
    height: 200px; /* Height of the GIF */
    opacity: 0;    /* Start with invisible GIF */
    transition: opacity 0.5s ease-in-out; /* Smooth transition for appearing/disappearing */
}

/* Target screens with a max width of 768px (typical mobile devices) */
@media only screen and (max-width: 768px) {
    #game-area .enemy-gif {
        left: 31% !important; /* Adjust this value to move it more to the right */
        top: 18.5% !important; /* You can adjust this if needed */
        transform: translate(-50%, 10%) !important; /* Fine-tune the position */
        position: absolute !important; /* Ensure the position is applied */
    }

    #game-area .levelup-gif {
        left: 31% !important; /* Adjust this value to move it more to the right */
        top: 16.5% !important; /* You can adjust this if needed */
        transform: translate(-50%, 10%) !important; /* Fine-tune the position */
        position: absolute !important; /* Ensure the position is applied */
    }
}

#button-panel {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000; /* Make sure the button panel is on top */
}

.icon-container {
    position: relative;
    margin: 0 5px;
    width: 60px;
    height: 60px;
    z-index: 10001; /* Ensure each icon is also on top */
    transition: box-shadow 0.3s ease-in-out; /* Smooth transition for the glow effect */
}

.icon-container:hover {
    box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.8); /* Bright orange glow effect */
}

.icon-img {
    position: absolute;
    width: 45px;
    height: 45px;
    z-index: 10002; /* Ensure the image is clickable */
    top: 7px;
    left: 7px;
}

.frame-icon {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 10001; /* Frame should be just behind the icon */
    top: 0;
    left: 0;
}

/* Utility section styles */
#utility-section {
    width: 70%; /* Further reduce the width of the utility window */
    height: 70%; /* Further reduce the height of the utility window */
    background: rgba(0, 0, 0, 0.8); /* Same background as other sections */
    position: absolute;
    z-index: 9999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the utility section */
    border-radius: 20px; /* Optional: Add a border-radius for a softer look */
    box-shadow: 0 0 15px red; /* Ensure the section has the glowing effect */
    animation: border-strobe-effect 5s infinite alternate; /* Apply the strobe effect to the border */
}

/* Update content size and strobe effect */
#utility-section .content {
    width: 100%;
    height: 100%;
    padding: 30px 40px; /* Adjust padding */
    border-radius: 20px; /* Increase border-radius for a smoother look */
    text-align: center;
    color: white;
    font-weight: 900;
    overflow-y: auto; /* Enable vertical scrolling */
    box-sizing: border-box;
}

/* Strobe effect for the border */
@keyframes border-strobe-effect {
    0% {
        border-color: red;
        box-shadow: 0 0 15px red;
    }
    25% {
        border-color: orange;
        box-shadow: 0 0 15px orange;
    }
    50% {
        border-color: yellow;
        box-shadow: 0 0 15px yellow;
    }
    75% {
        border-color: green;
        box-shadow: 0 0 15px green;
    }
    100% {
        border-color: blue;
        box-shadow: 0 0 15px blue;
    }
}

/* Strobe effect for the header text */
@keyframes text-strobe-effect {
    0% {
        color: red;
    }
    25% {
        color: orange;
    }
    50% {
        color: yellow;
    }
    75% {
        color: green;
    }
    100% {
        color: blue;
    }
}

#utility-section .content h1 {
    font-size: 80px; /* Slightly reduce font size */
    animation: text-strobe-effect 5s infinite alternate; /* Strobe effect on the text color */
}

/* Grid layout for utility items */
#utility-section .utility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Maintain the 2x2 grid */
    gap: 20px; /* Reduce gap between items slightly */
    padding: 15px;
    height: 100%;
}

/* Utility item styling */
#utility-section .utility-item {
    border: 2px solid white;
    padding: 15px;
    background-color: #333;
    border-radius: 10px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

/* Content inside utility items */
#utility-section .utility-item p {
    font-size: 16px;
    margin: 0;
}

/* Link text styling */
#utility-section .utility-item a {
    font-size: 28px;
    color: skyblue;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
    z-index: 10; /* Ensure links are above other content and clickable */
}

#utility-section .utility-item a:hover {
    color: gold;
    text-shadow: 0 0 10px gold, 0 0 20px gold, 0 0 30px gold;
    z-index: 10; /* Ensure hover effect remains above other content */
}

/* GIF styling and transitions */
#utility-section .utility-item img.utility-gif {
    width: 80%; /* Adjust the size of the GIF */
    height: auto;
    margin: 10px auto 50px; /* Center the GIF horizontally and add bottom margin for the button */
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 1; /* Ensure GIF is on top initially */
}

/* Position the "Read All" button over the GIF */
#utility-section .utility-item .read-all-btn {
    position: absolute;
    bottom: 20px; /* Position it above the bottom edge of the utility box */
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    font-size: 16px;
    background-color: black; /* Set background color to black */
    color: white; /* Set text color to white */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 2; /* Ensure the button is above the GIF */
}

#utility-section .utility-item .read-all-btn:hover {
    background-color: gold; /* Change background color on hover */
    color: black; /* Change text color on hover */
    text-shadow: none; /* Remove text shadow on hover */
}

/* Expandable content with smooth transition */
#utility-section .utility-item .read-more {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    margin-top: 0; /* Ensure text starts at the correct position */
    padding: 100px 80px 30px 80px; /* Reduced bottom padding to prevent text cut-off */
    font-size: 40px !important; /* Ensure font size is applied */
    line-height: 1.6 !important; /* Ensure line height is applied */
    font-weight: bold !important; /* Ensure font weight is applied */
    color: white !important; /* Ensure text color is applied */
    font-family: Arial, sans-serif !important; /* Updated font family */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    z-index: 2; /* Ensure text is above the GIF when expanded */
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5) !important; /* Ensure text shadow is applied */
}


/* When expanded */
#utility-section .utility-item.expanded .read-more {
    max-height: 250px;
    opacity: 1;
    overflow-y: auto;
}

/* Hide GIF when read-more section is expanded */
#utility-section .utility-item.expanded img.utility-gif {
    opacity: 0;
}

/* Scrollbar customization inside expanded content */
#utility-section .utility-item .read-more::-webkit-scrollbar {
    width: 8px;
}

#utility-section .utility-item .read-more::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

#utility-section .utility-item .read-more::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Position and style for SVG close button */
#utility-section .content svg {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

#dog-container {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 10000;
    overflow: hidden; /* Prevent any overflow */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
    border: none; /* Remove borders */
}

.dog-gif {
    display: block; /* Ensures the GIF does not have inline spacing */
    width: 300px; /* Increase the width */
    height: 300px; /* Increase the height */    
    margin: 0; /* Remove any margin */
    padding: 0; /* Remove any padding */
    border: none; /* Remove any borders */
}

#home-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; /* This controls the spacing between the buttons */
    width: 100%; /* Ensure buttons take up the full width of the container */
    max-width: 400px; /* Set a max-width to ensure the button panel doesn't stretch too wide */
    margin: 0 auto; /* Center the button panel horizontally */
}

#home-btns button {
    width: 100%; /* Make each button take up the full width of the container */
    text-align: center;
}

#home-section #howToPlay-btn {
    display: none; /* Hide the 'How to Play' button */
}

/* CSS to invert colors for dog gifs */
.invert-colors {
    filter: invert(100%);
}

#full-area #game-area #play-section #rocks .rock img {
    background: transparent !important; /* Ensure transparency */
    box-shadow: none !important; /* Remove any shadow */
}

#rocks .rock {
    background: none !important; /* Ensure no background on wrapper */
    border: none !important; /* Remove any borders */
    outline: none !important; /* Remove any outlines */
    box-shadow: none !important; /* Remove any shadows */
    filter: none !important; /* Ensure no filters are applied */
}

#full-area {
    z-index: 2; /* Background should be above the leaderboard */
}

#play-section {
    z-index: 3; /* Play section should be above the background and leaderboard */
}

#leaderboard-section {
    z-index: 1; /* Leaderboard should be below the background and play section */
}

/* Ensure background video is on a high z-index but below gameplay elements */
#full-area #game-area #home-section #background-video {
    z-index: 2; /* Background video stays behind gameplay elements */
}

#replay-end-section {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Make the background more opaque */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* Ensure text is white for visibility */
}

#replay-end-section .content {
    text-align: center;
    background: rgba(50, 50, 50, 0.9); /* Slightly lighter background for the content */
    padding: 20px 40px;
    border-radius: 10px;
    max-width: 400px; /* Limit the width to prevent stretching */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#replay-end-section .content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

#replay-end-section .content p {
    font-size: 24px;
    margin-bottom: 10px;
}

#replay-end-section .content button {
    font-size: 20px;
    padding: 10px 20px;
    background: #1d1d1d;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
}

#replay-end-section .content button:hover {
    background: #333;
}

.play-replay-btn {
    font-size: 16px;
    padding: 8px 12px;
    background-color: #ffcc00;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 5px;
    display: inline-block;
}

.play-replay-btn:hover {
    background-color: #ffaa00;
}

#leaderboard-section .content #player-list #player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 5px; /* Adjust spacing between player rows */
}

#leaderboard-section .content #player-list #player div p {
    margin-right: 10px;
    text-align: right;
    min-width: 100px; /* Ensure the scores are aligned properly */
}

#leaderboard-section .content #player-list #player .replay-icon {
    cursor: pointer;
    margin-left: 10px; /* Space between the score and the icon */
    font-size: 24px; /* Adjust the size of the replay emoji */
}

#leaderboard-section .content #player-list #player .replay-icon.hidden {
    visibility: hidden; /* Hide the replay icon when no replay is available */
}

#utility-section .utility-item p {
    font-size: 20px !important; /* Force the size with !important */
    margin: 0;
}

.impact-animation {
    animation-play-state: running; /* Ensure the animation plays smoothly */
    animation-timing-function: linear;
    animation-iteration-count: 1; /* Only play the GIF once */
}

.invert-gif img {
    filter: invert(100%);
}

/* Ensure the contract address container is visible and positioned correctly */
#contract-address-container {
    position: absolute;
    top: 75.8%; /* Adjust this value to position it vertically where you want */
    left: 50%; /* Center the container horizontally */
    transform: translateX(-50%); /* Center the container */
    z-index: 10000; /* Ensure it's on top of other elements */
    display: block;
    opacity: 1;
}

/* Adjustments for mobile view */
@media only screen and (max-width: 768px) {
    #contract-address-container {
        top: 76%; /* Adjust vertical positioning for mobile */
        left: 50%; /* Keep it centered horizontally */
        transform: translateX(-50%); /* Ensure it stays centered */
        z-index: 10000; /* Ensure it's on top on mobile as well */
    }
}

/* Debugging: Force visibility (temporary) */
#contract-address-container {
    visibility: visible !important; /* Ensure it’s not hidden */
}

/* Additional style tweaks for the contract address */
#contract-address {
    font-size: 18.5px !important; /* Ensure the font size is applied */
    width: 350px; /* Set a fixed width to match other buttons */
    background-color: rgba(255, 255, 255, 0.862); /* Ensure a clear background */
    border-radius: 5px;
    border-bottom: 5px solid #1d1d1d;
    padding: 10px 0; /* Adjust padding to maintain consistent height */
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-bottom-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width calculation */
}

#contract-address:hover {
    background-color: #1d1d1d;
    color: rgba(255, 255, 255, 0.862);
    border-bottom-color: rgba(255, 255, 255, 0.862);
}

/* Container for the falling juice emojis */
#juice-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevents interaction with the falling emojis */
    overflow: hidden; /* Prevents any overflow issues */
    z-index: 99999; /* Ensures it's on top of other elements */
}

/* Styles for the falling juice emojis */
.falling-juice {
    position: absolute;
    font-size: 16px; /* Size of the juice emojis */
    pointer-events: none; /* Prevents interaction */
    user-select: none; /* Prevents selection */
    z-index: 99999; /* Ensures it's on top of other elements */
}

/* Mobile adjustments - hide falling juice emojis */
@media only screen and (max-width: 768px) {
    .falling-juice {
        display: none; /* Hide the juice emojis on mobile screens */
    }
}

.heart {
    position: absolute;
    font-size: 24px; /* Adjust the size of the hearts */
    opacity: 1;
    z-index: 9999;
    animation: riseAndFade 1.5s linear forwards;
}

@keyframes riseAndFade {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px); /* The heart rises 100px */
        opacity: 0; /* The heart fades out */
    }
}

.utility-item {
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

#price-feed-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 10;
    width: 100%;
    transform: translateX(325px); /* Keep the current position */
}

#left-gif, #right-gif {
    width: 150px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    position: relative;
    animation: gifPulse 2s infinite alternate;
}

#price-feed-container {
    width: 60%;
    max-width: 600px;
    text-align: center;
    padding: 10px;
    background-color: transparent; /* Make the container background transparent */
    border-radius: 15px;
    z-index: 12;
    position: relative;
    overflow: hidden;
}

#price-feed-section {
    font-size: 26px; /* Increase text size */
    line-height: 1.3;
    padding-top: 10px;
    height: auto;
    color: #e0e0e0;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Text shadow for readability */
}

/* Specific style for the price elements */
#price-feed-section span {
    color: #00ff00; /* Green color for the price values */
    font-weight: 800; /* Bold for emphasis */
}

/* GIF animation */
@keyframes gifPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

#left-gif img, #right-gif img {
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    filter: drop-shadow(0 0 5px #00ff00); /* Reduced green shadow around GIFs */
}

#left-gif img:hover, #right-gif img:hover {
    transform: scale(1.2); /* Slight zoom effect on hover */
    filter: drop-shadow(0 0 10px #00ff00); /* Reduced shadow on hover */
}

