/* Floating header styles */
.floating-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.92);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 0 32px;
    height: 64px;
    backdrop-filter: blur(6px);
}
.header-left, .header-right {
    display: flex;
    align-items: center;
    height: 100%;
}
.header-left {
    flex: 0 0 auto;
}
.header-right {
    display: flex;
    align-items: center;
    height: 100%;
}
.header-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1967d2;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-title:hover {
    color: #0d47a1;
}
.header-btn {
    background: none;
    border: none;
    color: #1967d2;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    margin-right: 18px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
}
.header-btn:last-child {
    margin-right: 0;
}
.header-btn:hover, .header-btn:focus {
    background: #e8f0fe;
    color: #0d47a1;
}
main {
    margin-top: 80px;
}


body {
    font-family: 'Roboto Mono', monospace;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
}

header, footer {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 a {
    color: #0d1117;
    text-decoration: none;
}

main h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.turtle-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.turtle-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.turtle-card:hover {
    transform: translateY(-5px);
}

.turtle-card img {
    max-width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #fafafa;
    padding: 10px;
}

.card-info {
    padding: 15px;
}

.card-info h3 {
    margin: 0 0 5px 0;
}

.card-info p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9em;
}


.tag {
    display: inline-block;
    background-color: #e8f0fe;
    color: #1967d2;
    padding: 5px 10px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8em;
    font-weight: bold;
    margin-top: 8px;
    transition: background 0.2s, color 0.2s;
}
.tag:hover {
    background-color: #1967d2;
    color: #fff;
}

/* Turtle name and image links in gallery */
.turtle-link {
    color: #1967d2;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: color 0.2s, text-shadow 0.2s;
}
.turtle-link:hover {
    color: #0d47a1;
    text-shadow: 0 2px 8px rgba(25,103,210,0.08);
}

.turtle-card a img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(25,103,210,0.07);
    transition: box-shadow 0.2s;
    border: 2px solid transparent;
}
.turtle-card a:focus img,
.turtle-card a:hover img {
    box-shadow: 0 4px 16px rgba(25,103,210,0.15);
    border: 2px solid transparent;
    outline: none;
    /* No transform, no blue border */
}
.turtle-card:focus-within,
.turtle-card:hover {
    transform: translateY(-5px) scale(1.03);
    z-index: 2;
}

/* Turtle detail page styles */
.turtle-detail-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    margin-top: 40px;
}

.turtle-detail-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    padding: 32px 32px 24px 32px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.turtle-detail-img {
    max-width: 320px;
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.turtle-detail-info h1 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 2rem;
    color: #1967d2;
}

.turtle-description {
    color: #444;
    font-size: 1.08em;
    margin-bottom: 18px;
}

.turtle-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}
.turtle-links li {
    margin-bottom: 6px;
}
.turtle-links a {
    color: #1967d2;
    text-decoration: underline;
    transition: color 0.2s;
}
.turtle-links a:hover {
    color: #0d47a1;
}

.back-link {
    display: inline-block;
    margin-top: 18px;
    color: #555;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.2s;
}
.back-link:hover {
    color: #1967d2;
}
