

body {
    margin: 0;
    font-family: "Trebuchet MS", Arial, sans-serif;

    background:
        linear-gradient(
            135deg,
            hsl(265, 100%, 98%),
            #eaf7ff
        );

    color: #333;
}


.container {

    display:grid;

    grid-template-columns:
        minmax(250px,1fr)
        3fr;

    gap:20px;

    padding:20px;

}



#grid-section {
    padding: 20px;
}



#selector-section {

    background:white;

    border-radius:20px;

    padding:20px;

    box-shadow:
        0 5px 20px rgba(0,0,0,.08);

    position:sticky;

    top:20px;

    height:calc(100vh - 60px);

    overflow-y:auto;

}


#years {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


select {

    width:100%;

    padding:12px;

    border-radius:12px;

    border:
        2px solid #ddd;

    background:white;

    font-size:16px;

    cursor:pointer;

}


select:hover {

    border-color:#8d7edc;

}


#grid {

    display:grid;

    grid-template-columns:
        repeat(7, 1fr);

    grid-auto-rows: 200px;

    gap:15px;

}


#grid div {
    text-align: center;
}

.pet-image-container {

    width: clamp(60px, 8vw, 120px);
    height: clamp(60px, 8vw, 120px);

    display:flex;
    align-items:center;
    justify-content:center;

}


.pet-card img {

    width:80%;

    max-width:100%;
    max-height:100%;


    object-fit:contain;

}


.pet-card h3 {

    margin:
        5px 0;

    color:#5c4b9c;

}


.pet-card p {

    margin:
        5px;

    font-size:14px;

}

.pet-card {

    background:rgb(247, 234, 234);

    border-radius:18px;

    padding:6px;

    text-align:center;

    box-shadow:
        0 4px 12px rgba(0,0,0,.08);

    transition:
        transform .15s,
        box-shadow .15s;

    border:
    2px solid rgba(15, 5, 63, 0.15);

}


.pet-card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 8px 20px rgba(0,0,0,.15);

}


.empty {

    height:100px;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#aaa;

    background:#fafafa;

    border-radius:12px;

    font-style:italic;

}


.shared-view .container {
    grid-template-columns: 1fr;
}


.shared-view #grid-section {
    width: 75%;
}



@media (max-width: 700px) {



    .container {
        display: none;
    }


    #mobile-container {
        display: block;
        padding: 20px;
        padding-top:80px; /* space for fixed buttons */
    }

    header {

        flex-direction:column;

        gap:10px;

    }


    #top-buttons {

        width:100%;

        display:flex;

        justify-content:center;

    }


    .mobile-year {

        background:white;

        border-radius:20px;

        padding:20px;

        margin-bottom:20px;

        box-shadow:
            0 5px 15px rgba(0,0,0,.1);

    }

    .pet-options {

        max-height:250px;

    }


    .pet-option img {

        width:40px;
        height:40px;

    }


    .dropdown-button img {

        width:35px;
        height:35px;

    }





}

/* Desktop default */

.container {
    display:grid;
}


#mobile-container {
    display:none;
}



/* Mobile */

@media(max-width:700px){

    .container {
        display:none;
    }


    #mobile-container {
        display:block;
    }

}

#top-buttons button {

    border:none;

    padding:
        10px 18px;

    border-radius:
        20px;

    font-size:15px;

    cursor:pointer;

    background:#ffffff;

    color:#5c4b9c;

    box-shadow:
        0 3px 8px rgba(0,0,0,.15);

    transition:
        transform .15s,
        box-shadow .15s;
}


#top-buttons button:hover {

    transform:translateY(-2px);

    box-shadow:
        0 5px 12px rgba(0,0,0,.2);

}

#export-container {

    position:absolute;

    left:-10000px;
    top:0;

    width:1200px;

    padding:40px;

    background:
        linear-gradient(
            135deg,
            hsl(265, 100%, 98%),
            #eaf7ff
        );

    border-radius:20px;

}


#export-grid {

    display:grid;

    grid-template-columns:
        repeat(7, 150px);

    gap:20px;

    padding: 10px;

}


header {
    position: sticky;
    top: 0;

    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);

    padding: 15px 25px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    box-shadow:
        0 2px 10px rgba(0,0,0,0.08);

    z-index:100;
}


header h1 {
    margin:0;

    font-size:
        clamp(22px,3vw,36px);

    color:#5c4b9c;
}

.pet-dropdown {

    position:relative;

}


.pet-dropdown button {

    width:100%;

    display:flex;

    align-items:center;

    gap:10px;

    padding:10px;

    border-radius:12px;

    background:white;

    border:2px solid #ddd;

}


.pet-dropdown button img {

    width:40px;
    height:40px;

    object-fit:contain;

}


.pet-options {

    display:none;

    position:absolute;

    width:100%;

    max-height:300px;

    overflow-y:auto;

    background:white;

    border-radius:12px;

    box-shadow:
        0 5px 20px rgba(0,0,0,.15);

    z-index:100;

}


.pet-option {

    display:flex;

    align-items:center;

    gap:10px;

    padding:8px;

    cursor:pointer;

}


.pet-option:hover {

    background:#f3edff;

}


.pet-option img {

    width:50px;

    height:50px;

    object-fit:contain;

}

.pet-options.open-up {
    bottom:100%;
    top:auto;
    margin-bottom:5px;
}

.mobile-pet-card {

    background:white;

    border-radius:18px;

    padding:20px;

    margin-bottom:15px;

    text-align:center;

    box-shadow:
        0 5px 15px rgba(0,0,0,.1);

}


.mobile-pet-card img {

    width:120px;
    height:120px;

    object-fit:contain;

}