/* Font definitions */
@font-face {
    font-family: 'ACReg';
    src: url('fonts/Authentic-Comic-Regular.woff2') format('woff2'),
         url('fonts/Authentic-Comic-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SimpleStrong';
    src: url('fonts/Simple-Strong.woff2') format('woff2'),
         url('fonts/Simple-Strong.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Comic-Lemon';
    src: url('fonts/Comic-Lemon.woff2') format('woff2'),
         url('fonts/Comic-Lemon.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cat-Comic';
    src: url('fonts/Cat-Comic.woff2') format('woff2'),
         url('fonts/Cat-Comic.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Desktop Styles */
body {
    margin: 0;
    font-family: 'SimpleStrong', Arial, sans-serif;
    color: black;
    text-align: center;
}

h2, .caption, .title {
    font-family: 'ACReg', Arial, sans-serif;
}

.section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('desktop-bg2.png'); 
    background-size: cover;
    background-position: center;
}

.landing-page .container {
    display: none;
}

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

.landing-page .container img {
    max-width: 100%;
    max-height: 100%;
}

.mandy-img {
    transform: scale(.8);
    padding-bottom: 20%;
    padding-right: 125%;
}

.mandy-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px; /* Add space below the image */
}

.create-memes-btn {
    text-decoration: none;
    font-family: 'Comic-Lemon', Arial, sans-serif;
    font-size: 1.5em;
    color: #FFFFFF;
    background-color: rgba(210, 87, 130, 0.9); /* Canvas color with transparency */
    padding: 10px 50px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px; /* Add some margin to position it below the image */
}

.icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.icons a {
    z-index: 10; /* Ensure links are on top */
}

.icons img {
    margin: 0 10px;
    margin-bottom: 20px;
    width: 50px;
}

.content {
    display: flex;
    padding: 50px;
    background: #5e1a3a;
}

.content img {
    max-width: 50%;
    border: 10px solid #5e1a3a;
}

.content .text {
    max-width: 50%;
    font-size: 2em;
    background-color: #d34c8b;
    padding: 20px;
    border-radius: 10px;
    color: #002A8F;
}

.content .text p {
    font-size: 0.8em;
    background-color: #d34c8b;
    padding: 20px;
    border-radius: 10px;
    color: black;
}

.mandynomics {
    background: url('mandynomics.png') no-repeat center center;
    background-size: cover;
    padding: 50px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.mandynomics .title {
    width: 50%;
    font-size: 2.5em;
    background-color: #d34c8b;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.mandynomics .content {
    width: 50%;
    background-color: #00456d;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.mandynomics .content ul {
    list-style: none;
    padding: 0;
    font-size: 1.5em;
    line-height: 1.6;
    margin: 10px 0;
    text-align: center;
}

.mandynomics .content ul li {
    margin: 10px 0;
}

.caption {
    font-size: 2.5em;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer {
    font-size: 1em;
    font-weight: bold;
    color: white;
    padding: 50px;
    background-color: rgba(0, 0, 0, 0.7);
}

.memes {
    padding: 20px;
    background-color: #f5f5f5;
    overflow-y: auto;
    height: auto; /* Ensure the section can scroll vertically */
}

.memes h2 {
    font-family: 'ACReg', Arial, sans-serif;
    font-size: 2.5em;
    color: #002A8F;
    margin-bottom: 20px;
}

#meme-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive grid layout */
    grid-gap: 10px;
    justify-content: center;
}

.meme-image {
    width: 90%;
    border-radius: 10px;
    transition: transform 0.3s ease; /* Smooth transformation */
}

.meme-image:hover {
    transform: scale(1); /* Zoom in on hover */
}



/* Mobile Styles */
@media (max-width: 768px) {
    .section {
        height: auto;
        padding: 10px 0;
        flex-direction: column;
    }

     .landing-page {
        background-image: url('mobile-bg2.png'); 
        flex-direction: column;
        text-align: center;
    }
    .landing-page .container {
        width: 100%;
        padding: 10px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .landing-page .container img {
        max-width: 100%;
        margin-bottom: 10px;
        display: inline-block; /* Ensure the images are treated as inline elements */
    }

     .section {
        height: auto;
        padding: 10px 0;
        flex-direction: column;
    }
    
    .mandy-img {
        transform: scale(0.8);
        padding-bottom: 50%;
        padding-left: 120%
    }

    .create-memes-btn {
        margin-top: 30%
    }
    
    .maga-img {
        transform: scale(0.9);
        padding-left: 15%;
    }
    .icons {
        flex-direction: row;
    }

    .icons a {
        z-index: 10; /* Ensure links are on top */
    }
    .icons img {
        margin: 5px 0;
        width: 50%;
        padding: 5px;
        align-items: center;
    }
    .content {
        flex-direction: column;
        padding: 10px 0;
    }
    .content img, .content .text {
        max-width: 90%;
        margin-bottom: 10px;
        padding: 0 10px;
    }
    .mandynomics {
        align-items: center;
        padding: 10px;
    }
    .mandynomics .title, .mandynomics .content {
        width: 100%;
        margin-bottom: 10px;
        padding: 0 10px;
        text-align: center;
        color: white;
    }
    .footer {
        padding: 10px 0;
    }
    
    #meme-container {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}
