body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 { text-align: center; }

.container { 
    display: flex; 
    gap: 20px; 
    margin-bottom: 20px;
}

.bird-section { 
    flex: 1; 
    border: 1px solid #ccc; 
    padding: 15px; 
    border-radius: 5px;
}

.form-group { margin-bottom: 10px; }

label { 
    display: block; 
    font-weight: bold; 
    margin-bottom: 5px; 
}

select { 
    width: 100%; 
    padding: 5px; 
}

.images { 
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.images > div {
    display: flex;
    justify-content: center;
}

.images img { 
    width: 300px; 
    height: 300px; 
}

h3 { 
    margin-top: 0; 
    text-align: center; 
}

.genotype-section { margin-top: 20px; }

.section-label { 
    font-weight: bold; 
    margin: 20px 0 10px 0; 
}

#offspring-results { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 15px; 
}

#offspring-results .imageWrapper {
    height: 150px;
    width: 150px;
    background-color: revert;
}

.offspring-card { 
    border: 1px solid #ddd; 
    padding: 10px; 
    border-radius: 5px; 
    background: #f9f9f9; 
}

.offspring-card > .image {
    display: flex;
    justify-content: center;
}

.offspring-card h4 { 
    margin: 0 0 10px 0; 
    font-size: 14px; 
}

.offspring-card .probability { 
    font-weight: bold; 
    color: #0066cc; 
    margin-bottom: 5px; 
}

.offspring-card .trait { 
    font-size: 12px; 
    margin: 3px 0; 
}

.offspring-card img { 
    width: 150px; 
    height: 150px; 
    display: block; 
    margin: 10px auto; 
}

.genotype-toggle { 
    font-size: 12px; 
    margin-top: 5px; 
}

.genotype-details { 
    font-size: 11px; 
    margin-top: 5px; 
    padding: 5px; 
    background: #fff; 
    border: 1px solid #ddd; 
}

.multiWrapper {
    position: relative;
}

.imageWrapper { 
    position: relative; 
    height: 300px; 
    width: 300px;
    flex-shrink: 0;
    background-color: white;
    border-radius: 5px;
}

.overlayImage { 
    position: absolute; 
    top: 0; 
    left: 0; 
}

.detail-edit { display: inline; }

.reset {
    margin-top: 20px;
}

.link-button {
    display: inline-block;
    background-color: #24292e;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 3px;
    margin-top:5px;
    font-family: -apple - system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen - Sans, Ubuntu, Cantarell, "Helvetica Neue", sans - serif;
}
.link-button:hover {
    background-color: #586069;
}

footer {
    font-size: small;
    margin-top: 20px;
    padding: 10px;
    background-color: paleturquoise;
    border-radius: 5px;
}

/* Mobile Responsive Styles */
@media (max-width: 600px) {
    body {
        padding: 10px;
        max-width: 100%;
    }

    .container {
        flex-direction: column;
        gap: 15px;
    }

    .images {
        grid-template-columns: 1fr;
    }

    .images > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.2em;
    }

    .images {
        grid-template-columns: 1fr;
    }

    .bird-section {
        padding: 10px;
    }
}
