@font-face {
  font-family: "Sometype Mono", monospace;
  src: url(SometypeMono-Regular.ttf);
}

@font-face {
  font-family: "Myriad Pro";
  src: url(./MyriadProRegular.ttf);
}

html {
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  color: #222222;
  scroll-behavior: smooth;
}

body {
  padding: 0 25px 30px;
}

a {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

h1 {
  font-size: 23px;
  line-height: 1.3em;
  margin-bottom: 1em;
}

h2 {
  margin-bottom: 1.5em;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

p {
  margin-bottom: 1.5em;
}

/* canvas {
  overflow: visible;
} */

.hidden {
  display: none;
}

.header {
  padding: 4rem 0 5rem 0;
}

.logo {
  width: 80px;
}

.app {
  margin-right: 30px;
}
.hint-icon,
.hint-icon-stroke {
  height: 30px;
  cursor: pointer;
}

/* Hide "hint bulb" icon temporarily (fixes layout issues on mobile). */
.hint-btn {
  display: none;
}

.container {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.specification {
  font-family: "Sometype Mono", monospace;
  margin-bottom: 2em;
  font-size: 16px;
  letter-spacing: 0.6px;
  margin-bottom: 10vh;
}

.form {
  width: 330px;
  margin-bottom: 4vh;
}
.row {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.last-row {
  margin-bottom: 30px;
}

.label {
  font-family: "Sometype Mono", monospace;
  font-size: 18px;
}

.input {
  font-family: "Sometype Mono", monospace;
  font-size: 14px;
  border: 1px solid;
  border-color: #bdbdbd;
  border-radius: 15px;
  height: 25px;
  width: 164px;
  text-align: center;
}

textarea:focus,
input:focus {
  outline: none;
}

/* remove arrows in number input */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type="number"],
input[type="number"]:hover,
input[type="number"]:focus {
  appearance: none;
  -moz-appearance: textfield;
}
/*  */

::placeholder {
  color: #d8d8d8;
}

.buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* gap: 16px; */
}

.button {
  font-family: "Myriad Pro";
  font-size: 14px;
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  min-width: 125px;
  transition: 500ms;
}

.button:hover {
  background-color: rgb(255, 136, 0);
}

.arrow {
  font-size: 23px;
  font-weight: 600;
  color: #cfcfcf;
  margin: 0 6px;
}

.description {
  font-family: "Sometype Mono", monospace;
  font-size: 16px;
  max-width: 370px;
  line-height: 1.4em;
}

.dedication {
  margin: 4em 0 1.5em 0;
}

.email {
  margin-bottom: 0.1em;
}

.result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7vh;
  border: 1px solid;
  border-color: rgb(233, 233, 233);
  border-radius: 30px;
  margin-bottom: 30px;
  padding-bottom: 20px;
}

.reset-btn {
  min-width: 130px;
}

/* show hint */
.form,
.hint,
.arrow,
.hint-colouring {
  transition: 500ms;
}

@media (max-width: 1000px) {
  .container {
    max-width: 330px;
    align-items: center;
  }

  .app {
    margin-right: 0;
    width: 100%;
  }

  /* Mobile: keep "Side A length:" on one line to avoid the word "length"
     shifting into a different column. */
  .form {
    width: 100%;
    max-width: 330px;
  }

  .row {
    gap: 16px;
  }

  .label {
    font-size: 16px;
    white-space: nowrap;
  }

  body {
    padding: 0 12px 30px;
  }
}

@media (max-width: 360px) {
  body {
    padding: 0 6px 30px;
  }

  .container {
    max-width: 320px;
  }

  .form {
    width: 100%;
  }

  .row {
    gap: 12px;
  }

  .label {
    font-size: 14px;
    flex: 1 1 auto;
    min-width: 0; /* allow the label to shrink instead of overlapping */
    overflow: hidden;
    text-overflow: clip;
  }

  .input {
    font-size: 13px;
  }

  .button {
    font-size: 13px;
    padding: 10px 20px;
    min-width: 110px;
  }

  .arrow {
    font-size: 19px;
    margin: 0 4px;
  }

  .description {
    font-size: 14px;
    max-width: 310px;
  }
}
