﻿#petPlace {
    display: flex;
    height: 55em;
}

body {
    font-family: 'Noto Sans', sans-serif !important;
}

#asFrame {}

.adoptableFrame {}

.foundFrame {}

#tblSearchResults .list-item {
    border: 1px solid #003b8d !important;
    padding: 0 !important;
    width: 200px !important;
    box-shadow: 3px 3px 3px rgb(0 0 0 / 25%) !important;
}

#tblSearchResults .list-animal-photo-block {
    text-align: center !important;
    height: 200px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    background: #f5f5f5 !important;
    margin-bottom: 5px !important;
}

img.list-animal-photo.img-responsive {
    max-width: unset !important;
    height: 15em !important;
}

img.list-animal-photo {
    max-width: unset !important;
    height: 15em !important;
}

.list-animal-info-block {
    padding: 0 !important;
}

.list-animal-name {
    font-size: 14pt !important;
    border-bottom: 1px solid #003b8d !important;
    margin-bottom: 8px !important;
}

.list-animal-name a,
.list-animal-name a:visited {
    color: #003b8d !important;
    text-decoration: none !important;
}

.list-animal-name a:hover,
.list-animal-name a:focus {
    color: #003b8d !important;
    text-decoration: none !important;
    font-weight: bold;
}

#tblSearchResults ul {
    gap: 20px !important;
    padding: 0 !important;
}

.list-animal-info-block div {
    padding: 2px 5px !important;
}

.list-animal-info-block div:nth-child(even) {
    background-color: #eee !important;
}

/***found styles ****/
table#tblSearchResults,
table#tblSearchResults tbody,
table#tblSearchResults tbody tr {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
}

table#tblSearchResults,
table#tblSearchResults tbody {
    height: 100% !important;
}


table#tblSearchResults td.list-item {
    margin: 1em !important;
}

/* api styling */
.animalBlock {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 2em;
}

.anmItem {
    border: 1px solid #003b8d;
    padding: 0 !important;
    width: 15em;
    box-shadow: 3px 3px 3px rgb(0 0 0 / 25%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.anmItem:hover, .anmItem:focus {
    border: 1px solid #000;
    box-shadow: unset;
}

.anmPic {
    display: flex;
    flex-direction: column;
    justify-content: end;
    position: relative;
    height: 20em;
    overflow: hidden !important;
    background-color: #1a1d23;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.dispPic {
    height: 100%;
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(20, 20, 20, .65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.longLabel {
    position: absolute;
    top: 0;
    z-index: 2;
}

.animalName {
    text-align: center;
    width: 100%;
    background-color: rgba(255 255 255/.75);
    font-weight: bold;
    letter-spacing: 1px;
    font-size: 1.2em;
    border-bottom: 1px solid #003b8d;
}

.anmData {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.anmInfo {
    display: flex;
    /* width: auto; */
    padding: 3px 0px;
    height: -webkit-fill-available;
    flex: 1 1 auto;
    flex-wrap: wrap;
}

.anmInfo:nth-child(even) {
    background-color: #eee !important;
}

.anmLabel {
    padding: 0px 2px;
    display: block;
    min-width: 4.5em;
    text-align: left;
}

/*These are Modal Styles */
.anmModal.anmItem {
    border: unset;
    width: unset;
    box-shadow: unset;
}

.anmModal .anmDeets {
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
}

.petWatchContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2em;
    padding-top: 1em;
    border: .25em solid #eee;
}

.picSide {
    width: 45%;
}

.anmModal.anmPic {
    position: relative;
    height: 32em;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 45%;
}

.anmModal .animalName {
    position: absolute;
    bottom: 0;
    margin-bottom: .25em;
    padding: .25em 0;
}

.anmModal.anmData {
    width: unset;
}

.anmModal.anmInfo {
    padding: 5px 8px;
    align-items: center;
}

.anmModal .anmLabel {
    position: relative;
    min-width: auto;
}

.anmModal.anmInfo.longLabel {
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.meetFoster {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    width: 100%;
}

.meetNote a, .meetNote a:visited {
    background: #fff;
    padding: .25em 1em .25em .5em;
    color: #003b8d;
    margin-left: .5em;
}

.meetNote a:hover, .meetNote a:focus {
    background: #eeeeee;
    box-shadow: none;
    text-decoration: none;
    font-weight: bold;
}

.anmModal .anmflex {
    padding-right: .5em;
    margin-right: .5em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#anmIntro {
    background-color: #eff7ff;
    border: 2px dashed;
    padding: .5em 8px;
    border-radius: 1em;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Comic Sans MS', sans-serif;
    color: #5d5d5d;
    max-width: 90%;
    min-height: 6em;
    max-height: 6em;
    margin: 1em 0em 0 1em;
    text-align: center;
    padding-right: 0.5em;
}

#anmIntro .anmLabel {
    display: block;
    /* Make sure it's a block element */
    height: 100%;
    overflow-y: auto;
    /* Enable vertical scroll when content exceeds max-height */
    max-height: 100%;
    padding: 0 0.3em 0 0;
}

#anmIntro .anmLabel::-webkit-scrollbar {
    width: .5em;
    /* Width of the scrollbar */
}

#anmIntro .anmLabel::-webkit-scrollbar-thumb {
    background-color: #7e28af;
    /* Color of the scrollbar thumb */
    border-radius: 3px;
    /* Rounded corners for the thumb */
}

#anmIntro.red {
    border-color: #CC333F;
    background-color: #ffeeee;
}

#anmIntro.purple {
    border-color: #774d99;
}

#anmIntro.blue {
    border-color: #1c5aa1;
}

#anmIntro.red .anmLabel::-webkit-scrollbar-thumb {
    background-color: #CC333F !important;
}

#anmIntro.purple .anmLabel::-webkit-scrollbar-thumb {
    background-color: #774d99 !important;
}

#anmIntro.blue .anmLabel::-webkit-scrollbar-thumb {
    background-color: #1c5aa1 !important;
}

/* .anmModal #subTitle {
    font-size: 1.25em;
    min-width: 5em;
    letter-spacing: 1px;
} */

a#mainLnk24PetWatch img {
    width: 100px;
}

.anmModal.anmPic img.LOrient {
    width: 100%;
    height: auto;
}

.anmModal.anmPic img.POrient {
    width: auto;
    height: 100%;
}

.modalBody #imgSelector {
    display: flex;
    height: auto;
}

.modalBody #imgSelector .img-icon {
    position: relative;
    width: 3em;
    height: 3em;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: .25em .14em;
    box-shadow: 3px 3px 3px rgb(0 0 0 / 25%);
    overflow: hidden;
}
.modalBody #imgSelector .img-icon span {
    font-size: 2.25em;
    color:#003B8D;
}

.modalBody #imgSelector .img-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 123, 255, 0.3);
    /* Soft color overlay */
    opacity: 0;
    transition: opacity 0.2s;
    backdrop-filter: blur(2px);
    /* subtle blur */
    pointer-events: none;
}

.modalBody #imgSelector .img-icon:hover::before,
.modalBody #imgSelector .img-icon:focus::before {
    opacity: 1;
}

.modalBody #imgSelector .img-icon:hover,
.modalBody #imgSelector .img-icon:focus {
    box-shadow: none;
}


/* Ribbon Design */

.ribbon {
    font-variant: all-petite-caps;
    color: #fff;
    letter-spacing: 0.075em;
    font-family: 'Yantramanav';
    --r: .8em;
    border-block: .25em solid #0000;
    padding-inline: .5em calc(var(--r) + .5em);
    line-height: 1.5;
    clip-path: polygon(100% 0, 0 0, 0 100%, 100% 100%, 100% calc(100% - .25em), calc(100% - var(--r)) 50%, 100% .25em);
    width: fit-content;
    filter: drop-shadow(0px 0px 2px rgba(255 255 255 / 1));
}

.anmModal.anmInfo .ribbon {
    font-size: 1em;
    /* line-height: 1.25; */
    padding-inline: .5em calc(var(--r) + .25em);
    filter: drop-shadow(2px 2px 2px rgba(0 0 0 / .35));
}

.ribbon.red {
    background:
        radial-gradient(.1em 50% at left, #000a, #0000) border-box,
        #a6154f padding-box;
}

.ribbon.purple {
    background:
        radial-gradient(.1em 50% at left, #000a, #0000) border-box, #774d99 padding-box
}

.ribbon.blue {
    background:
        radial-gradient(.1em 50% at left, #000a, #0000) border-box,
        #1c70a1 padding-box;
}


/*filter styles*/
#anmFilters {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    border: 1px solid #003b8d;
    padding: 1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 1em;
    justify-content: center;
}

.anmFilterGrp {
    display: flex;
    align-items: center;
    flex-direction: row;
    border-radius: 1.5em;
    /* flex-wrap: wrap; */
    max-width: 100%;
    overflow: hidden;
    background: #eeeeee;
}

.anmFilterGrp label {
    padding: 0.5em 0.75em;
    background: #60748f;
    color: #fff;
    letter-spacing: 1px;
    border-right: 1px solid #c4c4c4;
    user-select: none;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.anmFilterGrp .labelGrp {
    display: flex;
    flex-wrap: wrap;
}

.anmFilterItem {
    padding: 0.5em 0.75em;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    color: #333;
    border-left: 1px solid #ccc;
}

.clearFilters {
    border-radius: 1.5em;
    background: #60748f;
    color: #fff;
}

.anmFilterItem:hover,
.anmFilterItem:focus {
    background: #cbcbcb;
    text-decoration: none;
    font-weight: bold;
}

.clearFilters:hover,
.clearFilters:focus {
    color: #333;
}

.anmFilterItem.active {
    background: #354d6f;
    color: #fff;
}

#anmFilters #sortFilter {
    display: flex;
    align-items: center;
    border-radius: 1.5em;
    /* flex-wrap: wrap; */
    max-width: 100%;
    overflow: hidden;
    background: #eeeeee;
}

#anmFilters #sortFilter label {
    padding: 0.5em 0.75em;
    background: #60748f;
    color: #fff;
    letter-spacing: 1px;
    border-right: 1px solid #c4c4c4;
    user-select: none;
}

#anmFilters #sortFilter .anmFilterItem {
    padding: 0.5em 0.75em;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    color: #333;
}

#anmFilters #sortFilter .clearFilters {
    border-radius: 1.5em;
}

#anmFilters #sortFilter .anmFilterItem:hover {
    background: #cbcbcb;
    text-decoration: none;
    font-weight: bold;
}

#anmFilters #sortFilter .anmFilterItem.active {
    background: #354d6f;
    color: #fff;
}

/*toggle style*/

.anmSwitch {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 32px;
}

.anmSwitch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.anmSliderText {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 2em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85em;
    font-weight: bold;
    color: #fff;
    padding: 0 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.anmToggleLabel {
    flex: 1;
    text-align: center;
    z-index: 1;
}

.anmSliderText::before {
    content: "";
    position: absolute;
    height: 28px;
    width: 58px;
    top: 2px;
    left: 2px;
    background-color: #354d6f;
    border-radius: 2em;
    transition: transform 0.3s;
    z-index: 0;
}

.anmSwitch input:checked+.anmSliderText::before {
    transform: translateX(60px);
}

/*end filter styles*/


/*back to top control*/
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #6680a2;
    color: #fff;
    border: none;
    border-radius: .25em;
    width: 2.25em;
    height: 2.25em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#backToTop:hover {
    background-color: #354d6f;
}

#backToTop:focus {
    outline: none;
}

#backToTop::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid white;
    transition: transform 0.3s ease;
}

#backToTop:hover::before {
    transform: translateY(-5px);
}

/* end btt */


/* paw loader start */
#stdBodyBlock .stdMainContent {
    position: relative;
}

.paw-loader-overlay {
    position: fixed;
    top: 25%;
    left: 32%;
    width: 35%;
    height: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    box-shadow: 3px 3px 44px rgb(0 0 0 / 90%);
}

/*First load*/
.stdMainContent .paw-loader-overlay {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: unset;
    box-shadow: none;
    margin-bottom: 5em;
}

.loaderTitle {
    font-size: 3em;
    height: 1.75em;
    font-family: 'Noto-Sans', sans-serif;
    font-variant: all-small-caps;
    margin-bottom: 0 !important;
    width: 100%;
    color: #333;
    background: linear-gradient(-80deg,
            #003b8d 0%,
            #003b8d 38%,
            #4586e2 40%,
            #003b8d 43%,
            #003b8d 100%);
    background-size: 250%;
    border-bottom: 0;
    background-position: 0%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: swipeColor 4s ease-out infinite;
}

@keyframes swipeColor {
    0% {
        background-position: 100%;
    }

    100% {
        background-position: 0%;
    }
}

.paw-loader {
    display: flex;
    justify-content: center;
    /* center horizontally */
    align-items: center;
    width: 100%;
    /* transform: rotate(-19deg); */
    min-height: 5em;
}

.pawGrp {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/*First Load*/
.stdMainContent .pawGrp {
    width: auto;
    overflow: hidden;
}

.paw {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    transform: rotate(45deg);
    margin: 0 1.5em;
    opacity: 1;
    animation: fade-bounce 6s ease-out infinite;
}

@keyframes fade-bounce {
    0%, 5%, 75%, 100% {
        opacity: 0;
        transform: rotate(45deg) translateY(20px);
    }

    6%, 65% {
        opacity: 1;
        transform: rotate(45deg) translateY(0);
    }
}

.paw-center {
    width: 12px;
    aspect-ratio: 1;
    background:
        radial-gradient(at 70% 31%, #003b8d 29%, transparent 30%),
        radial-gradient(at 30% 31%, #003b8d 29%, transparent 30%),
        conic-gradient(from -45deg at 50% 84%, #003b8d 90deg, transparent 0) bottom/100% 50% no-repeat;
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
}

.paw-toe {
    width: 4px;
    height: 6px;
    background-color: #003b8d;
    border-radius: 50%;
    position: absolute;
}

.paw-toe1 {
    top: -2px;
    left: -9px;
    transform: rotate(-8deg);
}

.paw-toe2 {
    top: -7px;
    right: 0;
    transform: rotate(-1deg);
}

.paw-toe3 {
    bottom: 0;
    left: 0.05em;
    transform: rotate(16deg);
}

.paw-toe4 {
    bottom: -4px;
    right: -8px;
    transform: rotate(24deg);
}

.paw:nth-child(2n+1) {
    top: 1em;
    animation-delay: 0s;
}

.paw:nth-child(2n+2) {
    top: 1.5em;
    animation-delay: 0.5s;
}

.paw:nth-child(2n+3) {
    top: -.5em;
    animation-delay: 1s;
}

.paw:nth-child(2n+4) {
    top: -.5em;
    animation-delay: 1.3s;
}

.paw:nth-child(2n+5) {
    top: 0em;
    animation-delay: 1.8s;
}

.paw:nth-child(2n+6) {
    top: 1em;
    animation-delay: 2.1s;
}

.paw:nth-child(2n+7) {
    top: -1em;
    animation-delay: 2.6s;
}

.paw:nth-child(2n+8) {
    top: -1em;
    animation-delay: 3s;
}

.paw:nth-child(2n+9) {
    top: -2em;
    animation-delay: 3.4s;
}

.paw:nth-child(2n+10) {
    top: -3em;
    animation-delay: 3.8s;
}

/* Paw loader end */

@media screen and (max-width: 1080px) {
    .paw-loader-overlay {
        top: 25%;
        left: 25%;
    }
}

@media screen and (max-width: 768px) {
    .anmInfo {
        display: flex;
        width: auto;
        padding: 3px 0px;
        height: auto;
        flex-wrap: wrap;
    }

    .paw-loader-overlay {
        left: 12%;
        width: 76%;
    }

    .anmModal .anmDeets {
        flex-direction: column;
    }

    .anmModal.anmPic {
        position: relative;
        height: 20em;
        width: 100%;
        flex: 0 0 auto;
    }

    .anmModal.anmData {
        width: 100%;
    }

    .picSide {
        margin-bottom: 1em;
        width: 100%;
    }

}

@media screen and (max-width: 480px) {
    .paw-loader-overlay {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .paw-loader {
        width: 65%;
    }

    .modalBlock {
        width: 100% !important;
        height: 100% !important;
        max-height: 100% !important;
    }

    .stdMainContent .pawGrp {
        width: 90%;
    }

    /*media style*/
    .anmItem {
        width: 100%;
    }

    .animalBlock {
        gap: 2em;
    }

    .anmModal.anmItem {
        flex-direction: column;
    }

    .anmPic {
        /* not modal/ page display */
        height: 14em;
    }

    .anmModal.anmPic {
        height: 14em;
        width: 100%;
    }

    .anmModal.anmInfo.longLabel {
        /* position: absolute; */
        /* top: 3.8em; */
        max-height: unset;
        width: 100%;
        flex-direction: column-reverse;
        margin-bottom: 5px;
    }

    .anmModal .meetNote {
        display: flex;
        flex-direction: column;
    }

    .anmModal.anmInfo .ribbon {
        min-width: 6em;
    }

    #anmIntro .anmLabel {
        max-height: unset;
    }

    #anmIntro {
        max-width: unset;
        height: 6em;
        min-height: unset;
        max-height: unset;
        margin: 1em 16px 0em 0 0em;
    }

    .modalBlock {
        position: fixed;
    }

    /*end media style*/
}