/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&display=swap');



/* Main style section */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
}

#logo {
    width: 50px;
    margin-right: auto;
    margin-left: 50px;
}

nav {
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 10px 20px;
    background-color: #317526;
}

nav a {
    color: #fefefe;
    text-decoration: none;
    padding: 10px;
}


form {
    border: none;
}

/* Here it styles the seperate boxes that are used on the pages */
.container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
    background-color: #f2f2f2;
  padding: 5px 20px 15px 20px;
  border: 1px solid lightgrey;
  border-radius: 3px;
    
}

.box {
    flex: 1 1 30%;
    background-color: #317526;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: white;
}

.box h2 {
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

.box form {
    justify-content: center;
}
/* Here it styles the buttons */
.order-button {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    margin-bottom: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.order-button:hover {
    background-color: #45a049;
}


.manage-btn {
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
}

.manage-btn:hover {
    background-color: #4caf4fd5;
}

#basket-button {
    position: absolute;
    right: 0px;
    top: 90px;
    width: 50px;
    height: 50px;
    background-color: #317526;;
}

#basket-button img {
    position: absolute;
    top: 4px;
    left: 2px;
    right: 2px;
    width: 40px;
    height: 40px;
}

.addnew {
    justify-content: center;
    background-color: #317526;
}

.btn {
  background-color: #04AA6D;
  color: white;
  padding: 12px;
  margin: 10px 0;
  border: none;
  width: 100%;
  border-radius: 3px;
  cursor: pointer;
  font-size: 17px;
}

.btn:hover {
  background-color: #45a049;
}

#deleteaccountbtn {
  background-color: red;
  color: white;
  width: 300px;
  height: 100px;
}

/* Here it styles the about sections */
.about {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f4f4f4;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about h1 {
    text-align: center;
    color: #317526;
    margin-bottom: 20px;
    font-size: 2em;
}

.about p {
    line-height: 1.7;
    font-size: 1.1em;
    color: #333;
    text-align: justify;
}



/* Responsive Layout */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        padding: 20px;
    }

    .box {
        flex: 1 1 100%;
    }
}

/* Here it styles the products card/ page */
.products-wrapper {
  display: flex;
  justify-content: center; 
  padding: 20px;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 20px;
  max-width: 900px;
}

.product {
  background-color: #317526;      
  color: white;                     
  padding: 20px;
  border-radius: 12px;             
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 450px;
  transition: transform 0.2s ease;
}

.product:hover {
  transform: translateY(-5px);      
}

.product img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;              
  margin-bottom: 15px;
}

.product-info {
  text-align: center;
  margin-top: auto;                 
}

.product-info h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
}

.product-info p {
  margin: 5px 0;
}

.product-info button {
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #4CAF50; 
    color: white;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    border: none;          
    cursor: pointer;        
    transition: background-color 0.2s ease;
}

.product-info button:hover {
    background-color: #45a049; 
}
/* Here it styles the checkout page and basket page */
.row {
  display: -ms-flexbox; 
  display: flex;
  -ms-flex-wrap: wrap; 
  flex-wrap: wrap;
  margin: 0 -16px;
}

.col-25 {
  -ms-flex: 25%; 
  flex: 25%;
}

.col-50 {
  -ms-flex: 50%; 
  flex: 50%;
}

.col-75 {
  -ms-flex: 75%; 
  flex: 75%;
}

.col-25,
.col-50,
.col-75 {
  padding: 0 16px;
}
input [type="text"] {
  width: 100%;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
}
input [type="email"] {
  width: 100%;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
}
label {
  margin-bottom: 10px;
  display: block;
}

.icon-container {
  margin-bottom: 20px;
  padding: 7px 0;
  font-size: 24px;
}

span.price {
  float: right;
  color: grey;
}

/* Here it styles all of the dark mode settings */
.dark-mode #darktoggle {
  background-color: #45a049;
}
.dark-mode button {
  background-color: #45a049;
}
.dark-mode .about {
  background-color: #317526;
  color: #f0f0f0;
}
.dark-mode p {
  color: #f0f0f0;
}
.dark-mode .about h1 {
  color: #f0f0f0;
}
.dark-mode .order-button {
  background-color: #45a049;
}
.dark-mode .container{
     display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
    background-color: #333;
  padding: 5px 20px 15px 20px;
  border: none;
}
.dark-mode {
  background-color: #333;
  color: #f0f0f0;
}
.dark-mode #deleteaccountbtn {
  background-color: #C00000;
}

/* dyslexia mode */
body.dyslexia-font {
  font-family: Lexend;
}