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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.main-header {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.main-header h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

/* Container and Gallery */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.images-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.image-container {
    width: 48%;
    max-width: 600px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: opacity 0.3s ease;
    opacity: 1;
    display: flex;
    flex-direction: column;
}

.image-header {
    background-color: #34495e;
    padding: 8px 15px;
    color: white;
    text-align: center;
    flex-shrink: 0;
}

.image-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.image-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.caption-container {
    padding: 15px;
    background-color: white;
    border-top: 1px solid #eee;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.caption {
    text-align: center;
    font-size: 16px;
    color: #34495e;
    line-height: 1.5;
    margin: 0;
}

.controls-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

#refreshBtn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}

#refreshBtn:hover {
    background: linear-gradient(135deg, #2980b9, #1c6ea4);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.5);
}

#refreshBtn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.4);
}

#refreshBtn i {
    font-size: 16px;
}

.filter-options {
    display: flex;
    gap: 15px;
}

.radio-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.radio-container input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #3498db;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
}

.radio-container input[type="radio"]:checked {
    border-color: #2980b9;
}

.radio-container input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #2980b9;
    border-radius: 50%;
}

.radio-container label {
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
    cursor: pointer;
}

/* Updated Footer Links */
.futo-credit {
    margin: 15px 0;
    text-align: center;
}

.dual-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.creator-link, .futo-link {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.creator-link {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.futo-link {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.creator-link:hover, .futo-link:hover {
    transform: translateY(-3px);
}

.creator-link:hover {
    box-shadow: 0 6px 18px rgba(255, 0, 0, 0.4);
}

.futo-link:hover {
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
}

.link-divider {
    color: #7f8c8d;
    font-size: 14px;
    font-style: italic;
}

@media (min-width: 1200px) {
    .image-container {
        width: 45%;
    }
    
    .image-wrapper {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .image-container {
        width: 48%;
    }
    
    .image-wrapper {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .images-row {
        flex-direction: column;
        align-items: center;
    }
    
    .image-container {
        width: 90%;
        max-width: 500px;
        margin-bottom: 20px;
    }
    
    .image-wrapper {
        height: 300px;
    }
    
    .controls-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-options {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 1.5rem;
    }
    
    .image-wrapper {
        height: 250px;
    }
    
    .caption {
        font-size: 14px;
    }
    
    .dual-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .creator-link, .futo-link {
        font-size: 14px;
        padding: 6px 12px;
    }
}
