@import url(https://fonts.bunny.net/css?family=saira:400,700);

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
 margin: 0;
 padding: 0;
 border: 0;
 font-size: 100%;
 font: inherit;
 vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
 display: block;
}
body {
 line-height: 1;
}
ol, ul {
 list-style: none;
}
blockquote, q {
 quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
 content: '';
 content: none;
}
table {
 border-collapse: collapse;
 border-spacing: 0;
}

html,
body {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  height: 100vh;
  font-family: 'Saira', sans-serif;
  background-color: #082f49;
  color: #f1f5f9;
}

main {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: calc(100vw - 2rem);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border-bottom: 1px solid #000;
}

svg {
  display: block;
  stroke: #fff;
  pointer-events: none;

  &.lucide-arrow-up-down {
    width: 3rem;
    height: 3rem;
    margin: 3rem auto;
  }

  &.lucide-arrow-left-right {
    width: 1rem;
    height: 1rem;
    margin: 0 0.5rem;
  }
}

[x-data="converter"] {
  & label {
    text-align: center;

    & span {
      display: block;
      padding: 8px 0;
      font-size: 1.2rem;
      font-weight: 700;
      color: #082f49;
      background-color: #AACEE6;
      border-radius: 4px 4px 0 0;
    }

    & input {
      width: 16rem;
      height: 3rem;
      padding: 4px 12px;
      text-align: center;
      font-family: inherit;
      font-size: 1.4rem;
      font-weight: 700;
      background-color: #e2e8f0;
      border: 0 none;
      border-radius: 0 0 4px 4px;
    }
  }

  .result {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    font-size: 1.2rem;
  }

  .values {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    width: calc(100vw - 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #000;
  }
}
