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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #FFB3E6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 20px 10px;
    position: relative;
    min-height: calc(100vh - 80px);
}

/* Mobile Grid Layout */
.animations-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 60px);
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    position: relative;
}

/* Show/hide based on device */
.desktop-only {
    display: none !important;
}

.mobile-only {
    display: block;
}

.animation-bubble {
    text-decoration: none;
    z-index: 1;
}

.animation-bubble.mobile-only {
    width: 100%;
    height: 100%;
}

/* Mobile Grid Positioning */
.bubble-driptrade.mobile-only {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
}

.bubble-exchange.mobile-only {
    grid-column: 3 / 7;
    grid-row: 2 / 4;
}

.bubble-hell.mobile-only {
    grid-column: 1 / 4;
    grid-row: 3 / 5;
}

.catloaf-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: -20px auto 0;
}

#catloaf-animation {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.catloaf-text {
    display: none;
}

.nft-text {
    display: none;
}

/* Marquee */
.marquee {
    --gap: 2rem;
    background-color: white;
    color: black;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 35px;
    border-top: 4px solid black;
    padding: 15px 0;
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: var(--gap);
}

.marquee__content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: var(--gap);
    animation: scroll 20s linear infinite;
}

.marquee__content span {
    white-space: nowrap;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% - var(--gap)));
    }
}

/* Desktop styles */
@media (min-width: 768px) {
    .desktop-only {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }

    .container {
        min-height: calc(100vh - 80px);
        padding: 40px;
    }

    .animations-wrapper {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        display: block;
        margin: 0;
    }

    .animation-bubble {
        position: absolute;
        margin: 0;
        width: 350px;
        height: 180px;
        align-self: auto;
    }

    .bubble-hell {
        top: 12%;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }

    .bubble-exchange {
        top: 38%;
        left: 18%;
        margin: 0;
    }

    .bubble-driptrade {
        top: 38%;
        right: 18%;
        margin: 0;
    }

    .catloaf-container {
        width: 450px;
        height: 450px;
        z-index: 10;
        margin-top: 50px;
    }


    .ticker-tape {
        font-size: 35px;
        padding: 20px 0;
    }
}

/* Removed Windows 95 modal styles - now using unified modal style */

.bubble-driptrade {
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* WTF Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px 50px;
    max-width: 650px;
    width: 90%;
    max-height: 80vh;
    overflow: visible;
    position: relative;
    border: 5px solid black;
    transform: skewX(-3deg) skewY(-2deg);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
    font-weight: bold;
    transform: skewX(3deg) skewY(2deg);
    z-index: 10;
}

.modal-content h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
    transform: skewX(3deg) skewY(2deg);
    text-align: center;
}

.modal-content p {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    transform: skewX(3deg) skewY(2deg);
}

/* Mobile specific modal styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }

    .modal-content h2 {
        font-size: 20px;
    }

    .modal-content p {
        font-size: 14px;
    }
}