.gridcontainer {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: 15% 25% 25% 35%;
    font-family: Arial, Helvetica, sans-serif;
    grid-template-areas:
    "header header header header"
    "section main main main"
    "footer footer footer footer";}
header {
    display: grid;
    grid-area: header;
    grid-template-columns: 9% 51% auto auto auto auto auto auto;
    position: sticky;
    padding: 2%;
    background-color: #4a556b;
    margin: -0.7%;}
#logo {
    position: sticky;
    width: 80%;}
#text {
    padding-top: 28px;
    width: 38%;}
#navbar {
    display: grid;
    grid-auto-flow: column;
    list-style: none;}
#navbar li {
    padding: 10px;}
#navbar a {
    color: white;
    font-weight: bold;}
#home {
    margin-top: 0px;}
#phone {
    margin-top: -1px;}
#cart {
    margin-top: -5px;}
.text {
    margin-top: 5px;}
section {
    grid-area: section;
    background-color: #4a556b;
    width: 85%;
    height: 100%;
    margin: -8px;
    margin-top: -17px;}
#navbartwo {
    grid-auto-flow: row;
    list-style: none;}
#navbartwo li {
    padding: 8px;}
#navbartwo a {
    color: white;
    text-decoration: none;
    margin: -30px;
    font-size: 14px;
    text-align: center;}
main {
    grid-area: main;}
.harrypotter {
    padding: 2% 4%;}
footer{
    display: grid;
    grid-template-columns: auto auto auto;
    grid-area: footer;
    background-color:#4a556b;
    width: 101.3%;
    height: 111%;
    margin-top: -17px;
    margin-left: -8px;}
p {
    padding-left: 2%;
    color: white;
    font-size: 14px;
    line-height: 170%;}
.contact {
    font-weight: bold;
    font-size: 16px;}
#image{
    display: block;
    margin: 10%;}
#pinterest {
    margin-left: -10px;
    margin-top: 1px;
    vertical-align: top;}
#facebook {
    margin-left: 6px ;
    margin-top: 6px;
    vertical-align: top;}

.percyjackson {
    padding: 20% 0%;
    width: 80%;}
.bookmain {
    display: grid;
    grid-template-columns: 18% auto;
    grid-template-areas:
    "percyjackson h6";}
h6 {
    padding-top: 12%;
    font-weight: normal;
    font-size: 80%;}
.booktitle {
    font-family: serif;
    font-weight: bold;
    font-size: 200%;}
.author{
    color: rgb(75, 73, 73);}
.illustrator {
    color: rgb(141, 137, 137);
    font-size: 10px;}   
article {
    grid-area: main;
    font-family: serif;}
.hpcontainer {
    display: flex;
    margin-top: 25%;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;}
.agggtmcontainer {
    display: flex;
    margin-top: 37%;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;}
.fourthwingcontainer {
    display: flex;
    margin-top: 43%;
    justify-content: center;
    gap: 20px; 
    padding: 20px;
    flex-wrap: wrap;}
.loecontainer {
    display: flex;
    margin-top: 33%;
    justify-content: center;
    gap: 20px; 
    padding: 20px;
    flex-wrap: wrap;}
.powerlesscontainer {        
    display: flex;
    margin-top: 38%;
    justify-content: center;
    gap: 20px; 
    padding: 20px;
    flex-wrap: wrap;}
.card {
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 200px;}
.card img {
    width: 70%;
    display: block;
    margin: 10%;
    border-radius: 10px;}
.tm{
    font-size: 7px;
    margin-top: 10px;
    color: black;}
.title {
    font-size: 13px;
    font-weight: bold;
    color: black;}
.price {
    font-size: 16px;
    font-weight: bold;
    color: black;}
.cart-icon {
    font-size: 10px;
    margin-left: 180px;
    display: inline-block;
    background: #e5e5e5;
    padding: 5px;
    border-radius: 50%;}

h1 {
    text-align: center;
    color: #111755;}
    
.faq-container {
    max-width: 800px;
    margin: 0 auto;}
.faq-item {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    padding: 15px 20px;
    cursor: pointer;}
.faq-item:hover {
    background-color: #e3f2fd;}
.question {
    font-size: 1.1em;
    font-weight: bold;
    color: #4a556b;}
.answer {
    margin-top: 10px;
    display: none;
    color: #333;
    line-height: 1.5;}
.faq-item.active .answer {
    display: block;}
    
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;}
.about-image img {
    width: 100%;
    height: 100%;
    display: block;}
.about-text {
    padding: 40px;}
.about-text p {
    color: #333;
    line-height: 1.6;
    font-size: 16px;}
.about-text {
    padding: 20px;}

.compare { 
    font-family: Arial, sans-serif;
    padding: 30px;}
.compare-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-inline: auto;}
.dropdownbox {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);}
select, button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;}
.compare-btn {
    display: block;
    margin: 0 auto 30px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    background-color: #111755;
    color: #fff;
    border: none;
    border-radius: 6px;}
.compare-btn:hover {
    background-color: rgb(63, 61, 61);}
.compare-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;}
.compare-item {
    border: 1px solid #ccc;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    text-align: center;}
.compare-item img {
    width: 200px;
    height: 200px;
    margin-bottom: 10px;}

.cart {
    font-family: Arial, sans-serif;
    padding: 30px;}
.order-form {
    max-width: 600px;
    margin: auto;
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);}
.form-label {
    display: block;
    margin-top: 15px;
    font-weight: bold;}
.form-input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;}
.form-textarea {
    width: 100%;
    height: 100px;
    margin-top: 5px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: vertical;}
.submit-btn {
    margin-top: 20px;
    padding: 12px 20px;
    font-size: 16px;
    background-color: #111755;
    color: #fff;
    border-radius: 6px;
    width: 100%;}
.submit-btn:hover {
    background-color: #444;}

.thankyou {
    background-color: #4a556b;
    text-align: center;} 
.thankyou-container {
    margin-top: 20%;
    line-height: 1%;}
.thankyou-title {
    font-size: 28px;
    color: white;}
.thankyou-text {
    font-size: 18px;
    color: white;}
.home-link {
    position: absolute;
    top: 20px;
    right: 20px;
    position: absolute;
    text-decoration: none;
    padding: 8px 15px;}


@media screen and (max-width: 1024px) {
    .gridcontainer {
        display: grid;
        width: 94%;
        height: 100%;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        font-family: Arial, Helvetica, sans-serif;
        grid-template-areas:
        "header header header header"
        "section main main main"
        "footer footer footer footer";}
    header {
        display: grid;
        width: 106%;
        grid-area: header;
        grid-template-columns: 12% 45% auto auto auto auto auto auto;
        margin: -1.5%;}
    #logo {
        position: sticky;
        width: 89%;}
    #text {
        padding-top: 28px;
        width: 55%;}
    .text {
        margin-top: 5px;
        font-size: 80%;}
    section {
        grid-area: section;
        background-color: #4a556b;
        width: 90%;
        height: 100%;
        margin: -8px;
        margin-top: -17px;}
    
    .harrypotter {
        padding: 4% 4%;
        width: 18%;}
    footer{
        display: grid;
        grid-template-columns: auto auto auto;
        grid-area: footer;
        width: 108.8%;
        height: 111%;
        margin-top: -17px;
        margin-left: -8px;}
    .hpcontainer {
        display: flex;
        margin-top: 40%;
        justify-content: center;
        flex-wrap: wrap;}
    .card img {
        width: 60%;}
    .agggtmcontainer {
        display: flex;
        margin-top: 65%;
        justify-content: center;
        gap: 20px;
        padding: 20px;
        flex-wrap: wrap;}
    .fourthwingcontainer {
        display: flex;
        margin-top: 75%;
        justify-content: center;
        gap: 20px; 
        padding: 20px;
        flex-wrap: wrap;}
    .loecontainer {
        display: flex;
        margin-top: 50%;
        justify-content: center;
        gap: 20px; 
        padding: 20px;
        flex-wrap: wrap;}
    .powerlesscontainer {        
        display: flex;
        margin-top: 70%;
        justify-content: center;
        gap: 20px; 
        padding: 20px;
        flex-wrap: wrap;}
}
        
@media (max-width: 768px) {
    .gridcontainer {
        display: grid;
        width: 94%;
        height: 100%;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        font-family: Arial, Helvetica, sans-serif;
        grid-template-areas:
        "header header header header"
        "section main main main"
        "footer footer footer footer";}
    header {
        display: grid;
        width: 105%;
        grid-area: header;
        grid-template-columns: 12% 30% auto auto auto auto auto auto;
        margin: -1.5%;}
    #logo {
        position: sticky;
        width: 89%;}
    #text {
        padding-top: 28px;
        width: 75%;}
    .text {
        margin-top: 5px;
        font-size: 80%;}
    section {
        grid-area: section;
        background-color: #4a556b;
        width: 90%;
        height: 100%;
        margin: -8px;
        margin-top: -17px;}  
    .harrypotter {
        padding: 4% 4%;
        width: 18%;}
    footer{
        display: grid;
        grid-template-columns: auto auto auto;
        grid-area: footer;
        width: 108.8%;
        height: 111%;
        margin-top: -17px;
        margin-left: -8px;}
    .hpcontainer {
        display: flex;
        margin-top: 50%;
        justify-content: center;
        flex-wrap: wrap;}
    .card img {
        width: 60%;}
    .agggtmcontainer {
        display: flex;
        margin-top: 90%;
        justify-content: center;
        gap: 20px;
        padding: 20px;
        flex-wrap: wrap;}
    .fourthwingcontainer {
        display: flex;
        margin-top: 100%;
        justify-content: center;
        gap: 20px; 
        padding: 20px;
        flex-wrap: wrap;}
    .loecontainer {
        display: flex;
        margin-top: 70%;
        justify-content: center;
        gap: 20px; 
        padding: 20px;
        flex-wrap: wrap;}
    .powerlesscontainer {        
        display: flex;
        margin-top: 100%;
        justify-content: center;
        gap: 20px; 
        padding: 20px;
        flex-wrap: wrap;}

@media (max-width: 480px) {
    .gridcontainer {
        display: grid;
        width: 94%;
        height: 100%;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        font-family: Arial, Helvetica, sans-serif;
        grid-template-areas:
        "header header header header"
        "section main main main"
        "footer footer footer footer";}
    header {
        display: grid;
        width: 106%;
        grid-area: header;
        grid-template-columns: 15% 20% auto auto auto auto auto auto;
        margin: -2%;}
    #logo {
        position: sticky;
        width: 90%;}
    #text {
        padding-top: 28px;
        width: 110%;}
    .text {
        margin-top: 15px;
        font-size: 50%;}
    section {
        grid-area: section;
        background-color: #4a556b;
        width: 90%;
        height: 100%;
        margin: -8px;
        margin-top: -17px;}
    #navbartwo a {
        font-size: 8px;}
    #navbar li {
        padding: 5px;}

    .harrypotter {
        padding: 4% 4%;
        width: 18%;}
    footer{
        display: grid;
        grid-template-columns: auto auto auto;
        grid-area: footer;
        width: 110%;
        height: 111%;
        margin-top: -17px;
        margin-left: -8px;}
    p {
        font-size: 10px;}
    .contact {
        font-weight: bold;
        font-size: 12px;}
    
    h6 {
        padding-top: 12%;
        font-weight: normal;
        font-size: 80%;}
    .booktitle {
        font-family: serif;
        font-weight: bold;
        font-size: 150%;}
    .author{
        color: rgb(75, 73, 73);}
    .illustrator {
        color: rgb(141, 137, 137);
        font-size: 10px;}
    .hpcontainer {
        display: flex;
        margin-top: 90%;
        justify-content: center;
        flex-wrap: wrap;}
    .card img {
        width: 50%;}
    .agggtmcontainer {
        display: flex;
        margin-top: 180%;
        justify-content: center;
        gap: 20px;
        padding: 20px;
        flex-wrap: wrap;}
    .fourthwingcontainer {
        display: flex;
        margin-top: 200%;
        justify-content: center;
        gap: 20px; 
        padding: 20px;
        flex-wrap: wrap;}
    .loecontainer {
        display: flex;
        margin-top: 150%;
        justify-content: center;
        gap: 20px; 
        padding: 20px;
        flex-wrap: wrap;}
    .powerlesscontainer {        
        display: flex;
        margin-top: 190%;
        justify-content: center;
        gap: 20px; 
        padding: 20px;
        flex-wrap: wrap;}
    .about-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: 
        "about-image"
        "about-text";}
    .compare-result {
        display: grid;
        grid-template-columns: 1fr;}
    }
}   