:root {
  --img-width: 150px;
}
header {
  width: 100%;
  background-color: #5c5c5c;
  color: rgb(255, 251, 251);
  padding: 20px;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  z-index: 9999;
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}
header h1 {
  font-size: calc(var(--img-width) / 4);
  position: center;
  margin-left: -100px;
}
.cont-input-header {
  position: absolute;
  right: 20px;
  top: 14%;
  transform: translateY(-50%);
  box-sizing: border-box;
  width: fit-content;
}
.mainbox {
  box-sizing: border-box;
  position: relative;
  width: 230px;
  height: 50px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  border-radius: 160px;
  background-color: #a6a6a6;
  transition: all 0.3s ease;
}
.checkbox:focus {
  border: none;
  outline: none;
}
.checkbox:checked {
  right: 10px;
}
.checkbox:checked ~ .mainbox {
  width: 50px;
}
.checkbox:checked ~ .mainbox .input {
  width: 0;
  height: 0px;
}
.checkbox:checked ~ .mainbox .iconcont-input-header {
  padding-right: 8px;
}
.checkbox {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  position: absolute;
  right: 17px;
  top: 10px;
  z-index: 99999;
  cursor: pointer;
  appearance: none;
}
.input {
  box-sizing: border-box;
  height: 100%;
  width: 170px;
  background-color: transparent;
  border: none;
  outline: none;
  padding-bottom: 4px;
  padding-left: 10px;
  font-size: 1em;
  color: white;
  transition: all 0.3s ease;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.input::placeholder {
  color: rgba(255, 255, 255, 0.776);
}
.iconcont-input-header {
  box-sizing: border-box;
  padding-top: 5px;
  width: fit-content;
  transition: all 0.3s ease;
}
.search_icon {
  box-sizing: border-box;
  fill: white;
  font-size: 1.3em;
}
#img-logo {
  width: var(--img-width);
  height: left;
  position: absolute;
  margin-left: 50px;
}
.side-bar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background-color: #9b9b9b;
  color: white;
  transition: left 0.5s ease;
  padding: 20px;
  box-sizing: border-box;
  z-index: 1000;
  overflow-y: auto;
  direction: rtl;
}

.side-bar::-webkit-scrollbar {
  width: 12px;
}

.side-bar::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 6px;
}

.side-bar::-webkit-scrollbar-track {
  background-color: #ccc;
}
.side-bar * {
  direction: ltr;
}
.side-bar.active {
  left: 0;
}
.side-bar ul {
  list-style-type: none;
  padding: 0;
}
.side-bar ul li {
  margin: 15px 0;
}
.side-bar ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}
.button-container-barra {
  display: block;
  margin-top: 20px;
}
.button-container-barra button {
  display: block;
  width: 100%;
  padding: 10px;
  color: white;
  border: none;
  border-radius: 5px;
  margin: 10px 0;
  cursor: pointer;
}
.close-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
  }
  #img-logo {
    margin: 0 auto;
    margin-left: fixed;
    display: block;
    margin-bottom: 10px;
  }

  .burger {
    position: absolute;
    top: 15px;
    left: -200px;
    z-index: 1001;
  }
}
header h1 {
  margin-left: fixed;
  margin-right: -120px;
  font-size: calc(var(--img-width) / 4);
  text-align: center;
  margin-top: 50px;
  margin-bottom: 5px;
}
.cont-input-header {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
  margin-top: 10px;
}
.mainbox {
  width: 200px;
}
.input {
  width: 150px;
}

@media (max-width: 480px) {
  :root {
    --img-width: 100px;
  }
  #img-logo {
    margin: 0 auto;
    margin-left: fixed;
    display: block;
    margin-bottom: 10px;
  }

  .burger {
    position: absolute;
    top: 15px;
    left: -150px;
    z-index: 1001;
  }
  header {
    padding: 10px;
  }
  header h1 {
    font-size: calc(var(--img-width) / 3);
    margin-left: fixed;
    margin-right: -130px;
  }
  .cont-input-header {
    width: 100%;
    text-align: center;
  }
  .mainbox {
    width: 180px;
    height: 45px;
  }
  .input {
    width: 140px;
    font-size: 14px;
    padding: 8px;
  }
}
