
/* removes all border from the body so page is flush with screen */
body{
    margin: 0px;
}

/* gets the colour and height of our navbar */
nav{
    background-color: #218b3d;
    height: 85px;
    text-decoration: none;
    color: white;
}

/* places our buttons in the correct possitions */
#navitems{
    padding-top: 30px;
    margin-right: 20px;
    display: flex;
    align-self: auto;
    justify-content: end;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    font-size: 25px;

}

/* styles our buttons */
#navitems a{
        text-decoration: none;
    color: white;
    font-weight: bold;
}

/* moves our home button to the left of the navbar */
#homebtn{
margin-right: auto;
}

/* puts our header in the top center of the page*/
#indexbody{
    margin-top: 400px;
    margin-bottom: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 50px;
}
#indexbody p {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 30px;
}
#indexbody h1 {
        margin-bottom: 0px;
}


/* gets correct sizing and colours for our login and register forms */
#loginformdiv{
    display: flex;
    justify-content: center;
    align-items:center ;
    flex-direction: column;
    background-color: rgba(33, 139, 61, 0.95);
    max-width:max-content;
    margin: auto;
    padding: 20px;
    color: white;
    margin-top: 110px;
}

/* chnages link colours in form */
#loginformdiv a{
    color: white;
    text-decoration: none;
}

/* chnages the home button size on our login/regoster pages */
#homebtnlogin{
    font-size: 20px;
    font-weight: bolder;
}

/* changes size of register form as it has more content then the login */
#regform{
    max-width: 400px;
    padding-left:40px;
}

/* manualy center the submit button on register form */
#submitbtnreg{
    margin-left: 150px;
}


#accountpagediv{
    display: flex;
    justify-self: center;
    align-self: center;
    margin: auto;
    margin-top: 100px;
    background-color: rgba(255, 255, 255, 0.95);
    width: 90vw;
    height: fit-content;
    flex-direction: column;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 50px;
}

#accountpage{
        background-image: url('assets/farm_image.avif');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

#logout{
    display: flex;
    justify-content:flex-start;
    align-items:flex-end;
    margin-left: auto;
    margin-right: 50px;
    margin-bottom: 20px;
    color: red;
    text-decoration: none;
}



#userimg{
    width: 100px;
    height: 100px;
}

#orderhead{
    display: block;
    justify-self: left;
    align-self: top;
    margin-top: 0px;
    flex-direction: column;
}

#topbox{
    display: flex;
    height: 20vh;
    width: 300px;
}

#logoutbox{
    height: fit-content;
    margin-top: 20px;
    display: flex;
    justify-self: end;
    align-Self: end;
    margin-left: auto;
    flex-direction: column;
}

#orders{
    height: fit-content !important;
    width:60vw;
    display: flex;
    justify-self: end;
    align-self: top;
    flex-direction: column;


}



#accountdetails p{
    margin-bottom: 0px;
    margin-left: 20px;

    width: fit-content;
}


@media (max-width:900px) {
    #indexbody{
    margin-top: 300px;
    margin-bottom: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 30px;
}

nav a{
    font-size: 18px;
}
}

@media (max-width:500px) {
    #indexbody{
    margin-top: 300px;
    margin-bottom: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 20px;
}
#indexbody p {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-size: 20px;
}

nav a{
    font-size: 12px;
    gap: 5px;
}

#submitbtndiv{
    display: flex;
    justify-content: flex-end;
    align-self: center;
    margin-left: 0px;
    width: fit-content;
}
#submitbtndiv #submitbtnreg{

    margin-left: 0px;
    width: 177px;
}
#regform{
    display: flex;
    justify-self: center;
    align-self: center;
    flex-direction: column;
    padding-left: 0px;
}

#orders{
    height: 250px;
}

#logoutbox{
    margin-top: 0px;
}

#storeitemimg{
    width: 50px!important;
    height: 50px!important;
}

.checkoutbody{
    margin: 0px !important;
    padding: 0px !important;
    width: 350px !important;
}

#checkouthead{
    margin-top: 10px;
    margin-bottom: 10px;
}

.addtocart{
    font-size: 10px;
    width: 60px !important;
}

#logoutbox a{
    margin-bottom: 10px;
}

#orders th{
    font-size: 10px;
}

.orderhist{
    font-size: 10px;
    
}

#changepassform{
    font-size: 10px;
        width: 250px !important;
    height: 250px !important;
}

#orders{
    max-width: none;
}

#additemform{
    font-size: 10px;
    width: 250px !important;
    height: 250px !important;
}

}
#additemform input{
    width: 30vw;
}

#additemform textarea{
    max-width: 30vw;
    min-width: 30vw;
    max-height: 50vh;
}

#additemform{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
}

#settingsmenu{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 40vh;
    width: 80vw;
    gap: 10px;
    margin: auto;
    margin-top: 50px;
    background-color: rgba(33, 139, 61, 0.95);
    border-radius: 50px;
    color: white;
}
#settingsmenu button{
    border-radius: 100px;
}

#settingsmenu button{
    width: 20vw;
    height: 10vh;
}

#dmode, #hcmode{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    font-weight: bold;
}

#additem{
    display: flex;
    justify-self: center;
    align-self: center;
}
#delete{
    display: flex;
    justify-content:flex-start;
    align-items:flex-end;
    margin-left: auto;
    margin-right: 20px;
    margin-bottom: 20px;
    color: white;
    background-color: red;
    text-decoration: none;
    padding: 2px;


}

#deletebox{
    display: flex;
    justify-content: center ;
    align-items: center;
    margin: auto;
    flex-direction: column;
    margin-top: 100px;
    background-color: #56a7e0;
    min-width: max-content;
    max-width: 500px;
    padding: 30px;
}

#options{
    margin-top: 100px;
}

#options a{
margin: 20px;
}

#confirmdelete{
    color: red;
    font-weight: bold;
}

#edit{
    display: flex;
    justify-content:flex-start;
    align-items:flex-end;
    margin-left: auto;
    margin-right: 20px;
    margin-bottom: 20px;
    
    text-decoration: none;
    padding: 2px;
}

#changepassform,#additemform{
    display: flex;
    justify-content:center ;
    align-items: center;
    flex-direction: column;
    gap: 5px;
    background-color: rgba(33, 139, 61, 0.95);
    height: 30vh;
    width: 60vw;
    margin: auto;
    margin-top: 200px;
    color: white;
    border-radius: 50px;
}

#changepassform h1{
    margin-top: 0px;
}

#editpagebody,#settingbody,#loginbody,#regpagebody{
    background-image: url('assets/farm_image.avif');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

#error{
    color: white;
    background-color: rgba(255, 0, 0, 0.7);
    padding-left: 5px;
    padding-right: 5px;
    margin-top: 0px;
    display: flex;
    justify-content: center;
    justify-self: center;
    border-radius: 50px;
    margin-top: 5px;
    width: 200px;

}

#back{
    color:#ffffff;
    text-decoration: none;
    display: flex;
    justify-self: flex-start;
    align-self: flex-start;
    margin-left: 30px;
    font-weight: bold;
    border-radius: 100px;
    border: none;

}

#basketimg{
    width: 14px;
}




table {
  border-collapse: collapse;
  width: 100%;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  border-color: black;
  
}

th{
    text-align: start;
}

td{
    border: 1px solid #ddd;
    padding: 5px;
}

tr {

  border-bottom: 1px solid #ddd;

  margin: auto;
}

tr:hover {
    background-color: #c8eec5;
}


.addtocart{
    text-decoration: none;
    background-color: #218b3d;
    color: white;
    border-radius: 50px;
    padding-left: 5px;
    padding-right: 5px;
    display: flex;
    align-items: end;
    width: 100px;
    margin-left: auto;
    margin-right: 10px;
    
}

#baskettable{
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-left: 0px;
    margin-right: 0px;
    border-collapse: collapse;
    width: 100%;
    max-width: 1500px;
}

#baskethead{
    margin-top: auto;
}

.removefromcart{
    text-decoration: none;
    background-color: #8b2121;
    color: white;

    padding-left: 5px;
    padding-right: 5px;
    display: flex;
    align-items: end;
    width: fit-content;
    
    
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    align-self: center;
}

#baskettable td{
    width:50px;
}

#checkout{
        text-decoration: none;
    background-color: #218b3d;
    color: white;
    border-radius: 50px;
    padding-left: 5px;

    margin-top: 20px;
    width: 150px;
    height: 50px;

    font-size: 25px;
    display: flex;
    justify-self: center;
    justify-content: center;
    align-items: center;
}

#totalstable{
    margin-top: 50px;
    max-width: 384px;
    margin-left: 0px;
    display: flex;
    justify-content: center;
    margin: auto;
}

#personaldata{
    margin-top: 20px;
    display: flex;
    flex-direction:column;
    width: 200px;
    gap: 10px;
}

input:focus {
  outline: none;
}

#carddetails{
    display: flex;
    flex-direction:column;
    gap: 10px;
}

#carddetails input{
    width: 50px;
}

#cardnum{
    width: 200px;
}

#mmyy input{
    border: 0;
    width: 25px;
}
#mmyy{
        display: flex;
    flex-direction: row !important;
}

#mmyy input{
    background-color: rgba(255, 255, 255, 0.0);
}

#billing{
        display: flex;
    flex-direction:column;
    width: 200px;
    gap: 10px;
}


#basketpagediv{
    display: flex;
    justify-content: center;
    align-items: center;
}


#checkoutform{
    display: flex;
    flex-direction: column;
    justify-self: center !important;
    margin-left: auto;
    margin-right: auto;

    
}

#baskettopper{
        display: flex;
    flex-direction: column;
    justify-self: center;
        margin-left: auto;
    margin-right: auto;

}

#checkouthead{
            display: flex;

    justify-content: center;
}

.checkoutbody{
    margin-top: 10px;
    border: solid 5px #218b3d;
    width: 500px;
            display: flex;
    flex-direction: column;
    justify-self: center;
    justify-content: center;
    border-radius: 50px;
    padding: 20px;
    background-color: rgba(255, 255, 255,0.95);
}

#checkoutform button{
    border-radius: 50px;
    border: 1px solid #218b3d;
    margin-top: 2px;
}

#storeitemimg{
    width: 200px;
    height: 200px;
}

#homepagehead{
    color: rgba(255, 255, 255,0.9);
}

#imagetd{
    width: fit-content;
}

#imgup{
    width: 177px !important;
}

#loginform{
    display: flex;
    flex-direction: column;
}