/* Color Palette */
/* 
Main green: #549e00
Lighter green: #dae3de
Darker green: #0cad5a
Grey: #8f8f8f 
*/

/* ----General styling */
* {
  box-sizing: border-box;
  font-family: 'Trebuchet MS', sans-serif;
}

p, li {
  font-size: 17px;
}

body {
  margin: 0;
  height: 100%;
}

/* ----Container styling */
.container {
  width: 60%;
  margin-left: 20%;
  margin-top: 160px;
}

/* ----Slideshow styling */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

.mySlides {
  display: none;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.select, .dot:hover {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* ----Homepage styling */
.container img {
  width: 30%;
}
@media screen and (min-width: 1000px) {
  #mobilePicture {
    height: 500px;
    width: 240px;
  }
}

@media screen and (max-width: 1000px) {
  .container #product img {
    width: 100%;
  }
  #mobilePicture {
    width: 50vw;
  }
}

h1 {
  text-align: center;
  padding-top: 40px;
}

.product {
  border-left: 4px solid #549e00;
  padding-left: 10px;
  margin-top: 70px;
  color: black;
  padding-top: 0px;
}

h2 {
  color: #549e00;
  display: block;
  vertical-align: middle;
}

.price-box {
  background-color: #549e00;
  color: white;
  padding: 10px;
  border-radius: 8px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 45%;
  width: 120px;
  text-align: center;
  padding: 8px;
  font-size: 16px;
}

#sunpanels {
  width: 62%;
}

.home {
  width: 33%;
  float: left;
  text-align: center;
  padding: 70px 20px;
}

@media screen and (max-width: 875px) {
  .home {
    width: 100%;
    padding: 0;
    border-bottom: 4px solid #dae3de;
  }
  .container {
    margin-top: 100px;
  }

  #sunpanels {
    width: 100%;
  }
}

/* ----Form styling */
input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

input:focus {
  border-color: #549e00;
}

label {
  padding: 12px 12px 12px 0;
  display: inline-block;
}

input[type=submit] {
  background-color: #549e00;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
  width: 180px;
  margin-top: 10px;
  font-size: 20px;
}

input[type=submit]:hover {
  background-color: #0cad5a;
}

/* ----Review styling */
.checked {
  color: orange;
}

.reviewcontainer {
  width: 60%;
  margin-left: 20%;
  margin-top: 70px;
}

.review {
  background-color: #dae3de;
  border-left: 6px solid #549e00;
  padding: 20px;
  margin: 50px 0px;
}

@media screen and (max-width: 875px) {
  .reviewcontainer {
    width: 90%;
    margin-left: 5%;
  }
}

/* ----Button styling */
.button-30 {
  width: 20%;
  margin-left: 40%;
  margin-top: 200px;
  align-items: center;
  background-color: #FCFCFD;
  border-radius: 4px;
  border-width: 0;
  box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
  box-sizing: border-box;
  color: #36395A;
  cursor: pointer;
  display: inline-flex;
  height: 48px;
  justify-content: center;
  padding-left: 16px;
  padding-right: 16px;
  font-size: 18px;
}

.button-30:focus {
  box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
}

.button-30:hover {
  box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset;
  transform: translateY(-2px);
}

.button-30:active {
  box-shadow: #D6D6E7 0 3px 7px inset;
  transform: translateY(2px);
}

@media screen and (max-width: 875px) {
  .button-30 {
    margin-left: 5%;
    width: 90%;
  }
}

/* Profile Section styling */
.profile {
  display: flex;                   /* Use Flexbox for horizontal layout */
  align-items: center;             /* Vertically center content */
  justify-content: space-between;  /* Space between picture and text */
  width: 60%;
  margin-left: 20%;
  min-height: 100vh;               /* Ensure the section takes full screen height */
  padding: 30px 0;                 /* Adjust padding for space */
  box-sizing: border-box;          /* Include padding and margin in size calculation */
}

#profileText {
  flex: 1;                         /* Ensure the text takes up equal space */
  padding: 20px;
  text-align: center;
}

#profilePicture {
  flex: 1;                         /* Ensure the picture takes up equal space */
  padding: 20px;
  text-align: center;
  border-right: 4px solid #549e00; /* Green border on the right for large screens */
}

#profilePicture img {
  width: 80%;                      /* Ensure picture fits well */
  height: auto;
}

/* Media query for screens smaller than 1000px */
@media screen and (max-width: 1000px) {
  .profile {
    flex-direction: column;         /* Stack text and picture vertically */
    margin-top: 100px;
  }

  #profilePicture {
    border-right: none;              /* Remove right border for small screens */
    border-bottom: 4px solid #549e00;  /* Add green border below the picture */
    padding: 0px;
  }

  #profileText {
    width: 80%;                      /* Ensure text width fits nicely below the image */
    padding-top: 30px;               /* Space above the text */
    text-align: center;
  }
}


/* ----Success display styling */
#display-success {
  width: 400px;
  border: 1px solid #D8D8D8;
  padding: 10px;
  border-radius: 5px;
  background-color: rgb(236, 255, 216);
  color: green;
  text-align: center;
  margin-top: 30px;
}

#display-success img {
  width: 20px;
}

/* ----Navbar Styling */
.navbar {
  width: 100%;
  overflow: auto;
  border-bottom: 4px solid #549e00;
  position: fixed;
  background-color: white;
  top: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 15px;
  transition: height 0.3s ease;
  height: auto;
}

.nav-header {
  display: flex;
  align-items: center;
}

.navbar #img {
  padding-right: 10px;
}

.navbar .logo {
  height: 50px;
}

.navbar img {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.navbar .icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 15px;
}

.navbar a, .nav-links a {
  display: flex;
  align-items: center;
  text-align: center;
  padding: 10px;
  color: black;
  text-decoration: none;
  font-size: 18px;
}

.nav-links a i, .nav-links #navicon {
  margin-right: 5px;
  vertical-align: middle;
  height: 16px;
  width: auto;
}

.navbar a:hover, .navbar .active, .nav-links a:hover {
  color: #549e00;
}

@media screen and (max-width: 1000px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 5px 10px;
  }

  .nav-header {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    display: none;
    width: 100%;
    text-align: left;
    background-color: white;
    padding: 5px 0;
  }

  .navbar .icon {
    display: block;
    width: 40px;
  }

  .navbar.responsive .nav-links {
    display: block;
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 8px 15px;
    border-bottom: 1px solid #dae3de;
    float: none;
  }

  .navbar img {
    height: 18px;
  }

  .slideshow-container, .dots {
    display: none;
  }
}

/* ----Home Section Styling */
.home {
  width: 30%;
  float: left;
  text-align: center;
  padding: 40px 10px;
}

@media screen and (max-width: 875px) {
  .home {
    width: 100%;
    padding: 10px 0;
    border-bottom: 4px solid #dae3de;
  }
}

/* ----General Text Styling */
h1, h2 {
  font-size: 20px;
  padding-top: 20px;
}

p, li {
  font-size: 15px;
}

/* ----Submit Button Styling */
input[type=submit] {
  padding: 10px 15px;
  font-size: 16px;
}

/* ----Form Element Styling */
input, select, textarea {
  padding: 10px;
  font-size: 16px;
}