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

body {
    font-family: 'Georgia', serif;
    background-color: #f5f5dc;
    color: #333;
    line-height: 1.6;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #7f8c8d;
    font-style: italic;
}

.comics-container {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.comic-panel {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: #fff;
    border: 3px solid #2c3e50;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.comic-panel h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #e74c3c;
}

.comic-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #fff;
}

.comic-image img {
    width: 100%;
    display: block;
}

.caption {
    background-color: #fffacd;
    border: 2px solid #f39c12;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    font-size: 1.1em;
    font-style: italic;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.caption p {
    margin: 0;
}

.button-container {
    text-align: center;
    margin: 40px 0;
}

.refresh-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.refresh-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

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

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-text {
    color: #7f8c8d;
    font-size: 1em;
    line-style: italic;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .comics-container {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .comic-panel {
        max-width: 100%;
    }
}
