/* 1993 Retro Website Styling for $DOG - Now with Animations! */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Outer body styling for retro background */
html {
    background: linear-gradient(45deg, #f0f0f0 25%, #e8e8e8 25%, #e8e8e8 50%, #f0f0f0 50%, #f0f0f0 75%, #e8e8e8 75%);
    background-size: 40px 40px;
    background-attachment: fixed;
    animation: backgroundSlide 30s linear infinite;
    min-height: 100vh;
}

@keyframes backgroundSlide {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

body {
    font-family: "Times New Roman", Times, serif;
    background-color: transparent;
    color: #000000;
    line-height: 1.3;
    font-size: 16px;
    margin: 0;
    padding: 0;
    animation: fadeIn 2s ease-in;
    min-height: 100vh;
}

/* Add some retro border styling around the main content */
.page-container {
    background-color: #ffffff;
    border: 3px solid #000000;
    box-shadow:
        0 0 0 1px #ffffff,
        0 0 0 4px #000000,
        8px 8px 0 0 rgba(0,0,0,0.3);
    margin: 20px auto;
    max-width: 800px;
    min-height: calc(100vh - 40px);
    position: relative;
    padding: 15px;
}

.page-container::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.1) 2px,
        rgba(0,0,0,0.1) 4px
    );
    z-index: -1;
    animation: borderFloat 15s ease-in-out infinite;
}

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

/* Classic 90s Web Elements */
.flashing-sign {
    background: linear-gradient(45deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff);
    background-size: 400% 400%;
    animation: rainbowFlash 1s ease-in-out infinite, textFlash 0.5s ease-in-out infinite alternate;
    color: #ffffff;
    font-weight: bold;
    padding: 8px 15px;
    border: 3px solid #000000;
    text-align: center;
    margin: 15px 0;
    text-shadow: 2px 2px 0 #000000;
    font-size: 18px;
    text-transform: uppercase;
}

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

@keyframes textFlash {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.05); }
}

.scrolling-text {
    background-color: #000000;
    color: #00ff00;
    padding: 10px;
    margin: 20px 0;
    border: 2px solid #00ff00;
    overflow: hidden;
    white-space: nowrap;
    font-family: "Courier New", monospace;
    font-weight: bold;
}

.scrolling-text span {
    display: inline-block;
    animation: scroll 15s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.under-construction {
    background: repeating-linear-gradient(
        45deg,
        #ffff00,
        #ffff00 10px,
        #000000 10px,
        #000000 20px
    );
    color: #ff0000;
    font-weight: bold;
    padding: 15px;
    text-align: center;
    border: 3px solid #ff0000;
    margin: 20px 0;
    animation: constructionBlink 1s ease-in-out infinite;
    text-transform: uppercase;
    font-size: 16px;
}

@keyframes constructionBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Classic 90s Popup Window */
.popup-window {
    position: fixed;
    top: 50px;
    right: 50px;
    width: 300px;
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    font-family: "MS Sans Serif", sans-serif;
    font-size: 11px;
    z-index: 1000;
    display: none;
    animation: popupBounce 0.5s ease-out, popupFloat 3s ease-in-out infinite 2s;
}

.popup-header {
    background: linear-gradient(to bottom, #0080ff, #0040c0);
    color: white;
    padding: 2px 5px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.popup-close {
    background-color: #c0c0c0;
    border: 1px outset #c0c0c0;
    width: 16px;
    height: 14px;
    text-align: center;
    line-height: 12px;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
}

.popup-close:hover {
    background-color: #ff0000;
    color: white;
}

.popup-content {
    padding: 10px;
    background-color: #c0c0c0;
    border-top: 1px solid #808080;
}

.popup-button {
    background-color: #c0c0c0;
    border: 1px outset #c0c0c0;
    padding: 2px 8px;
    margin: 5px 2px;
    cursor: pointer;
    font-size: 11px;
}

.popup-button:active {
    border: 1px inset #c0c0c0;
}

@keyframes popupBounce {
    0% { transform: scale(0) rotate(180deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(-10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes popupFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}



.hit-counter {
    background: linear-gradient(to bottom, #c0c0c0, #808080);
    border: 2px inset #c0c0c0;
    padding: 5px 10px;
    margin: 10px 0;
    font-family: "Courier New", monospace;
    font-size: 14px;
    text-align: center;
    color: #000000;
}

.counter-digits {
    background-color: #000000;
    color: #00ff00;
    padding: 2px 5px;
    font-family: "Courier New", monospace;
    font-weight: bold;
    border: 1px inset #808080;
    animation: counterFlicker 3s ease-in-out infinite;
}

@keyframes counterFlicker {
    0%, 90% { opacity: 1; }
    95% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* 90s-style animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Header and banner */
header {
    text-align: center;
    margin-bottom: 30px;
    animation: slideIn 1.5s ease-out;
}

.banner-container {
    border: 2px solid #000000;
    padding: 10px;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

.banner-container:hover {
    background-color: #e0e0e0;
    transform: scale(1.02);
}

.banner {
    max-width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.banner:hover {
    filter: brightness(1.1);
}

/* Main content */
.content-wrapper {
    background-color: #ffffff;
    border: 1px solid #000000;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* Typography */
h1 {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    text-decoration: underline;
    letter-spacing: 2px;
    animation: pulse 3s infinite;
}

h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0 10px 0;
    text-decoration: underline;
    animation: slideIn 1s ease-out;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

strong {
    font-weight: bold;
}

/* Links */
a {
    color: #0000ff;
    text-decoration: underline;
    transition: all 0.3s ease;
}

a:visited {
    color: #800080;
}

a:hover {
    background-color: #ffff00;
    color: #000000;
    animation: wiggle 0.5s ease-in-out;
    padding: 2px 4px;
}

/* Sections */
.intro {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000000;
}

/* Social Buttons */
.social-buttons, .footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ffffff !important;
    color: #000000 !important;
    text-decoration: none;
    border: 3px solid #000000;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: pulse 3s infinite;
    box-shadow: 2px 2px 0 #000000;
}

.social-btn:hover {
    background-color: #ffff00 !important;
    color: #000000 !important;
    transform: scale(1.1);
    animation: wiggle 0.5s ease-in-out;
    box-shadow: 4px 4px 0 #000000;
}

.social-btn:visited {
    color: #000000 !important;
}

.social-btn.telegram:hover { border-color: #0088cc; }
.social-btn.twitter:hover { border-color: #1da1f2; }
.social-btn.dextools:hover { border-color: #05a3c4; }

.meme-gallery {
    margin: 30px 0;
    text-align: center;
}

.dog-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.dog-img {
    max-width: 200px;
    height: auto;
    border: 3px solid #000000;
    padding: 12px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    animation: bounce 2s infinite, imagePulse 3s ease-in-out infinite alternate;
    animation-delay: calc(var(--delay, 0) * 0.5s);
    cursor: pointer;
    position: relative;
}

.dog-img:nth-child(1) { animation-delay: 0s; }
.dog-img:nth-child(2) { animation-delay: 0.4s; }
.dog-img:nth-child(3) { animation-delay: 0.8s; }

.dog-img:hover {
    transform: scale(1.2) rotate(8deg);
    border-color: #ff0000;
    box-shadow: 0 0 15px rgba(255,0,0,0.7), 0 0 25px rgba(0,0,0,0.5);
    animation: bounce 0.3s infinite, imageShake 0.2s ease-in-out infinite;
}

@keyframes imagePulse {
    0% { filter: brightness(1) contrast(1) saturate(1); }
    100% { filter: brightness(1.1) contrast(1.2) saturate(1.3); }
}

@keyframes imageShake {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-3px) translateY(-2px); }
    50% { transform: translateX(3px) translateY(2px); }
    75% { transform: translateX(-2px) translateY(3px); }
}

.about, .token-info {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #000000;
}

/* Enhanced About Section */
.story-box {
    background-color: #f9f9f9;
    border: 2px dashed #000000;
    padding: 15px;
    margin: 15px 0;
    animation: slideIn 1.5s ease-out;
}

.highlight {
    background-color: #ffff00;
    padding: 2px 4px;
    font-weight: bold;
    animation: blink 2s infinite;
}

.fun-facts {
    background-color: #000000;
    color: #00ff00;
    padding: 15px;
    margin: 15px 0;
    border: 2px solid #00ff00;
}

.fun-facts h3 {
    color: #ffff00;
    margin-bottom: 10px;
    animation: blink 1.5s infinite;
}

.fun-facts ul {
    list-style: none;
    padding-left: 0;
}

.fun-facts li {
    margin: 8px 0;
    animation: slideIn 2s ease-out;
    animation-delay: calc(var(--delay, 0) * 0.2s);
}

.fun-facts li:nth-child(1) { --delay: 1; }
.fun-facts li:nth-child(2) { --delay: 2; }
.fun-facts li:nth-child(3) { --delay: 3; }
.fun-facts li:nth-child(4) { --delay: 4; }

.more-dogs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.small-dog {
    max-width: 80px;
    height: auto;
    border: 1px solid #000000;
    padding: 5px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    animation: wiggle 4s infinite;
    animation-delay: calc(var(--delay, 0) * 0.3s);
}

.small-dog:hover {
    transform: scale(1.2);
    animation: bounce 0.6s ease-in-out;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    font-size: 14px;
}

.footer-social {
    margin-bottom: 15px;
}

hr {
    border: none;
    border-top: 2px solid #000000;
    margin: 20px 0;
}

small {
    font-size: 12px;
    font-style: italic;
}

/* 90s-style special effects */
.blink {
    animation: blink 1s infinite;
}

.blink-slow {
    animation: blink 2s infinite;
    text-align: center;
    color: #ff0000;
}

/* Marquee effect */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: #000000;
    color: #00ff00;
    padding: 10px 0;
    margin: 20px 0;
    border: 2px solid #00ff00;
}

.marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
    font-family: "Courier New", monospace;
    font-weight: bold;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Visitor counter */
.visitor-counter {
    margin-top: 15px;
    padding: 10px;
    background-color: #000000;
    color: #00ff00;
    border: 2px solid #00ff00;
    font-family: "Courier New", monospace;
    text-align: center;
    animation: pulse 2s infinite;
}

.counter-number {
    color: #ffff00;
    font-weight: bold;
    font-size: 18px;
    animation: blink 1.5s infinite;
}

/* Fun hover effects for sections */
.intro:hover, .about:hover, .token-info:hover {
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

/* Add some sparkle to the content wrapper */
.content-wrapper:hover {
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

/* Responsive adjustments while maintaining retro feel */
@media (max-width: 600px) {
    body {
        padding: 8px;
        font-size: 14px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }

    .dog-images {
        gap: 8px;
    }

    .dog-img {
        max-width: 120px;
    }

    .more-dogs {
        gap: 8px;
    }

    .small-dog {
        max-width: 60px;
    }

    .social-buttons, .footer-social {
        gap: 10px;
    }

    .social-btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    .content-wrapper {
        padding: 10px;
    }

    .story-box, .fun-facts {
        padding: 10px;
        margin: 10px 0;
    }
}
