@import url('../libs/open-props-1.6.16.min.css');

:root {
  --font-mono-2: ui-monospace, 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas',
    'Liberation Mono', 'Courier New', monospace;
}

body {
  background-color: var(--gray-1);
  min-height: 100vh;
  font-family: var(--font-sans);
}

layout-centered {
  display: block;
  margin: auto;
  max-width: 50rem;
}

header {
  text-align: center;
}

main {
  border-radius: var(--radius-3);
  background-color: white;
}

.container {
  position: relative;
  aspect-ratio: 3 / 2;
}

line-1,
line-2,
line-3 {
  display: block;
  position: absolute;
  background-color: var(--blue-8);
  height: 2px;
}

line-1,
line-3 {
  transform: rotate(0.84turn);
  width: 40%;
}

line-1 {
  top: 62.8%;
  left: 6.94%;
}

line-2 {
  top: 50%;
  left: 33%;
  transform: rotate(0.16turn);
  width: 20%;
}

line-3 {
  top: 37.4%;
  left: 39.02%;
}

input-group {
  display: flex;
  position: absolute;
  gap: 0.5rem;
}

input-group input[type='number'] {
  display: block;
  margin-top: -0.025rem;
  outline: none;
  border: none;
  border-bottom: black 1.5px solid;
  background-color: transparent;
  padding-left: 1ch;
  width: 9ch;
  font-size: 0.9rem;
  font-family: var(--font-mono-2);
  text-align: center;
}

input-group input[type='number']:focus {
  border-bottom: var(--blue-8) 1.5px solid;
}

#group-a {
  top: 90%;
  left: 14.8%;
}

#group-b {
  top: 32%;
  left: 37.2%;
}

#group-c {
  top: 65%;
  left: 47.8%;
}

output-group {
  display: flex;
  position: absolute;
  gap: 0.5rem;
}

output-group output-value {
  border-bottom: var(--gray-5) 1.5px solid;
  width: 9ch;
  color: var(--gray-6);
  font-size: 0.9rem;
  font-family: var(--font-mono-2);
  text-align: center;
}

#group-d {
  top: 7%;
  left: 70%;
}

#group-x {
  top: 51%;
  left: 55%;
}

#group-p {
  top: 38%;
  left: 61%;
}

footer {
  padding: 0.5rem 0;
  color: var(--gray-6);
  font-size: 0.8rem;
  font-family: var(--font-mono-2);
  text-align: center;
}

footer a {
  color: inherit;
}
