/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dog theme colors */
    --dog-primary: #8B4513;  /* SaddleBrown */
    --dog-secondary: #D2691E;  /* Chocolate */
    --dog-accent: #F4A460;  /* SandyBrown */
    --dog-bg: #FFF8DC;  /* Cornsilk */
    
    /* Duck theme colors */
    --duck-primary: #1E88E5;  /* DodgerBlue */
    --duck-secondary: #4CAF50;  /* Green */
    --duck-accent: #FFD700;  /* Gold */
    --duck-bg: #E3F2FD;  /* Light blue */
    
    /* Default theme (dog) */
    --primary: var(--dog-primary);
    --secondary: var(--dog-secondary);
    --accent: var(--dog-accent);
    --bg: var(--dog-bg);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: var(--bg);
    transition: background-color 0.5s ease;
}

/* Dog Theme */
body.dog-theme {
    --primary: var(--dog-primary);
    --secondary: var(--dog-secondary);
    --accent: var(--dog-accent);
    --bg: var(--dog-bg);
    background-image: url("dogpaw.png");
    background-repeat: repeat;
    background-size: 160px 160px;
}

/* Duck Theme */
body.duck-theme {
    --primary: var(--duck-primary);
    --secondary: var(--duck-secondary);
    --accent: var(--duck-accent);
    --bg: var(--duck-bg);
    background-image: url("duckfeet.png");
    background-repeat: repeat;
    background-size: 160px 160px;
}

/* Navigation */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Paw prints for dog theme */
.dog-theme header::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='rgba(255,255,255,0.8)'%3E%3Cellipse cx='30' cy='28' rx='8' ry='11'/%3E%3Cellipse cx='50' cy='24' rx='8' ry='11'/%3E%3Cellipse cx='70' cy='28' rx='8' ry='11'/%3E%3Cellipse cx='40' cy='40' rx='8' ry='11'/%3E%3Cpath d='M25 55c0 14 11 26 25 26s25-12 25-26c0-9-8-17-25-17s-25 8-25 17z'/%3E%3C/g%3E%3Cpath d='M50 50c-4 0-7 3.2-7 7.2 0 6.1 7 11.8 7 11.8s7-5.7 7-11.8C57 53.2 54 50 50 50z' fill='rgba(255,248,220,1)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    opacity: 0.6;
}

/* Duck prints for duck theme */
.duck-theme header::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(255,255,255,0.2)'%3E%3Cpath d='M16.5 6.67v2.5c1.16.42 2 1.52 2 2.83v5.17l-2 2v1c0 .55-.45 1-1 1h-2c-.55 0-1-.45-1-1v-1H8v1c0 .55-.45 1-1 1H5c-.55 0-1-.45-1-1v-1.17c-.31-.11-.6-.3-.83-.59L2 14.5v-2.5c0-1.31.84-2.41 2-2.83V6.67c-1.18-.48-2-1.63-2-3.01 0-.2.02-.4.06-.6.13-.61.46-1.15.9-1.58.44-.43.98-.75 1.59-.88.2-.04.4-.06.6-.06.2 0 .41.02.61.06.6.13 1.15.45 1.58.89.43.44.75.99.88 1.59.04.2.06.4.06.6 0 1.38-.82 2.53-2 3.01v1.16c.31.11.6.3.83.59L8 10.5h8l.17-.17c.23-.29.52-.48.83-.59V6.67c-1.18-.48-2-1.63-2-3.01 0-.2.02-.4.06-.6.13-.61.46-1.15.9-1.58.44-.43.98-.75 1.59-.88.2-.04.4-.06.6-.06.2 0 .41.02.61.06.6.13 1.15.45 1.58.89.43.44.75.99.88 1.59.04.2.06.4.06.6 0 1.38-.82 2.53-2 3.01zM5 5.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm14 0c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-7 0c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    opacity: 0.6;
}

nav {
    margin-bottom: 1rem;
}

.nav-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    margin: 0 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-button.active {
    background: white;
    color: var(--primary);
    font-weight: bold;
    border-color: white;
}

/* Main Content */
main {
    min-height: 60vh;
    padding: 2rem 0;
}

.content-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Buttons */
.action-button {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    margin: 1.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.action-button:active {
    transform: translateY(0);
}

.action-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Dog Button */
.dog-theme .action-button {
    background: linear-gradient(45deg, var(--dog-primary), var(--dog-secondary));
}

/* Duck Button */
.duck-theme .action-button {
    background: linear-gradient(45deg, var(--duck-primary), var(--duck-secondary));
}

/* Image Container */
.image-container {
    margin: 20px 0;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dog-theme .image-container img {
    border: 3px solid var(--dog-accent);
}

.duck-theme .image-container img {
    border: 3px solid var(--duck-accent);
}

.image-container img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Error Message */
.error-message {
    color: #e74c3c;
    margin: 20px 0;
}

.retry-button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background: #c0392b;
}

