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

@font-face {
    font-family: "Comic Sans MS";
    src: url("assets/Comic Sans MS 400.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Comic Sans MS Bold";
    src: url("assets/comic-sans-bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

p {
    font-size: 16px;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    padding: 22px 0;
    background-color: #ffffff;
    border-bottom: 4px solid #000000;
    width: 100%;
    overflow-x: hidden;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.header-content-full {
    width: 100% !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.logo-container {
    display: flex !important;
    align-items: center;
    padding-left: 20px !important;
    flex-shrink: 0;
}

.header-logo {
    max-height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

.social-icons {
    display: flex !important;
    gap: 10px;
    padding-right: 20px !important;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto !important;
}

.social-icon {
    display: inline-block;
}

.social-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.chat-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #ffd700;
    border: 2px solid #000000;
    border-radius: 8px;
    text-decoration: none;
    color: #000000;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
    transition: transform 0.2s;
}

.chat-link:hover {
    transform: scale(1.05);
    background-color: #ffed4e;
}

/* Hero Section */
.hero {
    padding: 40px 0;
    text-align: center;
    width: 100%;
    overflow-x: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.main-logo {
    padding-top: 30px;
    margin-bottom: 20px;
}

.logo-image {
    max-width: 100%;
    height: auto;
    max-height: 95px;
}


.postcard-container {
    display: flex;
    justify-content: center;
    margin-top: 38px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.postcard {
    width: 100%;
    max-width: 708px;
    height: auto;
    display: block;
}

/* The Lore Section */
.lore-section {
    padding: 0;
    background-color: #ffffff;
    width: 100%;
    overflow-x: hidden;
}

.lore-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: normal;
    padding: 0 60px;
}

.lore-text {
    font-size: 16px;
}

.lore-text p {
    margin-bottom: 24px;
    font-size: 20px;
    text-align: justify;
    line-height: 1.7;
}
.lore-content .mint-button {
    margin-left: 60px;
}

.ca-text {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #000000;
    border-radius: 30px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: 24px;
    margin-top: 56px;
    background-color: #ffffff;
}

/* Chat Section Styles */
.chat-section-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border: 2px solid #000000;
    border-radius: 15px;
    min-height: 400px;
    max-height: 600px;
}

.message {
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    max-width: 60%;
    word-wrap: break-word;
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.message.user {
    background-color: #ffd700;
    margin-left: auto;
    text-align: right;
    border: 2px solid #000000;
    flex-direction: row-reverse;
}

.message.ai {
    background-color: #ff6b6b;
    margin-right: auto;
    border: 2px solid #000000;
}

.message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #000000;
    object-fit: cover;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    text-align: left;
}

.message-label {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.message-text {
    line-height: 1.6;
}

.message-text strong {
    font-style: italic;
    color: pink;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 20px;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 15px;
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #000000;
    border-radius: 10px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: 16px;
    resize: none;
}

.chat-input:focus {
    outline: none;
    border-color: #ff0000;
}

.send-button {
    padding: 12px 30px;
    background-color: #ffd700;
    border: 2px solid #000000;
    border-radius: 10px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.send-button:hover {
    transform: scale(1.05);
    background-color: #ffed4e;
}

.send-button:active {
    transform: scale(0.95);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading {
    display: none;
    text-align: center;
    padding: 10px;
    color: #666;
    font-style: italic;
}

.loading.active {
    display: block;
}

.loading strong {
    font-style: italic;
    color: pink;
}

.section-title {
    font-size: 41px;
    font-weight: normal;
    margin-bottom: 30px;
    color: #000000;
    text-align: center;
    text-decoration: underline;
}

.lore-title {
    font-size: 26px;
    font-weight: bold;
    font-family: "Comic Sans MS Bold", "Comic Sans MS", "Comic Sans", cursive;
    color: #000000;
    text-align: left;
    text-decoration: none;
    margin-bottom: 20px;
}

.lore-image-container {
    text-align: center;
}

.lore-image {
    max-width: 100%;
    width: 466px;
    height: auto;
    margin:0;
    margin-bottom: 30px;
    margin-left: 60px;
    display: block;
    border: 4px solid #000000;
}

.mint-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    display: inline-block;
    margin: 11px 0;
}

.mint-button img {
    max-width: 290px;
    height: auto;
    transition: opacity 0.2s;
    display: block;
}

.mint-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("assets/notyetbutton.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    max-width: 290px;
}

.mint-button:hover img,
.mint-button:active img {
    opacity: 0;
}

.mint-button:hover::after,
.mint-button:active::after {
    opacity: 1;
}

/* Become a MoLester Section */
.become-section {
    padding: 53px 0;
    background-color: #ffffff;
    text-align: center;
    width: 100%;
    overflow-x: hidden;
}
.become-section .container {
    max-width: 860px;

}
.become-section .section-title {
    margin: 6px 0 34px 0;
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;

}

.nft-item {
    aspect-ratio: 1;
    overflow: hidden;
    width: 170px;
    max-width: 100%;
    box-sizing: border-box;
}

.nft-item img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

.mint-button-container {
    margin-top: 22px;
}

/* Origin Story Section */
.origin-section {
    padding: 60px 0;
    background-color: #ffffff;
    width: 100%;
    overflow-x: hidden;
}

.origin-content {
    width: 100%;
}

.origin-text {
    font-size: 16px;
    line-height: 1.8;
    border: 2px solid #000000;
    border-radius: 15px;
    padding: 30px;
}

.origin-text p {
    margin-bottom: 22px;
    font-size: 20px;
}

/* Chat Section */
.chat-section {
    padding: 0;
    background-color: #ffffff;
    width: 100%;
    overflow-x: hidden;
}

/* Meme Gallery Section */
.gallery-section {
    padding: 100px 0;
    background-color: #ffffff;
    text-align: center;
    width: 100%;
    overflow-x: hidden;
}
.gallery-section .container {
    max-width: 880px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
    box-sizing: border-box;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    width: 265px;
    max-width: 100%;
    box-sizing: border-box;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item-tall {
    aspect-ratio: auto;
    height: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gallery-item-tall img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Footer */
.footer {
    padding: 40px 0;
    background-color: #ffffff;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    margin-bottom: 22px;
    font-size: 25px;
}

.footer-pump {
    font-family: monospace;
    color: #666;
}

.footer-year {
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        width: 100%;
    }

    .lore-content {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
        padding: 0;
    }
    .lore-content .mint-button {
        margin-left: 0;
    }
    .lore-image {
        margin-left: 0;
        width: 100%;
    }

    .lore-image-container {
        order: -1;
        width: 100%;
    }
    
    .origin-content {
        width: 100%;
    }

    .nft-grid {
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
    }
    
    .nft-item {
        min-width: 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-item-tall {
        grid-column: span 1;
    }
    
    .gallery-item,
    .gallery-item-tall {
        width: 100%;
    }

    .postcard {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        width: 100%;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
        width: 100%;
    }

    .header-content-full {
        padding: 0 !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .logo-container {
        padding-left: 15px !important;
    }
    
    .social-icons {
        padding-right: 15px !important;
        margin-left: auto !important;
    }

    .header-logo {
        max-height: 35px;
    }

    .hero-content {
        padding: 0 15px;
        width: 100%;
    }

    .postcard-container {
        padding: 0;
        width: 100%;
    }
    
    .nft-grid {
        width: 100%;
    }
    
    .nft-item {
        min-width: 0;
        width: 100%;
    }

    .postcard {
        max-width: 100%;
    }

    .logo-image {
        max-height: 100px;
    }

    .section-title {
        font-size: 28px;
    }

    .nft-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item,
    .gallery-item-tall {
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-item-tall img {
        max-width: 100%;
        height: auto;
    }

    .lore-text,
    .origin-text {
        font-size: 16px;
    }
    
    .lore-text p,
    .origin-text p {
        font-size: 16px;
    }

    .mint-button img {
        max-width: 300px;
    }
    
    .mint-button::after {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
        width: 100%;
    }

    .header-content {
        padding: 0 10px;
        width: 100%;
    }

    .hero {
        padding: 20px 0;
    }

    .hero-content {
        padding: 0 10px;
        width: 100%;
    }

    .postcard-container {
        padding: 0;
        margin-top: 20px;
        width: 100%;
    }

    .postcard {
        max-width: 100%;
    }

    .logo-image {
        max-height: 80px;
    }

    .main-logo {
        padding-top: 10px;
        margin-bottom: 15px;
    }

    .lore-section,
    .become-section,
    .origin-section,
    .gallery-section {
        padding: 40px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .gallery-item,
    .gallery-item-tall {
        width: 100%;
        max-width: 100%;
    }
    
    .gallery-item img,
    .gallery-item-tall img {
        max-width: 100%;
        height: auto;
    }

    .nft-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }
    
    .nft-item {
        min-width: 0;
    }

    .section-title {
        font-size: 24px;
    }

    .chat-messages {
        min-height: 300px;
        max-height: 400px;
        padding: 15px;
    }

    .message {
        max-width: 90%;
        font-size: 18px;
    }
    
    .message-avatar {
        width: 40px;
        height: 40px;
    }

    .chat-input-container {
        flex-direction: column;
        padding: 15px;
    }

    .send-button {
        width: 100%;
    }

    .mint-button img {
        max-width: 100%;
    }
    
    .mint-button::after {
        max-width: 100%;
    }

    .origin-text {
        padding: 20px;
    }

    .social-icon img {
        width: 35px;
        height: 35px;
    }
}

