@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@600;400&display=swap');

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color: #f3f2f7;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

textarea {
  resize: vertical;
}

:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}

html {
  min-height: 100%;
}

body {
  background-color: #121118;
  background-image:
    repeating-linear-gradient(
      -45deg,
      #1c162a 0px,
      #1c162a 14px,
      #121118 14px,
      #121118 28px
    );
  min-height: 100%;
  font-family: "Kanit", sans-serif;
  font-weight: 400;
}

h1 {
  font-weight: 600;
  font-size: clamp(42px, 5vw, 80px);
  color: #b490fe;
  text-align:center;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  max-width: 1280px;
  width: calc(100% - 40px);
  margin: clamp(25px,5vh,80px) auto clamp(20px,3vh,50px);
}

h1 span {
  color: #f3f2f7;
}

h1 a {
  opacity: 0.8;
  color: white;
  transition:
    opacity 0.3s ease;
  font-size: 90px;
}

h1 a:hover {
  opacity: 1;
}

.content {
  background-color:#0e0d12;
  padding:clamp(20px,4vh,50px) 0;
  margin-bottom:clamp(20px,5vh,80px);
}

.container {
  max-width:1280px;
  width:calc(100% - 40px);
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
}


.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
  color: #dee2e6;
  user-select: none;
}

.radio input {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #6c757d;
  border-radius: 50%;
  background: #212529;
  position: relative;
  transition: all .2s ease;
  flex-shrink: 0;
}

.radio-custom::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #b490fe;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .2s ease;
}

.radio:hover .radio-custom {
  border-color: #b490fe;
}

.radio input:checked + .radio-custom {
  border-color: #b490fe;
}

.radio input:checked + .radio-custom::after {
  transform: translate(-50%, -50%) scale(1);
}

.radio input:focus-visible + .radio-custom {
  box-shadow: 0 0 0 4px rgba(13,110,253,.25);
}

.radio input:disabled + .radio-custom {
  opacity: .5;
  cursor: not-allowed;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 15px;
  font-weight: 500;
  color: #dee2e6;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: #f8f9fa;
  background: #212529;
  border: 1px solid #495057;
  border-radius: 8px;
  outline: none;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
  box-sizing: border-box;
}

.form-control::placeholder {
  color: #6c757d;
}

.form-control:hover {
  border-color: #6c757d;
}

.form-control:focus {
  border-color: #b490fe;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, .25);
}

.form-control:disabled {
  background: #2b3035;
  color: #6c757d;
  cursor: not-allowed;
}

.form-control:read-only {
  background: #2b3035;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 16px;
  color: #dee2e6;
  user-select: none;
}

.checkbox input {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #6c757d;
  border-radius: 6px;
  background: #212529;
  position: relative;
  transition: all .2s ease;
  flex-shrink: 0;
}

.checkbox:hover .checkbox-custom {
  border-color: #b490fe;
}

.checkbox input:checked + .checkbox-custom {
  background: #b490fe;
  border-color: #b490fe;
}

.checkbox-custom::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .2s ease;
}

.checkbox input:checked + .checkbox-custom::after {
  transform: rotate(45deg) scale(1);
}

.checkbox input:focus-visible + .checkbox-custom {
  box-shadow: 0 0 0 4px rgba(13,110,253,.25);
}

.checkbox input:disabled + .checkbox-custom {
  opacity: .5;
  cursor: not-allowed;
}

.checkbox input:disabled ~ * {
  cursor: not-allowed;
  opacity: .7;
}

.btn {
  display:flex;
  padding: 12px 24px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;

  border: 1px solid transparent;
  border-radius: 8px;

  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease,
    box-shadow .2s ease,
    transform .1s ease;
}

.btn-primary {
  color: #fff;
  background-color: #a06cff;
  border-color: #a06cff;
}

.btn-primary:hover {
  background-color: #9358ff;
  border-color: #9358ff;
}

.btn-primary:active {
  background-color: #8544ff;
  border-color: #8544ff;
  transform: scale(0.98);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(160, 108, 255, .35);
}

.btn-secondary {
  color: #dee2e6;
  background-color: #212529;
  border-color: #495057;
}

.btn-secondary:hover {
  color: #f8f9fa;
  background-color: #2b3035;
  border-color: #b490fe;
}

.btn-secondary:active {
  color: #fff;
  background-color: #343a40;
  border-color: #a06cff;
  transform: scale(0.98);
}

.btn-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(180, 144, 254, .35);
}

.btn-secondary:disabled,
.btn-secondary.disabled {
  color: #6c757d;
  background-color: #212529;
  border-color: #343a40;
  cursor: not-allowed;
  opacity: .65;
}

#main a {
  color: #c2b7b2;
  font-size: clamp(20px,2vw,24px);
  background-color: #15161c;
  border: 1px solid #232227;
  display:flex;
  flex:1 1 480px;
  max-width:625px;
  margin: 5px;
  padding: 20px 50px;
  cursor: pointer;
  height:clamp(180px,26vh,300px);

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

#main a:hover {
  border-color: #8471aa;
  background-color: #201c2a;
  color: #ddebf7;
}

#main a.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #232227 !important;
  background-color: #15161c !important;
  color: #c2b7b2 !important;
}

#main a img {
  height: clamp(100px,15vh,200px);
  margin: 10px auto;
}

#search_warrant section {
  border: 1px solid #232227;
  background-color: #15161c;
  padding: 20px 50px;
  margin-bottom: 10px;

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

#search_warrant section:hover {
  border-color: #8471aa;
  background-color: #201c2a;
}

#search_warrant section .name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

#search_warrant .button-section {
  text-align: center;
  margin-top: 50px;
}

#search_warrant .button-section .btn {
  font-size: 22px;
}

#search_warrant .back-button-section {
  text-align: center;
  margin-bottom: 40px;
}

#search_warrant .back-button-section .btn {
  font-size: 18px;
}

#search_warrant .canvas-container {
  margin: 20px auto;
  width: 793px;
}

#search_warrant #result {
  display: none;
}
@media (max-height:820px){
  h1{font-size:52px;margin:20px auto;}
  .content{padding:20px 0;}
  #main a{height:220px;font-size:22px;}
  #main a img{height:130px;}
}
@media (max-width:1100px){
  #main a{flex-basis:100%;max-width:700px;}
}
