body {
  font-family: Arial, sans-serif;

  margin: 0px;

  background: #f2f2f2 !important;

  width: 100vw;

  height: 100vh;

  overflow-x: hidden;

  padding: 0px;
}

input[type="search"] {
  width: 80%;

  padding: 8px;

  font-size: 14px;

  border: none;

  border-radius: 4px;
}

button {
  padding: 4px 6px;

  font-size: 14px;

  background: #007bff;

  color: white;

  border: none;

  border-radius: 4px;

  cursor: pointer;

  margin-left: 8px;
}

button:hover {
  opacity: 0.7;
}

#tabs,
#opbrowser {
  display: flex;

  flex-wrap: nowrap;

  overflow-x: auto;

  overflow-y: hidden;

  scrollbar-width: none;

  scrollbar-color: #999 #eee;

  -webkit-overflow-scrolling: touch;

  border-bottom: 1px solid #ccc;

  padding-bottom: 4px;
}

#tabs::-webkit-scrollbar {
  height: 4px;

  width: 4px;
}

#tabs::-webkit-scrollbar-thumb {
  background: #bbb;

  border-radius: 3px;
}

.tab-wrapper {
  display: flex;

  flex-direction: column;

  align-items: center;
}

.tab-button {
  flex: 0 0 auto;

  white-space: nowrap;

  margin-right: 8px;

  padding: 4px 6px;

  background: #ddd;

  border-radius: 6px;

  border: 1px solid #ccc;

  cursor: pointer;

  position: relative;

  font-size: 12px;
}

.tab-button.active {
  background: #fff;

  border-bottom: none;
}

.tab-button span {
  color: red;

  margin-left: 8px;

  font-weight: bold;

  cursor: pointer;
}

#viewer {
  position: relative;

  width: 100%;

  height: calc(100vh - 42px);

  overflow: hidden;
}

.tab-content {
  display: none;

  width: 100%;

  height: 100%;

  border: none;
}

#touchOverlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
}
.tab-content.active {
  display: block;
}

.openbrowser-btn {
  display: none;

  background: transparent;

  color: #222;

  border: none;

  font-size: 14px;

  cursor: pointer;
}

.openbrowser-btn.active {
  display: block;
}

* {
  box-sizing: border-box;

  outline: none !important;
}

header {
  background: #eee;

  color: #222;
}

.box-navigation {
  width: 100%;

  display: flex;

  flex-wrap: wrap;

  flex-direction: row;

  align-items: center;

  justify-content: space-between;

  height: 42px;

  padding: 10px;

  padding-top: 5px;

  z-index: 1000;
}

#nav-item-one {
  flex: 0 0 85%;

  background-color: #eee;

  z-index: 100;

  overflow-x: auto;

  flex-wrap: nowrap;

  padding-right: 20px;

  max-width: 85%;
}

#nav-item-two {
  flex: 0 0 auto;

  text-align: right;

  z-index: 100;
}

#nav-item-two button {
  background: #444;

  color: white;

  padding: 6px 10px;

  margin-left: 5px;

  border: none;

  border-radius: 3px;

  cursor: pointer;
}

#nav-item-three {
  flex: 0 0 auto;

  margin-left: 10px;

  cursor: pointer;

  z-index: 100;
}

#search-box {
  top: 0px;

  right: 0px;

  position: fixed;

  display: none;

  height: 0%;

  display: flex;

  flex-direction: row;

  justify-content: center;

  background-color: #22222236;

  padding-top: 10px;

  z-index: 1000;

  transition: all 0.3s ease;
}

#search-box.show {
  display: flex;

  height: 100%;
}

#formcon {
  top: 0px;

  right: 0px;

  position: fixed;

  width: 100%;

  display: block;

  flex-direction: row;

  justify-content: center;

  background-color: #222;

  padding: 10px;

  z-index: 1000;

  transition: all 0.3s ease;

  pointer-events: auto;
}

#formcon input {
  width: calc(100% - 145px);

  padding: 6px;

  margin-right: 5px;

  margin-left: 15px;
}

#formcon button {
  padding: 6px 10px;

  margin-left: 5px;
}

#url-buttons {
  padding: 20px 10px 15px 10px;

  width: 100vw;

  padding-top: 50px;

  display: flex;

  flex-wrap: wrap;

  background-color: #000000;

  justify-content: left;

  gap: 5px;

  box-sizing: border-box;
}

#url-buttons button {
  margin: 2px;

  font-size: 14px;

  padding: 4px 10px;

  color: #f2f2f2;

  border: none;

  border-radius: 5px;

  white-space: nowrap;

  cursor: pointer;

  border: 2px solid #ffffff86;
}

#url-buttons button:hover {
  opacity: 0.7;
}

#srchistory {
  padding: 20px 10px 15px 10px;

  width: 100vw;

  background-color: #222;

  justify-content: left;

  gap: 5px;

  box-sizing: border-box;

  border-bottom: 2px solid #222;

  box-shadow: 0px 10px 20px 10px #4d4d4d4c;

  overflow-y: auto;

  height: calc(100vh - 145px);

  scrollbar-width: thin;
}

#clearHistory {
  background-color: #f64f4f;
}

#history-controls {
  display: flex;

  justify-content: flex-end;

  gap: 10px;

  align-items: center;

  width: 100%;

  padding-bottom: 10px;

  padding-right: 10px;

  background-color: #000000;
}

#history-controls select {
  padding: 4px !important;

  border-radius: 5px !important;
}

.history-button {
  margin: 5px;

  padding: 6px 12px;

  font-size: 13px;

  cursor: pointer;

  white-space: nowrap;

  width: 95%;

  text-align: left;

  background: #000000;

  border: 1px solid #ffffff86;
}

.delete-button {
  font-size: 16px;

  line-height: 1;

  color: red;

  background: #e5e6e7;

  border: none;

  cursor: pointer;

  border: 2px solid #ff000070;
}

.history-button:hover,
.delete-button:hover {
  opacity: 0.5;
}

.centered-message {
  position: fixed;

  top: 15%;

  left: 50%;

  transform: translate(-50%, -50%);

  background-color: rgba(0, 0, 0, 0.8);

  color: white;

  padding: 15px 25px;

  border: 1px solid white;

  border-radius: 5px;

  z-index: 1000;
}

#welcome-div {
  font-family: Verdana, Geneva, Tahoma, sans-serif;

  padding-top: 28vh;

  text-align: center;

  height: 95vh;

  background-image: url("../iconSvg.svg");

  background-repeat: no-repeat;

  background-attachment: fixed;

  background-size: 50% 25%;

  background-position: 0%;
}

#icngbx {
  margin-top: 2px;

  width: 30px;

  height: 30px;
}

@media (max-width: 600px) {
  #icngbx {
    width: 20px;

    height: 20px;
  }

  #welcome-div {
    padding-top: 40vh;

    background-size: 50% 15%;

    background-position-y: 30%;

    background-position-x: 50%;
  }

  #welcome-div h1 {
    font-size: 1.5rem;
  }

  #nav-item-one {
    flex: 0 0 61%;
  }

  .tab-button {
    font-size: 10px;
  }

  input[type="search"],
  button {
    font-size: 11px;
  }

  .history-button {
    width: 87%;
  }

  #url-buttons button {
    font-size: 11px;
  }

  #srchistory {
    height: calc(100vh - 210px);
  }

  #srchistory button,
  #history-controls select {
    font-size: 11px !important;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  #nav-item-one {
    flex: 0 0 75%;
  }

  #welcome-div {
    padding-top: 40vh;

    background-size: 50% 15%;

    background-position-y: 30%;

    background-position-x: 50%;
  }

  .history-button {
    width: 87%;
  }

  #url-buttons button {
    font-size: 11px;
  }

  #srchistory button,
  #history-controls select {
    font-size: 11px !important;
  }

  #srchistory {
    height: calc(100vh - 170px);
  }
}

.test-controls {
  position: fixed;
  bottom: 10px;
  width: 100%;
  /* left: 50%;
  transform: translateX(-50%); */
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.test-controls button {
  margin: 0 5px;
  padding: 10px 15px;
}
.center-notice {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
}
.center-notice .box {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 80%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
}
.center-notice .close {
  position: absolute;
  top: 8px;
  right: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
}
