body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    background: url('images/meme-maker/meme-maker-background.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

header {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
}

footer {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    margin-top: auto;
    color: white;
}

h1 {
    margin: 0;
    color: white;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(192, 192, 192, 0.8); /* Light grey with transparency */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    box-sizing: border-box;
}

#meme-grid, #meme-grid-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.meme-option {
    width: 150px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s, transform 0.3s;
    text-align: center;
}

.meme-option img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.meme-option:hover {
    border-color: #0099ff;
    transform: scale(1.05);
}

#generator, #generator-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

#description, #description2-1, #description2-2 {
    padding: 12px;
    font-size: 16px;
    margin-bottom: 15px;
    width: 80%;
    max-width: 400px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

#generate-button, #generate-button-2 {
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    background: linear-gradient(0deg, rgba(34, 193, 195, 1) 0%, rgba(45, 253, 111, 1) 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#generate-button:hover, #generate-button-2:hover {
    background-color: #28a745;
    transform: translateY(-2px);
}

#result, #result-2 {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

#meme-image, #meme-image-2 {
    max-width: 100%;
    height: auto;
    display: block;
}

.meme-option.selected {
    border-color: #0099ff;
    box-shadow: 0 0 10px rgba(0, 153, 255, 0.5);
    transform: scale(1.1);
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.nav-button {
    margin: 20px;
    width: 130px;
    height: 40px;
    color: #fff;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    outline: none;
    line-height: 42px;
    padding: 0;
    border: none;
    background: rgb(34, 193, 195);
    background: linear-gradient(0deg, rgba(34, 193, 195, 1) 0%, rgba(45, 253, 111, 1) 100%);
}

.nav-button:hover {
    color: #22C1C3;
    background: transparent;
    box-shadow: none;
}

.nav-button:before,
.nav-button:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 2px;
    width: 0;
    background: #22C1C3;
    box-shadow: -1px -1px 5px 0px #fff, 7px 7px 20px 0px #0003, 4px 4px 5px 0px #0002;
    transition: 400ms ease all;
}

.nav-button:after {
    right: inherit;
    top: inherit;
    left: 0;
    bottom: 0;
}

.nav-button:hover:before,
.nav-button:hover:after {
    width: 100%;
    transition: 800ms ease all;
}

.nav-button.active {
    background-color: #ccc;
}
