body {
            font-family: 'PixelOperator', sans-serif;
            margin: 0;
            color: #180b94;
            display: flex;
            min-height: 100vh;
            background-image: url('https://casper-valentine.neocities.org/Assets/webkinzBackground.png');
            background-size: 1080px;
            background-position: center;
            font-size: 18px;
            scrollbar-gutter: stable both-edges;
        }
            

        @font-face {
                    font-family: PixelOperator;
                    src: url('https://casper-valentine.neocities.org/Assets/PixelOperator.ttf');
                }
        
        @font-face {
                    font-family: PixelOperator;
                    src: url('https://casper-valentine.neocities.org/Assets/PixelOperator-Bold.ttf');
                    font-weight: bold;
                }
        
        @font-face {
                    font-family: WorkSans;
                    src: url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,500;1,500&display=swap');
                }
        
        @font-face {
                    font-family: WorkSans;
                    src: url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,700;1,700&display=swap');
                    font-style: bold;
                }

        #centeredBox {
            border: 3px solid #180b94;
            border-radius: 5px;
            position: absolute;
            top: 80px;
            left: 80px;
            right: 80px;
            bottom: 80px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            min-height: 0;
        }

        #headerH2 {
            color:#adecff;
        }
        
        h1  {
            color:#5cbaff;
        }

        #buttonH3 {
            color: #180b94;
            margin: 0;
            padding: 0;
        }
        
        #headerTable a {
            color:#f4fcff;
            font-weight: bold;
        }

        strong {
            color: #fc019a;
        }
        
        a:hover {
            text-decoration: underline;
        }
        
        #flex {
            display: flex;
        }

        /* header table */
        table {
            border-collapse: collapse;
            width: 100%;
        }

        th {
            border: none;
            border-bottom: 3px solid #180b94;
            background-image: url('https://casper-valentine.neocities.org/Assets/webkinzHeader.png');
            background-repeat: repeat-x;
            background-position: center;
            background-size: auto;
            padding: 0 15px;
        }

        /*main menu stuff*/
        .menu-wrapper {
            position: absolute;
            height: calc(100% - 30px);
            width: calc(100% - 30px);
            inset: 15px;
            padding: 5px;
            display: flex;
            box-sizing: border-box;
            overflow: hidden;
        }

        .menu-table {
            border-collapse: collapse;
            width: 100%;
            height: 100%;
            box-sizing: border-box;
            transform-origin: top left;
            object-fit: contain;
            table-layout: fixed;
        }
        
        .menu-table tr {
            height: calc(100% / 4);
        }
        
        .menu-table td {
            padding: 10px;
        }

        .menuButton {
            height: 100%;
            width: 100%;
            border: 3px solid #094e00;
            border-radius: 5px;
            background: #fefaba;
            box-shadow: inset 0 -4px #b89446;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            font-size: clamp(14px, 1.2vw, 18px);
            background-image: url('https://casper-valentine.neocities.org/Assets/webkinzButtons.png');
            background-repeat: repeat-x;
            background-position: center; 
        }

        .menuButton img {
            width: clamp(24px, 2.5vw, 40px);
            height: auto;
            max-height: 40px;
            max-width: 40px;
            object-fit: contain;
        }

        /* grid format */
        .grid-container {
            flex: 1;
            min-height: 0;
            display: grid;
            grid-template-columns: 1fr 3.13fr; 
            grid-template-rows: auto 1fr; 
            width: 100%;
            height: 100%;
            min-height: 0;
            box-sizing: border-box;
        }
        

        .left-top {
            grid-column: 1;
            grid-row: 1;
            border: none;
            border-bottom: 3px solid #094e00;
            width: 100%;
            height: auto;
            font-size: 0;
            margin: 0;
            padding: 0;
            justify-self: center;
            align-self: start;
            background-image: url('https://casper-valentine.neocities.org/Assets/Bliss.png');
        }

        #left-bottom {
            grid-column: 1;
            grid-row: 2;
            position: relative;
            border: none;
            width: 100%;
            height: 100%;
            min-height: 0;
            margin: 0;
            padding: 0;
            background-image: url('https://casper-valentine.neocities.org/Assets/webkinzNavbar.png');
            background-position: top;
        }

        #left-bottom a {
            text-decoration: none;
        }

        .right {
            grid-column: 2;
            grid-row: 1 / span 2; 
            border-left: 3px solid #180b94;
            background: #adecff; 
            padding: 0 20px 0 20px;
            overflow: auto;
        }

        .right::-webkit-scrollbar {
            width: 14px; 
        }

        .right::-webkit-scrollbar-thumb {
            background-color: #0035ff; 
            border: 3px solid #adecff; /*keep same as background color*/
            border-radius: 5px;
        }

        .right::-webkit-scrollbar-track {
            background-color: #adecff; /*keep same as background color*/
            border-radius: 5px; 
        }

        #headerImg {
            width: 100%;
            height: auto;
            object-fit: cover;
            display: block;
        }

    /*pet gallery */
    div.gallery-container {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 40px; 
    }
    
    div.gallery {
        display: flex;
        width: 175px;
        flex-grow: 1;
        align-items: center;
        justify-content: center;
        flex: 1 1 calc(33.33% - 40px);
        flex-direction: column; 
        box-sizing: border-box;
        overflow: visible;
    }

    div.gallery img {
        border-radius: 5px;
        width: 175px; 
        height: 175px;
        object-fit: cover;
        object-position: center;
        display: block; 
        border: 3px solid #887f55;
        background-color: #ffffff; 
    }

    .picture-frame {
        position: relative;
        display: inline-block;
        background: #ffdd69;
        border: 3px solid #a48036;
        padding: 40px;
    }

    .cornerTopLeft {
        position: absolute;
        width: 51px;
        height: 51px;
        top: -3px;
        left: -3px;
        transform: translate(-8px, -8px);
    }

    .cornerTopRight {
        position: absolute;
        width: 51px;
        height: 51px;
        top: -3px;
        right: -18px;
        transform: translate(-8px, -8px) scaleX(-1);
    }

    .cornerBottomLeft {
        position: absolute;
        width: 51px;
        height: 51px;
        bottom: -3px;
        left: -3px;
        transform: translate(-8px, 8px) scaleY(-1);
    }

    .cornerBottomRight {
        position: absolute;
        width: 51px;
        height: 51px;
        bottom: -3px;
        right: -18px;
        transform: translate(-8px, 8px) scaleY(-1) scaleX(-1);
    }

    /*wishlist gallery*/
    div.wishlistGallery-container {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 10px; 
    }

    div.wishlistGallery {
        display: flex;
        width: 225px;
        margin: 0;
        flex-grow: 1;
        align-items: center;
        flex: 1 1 calc(25% - 10px);
        flex-direction: column; 
        box-sizing: border-box;
        overflow: hidden;
    }

    div.wishlistGallery img {
        border-radius: 5px;
        width: 225px; 
        height: 225px;
        object-fit: cover;
        object-position: top center;
        display: block; 
        margin-bottom: 5px;
        border: 3px solid #180b94;
        background-color: #efffff; 
    }

    div.wishlistDesc {
        text-align: center;
        margin: 0 auto;
        padding: 5px;
    }

    /* pet pages */
    #statBox {
        background-color: #ffffae;
        border: 3px solid #7b0c86;
        border-radius: 5px;
        margin: 0;
        margin-left: 10px;
        overflow: hidden;
    }

    #statBox strong {
        color: #7b0c86;
        padding: 5px;
    }

    #statBox h3 {
        color: #0b0b07;
        margin: 0;
        text-align: center;
        padding: 0;
        padding-bottom: 5px;
    }

    #statBox p {
        margin: 0;
        padding: 0;
    }

    #statBoxGrid {
        flex: 1;
        min-height: 0;
        display: grid;
        grid-template-columns: auto 4fr; 
        grid-template-rows: 1fr; 
        width: 100%;
        height: 100%;
        min-height: 0;
        box-sizing: border-box;
    }

    #SBG-left {
        grid-column: 1;
        width: 180px;
        height: auto;
        font-size: 0;
        margin: 0;
        padding: 0;
        border-right: 3px solid #7b0c86; 
    }

    #SBG-right {
        grid-column: 2;
        width: 100%;
        height: auto;
    }

    #SBG-right table {
        border-collapse: collapse;
        width: 100%;
    }
    
    #SBG-right td {
        border: none;
        border-bottom: 3px solid #7b0c86;
    }

    #photoBoxWrapper {
        position: relative;
        display: inline-block;
        width: 100%;
        height: auto;
        border: none;
        padding: 0;
        margin: 0;
    }

    #photoBox {
        height: 230px;
        width: 160px;
        border: 3px solid #887f55;
        background-color: #ffffff;
        padding: 10px;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: 0;
        position: absolute;
        overflow: hidden;
        rotate: -1.5deg;
        transform: translate(-15px, -10px);
        box-shadow: 4px 4px 1px #411a0344;
    }

    #photoBox img {
        border: 2px solid #afaa94; 
        display: block;
        margin: 0;
        padding: 0;
    }


        
/*MEDIA QUERY (mobile adjustments)*/
    @media only screen and (max-width: 700px) {
            body {
                justify-content: flex-start; 
                padding: 0; 
            }

            #centeredBox {
                position: relative;
                width: auto;
                height: auto;
                top: auto;
                left: auto;
                right: auto;
                bottom: auto;
                overflow: auto;
                margin: 10px;
            }

            .grid-container {
                display: grid;
                grid-template-columns: 1fr !important; 
                grid-template-rows: auto auto 1fr !important;
                width: 100% !important;
                height: auto !important;
            }

            .left-top {
                grid-column: 1;
                grid-row: 1;
                display: none;
            }

            .right {
                grid-column: 1;
                grid-row: 2;
                overflow: visible;
                border-left: none;
            }

            #left-bottom {
                grid-column: 1 !important;
                grid-row: 3 !important;
                height: auto;
                min-height: 350px;
                overflow: visible;
                border-top: 3px solid #094e00;
            }

            .menuButton {
                font-size: 18px !important;
            }

            .menuButton img {
                width: 100% !important;
                height: 100% !important;
                max-height: 40px;
                max-width: 40px;
            }
        }

        @media only screen and (max-width: 950px) {
            .left-top {
                display: none;   
            }

            .grid-container {
                grid-template-columns: 1fr 3.13fr;   
                grid-template-rows: 1fr;          
            }

            #left-bottom {
                grid-row: 1;   
            }
            
            .menuButton {
                font-size: 0;
            }

            .menuButton img {
                width: 100% !important;
                height: 100% !important;
                max-height: 40px;
                max-width: 40px;
            }

            div.wishlistGallery {
                gap: 10px; 
            }

            div.wishlistGallery {
                flex: 0 1 calc(50% - 10px) !important; 
            }

            div.wishlistGallery::after {
                flex: 0 1 calc(50% - 10px) !important;
            }

            div.wishlistGallery img {
                width: 95%;
                height: auto;
                aspect-ratio: 1;
                object-fit: cover;
            }

        }

        @media only screen and (max-width: 1450px) {
            div.wishlistGallery {
                gap: 10px; 
            }

            div.wishlistGallery {
                flex: 0 1 calc(33.33% - 10px); 
            }

            div.wishlistGallery::after {
                flex: 0 1 calc(33.33% - 10px);
            }

            div.wishlistGallery img {
                width: 95%;
                height: auto;
                aspect-ratio: 1;
                object-fit: cover;
            }
        }

