/* Reset CSS */
@font-face {
    font-family: 'Comic Sans';
    src: url('fonts/comic-sans.ttf') format('truetype');
}

body, h1, p, img {
    margin: 0;
    padding: 0;
    font-family: "Comic Sans", cursive, sans-serif; /* Comic Sans font */
}

/* Basic Styles */
body {
    background-color:rgb(250, 223, 227);
}

header {
    background-color:brown;
    color: #fff;
    padding: 24px;
    text-align: center;
}

header h1 {
    font-size: 32px;
    animation: color-cycle 5s infinite; /* Total animation duration set to 5 seconds */
}

/* Styles for subheading */
.subheading {
    text-align: center;
    margin-top: 0px;
    font-size: 24px;
    color:#ff6600; /* Default text color */
}

/* Styles for subheading text */
.subheading-text {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    font-style: italic;
    color:blueviolet; /* Default text color */
}

.tagline {
    text-align: center;
    font-style: italic;
    color:green; /* Default text color */
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 24px; /* Increase font size */
    text-decoration: underline; /* Add underline */
}

@keyframes color-cycle {
    0%, 20% { color: #ff5e00; } /* Red */
    20.01%, 40% { color: #00ff00; } /* Green */
    40.01%, 60% { color:#00f2ff; } /* Blue */
    60.01%, 80% { color: #ffff00; } /* Yellow */
    80.01%, 100% { color: #ff00ff; } /* Magenta */
}

main {
    padding: 20px;
}

.meme {
    background-color: #c5e4ef;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
}

.meme img {
    display: block;
    margin: 0 auto;
    max-width: 100%; /* Set maximum width to 100% of container */
    height: auto; /* Maintain aspect ratio */
    width: 400px;
    border-radius: 10px;
}

.meme p {
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

.meme-text-red {
    color: red;
}

.meme-text-blue {
    color: blue;
}

.meme-text-green {
    color: green;
}

.meme-text-brown {
    color: brown;
}

.meme-text-pink {
    color:#ff00ff;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}
/* For desktop devices */
@media screen and (min-width: 769px) {
    .meme {
        max-width: 600px; /* Set maximum width for image container on desktop */
        margin: 0 auto 20px; /* Center align the image container */
    }
}
