:root {
    --color-bg: #2a1b3d;
    --color-primary: #ff69b4;
    --color-secondary: #a78bfa;
    --color-text: #ffffff;
    --neon-glow: 0 0 7px var(--color-primary),
                 0 0 10px var(--color-primary),
                 0 0 21px var(--color-primary),
                 0 0 42px var(--color-primary);
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Press Start 2P', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./assets/images/monad-space-frog.png?v=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.95;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

/* Add a subtle overlay to ensure content visibility */
.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.container {
    width: 90%;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.content-box {
    background: rgba(0, 0, 0, 0.8);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
    backdrop-filter: blur(5px);
}

.title {
    margin-bottom: 2rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.neon-text {
    color: var(--color-text);
    font-size: 2.5rem;
    text-shadow: var(--neon-glow);
    animation: neonPulse 1.5s ease-in-out infinite alternate;
}

.nft-text {
    color: var(--color-primary);
    font-size: 2rem;
    text-shadow: 0 0 10px var(--color-primary);
}

.subtitle {
    color: var(--color-secondary);
    font-size: 1.2rem;
    opacity: 0.9;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    width: 100%;
}

.input-description {
    color: var(--color-secondary);
    font-size: 0.65rem;
    line-height: 1.6;
    text-align: center;
    text-shadow: 0 0 10px var(--color-secondary);
    font-family: 'Press Start 2P', monospace;
    margin-bottom: 1.2rem;
    opacity: 0.9;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.5px;
}

.input-label {
    color: var(--color-secondary);
    text-align: left;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    animation: blink 1s step-end infinite;
}

input {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--color-primary);
    color: var(--color-text);
    padding: 1rem;
    border-radius: 8px;
    font-family: inherit;
    text-align: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input:focus {
    outline: none;
    box-shadow: 0 0 15px var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

button {
    background: var(--color-primary);
    color: var(--color-text);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--color-primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 105, 180, 0.2);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.social-links img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.social-links a::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -40px; /* Changed from bottom to top */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-primary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--color-primary);
    text-shadow: 0 0 5px var(--color-primary);
    pointer-events: none;
}

.social-links a[href*="telegram"]::after {
    content: "@n01sy7";
}

.social-links a[href*="twitter"]::after,
.social-links a[href*="x.com"]::after {
    content: "@noisyb0y1";
}

.social-links a:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--color-primary);
}

.social-links a:hover img {
    transform: scale(1.1);
}

#generateBtn {
    background: linear-gradient(
        90deg,
        var(--color-primary) 0%,
        #ff1493 25%,
        #9400d3 50%,
        #ff1493 75%,
        var(--color-primary) 100%
    );
    background-size: 200% auto;
    color: var(--color-text);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: gradientMove 3s linear infinite;
}

#generateBtn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    animation: buttonShine 3s infinite;
}

#generateBtn:hover {
    transform: translateY(-2px) scale(1.02);
    animation: gradientMove 1.5s linear infinite, buttonPulse 1.5s infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes buttonShine {
    0% {
        transform: rotate(45deg) translateX(-200%);
    }
    100% {
        transform: rotate(45deg) translateX(200%);
    }
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 15px var(--color-primary);
    }
    50% {
        box-shadow: 0 0 25px var(--color-primary),
                    0 0 35px var(--color-primary);
    }
    100% {
        box-shadow: 0 0 15px var(--color-primary);
    }
}

.image-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.image-container.visible {
    display: flex;
}

#frogImage {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 140px; /* Default for desktop */
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--color-primary);
    transition: all 0.3s ease;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1;
}

.close-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--color-primary);
    background: #ff45a0;
}

@keyframes neonPulse {
    from {
        text-shadow: var(--neon-glow);
    }
    to {
        text-shadow: 0 0 5px var(--color-primary),
                     0 0 8px var(--color-primary),
                     0 0 15px var(--color-primary),
                     0 0 30px var(--color-primary);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .content-box {
        padding: 1.5rem;
    }

    .neon-text {
        font-size: 2rem;
    }

    .nft-text {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    input, button {
        padding: 0.8rem;
    }
    .close-button {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

@media (max-width: 600px) {
  .container {
    max-width: 340px;
    width: 95vw;
    margin: 0 auto;
  }
  .content-box {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
  }
  .neon-text {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }
  .nft-text {
    font-size: 1.1rem;
  }
  .subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
  }
  .input-container {
    margin-bottom: 0.7rem;
  }
  input {
    font-size: 1rem;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
  }
  button, .generate-btn, #generateBtn {
    font-size: 1.05rem;
    padding: 0.7rem 0.5rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
  }
  .sound-control {
    top: 8px;
    right: 8px;
    gap: 6px;
  }
  .sound-button {
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
  }
  .sound-icon {
    width: 44px;
    height: 44px;
  }
  .volume-bar {
    height: 70px;
    width: 3px;
  }
  .social-links {
    gap: 10px;
    margin-top: 0.7rem;
  }
  .social-links a {
    width: 38px;
    height: 38px;
  }
  .close-button {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }
}

/* Hide sound controls when image container is visible */
.image-container.visible ~ .sound-control,
.image-container.visible + .content-box .sound-control,
.image-container.visible .sound-control {
    display: none !important;
}

/* Additional specific rule for mobile sound icon in image view */
@media (max-width: 1023px) {
    .image-container.visible ~ .sound-control {
        display: none !important;
    }
    
    /* Hide the sound toggle in the top right when image is shown */
    .image-container.visible ~ div .sound-control,
    .image-container.visible + div .sound-control,
    .image-container.visible .sound-control {
        display: none !important;
    }
}

/* Sound control positioning and styling */
.sound-control {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1023px) {
    .sound-control {
        top: 15px;
        right: 15px;
    }
    
    .sound-button {
        width: 36px;
        height: 36px;
    }
    
    .sound-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 600px) {
    .sound-control {
        top: 12px;
        right: 12px;
    }
    
    .sound-button {
        width: 32px;
        height: 32px;
    }
    
    .sound-icon {
        width: 18px;
        height: 18px;
    }
}

.sound-button {
    width: 44px;
    height: 44px;
    background: rgba(25, 25, 35, 0.9);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
    margin-bottom: 10px;
}

.sound-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-button img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px rgba(255, 0, 255, 0.8));
}

.sound-button:hover {
    transform: scale(1.1);
    border-color: rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.sound-button.muted img {
    opacity: 0.5;
}

.volume-bar {
    position: relative;
    width: 4px;
    height: 120px;
    background: rgba(25, 25, 35, 0.9);
    border-radius: 2px;
    border: 1px solid rgba(255, 0, 255, 0.3);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
    display: none;
}

.sound-control:hover .volume-bar {
    display: block;
}

.volume-track {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    overflow: hidden;
}

.volume-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
    transition: height 0.1s ease;
}

.volume-handle {
    position: absolute;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #ff00ff;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
    cursor: pointer;
    transition: transform 0.1s ease;
    z-index: 2;
}

.volume-handle:hover {
    transform: translateX(-50%) scale(1.2);
}

.volume-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

/* Prevent text selection when dragging */
.volume-bar {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
} 

@media (min-width: 1024px) {
  .side-gallery-right, .side-gallery-left {
    position: fixed;
    top: 0;
    width: 70px;
    height: 100vh;
    overflow: hidden;
    background: rgba(20,20,30,0.7);
    z-index: 900;
  }

  .side-gallery-right {
    right: 0;
  }

  .side-gallery-left {
    left: 0;
  }

  .side-gallery-inner {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    min-height: 200vh;
  }

  .side-gallery-right .side-gallery-inner {
    animation: gallery-right-up 480s linear infinite;
    transform-origin: top right;
    bottom: -100%;
  }

  .side-gallery-left .side-gallery-inner {
    animation: gallery-left-down 480s linear infinite;
    transform-origin: top left;
    top: 0;
  }

  .side-gallery-right img, .side-gallery-left img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
  }
}
@media (max-width: 1023px) {
  .side-gallery-right, .side-gallery-left { display: none; }
}

@keyframes gallery-scroll-down {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

@keyframes gallery-scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
} 

@keyframes gallery-right-up {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  48% {
    transform: translateY(100%);
    opacity: 1;
  }
  50% {
    transform: translateY(100%) translateX(-1000px);
    opacity: 0;
  }
  52% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(100%);
    opacity: 1;
  }
}

@keyframes gallery-left-down {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  48% {
    transform: translateY(-100%);
    opacity: 1;
  }
  50% {
    transform: translateY(-100%);
    opacity: 1;
  }
  52% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100%);
    opacity: 1;
  }
} 