@import url("https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
body {
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  margin: 0;
  background: #222;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

body.dark-mode {
  background: #222;
  color: #fff;
}
body.ocean-mode {
  background: linear-gradient(135deg, #0f2027 0%, #2c5364 100%);
  color: #ccefff;
}
body.sunset-mode {
  background: linear-gradient(135deg, #ff9966 0%, #ff5e62 100%);
  color: #fff5e6;
}
body.pastel-mode {
  background: linear-gradient(135deg, #f8ffae 0%, #43c6ac 100%);
  color: #222;
}
body.mint-mode {
  background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%);
  color: #222;
}
body.sky-mode {
  background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
  color: #222;
}
body.sand-mode {
  background: linear-gradient(135deg, #fceabb 0%, #f8b500 100%);
  color: #222;
}
.search-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: rgba(34,34,34,0.98);
  color: #fff;
  z-index: 1200;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.proxy-search-form {
  flex: 1;
  display: flex;
  align-items: center;
}
#proxy-search-bar {
  width: 350px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #444;
  background: #222;
  color: #fff;
  font-size: 1em;
  outline: none;
  margin-right: 10px;
}
.search-controls {
  display: flex;
  gap: 10px;
}
.search-controls button {
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.2s;
}
.search-controls button:hover {
  background: #ffcc00;
  color: #222;
}

.settings-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
  margin-right: 0;
  transition: color 0.2s;
}
.settings-btn:hover {
  color: #ffcc00;
}

.spinner {
  margin-left: 10px;
  color: #fff;
  font-size: 1.2em;
  vertical-align: middle;
}

.input-wrapper {
  display: flex;
  align-items: center;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}
.modal-content {
  background-color: #222;
  margin: 10% auto;
  padding: 30px 40px;
  border-radius: 10px;
  width: 320px;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  position: relative;
}
.modal-content h2 {
  margin-top: 0;
  font-size: 1.5em;
}
.settings-list label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 1em;
}
.settings-list input[type="checkbox"] {
  accent-color: #ffcc00;
  width: 18px;
  height: 18px;
}
.close {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 1.5em;
  cursor: pointer;
  color: #fff;
}
.close:hover {
  color: #ff6666;
}

footer {
  color: white;
  align-items: center;
}

.fa-magnifying-glass {
  color: white;
}

.flex-center {
  display: flex;
  justify-content: center;
}

.header-center {
  align-items: center;
  flex-direction: column;
  margin-top: 10%;
}

.left-margin {
  margin: 0px 16px;
}

#uv-frame {
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #111;
}

#uv-error {
  color: #ff6666 !important;
  white-space: pre-wrap;
}

#uv-error-code {
  font-size: 12px;
  color: #fff;
  font-family: "Courier New", Courier, monospace;
}

#uv-register-sw {
  color: white;
  background: #555555;
  cursor: pointer;
  outline: none;
  border: none;
  border-radius: 6px;
  padding: 16px 20px;
  line-height: 16px;
  display: none;
}

#uv-register-sw:active {
  background: #333333;
}

#uv-register-sw.show {
  display: block;
}

.logo {
  width: 150px;
  height: 150px;
}

.logo-wrapper .text {
  font-size: 75px;
  color: #fff;
}

.logo-wrapper h1 {
  color: white;
}

footer {
  margin: 0 5vw;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  line-height: 30px;
  margin-bottom: 20px;
}

footer > div {
  display: flex;
  justify-content: left;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

footer a,
footer span {
  margin: 0 15px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
}

footer a {
  cursor: pointer;
}

footer a:hover {
  text-decoration: underline;
}

.desc p {
  width: 560px;
  color: rgba(253, 253, 253, 0.514);
}

#uv-address {
  background: none;
  font-family: inherit;
  padding: 0px 17px;
  height: 48px;
  border: 1px solid rgb(255, 255, 255, 0.2);
  color: var(--text-color);
  border-radius: 3px;
  outline: none;
  width: 350px;
  margin-top: 5px;
  border-radius: 50px;
  color: #fff;
  transition: border-radius 0.1s;
}

#uv-address:focus {
  border: 1px solid rgba(253, 253, 253, 0.514);
  border-radius: 6px;
}

.credit {
  border-radius: 10px;
  padding: 10px;
  display: block;
  border: #fff 1px solid;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.credit label {
  margin-left: auto;
  margin-right: 15px;
}

.credit a,
.credit label {
  color: white;
  text-decoration: underline;
  text-align: right;
}

.credit pre {
  display: none;
  width: 100%;
}

.credit label::after {
  content: "show license";
  cursor: pointer;
}

.credit input:checked + label::after {
  content: "hide license";
}

.credit input:checked ~ pre {
  display: block;
}
