*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html{
    scroll-behavior: smooth;
}
:root{
    --grass: #2D5A1B;
    --leaf: #4A8C35;
    --sky: #E8F4FD;
    --sun: #FFD166;
    --coral: #FF6B6B;
    --mint: #A8E6CF;
    --lavender: #C8B8E8;
    --sand: #FFF3E0;
    --white: #FFFFFF;
    --dark: #1A2E12;
}
body{
    background: var(--sky);
    color: black;
    overflow-x: hidden;
}
header{
    padding: 1.2rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--sky);
    position: sticky; top:0; z-index: 100;
}
.sub-header{
    text-align: center;
}
nav{
    display: flex;
    gap: 1rem;
    align-items: center;
}
.nav-link{
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--grass);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s;
}
.nav-link:hover{
    background: var(--grass);
    color: white;
}
.dog {
    width: 175px;
    height: 175px;
    border-radius: 10px;
    background-image: url(https://users.ct.fh-salzburg.ac.at/dogs.webp);
    background-size: 1000px 558px;
    display: inline-block;
    background-repeat: no-repeat;
}
.all-dogs{
    padding: 2rem 3rem;
}
.all-dogs h2{
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-size: 1.8rem;
}
.old-dogs{
    padding: 2rem 3rem;
}
.old-dogs h2{
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-size: 1.8rem;
}
.jung-dogs{
    padding: 2rem 3rem;
}
.jung-dogs h2{
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-size: 1.8rem;
}
.daily-dog{
    padding: 2rem 3rem;
}
.daily-dog h2{
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-size: 1.8rem;
}
.dogs-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.dog-card{
    text-align: center;
    padding: 1.5rem;
    background-color: #FDE8D8;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(45, 90, 27, 0.12);
    transition: transform 0.2s, box-shadow 0.2;
    list-style: none;
}
.dog-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(45, 90, 27, 0.2);
}
.dog-card .breed{
    font-weight: 700;
    color: var(--grass);
    margin: 0.4rem 0 0.2rem;
}
.dog-card .age{
    font-size: 0.85rem;
    color: #666;
}
.party{
    font-size: 2rem;
    padding: 1.2rem 2rem;
    text-align: center;
}
button{
    cursor: pointer;
    background: var(--sun);
    font-size: 2rem;
}
.party-overlay{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    justify-content: center;
    align-items: center;
}
.party-overlay.active{
    display: flex;
}
.party-box{
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    animation: disco 1.5s linear infinite;
    background-size: 400% 400%;
}
@keyframes disco {
    0%   { background: #ff6b6b; }
    15%  { background: #ff9f43; }
    30%  { background: #ffd166; }
    45%  { background: #a8e6cf; }
    60%  { background: #74b9ff; }
    75%  { background: #c8b8e8; }
    90%  { background: #ff6b9d; }
    100% { background: #ff6b6b; }
}
.party-box h2{
    text-align: center;
    font-size: 4rem;
}
.party-gifs{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 1.5rem;
    gap: 1rem;
}
.gif-side img{
    width: 120px;
    height: 120px;
    object-fit: contain;
}
.gif-center img{
    width: 160px;
    height: 160px;
    object-fit: contain;
}