body {
    margin: 0;
    overflow: hidden;
    background-color: #f0f0f0;
    font-family: sans-serif;
    text-align: center;
}

.pixelify-sans {
font-family: "Pixelify Sans";
font-optical-sizing: auto;
font-weight: 700;
font-style: normal;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4vh;
    display: flex;
    align-items: center; 
    justify-content: space-between;
    padding: 0 0px; 
    background-color: rgba(240, 240, 240, 0.9);
    color: #333;
    font-size: clamp(1.5rem, 2vw, 3rem);
    z-index: 20;
    font-family: "Pixelify Sans", sans-serif;
    border-bottom: 2px solid #000080;
    border-right: 2px solid #000080;
    border-top: 2px solid #FFFFFF;
    border-left: 2px solid #FFFFFF;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
}

.coin-container {
    position: absolute;
    width: 30vw; 
    height: 30vw; 
    max-width: 600px; 
    max-height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.coin {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform-style: preserve-3d;
    image-rendering: pixelated;
    animation: bounce 8s infinite linear;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(0, 0) rotateY(0deg);
    }
    25% {
        transform: translate(10vw, 5vh) rotateY(90deg); 
    }
    50% {
        transform: translate(0, 10vh) rotateY(180deg); 
    }
    75% {
        transform: translate(-10vw, 5vh) rotateY(270deg);
    }
}

.coin-side {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    border-radius: 50%;
    font-size: 1.5em; 
    box-sizing: border-box;
    padding: 0px;
    word-wrap: break-word;
    image-rendering: pixelated;
    font-family: sans-serif;
    text-shadow: 2px 2px 0px #000;
}

.heads {
    background-color: transparent;
    color: #333;
    transform: rotateY(180deg);
    background-image: url('pic3.png');
    background-size: cover;
    background-position: center;
}

.tails {
    background-image: url('backside.png');
    background-size: cover;
    background-position: center;
    padding: 10%;
    overflow: hidden;
}

.coin::before,
.coin::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0px;
    height: 0px;
    background-color: #333;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.coin::before {
    box-shadow: 0 0 5px 5px rgba(51, 51, 51, 0.5);
}

.text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    z-index: 50;
}

.random-text {
    position: absolute;
    font-size: 1em;
    color: #888;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 0.5s ease;
    font-family: sans-serif;
    text-shadow: 1px 1px 0px #000;
    pointer-events: none;
    z-index: 50;
}

.right-margin {
    position: fixed;
    top: 10%;
    right: 10px; 
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.ansem {
    position: fixed;
    bottom: 10px;
    left: 10px; 
    width: 20%; 
    height: auto;
    z-index: 100;
    animation: flip 3s infinite alternate;
}

.random-image {
    position: absolute;
    width: 8%; 
    height: auto;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
}

.button-28 {
    appearance: none;
    background-color: transparent;
    border: 2px solid #1A1A1A;
    border-radius: 15px;
    box-sizing: border-box;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-family: sans-serif;
    font-size: 14px; 
    font-weight: 600;
    line-height: normal;
    margin: 0;
    min-height: 40px;
    min-width: 0;
    outline: none;
    padding: 1vw 2vw; 
    text-align: center;
    text-decoration: none;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    width: 10vw; 
    will-change: transform;
    position: relative;
    transform-origin: 50% 0%;
    animation: bounceVertical 8s infinite alternate;
}

.button-28:hover {
    color: #fff;
    background-color: #1A1A1A;
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: translateY(-2px);
    animation-play-state: paused !important;
}

.button-28:active {
    box-shadow: none;
    transform: translateY(0);
}

.ad-container {
    position: fixed;
    top: 8%; 
    left: 1vw; 
    width: 20vw; 
    height: 25vw; 
    background-color: #fff;
    border: 2px solid gray;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ad-container a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none; /* Removes underline */
    cursor: pointer;
}

.ad-container img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#player-container,
.playlist-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#player-container {
  position: relative;
  width: 50%;
  overflow: hidden;
  height: 100%;
  background: transparent;
  color: black;
}

div#thumb {
  position: absolute;
  top: 0;
  background-image: url("https://cldup.com/Lw6pEIsuTs.jpg");
  left: 0;
  width: 80px;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Play / Pause */

#audio-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 20%;
    height: 100%;
    padding: 5px 15px;
    border-left: black solid 1px;
    border-radius: 25%;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    font-family: "Pixelify Sans";
    font-size: 1rem;
}

#playPauseBtn {
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
}

#dexscreener-embed {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; 
}

#dexscreener-embed iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 0;
    background: transparent;
    opacity: 0.7;
    pointer-events: none; 
}

@keyframes bounceVertical {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(calc(100vh - 50px - 200px));
    }
}

@keyframes flip {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
}

/* Media Queries for Smaller Screens */
@media (max-width: 768px) {
    .header {
        font-size: 1rem; 
        padding: 5px 0; 
    }

    .coin-container {
        width: 70vw; /* Larger relative size for mobile */
        height: 70vw; 
    }

    .coin-side {
        font-size: 1em; /* Smaller font size for mobile */
    }

    .right-margin {
        top: 10%; /* Adjusted position for mobile */
        right: 5px; /* Smaller margin for mobile */
        gap: 5px; /* Smaller gap for mobile */
    }

    .button-28 {
        font-size: 12px; /* Smaller font size for mobile */
        min-height: 30px; /* Smaller height for mobile */
        padding: 6px 10px; /* Smaller padding for mobile */
        width: 100px; /* Smaller width for mobile */
    }

    .ad-container {
        top: 8%; /* Adjusted position for mobile */
        width: 60%; /* Smaller width for mobile */
        height: 30%; /* Smaller height for mobile */
        left:20%;
        z-index: 1;
    }

    .ansem {
        width: 60%; /* Larger size for mobile */
        left: 20%;
    }
}
