@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;
  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;
  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;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

#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;
}

#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;
}

#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;
}

#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%;
  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);
  position: absolute;
  z-index: 9999;
  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);
  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%;
  transform: translate(-50%, -50%) scale(0.5);
  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;
  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);
  }
}

@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;
}

#full-area #game-area #play-section .heart {
  top: 50px;
  left: 50px;
}

.enemy-gif {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  bottom: 40px;
  left: -120px;
  width: 160px;
  height: 160px;
  transform: translateY(-20px);
}

.levelup-gif {
    position: absolute;
    z-index: 9999;
    width: 200px;
    height: 200px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

@media only screen and (max-width: 768px) {
    #game-area .enemy-gif {
        left: 31% !important;
        top: 18.5% !important;
        transform: translate(-50%, 10%) !important;
        position: absolute !important;
    }
    #game-area .levelup-gif {
        left: 31% !important;
        top: 16.5% !important;
        transform: translate(-50%, 10%) !important;
        position: absolute !important;
    }
}

#button-panel {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

.icon-container {
    position: relative;
    margin: 0 5px;
    width: 60px;
    height: 60px;
    z-index: 10001;
    transition: box-shadow 0.3s ease-in-out;
}

.icon-container:hover {
    box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.8);
}

.icon-img {
    position: absolute;
    width: 45px;
    height: 45px;
    z-index: 10002;
    top: 7px;
    left: 7px;
}

.frame-icon {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 10001;
    top: 0;
    left: 0;
}

#utility-section {
    width: 70%;
    height: 70%;
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    z-index: 9999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    box-shadow: 0 0 15px red;
    animation: border-strobe-effect 5s infinite alternate;
}

#utility-section .content {
    width: 100%;
    height: 100%;
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    font-weight: 900;
    overflow-y: auto;
    box-sizing: border-box;
}

@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;
    }
}

@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;
    animation: text-strobe-effect 5s infinite alternate;
}

#utility-section .utility-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 15px;
    height: 100%;
}

#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;
}

#utility-section .utility-item p {
    font-size: 16px;
    margin: 0;
}

#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;
}

#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;
}

#utility-section .utility-item img.utility-gif {
    width: 80%;
    height: auto;
    margin: 10px auto 50px;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 1;
}

#utility-section .utility-item .read-all-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    font-size: 16px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 2;
}

#utility-section .utility-item .read-all-btn:hover {
    background-color: gold;
    color: black;
    text-shadow: none;
}

#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;
    padding: 100px 80px 30px 80px;
    font-size: 40px !important;
    line-height: 1.6 !important;
    font-weight: bold !important;
    color: white !important;
    font-family: Arial, sans-serif !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    z-index: 2;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5) !important;
}

#utility-section .utility-item.expanded .read-more {
    max-height: 250px;
    opacity: 1;
    overflow-y: auto;
}

#utility-section .utility-item.expanded img.utility-gif {
    opacity: 0;
}

#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;
}

#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;
    padding: 0;
    margin: 0;
    border: none;
}

.dog-gif {
    display: block;
    width: 300px;
    height: 300px;
    margin: 0;
    padding: 0;
    border: none;
}

#home-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

#home-btns button {
    width: 100%;
    text-align: center;
}

#home-section #howToPlay-btn {
    display: none;
}

#full-area #game-area #play-section #rocks .rock img {
    background: transparent !important;
    box-shadow: none !important;
}

#rocks .rock {
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
}

#full-area {
    z-index: 2;
}

#play-section {
    z-index: 3;
}

#leaderboard-section {
    z-index: 1;
}

#full-area #game-area #home-section #background-video {
    z-index: 2;
}

#contract-address-container {
    position: absolute;
    top: 75.8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: block;
    opacity: 1;
    visibility: visible !important;
}

#contract-address {
    font-size: 18.5px !important;
    width: 350px;
    background-color: rgba(255, 255, 255, 0.862);
    border-radius: 5px;
    border-bottom: 5px solid #1d1d1d;
    padding: 10px 0;
    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;
}

#contract-address:hover {
    background-color: #1d1d1d;
    color: rgba(255, 255, 255, 0.862);
    border-bottom-color: rgba(255, 255, 255, 0.862);
}

#juice-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 99999;
}

.falling-juice {
    position: absolute;
    font-size: 16px;
    pointer-events: none;
    user-select: none;
    z-index: 99999;
}

@media only screen and (max-width: 768px) {
    .falling-juice {
        display: none;
    }
}

.heart {
    position: absolute;
    font-size: 24px;
    opacity: 1;
    z-index: 9999;
    animation: riseAndFade 1.5s linear forwards;
}

@keyframes riseAndFade {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

.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);
}

#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;
    border-radius: 15px;
    z-index: 12;
    position: relative;
    overflow: hidden;
}

#price-feed-section {
    font-size: 26px;
    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);
}

#price-feed-section span {
    color: #00ff00;
    font-weight: 800;
}

@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);
}

#left-gif img:hover, #right-gif img:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px #00ff00);
}

.retweet-button {
    font-size: 20px;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 5px;
    margin-top: 10px;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s;
}

.retweet-button:hover {
    background-color: white;
    color: black;
}

@media only screen and (max-width: 768px) {
  /* Increase the scale of the game area for mobile devices */
  #game-area {
    transform: translate(-50%, -50%) scale(1.8); /* Adjust 1.8 as needed */
    transform-origin: center center;
  }
}

/* Make each achievement icon strobe/glow */
.achievement-icon {
  /* So the cursor shows a pointer (hand) on hover */
  cursor: pointer;

  /* Strobing/glow animation */
  animation: glowPulse 1.5s infinite;

  /* Small horizontal margin */
  margin-left: 5px;
  margin-right: 5px;
}

/* Define the @keyframes for the glow */
@keyframes glowPulse {
  0%, 100% {
    /* Mild glow at start/end */
    filter: drop-shadow(0 0 5px #fff);
  }
  50% {
    /* Bigger glow at midpoint */
    filter: drop-shadow(0 0 10px #fff);
  }
}
