/* ============================= */
/* SIDE TOOLS CONTAINER */
/* ============================= */
#side-tools {
  position: fixed !important;
  top: 50% !important;
  left: 0 !important;

  width: 85px;

  transform: translate(-75px, -50%) !important;
  transition: transform .5s cubic-bezier(.68,-0.55,.27,1.55);

  z-index: 999999 !important;
  background: linear-gradient(284deg, rgb(97, 182, 0) 53.7%, rgb(66, 146, 0) 88.9%);
  padding: 16px 10px 18px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  text-align: center;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #fff;

  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(2px);
  overflow: visible !important;
}

/* เมื่อเปิด */
#side-tools.expanded {
  transform: translate(12px, -50%) !important;
}


/* ============================= */
/* HANDLE BUTTON */
/* ============================= */
#side-toggle {
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 90px;
  background: #58a500;
  border-radius: 0 10px 10px 0;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-weight: bold;
  color: #fff;

  box-shadow: 2px 0 6px rgba(0,0,0,.3);
  transition: background .3s;
}

#side-toggle:hover {
  background: #4ab900;
}

/* ============================= */
/* GOOGLE TRANSLATE */
/* ============================= */
#translate-box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#googleTranslateButton {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  transition: .3s;
}

#googleTranslateButton:hover {
  background: rgba(255,255,255,.35);
  transform: scale(1.05);
}

#googleTranslateButton img {
  width: 26px;
  height: 26px;
}

/* กล่องภาษา */
#google_translate_element {
  display: none;
  position: absolute;
  left: 110%;
  top: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  padding: 6px 8px;
  min-width: 140px;
  z-index: 999999;
}

/* แสดงเมื่อ active */
#translate-box.active #google_translate_element {
  display: block !important;
}

.goog-te-combo {
  width: 100%;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 13px;
  cursor: pointer;
}

/* ============================= */
/* FONT SIZE BUTTONS */
/* ============================= */
.font-size-control {
  margin-top: 8px;
}

.font-size-control button {
  display: block;
  width: 50px;
  height: 38px;
  margin: 7px auto;

  background: #009732;
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 12px;

  cursor: pointer;
  font-weight: 600;
  font-size: 15px;

  transition: .25s;
}

.font-size-control button:hover {
  background: #7ba800;
  transform: translateY(-2px);
}

.font-size-control button:active {
  transform: scale(.95);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width:768px) {

  #side-tools {
    width: 75px;
    transform: translate(-65px, -50%);
  }

  #side-tools.expanded {
    transform: translate(6px, -50%);
  }

  .font-size-control button {
    width: 45px;
    height: 34px;
    font-size: 13px;
  }

  .goog-te-combo {
    font-size: 11px;
  }
}
