body{
    margin: 0;
    padding: 0;
    font-family: Arial;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* FIX: Also apply overflow-x hidden to html to prevent horizontal scroll/white space on mobile */
html {
    overflow-x: hidden;
}

header{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgb(19, 25, 33);
    height: 60px;
    width: 100%;
    overflow: hidden;
}

.logo img{
    height: 55px;
    width: 112px;
    align-items: left;
}

.nexttologo{
    color: #CCCCCC;
    font-size: 12px;
}

.locationlogo img{
    height: 20px;
}

.country{
    font-size: 15px;
    color: #FFFFFF;
}

.parent{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.one{
    display: flex;
}

.all{
    height: 40px;
    width: 51.6px;
    background-color: #e6e6e6;
    color: #555555;
    font-size: 12px;
    max-width: 51.6px;
    box-sizing: border-box;
    text-align: center;
    border: none;
    border-radius: 4px 0px 0px 4px;
}

.all:hover{
    cursor: pointer;
    color: black;
}

option{
    background-color: #FFFFFF;
    text-align: center;
}

.child{
    display: flex;
    flex-direction: row;
    padding: 10px;
    flex: 1;
    min-width: 0;
}

.search{
    height: 40px;
    flex: 1;
    min-width: 0;
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
    border: none;
}

.search::placeholder{
    padding: 10px;
    font-family: Arial;
    font-size: 17px;
    align-items: center;
}

.icon{
    height: 40px;
    width: 45px;
    background-color: #EDB976;
    border-radius: 0px 4px 4px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon:hover{
    cursor: pointer;
}

.icon img{
    height: 30px;
    width: 30px;
}

.usa img{
    width: 21.6px;
    height: 16.2px;
}

.usa{
    display: flex;
    align-items: center;
}

.txt{
    color: #FFFFFF;
    font-size: 14px;
    padding: 5px;
}

.h,.r{
    font-size: 12px;
    color: #FFFFFF;
}

.a,.o{
    font-size: 14px;
    color: #FFFFFF;
}

.hello,.return{
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.hello:hover, .return:hover, .cart:hover, .logo img:hover, .parent:hover, .usa:hover{
    border: 1px solid #FFFFFF;
    border-radius: 3px;
    cursor: pointer;
}

.c img{
    height: 41px;
    width: 41px;
}

.t{
    color: #FFFFFF;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.cart{
    display: flex;
    flex-direction: row;
    padding: 5px;
}

nav{
    height: 39px;
    background-color: #232F3E;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.menu{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
}

nav .menu a{
    text-decoration: none;
    color: #FFFFFF;
    font-size: 14px;
}

nav .menu1 a{
    text-decoration: none;
    color: #FFFFFF;
    font-size: 14px;
    padding: 10px;
}

nav .menu1 a:hover, nav .menu:hover{
    cursor: pointer;
    border: 1px solid #FFFFFF;
    border-radius: 3px;
}

nav img{
    height: 15px;
    width: 30px;
}

.all-one{
    width: 100%;
    overflow: hidden;
}

.offer{
    width: 100%;
    line-height: 0;
}

.offer img{
    height: 600px;
    width: 100%;
    display: block;
}

.d{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background-color: #F5F6F6;
    height: 40px;
}

.anchor{
    text-decoration: none;
    color: #2162A1;
}

.anchor:hover{
    color: rgb(52, 100, 173);
    text-decoration: underline;
}

.bg{
    background-image: url("pictures/OFFER_LOGO.jpg");
    height: 310px;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.content p{
    margin: 0;
    font-size: 14px;
}

.content p a{
    text-decoration: none;
    color: #2162A1;
}

.content p a:hover{
    color: rgba(9, 31, 72, 0.942);
    text-decoration: underline;
}

.content{
    height: 40px;
    width: 97%;
    background-color: #F5F6F6;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.boxes{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    background-color: #CBE8CB;
}

.box1,.box2,.box3,.box4{
    height: 385px;
    width: 356px;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.box1 h1, .box2 h1, .box3 h1, .box4 h1{
    font-size: 21px;
    padding: 0px 25px;
}

.box1 a, .box2 a, .box3 a, .box4 a{
    font-size: 13px;
    padding: 10px 25px;
    text-decoration: none;
    color: #2162A1;
}

.box1 a:hover, .box2 a:hover, .box3 a:hover, .box4 a:hover{
    color: rgba(9, 31, 72, 0.942);
}

.if1, .if2, .if3, .if4{
    background-size: cover;
    height: 310px;
    width: 300px;
    align-self: center;
}

.if1{
    background-image: url("pictures/TOYS_IMAGE.jpg");
}

.if2{
    background-image: url("pictures/MAKEUP_IMAGE.jpg");
}

.if3{
    background-image: url("pictures/GAMING_IMAGE.jpg");
}

.if4{
    background-image: url("pictures/LAPTOP_IMAGE.png");
}

.subbox{
    height: 290px;
    width: 97%;
    background-color: #FFFFFF;
}

.subbox h1{
    padding: 0px 20px;
    font-size: 21px;
}

.bigbox{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #CBE8CB; 
    padding: 30px 0 40px 0;  
}

.books{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.abovefooter{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.abovefooter h1{
    font-size: 24px;
}

.abovefooter button{
    font-size: 14px;
    background-color: #ffce12;
    border-radius: 30px;
    border: none;
    height: 30px;
    width: 200px;
    padding: 5px 15px;
}

.abovefooter button:hover{
    cursor: pointer;
}

.abovefooter p{
    font-size: 11px;
    padding: 5px;
    margin: 0;
}

.abovefooter p a{
    text-decoration: none;
    color: #2162A1;
}

.back{
    background-color: #37475A;
    height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back p{
    font-size: 13px;
    color: #FFFFFF;
    cursor: pointer;
}

.know{
    background-color: #232F3E;
    height: 370px;
    margin-top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.on h1, .pi h1, .tw h1, .ti h1{
    margin: 0;
    font-size: 16px;
    color: #FFFFFF;
    padding: 5px;
}

.on a, .pi a, .tw a, .ti a{
    text-decoration: none;
    color: #FFFFFF;
    font-size: 14px;
    padding: 5px;
}

.on a:hover, .pi a:hover, .tw a:hover, .ti a:hover{
    text-decoration: underline;
}

.on,.pi,.tw,.ti{
    display: flex;
    flex-direction: column;
    padding: 50px;
}

.conditions{
    background-color: #131A22;
    height: 73px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upper-sec a{
    color: #FFFFFF;
    font-size: 12px;
    padding: 7px;
    text-decoration: none;
}

.lower-sec p{
    margin: 0;
    padding: 5px;
    color: #FFFFFF;
    font-size: 12px;
}

.upper-sec a:hover{
    text-decoration: underline;
}

.books img {
    max-width: 100%;
    height: auto;
    display: block;
    flex-shrink: 1;
    min-width: 0;
}

.books {
    flex-wrap: wrap;
}

@media (max-width: 1400px) {
    .boxes {
        gap: 10px;
        padding: 10px;
    }

    .box1, .box2, .box3, .box4 {
        width: auto;
        flex: 1 1 200px;
        min-width: 200px;
    }

    .box1 h1, .box2 h1, .box3 h1, .box4 h1 {
        padding: 0px 15px;
    }

    .box1 a, .box2 a, .box3 a, .box4 a {
        padding: 10px 15px;
    }

    .if1, .if2, .if3, .if4 {
        width: 90%;
    }

    .on, .pi, .tw, .ti {
        padding: 30px;
    }

    .books {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
        justify-content: center;
    }

    .subbox {
        height: auto;
        padding-bottom: 16px;
    }
}

@media (max-width: 1100px) {
    nav {
        overflow-x: auto;
    }

    .menu1 {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .parent {
        display: none;
    }

    .on, .pi, .tw, .ti {
        padding: 20px;
    }
}

@media (max-width: 900px) {
    header {
        height: auto;
        flex-wrap: wrap;
        padding: 5px 4px;
        width: 100%;
        box-sizing: border-box;
    }

    .child {
        order: 3;
        width: 100%;
        padding: 4px 6px;
        box-sizing: border-box; 
    }

    .usa {
        display: none;
    }

    .bg {
        height: 200px;
    }

    .boxes {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px;
        justify-content: center;
        box-sizing: border-box;
        width: 100%;
    }

    .box1, .box2, .box3, .box4 {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
        height: auto;
        min-height: 385px;
    }

    .if1, .if2, .if3, .if4 {
        width: 85%;
        height: 260px;
    }

    .books {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
        justify-content: center;
    }

    .books img {
        width: calc(20% - 8px);
        min-width: 80px;
        height: auto;
    }

    .subbox {
        height: auto;
        padding-bottom: 16px;
    }

    .know {
        height: auto;
        flex-wrap: wrap;
        padding: 20px 0;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
    }

    .on, .pi, .tw, .ti {
        flex: 1 1 40%;
        padding: 15px 20px;
    }

    .conditions {
        height: auto;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .upper-sec {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .lower-sec {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .hello, .return {
        padding: 3px;
    }

    .h, .r {
        font-size: 11px;
    }

    .a, .o {
        font-size: 12px;
    }

    .bg {
        height: 140px;
    }

    .content {
        height: auto;
        padding: 8px;
        text-align: center;
        width: 97%;
        box-sizing: border-box;
    }

    .boxes {
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .box1, .box2, .box3, .box4 {
        flex: none;
        width: 95%;
        max-width: 95%;
    }

    .if1, .if2, .if3, .if4 {
        width: 90%;
        height: 230px;
    }

    .books img {
        width: calc(33% - 8px);
        min-width: 70px;
        height: auto;
    }

    .abovefooter {
        text-align: center;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        padding: 0 10px;
    }

    .abovefooter h1 {
        font-size: 18px;
        text-align: center;
    }

    .know {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }

    .on, .pi, .tw, .ti {
        flex: none;
        width: 100%;
        padding: 12px 20px;
        border-bottom: 1px solid #37475A;
        box-sizing: border-box;
        align-items: center; 
        text-align: center; 
    }

    .on h1, .pi h1, .tw h1, .ti h1 {
        text-align: center;
    }

    .on a, .pi a, .tw a, .ti a {
        text-align: center;
    }

    .conditions {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 8px;
        text-align: center;
    }

    .upper-sec {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        width: 100%;
        gap: 4px;
    }

    .upper-sec a {
        font-size: 11px;
        padding: 5px 4px;
        text-align: center;
    }

    .lower-sec {
        text-align: center;
        width: 100%;
    }

    .lower-sec p {
        text-align: center;
    }
}