* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --surface: #fffefa;
  --ink: #303c35;
  --muted: #656d64;
  --line: #d8dcd2;
  --accent: #3d5545;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: #263c2d;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}

.homepage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.search-area {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(100px, 35vh, 360px) 24px 80px;
}

.searchForm {
  display: flex;
  width: 100%;
  max-width: 600px;
  min-width: 0;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(40 53 41 / 5%);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.searchForm:focus-within {
  border-color: #758874;
  box-shadow: 0 0 0 3px rgb(61 85 69 / 9%), 0 8px 24px rgb(40 53 41 / 5%);
}

.inputSearch {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 19px;
}

.inputSearch::placeholder {
  color: #747a71;
  opacity: 1;
}

.searchButton {
  flex: 0 0 60px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: url("../images/magnifier.svg") center / 21px no-repeat var(--accent);
  cursor: pointer;
  transition: background-color 160ms ease;
}

.searchButton:hover {
  background-color: #2c4233;
}

.searchButton:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.searchButton:active {
  background-color: #213428;
}

footer {
  margin: 0 32px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer a {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}

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

.legal-content {
  width: min(100% - 48px, 760px);
  margin: 64px auto 80px;
  padding: 0 0 24px;
  overflow-wrap: anywhere;
}

.legal-content h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1px;
}

.legal-content .modified {
  margin: 16px 0 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.legal-content h2 {
  margin: 36px 0 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.legal-content p {
  margin: 0 0 18px;
  color: #4b554d;
  font-size: 15px;
  line-height: 1.8;
}

.legal-content strong {
  font-weight: 600;
}

.contact-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
}

.contact-content {
  width: min(100%, 480px);
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.contact-content p {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 5vw, 32px);
  line-height: 1.3;
}

.contact-content a {
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

[site-filter='1'] .switchButtons { opacity: 0; pointer-events: none; }
.placeholder { margin: 5% auto 0; height: 135px; width: 38%; position: relative; }
.placeholder:hover .hoveredPopup { opacity: 1; }
.placeholder .selected { width: 50%; margin: 0 auto; opacity: 1; transition: .1s ease-in-out; }
.placeholder .selected > div { height: 100px; }
.placeholder:hover .selected { opacity: 0; }
.selected > div { background-size: 100%; }
.switchButtons { text-align: center; margin-bottom: 5%; }
.searchIcon { display: inline-block; width: 35px; height: 35px; border-radius: 50%; transition: .1s ease-in-out; }
.searchIcon:not(.active) { cursor: pointer; }
.searchIcon.active, .searchIcon:hover { background-color: #e5e5e5; }
.overlay { position: fixed; width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,.5); z-index: 2; }
.uninstallPopUp { background-color: #fff; display: block; top: 50%; left: 50%; position: absolute; width: 45%; height: 255px; border-radius: 5px; overflow: hidden; margin-top: -117.5px; margin-left: -22.5%; }
.closeIconUninstallPopUp { background: url("../images/closeIcon.png") right/contain no-repeat; width: 30px; height: 35px; float: right; cursor: pointer; }
.headerUninstallPopUp { height: 35px; background-color: #06ae8e; }
.contentUninstallPopUp { text-align: center; }
.contentUninstallPopUp h2, .reEnableDescription { margin-top: 15px; }
.contentUninstallPopUp h2 { margin-bottom: 10px; }
.uninstallDescription { margin-bottom: 20px; }
.noButton, .yesButton { width: 65px; height: 35px; border-radius: 5px; border: 1px solid #c2c2c2; color: #000; background-image: linear-gradient(180deg,#fefefe,#eee); }
.yesButton { margin-right: 50px; }
.hidden { display: none; }

@media (max-width: 480px) {
  .search-area {
    padding-right: 20px;
    padding-left: 20px;
  }

  .searchForm {
    padding: 6px;
    border-radius: 15px;
  }

  .inputSearch {
    height: 48px;
    padding: 0 12px;
    font-size: 17px;
  }

  .searchButton {
    flex-basis: 52px;
    height: 48px;
    border-radius: 10px;
  }

  footer {
    margin: 0 20px;
  }

  .legal-content {
    margin-top: 36px;
    margin-bottom: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .searchForm,
  .searchButton {
    transition: none;
  }
}
