/* Global Styles */
body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
  background-color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 150px;
  position: relative;
  top: -60px; /* Adjust the top position as needed */
}



/* Products Section Styles */
#KOKI, #KOKITEC, #Fonkuan, #KIC {
  padding: 20px;
  text-align: center;
}

#KOKI h2, #KOKITEC h2, #Fonkuan h2, #KIC h2 {
  border-bottom: 2px solid #1a237e;
  padding-bottom: 10px;
  color: #1a237e;
  margin-bottom: 30px;
}

h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #1a237e;
}

.box {
  display: inline-block;
  width: 200px;
  height: 200px;
  background-color: #f2f2f2;
  border: 1px solid #1a237e;
  margin: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
}

.box img {
  max-width: 100%;
  max-height: 100px;
  margin-bottom: 10px;
}

.box span {
  display: block;
  color: #8c6a51;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

#popup-container {
  background-color: #8c6a51;
  border-radius: 10px;
  box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 18px;
  line-height: 1.5;
  padding: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%; /* Adjust the width as desired */
  max-width: 90vw; /* Set a maximum width relative to the viewport width */
  max-height: 90vh; /* Set a maximum height relative to the viewport height */
  overflow: auto;
}

#popup-container h2 {
  background-color: #b8860b;
  border-radius: 10px;
  box-shadow: 2px 2px 5px 0px rgba(0, 0, 0, 0.4);
  color: #d8bfd8;
  font-size: 24px;
  margin-top: 0;
  padding: 10px;
  text-align: center;
}

#modalImg{
  width: 100%; /* Span horizontally */
  max-width: 100%;
  height: 80%; /* Maintain aspect ratio */
  max-height: auto; /* Set a maximum height for the images */
}
#modalSecondImg {
  width: auto; /* Span horizontally */
  max-width: auto;
  height: auto; /* Maintain aspect ratio */
  max-height: auto; /* Set a maximum height for the images */
}


#contact-button {
  display: block;
  text-align: center;
  background-color: #003c8f;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  text-decoration: none;
  margin-top: 20px;
}

#contact-button:hover {
  background-color: #005cb2;
}

/* Center the images in the modal and maintain aspect ratio */
#myModal #modalImg,
#myModal #modalSecondImg {
  max-width: 100%;
  display: block;
  margin: 0 auto;
}



/* Close Button */
.close {
  color: #ff0000;
  position: absolute;
  top: 20px; /* Adjust the top position as needed */
  right: 20px; /* Adjust the right position as needed */
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s; /* Add a smooth color transition */
}

.close:hover,
.close:focus {
  color: #8b1111; /* Change to black on hover or focus */
  text-decoration: none;
}
.required-asterisk {
  color: rgb(250, 0, 0);
  margin-left: 4px; /* Add some spacing between the label and asterisk */
}

/* Footer Styles */
.footer {
  background-color: #0d47a1; /* Dark blue background color */
  color: #f0e8e8; /* Text color */
  padding: 20px 0 20px; /* Adjust padding as needed (top, right, bottom, left) */
  text-align: center;
}

.footer-content {
  font-size: 14px; /* Font size for the copyright text */
}

/* Center the text horizontally */
.footer p {
  margin: 0;
}




/* Responsive Styles for Mobile Devices (576px and below) */
@media screen and (max-width: 576px) {
  /* Header Styles */
  .logo {
    width: 100px;
  }

  /* Navigation Styles */
  .w3-sidebar {
    width: 100%;
    text-align: center;
  }

  .w3-sidebar button {
    font-size: 18px;
  }

  /* Products Section Styles */
  #KOKI, #KOKITEC, #Fonkuan, #KIC {
    padding: 5px;
  }

  .box {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
  }
}

/* Responsive Styles for Tablets (768px and below) */
@media screen and (max-width: 768px) {
  /* Modal Styles for Tablets */
  .popup-container {
    font-size: 16px;
    padding: 10px;
    max-height: 80vh;
  }
}

/* Responsive Styles for 14'' Laptops (1440px and below) */
@media screen and (min-width: 769px) and (max-width: 1440px) {
  /* Modal Styles for 14'' Laptops */
  .popup-container {
    font-size: 16px;
    padding: 10px;
    max-height: 500.33px;
  }
}
/* Responsive Styles for 15'' Laptops and Desktops (1920px and below) */
@media screen and (min-width: 1367px) and (max-width: 1920px) {
  .container {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo {
    width: 150px;
    position: relative;
    top: 0; /* Reset the top position */
  }
}

