/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base */
body {
  font-family: "Varela Round", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #3d3c3d;
  background: #fff;
}

a {
  color: #7aadb8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.clear {
  clear: both;
}

/* Layout */
.wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2%;
}

.top-container {
  width: 100%;
}

.top-row {
  padding: 20px 0 15px;
  text-align: center;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin: 20px 0;
}

.logo-img {
  width: 100px;
  height: 100px;
  min-width: 100px;
  margin-right: 15px;
}

.logo-text {
  line-height: 1;
  white-space: nowrap;
}

.logo-title {
  font-size: 4.4em;
  font-weight: bold;
  color: #7aadb8;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0;
}

.logo-subtitle {
  font-size: 0.85em;
  font-weight: normal;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 0.48em;
  margin: 0;
  margin-left: 0.48em;
}

/* Description */
.desc-section {
  padding: 10px 0;
}

.desc-text {
  font-size: 16px;
  line-height: 1.5;
  color: #3d3c3d;
  text-align: justify;
}

/* Form */
.form-section {
  text-align: center;
  padding: 15px 0 20px;
}

.ip-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
}

.ip-input {
  border: 1px solid #ddd;
  border-radius: 50px 0 0 50px;
  padding: 12px 20px;
  font-size: 16px;
  font-family: inherit;
  flex: 1;
  min-width: 0;
  line-height: normal;
  outline: none;
}

.ip-input:focus {
  border-color: #7aadb8;
}

.btn {
  border: none;
  cursor: pointer;
  display: inline-block;
  font-size: 17px;
  font-family: inherit;
  text-transform: uppercase;
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 50px 50px 0;
  transition: all 0.3s ease;
  position: relative;
}

.btn-green {
  background-color: #3cb879;
}

.btn-green:hover {
  background-color: #35a56d;
}

.semicircle {
  display: block;
  position: absolute;
  top: 6px;
  left: 6px;
  width: 12px;
  height: 12px;
  overflow: hidden;
}

.semicircle::after {
  content: '';
  display: block;
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid #fff;
  border-radius: 100%;
}

/* Ads */
.ad-container {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  overflow: hidden;
}

.ad-top {
  height: 90px;
  margin: 0 auto;
}

/* Not Found */
.not-found {
  text-align: center;
  padding: 30px 0;
}

.not-found-text {
  font-size: 1.5em;
  color: #666;
}

/* Result */
.result {
  padding: 20px 0;
}

.result-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.result-table {
  float: left;
  width: calc(50% - 15px);
  margin-right: 15px;
  border-collapse: collapse;
  border-bottom: 1px solid #ddd;
}

.result-table th,
.result-table td {
  padding: 8px;
  line-height: 1.4;
  vertical-align: top;
  border-top: 1px solid #ddd;
  text-align: left;
}

.result-table th {
  color: #666;
  font-weight: normal;
  width: 30%;
}

.map {
  float: left;
  width: calc(50% - 15px);
  height: 260px;
  margin-left: 15px;
  border: 1px solid rgb(207, 218, 207);
  overflow: hidden;
}

/* Footer Section */
.footer-section {
  text-align: center;
  padding: 20px 0;
}

.ipcalc-link {
  font-size: 1.1em;
  margin: 30px 0;
}

.ipcalc-link a {
  font-weight: bold;
  font-size: 1.05em;
}

/* About */
.about {
  padding: 20px 0;
  border-top: 2px solid #ddd;
}

.about h2 {
  font-size: 22px;
  margin: 22px 0 10px 0;
  color: #333;
}

.about h2:first-child {
  margin-top: 0;
}

.about p {
  font-size: 16px;
  line-height: 1.5;
  margin: 16px 0;
  color: #3d3c3d;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 20px;
  color: #999;
  font-size: 0.9em;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 1000px) {
  .result-table {
    float: none;
    width: 100%;
    margin: 0 0 15px 0;
  }

  .map {
    float: none;
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .logo {
    margin: 15px 0;
  }

  .logo-img {
    width: 75px;
    height: 75px;
    min-width: 75px;
    margin-right: 12px;
  }

  .logo-title {
    font-size: 2.95em;
  }

  .logo-subtitle {
    letter-spacing: 0.12em;
    margin-left: 0.25em;
  }

  .desc-section {
    display: none;
  }

  .ip-form {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .logo {
    margin: 10px 0;
  }

  .logo-img {
    width: 60px;
    height: 60px;
    min-width: 60px;
    margin-right: 10px;
  }

  .logo-title {
    font-size: 2.36em;
  }

  .logo-subtitle {
    letter-spacing: 0;
    font-size: 0.82em;
    margin-left: 0.12em;
  }
}

@media (max-width: 360px) {
  .logo-img {
    width: 50px;
    height: 50px;
    min-width: 50px;
    margin-right: 8px;
  }

  .logo-title {
    font-size: 1.8em;
  }

  .logo-subtitle {
    font-size: 0.7em;
  }
}

/* Font face */
@font-face {
  font-family: 'Varela Round';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/varelaround/v20/w8gdH283Tvk__Lua32TysjIfp8uPLdshZg.woff2) format('woff2');
}
