/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-transform: uppercase;
    font-family: "Barlow Condensed", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

body {
    background: #eaeaea;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px 20px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Header styles */
header {
    text-align: center;
}

header h4 {
    font-size: 1.2rem;
    margin: 15px 10px 10px 10px;
    font-family: "Barlow Condensed", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    text-transform: uppercase;
    color: #999999;
}



/* Main content */
main {
    width: 100%;
    max-width: 800px;
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

/* Meme container */
.meme-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    margin-bottom: 2rem;
    margin-top: -2rem;
}

.meme-image {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    border: 8px solid white;
    cursor: pointer;
}

.meme-image:hover {
    border-color: red;
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error message */
.error-message {
    text-align: center;
    color: #e74c3c;
    font-size: 1.1rem;
}

/* Button styles */
.button-container {
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.refresh-btn {
    background: #fff;
    color: #000;
    padding: 4px 5px 5px 5px;
    font-size: 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: none;
    border: none;
    text-decoration: none;
    line-height: 1;
}

.refresh-btn:hover {
    background: #ea3323;
    color: #fff;
}

.refresh-btn:active {
    transform: translateY(0);
}

.refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Link button specific styles */
.make-own-btn {
    text-decoration: none;
    margin-left: 10px;
}

.make-own-btn:hover {
    background: #ea3323;
    color: #fff;
}

.button-icon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Footer */
footer {
    text-align: center;
    color: #333;
    opacity: 0.8;
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 1rem;
    color: #999999;
}

footer a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #000;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    main {
        padding: 1.5rem;
    }
    
    .meme-container {
        min-height: 300px;
    }
}

@media (max-width: 480px) {

    
    main {
        padding: 1rem;
    }
    
    .meme-container {
        min-height: 250px;
    }
}
