body {
  transform: scale(1.35);
  transform-origin: top left;
  font-family: Carlito, sans-serif;
  background: #fdf3f7;
  padding: 10px;
  overflow-x: hidden;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #170c10;
  }

  .container {
    background: #1d1d1d !important;
  }

  h1 {
    color: #fdecf4 !important;
  }

  label {
    color: #fff;
  }

  input {
    color: #fff;
    background-color: #2a2a2a;
    border-color: #6b6b6b !important;
  }

  input:focus{
    border-color: #f97493 !important;
  }
  
  button {
    background-color: #d62862 !important;
  }

  button:hover {
    background-color: #b9124f !important;
  }

  .result {
    color: #ffbed6 !important;
    background-color: #5c092a !important;
    border-color: #973754 !important;
  }

  .subresult {
    color: #f78cbb !important;
  }

  .subresult:hover {
    color: #ee5a9a !important;
  }

  .subresult:focus {
    color: #ee5a9a !important;
  }

  .field-warning {
    color: #db7c7c !important;
  }

  .footer {
    color: #ffffff !important;
  }
  
  .footer .footer-link {
    color: #fca3c4 !important;
  }

  .footer .footer-link:hover {
    color: #ff4580 !important;
  }

  .info-icon {
    color: #ff81a5!important;
  }

  .tooltip-text {
    background-color: #000000 !important;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(130, 130, 130, 0.5) !important;
  }
  
  .info-container:hover .info-icon {
    color: #ff5d90 !important;
  } 
}

html {
  overflow-x: hidden;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  padding-top: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
  color: #6a0020;
  margin-top: 15px;
}

label {
  display: inline-block;
  margin: 0;
  font-weight: bold;
  font-size: 1rem;
}

input {
  display: block;
  margin: 2px 0;        
  width: 100%;
  font-size: 1rem;
  font-family: Carlito, sans-serif;
  padding: 3px 6px;
  border-radius: 1px;
  border: 1px solid #c3c3c3;
  box-sizing: border-box;
}

.inputs {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}

.label-row {
  display: flex;
  align-items: center;
  gap: 6px;          
  margin-bottom: 1px;
}

input:focus {
  outline: none;
  font-family: Carlito, sans-serif;
  box-shadow: 0 0 5px 2px rgba(29, 119, 255, 0.1);
  border-radius: 4px; 
  border: 1px solid #f90f41;
}

button {
  margin-top: 2px;
  padding: 10px;
  background: #ff1d92;
  color: white;
  font-family: Carlito, sans-serif;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background: #d10d4e;
}

button:focus {
  outline: 2px solid #d10d4e;
  outline-offset: 2px;
}

.result {
  margin-top: 20px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #a70059;

  background-color: #fbcadf;
  padding: 20px;
  border: 1px solid #f58ea4;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.subresult {
  margin: 10px 3px 0 5px;
  font-weight: bolder;
  text-decoration: underline;
  font-size: 0.8rem;
  color: #ff1d92;
}

.subresult:focus {
  color: #da1079;
}

.subresult:hover {
  color: #da1079;
}

.field-warning {
  color: #b85151;
  font-size: 0.85rem;
  display: none;
  margin-left: 1px;
  font-weight: bolder;
  white-space: nowrap;
}

.footer {
  font-size: 0.8rem;
  color: #777;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.footer-link {
  color: #ff57b1;
}

.footer .footer-link:hover {
  color: #ff0a60;
  transition: font-weight 0s ease;
}

.info-container {
  position: relative;
  display: inline-block;
  margin-right: 0px;
  margin-bottom: 0px;
  cursor: pointer;
  user-select: none;
}

.tooltip-text {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 9999;
  background-color: #e9e9e9;
  color: #313131;
  padding: 6px 10px;
  border-radius: 5px;
  font-family: Carlito;
  font-size: 0.75rem;
  font-weight: bolder;
  width: max-content;
  max-width: 280px;
  white-space: normal;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  display: none;
  transition: opacity 0.5s ease;
}

.info-icon {
  font-size: 15px;
  color: #ff7496;
  text-decoration: underline;
}

.info-container.visible .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.info-container:hover .info-icon{
  font-style: normal;
  font-weight: bolder;
  font-size: 15px;
  color: #ff1d92;
  display: inline-block;
}

.info-container:hover .tooltip-text,
.info-container .tooltip-text:hover {
  display: block;
}