* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #eaf8e6; 
  color: #333;
}

/*LOGO BOI*/
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 15px;
}

.logo h1 {
  font-size: 1.5rem;
}

.logo a {
  text-decoration: none;
  color: #fff;
}

.navbar-container {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.navbar-container img {
  max-width: 40px;
  margin-right: 10px;
}

/*nav bar mobile friendly*/
/* Navbar Styles */
.navbar {
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
}

.navbar .navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}

.navbar .logo {
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  margin-left: 12px;
}

.navbar .menu-toggle {
  display: none;
  font-size: 1.5em;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  margin-right: 2px;
  /*  */
  z-index: 11;
  position: relative;
}

.navbar .nav-links a {
  text-decoration: none;
  color: #fff;
  padding: 5px 10px;
  transition: background-color 0.3s;
}

.navbar .nav-links a:hover {
  background-color: #575757;
  border-radius: 5px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .navbar .menu-toggle {
    display: block;
  }

  .navbar .nav-links {
    display: none;
    flex-direction: column;
    background-color: #333;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 10px 0;
  }

  .navbar .nav-links.active {
    display: flex;
  }

 
}

/**/
/* CAlCulator */

.cal {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh;
}

/* link contact */
.container img {
  max-width: 16px;
}

.container a {
  color: #333;
}





/* Responsive Design */
@media (max-width: 480px) {
  .calculator {
    width: 90%;
  }

  #result {
    font-size: 28px;
  }

  button {
    font-size: 20px;
  }
}

/* 📌 แก้ปัญหาปุ่มทะลุเมื่อหน้าจอเล็กลง */
@media (max-width: 260px) {
.calculator {
    width: 100%;
    padding: 10px;
}

.btn {
    height: 30px; /* ปรับขนาดปุ่มให้เล็กลง */
    font-size: 1rem;
}

.buttons {
    gap: 2px; /* ลดช่องว่างปุ่ม */
    /* width: 100%; */
    max-width: 100%;
    font-size: 10px;
}
}

@media (max-width: 290px) {
  .calculator {
    width: 90%;
  }

  #result {
    font-size: 28px;
  }

  button {
    display: grid;
    width: 100%;
  }

  .btn {
    width: 100%;
    height: 60px;
    font-size: 1.5rem;
}


} 


/**/

footer {
  text-align: center;
  padding: 1rem;
  background-color: #333;
  color: white;
}

footer a {
  text-decoration: none;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 480px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #333;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
  }

  .nav-links li {
    text-align: center;
    padding: 1rem 0;
  }

  .nav-links.show {
    display: flex;
  }

  .product {
    width: 100%;
    max-width: 300px;
  }

  .logo a {
      font-size: 16px;
  }

}

@media (max-width: 380px) {
  .menu-toggle {
      display: block;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: #333;
      position: absolute;
      top: 100%;
      right: 0;
      width: 200px;
    }
  
    .nav-links li {
      text-align: center;
      padding: 1rem 0;
    }
  
    .nav-links.show {
      display: flex;
    }
  
    .product {
      width: 100%;
      max-width: 200px;
    }

    .logo a {
        font-size: 14px;
    }

    button {
      font-size: 16px;
    }
  
}

/* most smallest super fvckin mobile friendly */
@media (max-width: 240px) {
.menu-toggle {
    display: block;
  }

  .logo {
    max-width: 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #333;
    position: absolute;
    top: 100%;
    right: 0;
    width: 150px; 
    
  }

  .nav-links li {
    text-align: center;
    padding: 1rem 0;
  }

  .nav-links.show {
    display: flex;
  }

  .product {
    width: 100%;
    max-width: 200px;
  }

  .logo a {
      font-size: 14px;
  }

  button {
    font-size: 16px;
  }

  .navbar-container h1 {
    font-size: 16px;
  }

  .navbar-container .logo {
    max-width: 30px;
    margin: 0;

  } 

  .navbar-container .menu-toggle {
    position: absolute;
    right: -90.8px;
  }
}


/* ------------------------------------- */

.cal {
  background: #eaf8e6;
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}

.container {
  max-width: 800px;
  width: 95%;
  margin: 16px auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease-out forwards;
}
.container h1 {
  text-align: center;
  color: #333;
}
.container p {
  line-height: 1.6;
  color: #666;
}
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .container {
      padding: 15px;
  }
  h1 {
      font-size: 20px;
  }
}


/* Cookie 4 */

  /* Cookie Consent Container */
  .cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    /* backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1); */
    padding: 20px;
    transition: bottom 0.2s ease-in-out;
    z-index: 1000;
  }

  .cookie-content a {
    color: #00cc00;
    text-decoration: underline;
  }
  
  .cookie-consent.show {
    bottom: 0;
  }
  
  .cookie-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
  }
  
  .cookie-content p {
    margin: 0 0 15px;
    font-size: 14px;
    line-height: 1.5;
    /* color: #6e6e73; */
    color: #fff;
  }
  
  .cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  
  .cookie-button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }
  
  .cookie-button.accept {
    /* background: #007aff; */
    background: #00cc00;
    color: #000;
  }
  
  .cookie-button.reject {
    /* background: transparent; */
    background: #e63946;
    color: #000;
    /* border: 1px solid #007aff; */
  }
  
  .cookie-button.accept:hover {
    transform: scale(1.05);
    background: #009900;
  }

  .cookie-button.reject:hover {
    transform: scale(1.05);
    background: #c92c3a;
  }
  
  /* Responsive Design */
  @media (max-width: 600px) {
    .cookie-content {
      padding: 0 15px;
    }
  
    .cookie-buttons {
      flex-direction: column;
      gap: 10px;
    }
  
    .cookie-button {
      width: 100%;
    }
  }