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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

main {
    max-width: 1200px;
    margin: 80px auto 2rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-content: center;
}

.boobie-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1;
}

.boobie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.boobie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.boobie-card:hover img {
    transform: scale(1.05);
}

/* Link card styles */
.link-card {
    position: relative;
    background: #4682b4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: white;
    aspect-ratio: 1;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.link-card-inner {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.link-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.link-card-description {
    font-size: 1rem;
    opacity: 0.9;
}

/* Loading animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#loading {
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: fadeIn 0.5s ease-in;
    width: 100%;
    margin: 100px auto;
    display: none; /* Hidden by default */
}

#loading.visible {
    display: flex;
}

.loading-animation {
    display: flex;
    gap: 8px;
    height: 20px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.loading-message {
    text-align: center;
    width: 100%;
}

.loading-dot {
    width: 12px;
    height: 12px;
    background-color: #4682b4;
    border-radius: 50%;
    animation: bounce 0.6s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* Card content overlay */
.card-content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.card-content-overlay.active {
    display: flex;
}

.card-content-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.card-content-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.card-content-body {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.card-content-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
    transition: color 0.3s ease;
}

.card-content-close:hover {
    color: #333;
}

/* Status overlay */
.status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 2;
    font-size: 2em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: rotate(-45deg);
    width: 200px;
    height: 50px;
    margin: auto;
    background: none;
}

/* Boobie tooltip */
.boobie-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.boobie-card:hover .boobie-tooltip {
    opacity: 1;
}

.boobie-tooltip h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.attribute-list {
    margin-top: 10px;
}

.attribute-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.attribute-name {
    color: #aaa;
}

.attribute-value {
    display: flex;
    align-items: center;
    gap: 5px;
}

.color-sample {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

/* Responsive design */
@media (max-width: 768px) {
    #gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 15px;
    }

    .link-card-title {
        font-size: 1.2rem;
    }

    .link-card-description {
        font-size: 0.9rem;
    }

    .card-content-container {
        width: 95%;
        padding: 20px;
    }

    .card-content-title {
        font-size: 1.5rem;
    }

    .card-content-body {
        font-size: 1rem;
    }
}

/* Boobie page styles */
.boobie-page {
    max-width: 1200px;
    margin: 100px auto 100px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex: 1;
}

.boobie-image-container {
    flex: 1;
    position: relative;
    display: inline-block;
    line-height: 0;
    overflow: hidden;
    border-radius: 12px;
    padding: 9px;
    background: white;
}

.boobie-image {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 12px;
}

.boobie-info {
    flex: 1;
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.action-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.share-button {
    background-color: #4a90e2;
    color: white;
}

.share-button:hover {
    background-color: #357abd;
}

.adopt-button {
    background-color: #2ecc71;
    color: white;
}

.adopt-button:hover {
    background-color: #27ae60;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background-color: #4682b4;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.back-button:hover {
    background-color: #357abd;
}

/* Responsive styles for boobie page */
@media (max-width: 768px) {
    .boobie-page {
        flex-direction: column;
        padding: 1rem;
        margin-top: 80px;
    }

    .boobie-info {
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }
}

/* Admin link styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 1rem;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.site-header h1 {
    font-size: 2rem;
    margin: 0;
    transition: all 0.3s ease;
}

.site-footer {
    background: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.site-footer.scrolled {
    background-color: rgba(0, 0, 0, 0.9);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer h3 {
    font-size: 1rem;
    margin: 0;
    transition: all 0.3s ease;
}

/* Responsive styles for header and footer */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 1.5rem;
    }
    
    .site-footer h3 {
        font-size: 0.9rem;
    }

    main {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 15px;
        margin-top: 70px;
    }
}

@media (max-width: 480px) {
    .site-header h1 {
        font-size: 1.2rem;
    }
    
    .site-footer h3 {
        font-size: 0.8rem;
    }

    main {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 10px;
        margin-top: 60px;
    }
}

/* Fullscreen status overlay */
.fullscreen-image-container .status-overlay {
    font-size: 2rem;
    padding: 20px 100px;
    width: 140%;
}

/* Responsive adjustments for status overlay */
@media (max-width: 768px) {
    .status-overlay {
        font-size: 1.5em;
        width: 150px;
        height: 40px;
    }
    
    .fullscreen-image-container .status-overlay {
        font-size: 1.5rem;
        padding: 15px 0;
        width: 200%;
        left: -50%;
    }
}

@media (max-width: 480px) {
    .status-overlay {
        font-size: 1.2em;
        width: 120px;
        height: 30px;
    }
    
    .fullscreen-image-container .status-overlay {
        font-size: 1.2rem;
        padding: 10px 0;
        width: 180%;
        left: -40%;
    }
}

/* Responsive adjustments for fullscreen view */
@media (max-width: 1024px) {
    .fullscreen-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }

    .fullscreen-image-container {
        width: 100%;
    }

    .fullscreen-info {
        width: 100%;
        max-width: 600px;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .fullscreen-container {
        width: 95%;
        padding: 0.5rem;
    }

    .fullscreen-info {
        padding: 1rem;
    }
}

/* Footer styles */
footer {
    background-color: rgba(70, 130, 180, 0.9); /* #4682b4 with 90% opacity */
    color: white;
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

footer.scrolled {
    background-color: rgba(70, 130, 180, 0.95); /* More opaque when scrolled */
}

footer h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

footer p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Adjust main content to account for fixed header and footer */
#gallery {
    margin-top: 100px;
    margin-bottom: 120px; /* Increased to account for fixed footer */
    padding: 20px;
}

.attribute {
    display: flex;
    margin-bottom: 0.5rem;
    padding: 0.15rem 0;
}

.attribute .label {
    flex: 0 0 12%;
    font-weight: bold;
    padding-right: 0.15rem;
    white-space: nowrap;
    font-size: 0.9em;
}

.attribute .value {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    padding-right: 0.5rem;
    font-size: 0.9em;
}

.attribute .value span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

@media (max-width: 480px) {
    .attribute {
        font-size: 0.8rem;
        padding: 0.1rem 0;
    }
    
    .attribute .label {
        flex: 0 0 12%;
        padding-right: 0.1rem;
        font-size: 0.85em;
    }
    
    .attribute .value {
        gap: 0.75rem;
        padding-right: 0.25rem;
        font-size: 0.85em;
    }
    
    .color-sample {
        width: 1px;
        height: 1px;
        flex-shrink: 0;
    }
} 