html {
  font-size: 15px;
}

body {
  margin: 0;
  background-color: #efefef;
  font-family: utopia-std, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a:link {
  color: #d00000;
  -webkit-transition: all 0.1s ease-in-out;
}

a:visited {
  color: #d00000;
  -webkit-transition: all 0.1s ease-in-out;
}

a:hover {
  color: #555;
  -webkit-transition: all 0.1s ease-in-out;
}

a:active {
}

#warn {
  top: 0;
  position: absolute;
  height: 175%;
  width: 100%;
  background-color: #efefef;
  z-index: 5;
}
#warn h1 {
  font-size: 5em;
  text-align: center;
  margin-top: 15%;
}

#params {
  background-color: #efefef;
  padding: 0 2rem;
  width: 420px;
  height: 100%;
  box-sizing: border-box;
  float: left;
}
#title {
  width: 100%;
  margin-top: 1rem;
}
h1 {
  font-size: 3rem;
  color: #d00000;
  text-align: left;
  font-family: dazzle-unicase, sans-serif;
  font-weight: 700;
  margin: 0 5px 0 0;
  display: inline-block;
}

.caption {
  margin: 0 0 1.5rem;
  text-align: left;
  display: inline-block;
}

ul {
  list-style-type: none;
  width: 100%;
  padding: 0;
  margin: 3px 0 0;
}
li {
  display: inline-block;
  font-size: 2rem;
  font-weight: 900;
}

li:nth-child(2) {
  margin-left: 1rem;
}

li.swapbutton {
  background-color: #d00000;
  width: 2.75rem;
  height: 2.75rem;
  background-image: url(rotate.svg);
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  float: right;
}

#inputs {
  color: #d00000;
  margin-bottom: 2.5rem;
}

.field {
  color: black;
  font-size: 1rem;
}

input[type="number"] {
  font-family: inherit;
  font-size: 2rem;
  margin: 0;
  width: 7rem;
  border: 1px solid #efefef;
  border-bottom-color: #000;
  background-color: #efefef;
  font-weight: 500;
}

#papersize {
  margin-bottom: 1rem;
}

#cutbutton {
  width: 100%;
  height: 55px;
  background-image: url(cut.svg);
  background-position: center;
  background-repeat: no-repeat;
}

#rotatebutton {
  width: 100%;
  height: 35px;
  background-image: url(rotate.svg);
  background-position: center;
  background-repeat: no-repeat;
}

#resetbutton {
  width: 100%;
  height: 35px;
  background-image: url(reset.svg);
  background-position: center;
  background-repeat: no-repeat;
}
#buttons {
  position: relative;
  width: 100%;
  background-color: #d00000;
}

.button {
  box-sizing: border-box;
  outline: 1px solid #efefef;
  cursor: pointer;
}

#result {
  height: 100%;
  width: calc(100% - 420px);
  float: right;
}

#resultp {
  position: absolute;
  bottom: 0;
  left: 0;
  margin-bottom: 2rem;
  font-size: 2rem;
  padding: 0 30px;
  box-sizing: border-box;
  line-height: 3rem;
}

#paper {
  position: static;
  margin: 2.5% auto;
  padding-top: 0;
  outline: 1px solid #efefef;
  background-color: #d00000;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.65);
}

#mainpage {
  float: left;
}

.page {
  position: relative;
  z-index: 1;
  display: block;
  float: left;
  outline: 1px dashed #d00000;
  background-color: #efefef;
}

#trimbox {
  float: left;
}

.trimpage {
  position: relative;
  display: block;
  float: left;
  outline: 1px dashed #d00000;
  background-color: #efefef;
}
.page p,
.trimpage p {
  margin: 5%;
  font-size: 1rem;
}
.em {
  color: #d00000;
  font-weight: 500;
}
