#pagegrid {
    display: grid;
    margin: 6% 0 0 5%;
    padding-bottom: 250px;
    width: clamp(250px, 90%, 90%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 0.15fr 0.15fr repeat(8, 1fr); 
    row-gap: 90px;
    column-gap: 35px;
}

a {
    text-decoration: none;
    color: white;
}
a:hover {
    color: var(--highlight-color);
}
#pagegrid h2 {
    display: inline-block;
    font-family: Comfortaa;
    font-size: clamp(2rem, calc(1.9rem + 2vw), 5rem);
    margin: auto;
    padding: 20px 0 0 0;
    text-align: center;


    width: 100%;
    height: calc(100% + 10px);
    border: 3px solid rgb(27, 27, 128);
    background-color: rgb(211, 242, 255);
    box-shadow: 10px 10px 0 rgba(0, 58, 59, 0.85);
}

#pagegrid h1 {
    font-family: Comfortaa;
    font-size: clamp(2.4rem, calc(2.1rem + 2vw), 5rem);
    padding: 35px 0;
    text-align: center;
    width: 100%;
    border: 3px solid rgb(27, 27, 128);
    background-color: rgb(211, 242, 255);
    box-shadow: 10px 10px 0 rgba(0, 58, 59, 0.85);
    grid-column: span 2;
}

 div.priceitemleft, div.priceitemright{
    width: 100%;
    border: 3px solid rgb(27, 27, 128);
    background-color: rgb(211, 242, 255);
    box-shadow: 10px 10px 0 rgba(0, 58, 59, 0.85);
    text-indent: 0;
}
 div.priceitemleft{
    grid-column: 1;
    grid-row: span 2;
}
div.priceitemright{
    grid-column: 2;
    grid-row: span 3;
}

.priceitemleft ul, .priceitemright ul {
    list-style: none;
    font-size: clamp(2.4rem, calc(1rem + 1vw), 5rem);
}
.priceitemleft h3, .priceitemright h3 {
    font-size: clamp(1.8rem, calc(0.8rem + 1vw), 5rem);
    padding-left: 45px;
    text-decoration: underline;
}
.line1 {
    background-color: rgb(27, 27, 128);
    height: 8px;
    border-radius: 5px;
    width: 80%;
    margin-left: 50px;
}
.priceitemleft p, .priceitemright p {
    margin: 20px auto;
    width: 90%;
    font-size: clamp(1.4rem, calc(1rem + 1vw), 5rem);
    text-indent: clamp(15px, 8vw, 45px);
}
#petboarding {
    grid-column: span 2;
}

@media only screen and (max-width: 799px) {
    #pagegrid {
        grid-template-columns: auto;
        grid-template-rows: auto;
        grid-auto-flow: rows;
        grid-auto-rows: auto;
        margin-top: 140px;
    }
    div.priceitemleft, div.priceitemright, h2.priceitemleft, h2.priceitemright, #petboarding, #pagegrid h1 {
        grid-column: span 1;
        grid-row: span 1;

        position: relative;
        right: 5px;
    }
    .priceitemleft h3, .priceitemright h3 {
        display: inline-block;
        width: 100%;
        text-align: center;
        text-indent: 0;
        padding-left: 0;
    }
    h2.priceitemleft {
        grid-row: 2;
    }
    h2.priceitemright {
        grid-row: 7;
    }
    #price1 {
        grid-row: 3
    }
    #price3 {
        grid-row: 4
    }
    #price5 {
        grid-row: 5
    }
    #petboarding {
        grid-row: 6
    }
}