/* 90s-inspired CSS styling */

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

/* Glitch effect class */
.glitch-effect {
    animation: glitch-invert 0.2s;
    filter: invert(100%);
}

@keyframes glitch-invert {
    0% { filter: invert(0%); }
    25% { filter: invert(25%); }
    50% { filter: invert(50%); }
    75% { filter: invert(75%); }
    100% { filter: invert(100%); }
}

html, body {
    width: 100%;
    height: 100%;
}

/* Custom 90s-style font */
@import url('e583659c89294d8db87cee6ed9e1ab83.css');

/* Marquee header */
.marquee-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000080;
    border-bottom: 3px solid #FFFF00;
    color: #FFFFFF;
    padding: 10px;
    font-size: 1.2rem;
    z-index: 1000;
}

/* Chaotic finfin GIFs */
.finfin-gif {
    position: fixed;
    z-index: 5; /* Lower z-index so buttons remain on top */
    pointer-events: none;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -15px) rotate(10deg); }
    66% { transform: translate(-15px, 15px) rotate(-10deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

body {
    font-family: 'VT323', 'Courier New', monospace;
    color: #00FF00;
    background-color: #000000;
    overflow: hidden;
    text-align: center;
    cursor: url('../images/mouse.png'), auto;
}

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

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
}

/* Main content container */
.main-container {
    position: relative;
    z-index: 1;
    overflow-y:auto;
    width: 100%;
    height: calc(100vh - 50px); /* Adjust for marquee header */
    margin-top: 50px; /* Add margin for marquee header */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
}

/* Header styling */
header {
    margin-top: 20px;
}

h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00FFFF, 0 0 20px #00FFFF, 0 0 30px #00FFFF;
}

.neon-text {
    animation: neon 1.5s ease-in-out infinite alternate;
}

@keyframes neon {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #00FFFF, 0 0 40px #00FFFF;
    }
    to {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #00FFFF, 0 0 20px #00FFFF;
    }
}

.marquee {
    background-color: #000080;
    border: 3px solid #FFFF00;
    color: #FFFFFF;
    padding: 10px;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Button container */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    z-index: 100;
    margin: 20px 0;
    position: relative;
}

/* Retro button styling */
.retro-button {
    display: block;
    width: 200px;
    padding: 15px 30px;
    margin: 10px auto;
    font-size: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #FFFFFF;
    background: linear-gradient(to bottom, #FF00FF, #990099);
    border: 3px outset #FF00FF;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 5px 5px 0px #000000;
    font-family: 'VT323', 'Courier New', monospace;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.1s;
    position: relative;
    z-index: 50; /* Higher z-index to stay above GIFs */
}

.retro-button:hover {
    background: linear-gradient(to bottom, #FF66FF, #CC00CC);
    transform: scale(1.05);
}

.retro-button:active {
    border-style: inset;
    box-shadow: 2px 2px 0px #000000;
    transform: translate(3px, 3px);
}

/* Contract address container */
.contract-address-container {
    padding: 15px;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px auto;
    position: relative;
    z-index: 50; /* Higher z-index to stay above GIFs */
}

.contract-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#contract-address {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
    background-color: #000000;
    padding: 5px 10px;
    border: 2px inset #CCCCCC;
    flex-grow: 1;
}

.copy-button {
    padding: 5px 10px;
    background: linear-gradient(to bottom, #00FF00, #006600);
    color: #FFFFFF;
    border: 2px outset #00FF00;
    cursor: pointer;
    font-family: 'VT323', 'Courier New', monospace;
    font-weight: bold;
    font-size: 1rem;
}

.copy-button:hover {
    background: linear-gradient(to bottom, #33FF33, #009900);
}

.copy-button:active {
    border-style: inset;
    transform: translateY(2px);
}

#copy-notification {
    color: #FFFF00;
    margin-top: 10px;
    font-size: 1rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Footer styling */
footer {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 800px;
    margin: 20px auto 0;
    background-color: rgba(0, 0, 0, 0.5);
    border-top: 2px solid #00FFFF;
    padding: 10px;
    overflow: hidden;
}

.footer-banner {
    height: 40px;
    width: 100%;
    max-width: 120px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.blink {
    animation: blink-animation 1s steps(2, start) infinite;
}
#logoimg{
    width: 30vw;
    margin-top:600px;
}
@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

/* 90s-style scrollbar */
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: #808080;
    border: 2px inset #CCCCCC;
}

::-webkit-scrollbar-thumb {
    background: #C0C0C0;
    border: 2px outset #FFFFFF;
}

/* Image Editor Module Styles */
.image-editor-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid #00FFFF;
    padding: 20px;
    gap: 20px;
   
}

.editor-left {
    flex: 4;
    min-height: 400px;
    position: relative;
}

.editor-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-area {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 2px dashed #00FFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area img:not(.sticker-image) {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.upload-placeholder {
    text-align: center;
    color: #00FFFF;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    pointer-events: none;
}

.upload-area:hover .upload-placeholder {
    background: rgba(0, 0, 0, 0.7);
}

.canvas-container {
    width: 100%;
    height: 300px;
    border: 2px solid #00FFFF;
    position: relative;
    overflow: hidden;
}

.sticker-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sticker {
    width: 100%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.sticker:hover {
    border-color: #00FFFF;
}

.sticker-container {
    position: absolute;
    cursor: move;
    user-select: none;
    z-index: 1000;
    pointer-events: auto;
}

.sticker-image {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.resize-button {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 20px;
    height: 20px;
    background: #00FFFF;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: nwse-resize;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #000;
    z-index: 1001;
    pointer-events: auto;
}

.resize-button:hover {
    background: #00FF00;
}

#saveButton {
    margin-top: auto;
    width: 100%;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .button-container {
        gap: 15px;
    }
    
    .retro-button {
        width: 180px;
        padding: 12px 20px;
        font-size: 1.2rem;
    }
    
    .contract-address-container {
        width: 250px;
    }
    #logoimg{
        width: 40vw;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .retro-button {
        width: 150px;
        padding: 10px 15px;
        font-size: 1rem;
    }
    
    .contract-address-container {
        width: 220px;
    }
    
    #contract-address {
        font-size: 0.7rem;
        width: 80vw;
    }
    
    .copy-button {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}
