:root {
    --primary-color: #1e3cff;       /* blue */
    --secondary-color: #9659ff;     /* purple */
    --background-color: #0f0f1c;    /* dark blue/black */
    --text-color: #ffffff;          /* white */
    --accent-color: #40f29a;        /* green */
    --accent-alt: #c8daff;          /* light blue */
    --highlight: #ffce42;           /* yellow */
    --error-color: #ff3333;         /* red */
    --lime: #c6f221;                /* lime */
}

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

body {
    font-family: 'Funnel Display', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr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iKYkmW3tTg3ZQ9Jq+f8XN+A5eeUKHWvJWJ2sgJ1Sop+wwhqFVijqWaJhwtD8MNlSBeWNNWTa5Z5kPZw5+LbVT99wqTdx29lMUH4OIG/D86ruKEauBjvH5xy6um/Sfj7ei6UUVk4AIl3MyD4MSSTOFgSwsH/QJWaQ5as7ZcmgBZkzjjU1UrQ74ci1gWBCSGHtuV1H2mhSnO3Wp/3fEV5a+4wz//6qy8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==');
    opacity: 0.05;
    z-index: 10;
    pointer-events: none;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

main.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-container {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 60px;
    display: block;
    width: auto;
    z-index: 2;
}

.title-background {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: -1;
    border: none;
    box-shadow: 0 0 30px rgba(150, 89, 255, 0.3), inset 0 0 30px rgba(198, 242, 33, 0.1);
    overflow: visible;
}

.title, .subtitle {
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
}

.title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(150, 89, 255, 0.7);
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0;
    color: var(--highlight);
    letter-spacing: 2px;
}

.signup-form {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    background: rgba(15, 15, 28, 0.6);
    border: 1px solid rgba(30, 60, 255, 0.3);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(30, 60, 255, 0.2);
    backdrop-filter: blur(5px);
}

#mc_embed_signup form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input {
    width: 100%;
    padding: 15px;
    background: rgba(15, 15, 28, 0.7);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'Funnel Display', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    box-shadow: 0 0 10px var(--accent-alt);
    border-color: var(--accent-alt);
}

button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    border: none;
    border-radius: 4px;
    color: var(--highlight);
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

button:hover {
    background: var(--accent-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(64, 242, 154, 0.4);
}

/* Blinking cursor animation */
.blink {
    animation: blink 1s infinite;
    color: var(--highlight);
}

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


.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
  }
  

.pixelated-edge {
    display: none;
}

.left-edge, .right-edge {
    display: none;
}

/* Pixel container styling */
.pixel-container {
    position: fixed;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

/* Pixel elements */
.pixel {
    position: absolute;
    background-color: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color);
    z-index: 1;
    transition: opacity 0.3s ease; /* Add smooth transition */
}

/* Pixel elements */
.pixel {
    position: absolute;
    background-color: var(--accent-color);
    box-shadow: 0 0 5px var(--accent-color);
    z-index: 1;
    transition: opacity 0.3s ease; /* Add smooth transition */
}


a {
    color: var(--highlight);
}

.footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: 'Funnel Sans', sans-serif;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 15, 28, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.footer p {
    margin: 0;
}


.pixel-drawing {
    box-shadow: 
    4px 4px 0 0 var(--highlight), 
    8px 4px 0 0 var(--highlight), 
    52px 4px 0 0 var(--highlight), 
    56px 4px 0 0 var(--highlight), 
    4px 8px 0 0 var(--highlight), 
    8px 8px 0 0 var(--highlight), 
    28px 8px 0 0 var(--highlight), 
    32px 8px 0 0 var(--highlight), 
    52px 8px 0 0 var(--highlight), 
    56px 8px 0 0 var(--highlight), 
    12px 12px 0 0 var(--highlight), 
    16px 12px 0 0 var(--highlight), 
    28px 12px 0 0 var(--highlight), 
    32px 12px 0 0 var(--highlight), 
    44px 12px 0 0 var(--highlight), 
    48px 12px 0 0 var(--highlight), 
    12px 16px 0 0 var(--highlight), 
    16px 16px 0 0 var(--highlight), 
    44px 16px 0 0 var(--highlight), 
    48px 16px 0 0 var(--highlight), 
    20px 20px 0 0 var(--highlight), 
    24px 20px 0 0 var(--highlight), 
    36px 20px 0 0 var(--highlight), 
    40px 20px 0 0 var(--highlight), 
    20px 24px 0 0 var(--highlight), 
    24px 24px 0 0 var(--highlight), 
    36px 24px 0 0 var(--highlight), 
    40px 24px 0 0 var(--highlight), 
    8px 28px 0 0 var(--highlight), 
    12px 28px 0 0 var(--highlight), 
    28px 28px 0 0 var(--highlight), 
    32px 28px 0 0 var(--highlight), 
    48px 28px 0 0 var(--highlight), 
    52px 28px 0 0 var(--highlight), 
    8px 32px 0 0 var(--highlight), 
    12px 32px 0 0 var(--highlight), 
    28px 32px 0 0 var(--highlight), 
    32px 32px 0 0 var(--highlight), 
    48px 32px 0 0 var(--highlight), 
    52px 32px 0 0 var(--highlight), 
    20px 36px 0 0 var(--highlight), 
    24px 36px 0 0 var(--highlight), 
    36px 36px 0 0 var(--highlight), 
    40px 36px 0 0 var(--highlight), 
    20px 40px 0 0 var(--highlight), 
    24px 40px 0 0 var(--highlight), 
    36px 40px 0 0 var(--highlight), 
    40px 40px 0 0 var(--highlight), 
    12px 44px 0 0 var(--highlight), 
    16px 44px 0 0 var(--highlight), 
    44px 44px 0 0 var(--highlight), 
    48px 44px 0 0 var(--highlight), 
    12px 48px 0 0 var(--highlight), 
    16px 48px 0 0 var(--highlight), 
    28px 48px 0 0 var(--highlight), 
    32px 48px 0 0 var(--highlight), 
    44px 48px 0 0 var(--highlight), 
    48px 48px 0 0 var(--highlight), 
    4px 52px 0 0 var(--highlight), 
    8px 52px 0 0 var(--highlight), 
    28px 52px 0 0 var(--highlight), 
    32px 52px 0 0 var(--highlight), 
    52px 52px 0 0 var(--highlight), 
    56px 52px 0 0 var(--highlight),
    4px 56px 0 0 var(--highlight), 
    8px 56px 0 0 var(--highlight), 
    52px 56px 0 0 var(--highlight), 
    56px 56px 0 0 var(--highlight);
    height: 4px;
    width: 4px;
    transform: translateX(-28px);
    position: relative;
    margin-bottom: 36px;
    margin-top: 36px;
}

.download-button-container {
    margin-top: 2rem;
    text-align: center;
}

.download-buttons-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(15, 15, 28, 0.7);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Funnel Display', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    flex-shrink: 0;
}

.download-button:hover {
    background: var(--primary-color);
    color: var(--highlight);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 255, 0.4);
    text-decoration: none;
}

.download-button p {
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.download-button .material-symbols-outlined {
    flex-shrink: 0;
}

.Randamu-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Medium screens (tablets and smaller laptops) */
@media (min-width: 766px) and (max-width: 1200px) {
    .title {
        font-size: 3rem;
        line-height: 1.1;
        letter-spacing: -0.5px;
    }
    
    .subtitle {
        font-size: 1.8rem;
        letter-spacing: 1.5px;
    }
    
    .title-container {
        padding: 35px 45px;
        margin-bottom: 50px;
    }
}

@media (max-width: 765px) {
    .title-container {
        padding: 15px 10px;
        margin-bottom: 25px;
    }
    
    .title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }
    
    .subtitle {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }
    
    .signup-form {
        padding: 15px;
        margin: 0 5px;
    }
    
    .container {
        padding: 10px;
    }
    
    .pixelated-edge {
        width: 60px;
    }
    
    .left-edge {
        left: -60px;
    }
    
    .right-edge {
        right: -60px;
    }
    
    .footer {
        bottom: 0px;
        right: 0px;
        font-size: 12px;
        gap: 6px;
        padding: 6px 8px;
    }
    
    .Randamu-logo {
        width: 18px;
        height: 18px;
    }
    
    .pixel-drawing {
        transform: scale(0.8) translateX(-28px);
        margin-bottom: 25px;
        margin-top: 25px;
    }
    
    .download-button-container {
        margin-top: 1rem;
    }
    
    .download-button {
        padding: 10px 16px;
        font-size: 0.9rem;
        gap: 8px;
        width: auto;
        max-width: 100%;
    }
    
    .download-button p {
        font-size: 0.9rem;
    }
    
    .download-buttons-wrapper {
        margin-top: 1rem;
        gap: 0.75rem;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
}

/* Desktop layout for download buttons */
@media (min-width: 766px) {
    .download-buttons-wrapper {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .download-button-container {
        margin-top: 0;
    }
}

@media (max-width: 765px) {
    .footer {
        bottom: 0px !important;
        right: 0px !important;
        font-size: 12px !important;
        gap: 6px !important;
        padding: 6px 8px !important;
    }
    
    .Randamu-logo {
        width: 18px !important;
        height: 18px !important;
    }

    .download-button-container {
        margin-top: 1rem;
    }
    
    .download-button {
        padding: 10px 16px;
        font-size: 0.9rem;
        gap: 8px;
        width: auto;
        max-width: 100%;
    }
    
    .download-button p {
        font-size: 0.9rem;
    }
    
    .download-buttons-wrapper {
        margin-top: 1rem;
        gap: 0.75rem;
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
}


/* Remove the animated pixels and animations since we're using a gradient effect */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}
