/* Resets */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* Let's go */

@media print {
  .pe-no-print {
    display: none !important;
  }

  .pe-preserve-ancestor {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  #badges {
    width: 20cm;
    height: 28cm;
  }
}

@page {
  size: A4;
  margin: 20mm;
  /* change the margins as you want them to be. */
}

body {
  font-family: 'Calibri', sans-serif;
  display: flex;
}

#config {
  display: flex;
  flex-direction: column;
  width: 20%;
  border-right: 1px solid black;
  padding: 0.5rem;
}

#badges {
  display: flex;
  width: 80%;
  padding: 0.5rem;
  align-items: center;
  flex-direction: column;
}

#toolbox {
  background: white;
  display: block;
  clear: both;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: fixed;
  bottom: 0px;
  width: inherit;
  height: 80px;
  margin-left: -0.9rem;
  border-top: 2px solid #1d5733;
}

form {
  height: 250px;
  border-bottom: 1px solid #1d5733;
}

input:hover {
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.94);
}

input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 5px;
  box-sizing: border-box;
}

input:focus {
  background-color: #1d5733;
  color: white;
}

select {
  background-color: lightgray;
  width: 100%;
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #1d5733;
}

button {
  background-color: #1d5733;
  width: 180px;
  display: block;
  margin: 0px auto;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 18px;
  color: white;
  padding: 20px;
  height: 60px;
  margin-top: 10px;
  text-align: center;
  cursor: pointer;
}

button:hover {
  background-color: #87e707;
}

.badge {
  width: 750px;
  height: 250px;
  border: 10px solid #1d5733;
  border-radius: 10px;
  display: flex;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.front {
  width: 50%;
  height: 100%;
  border-right: 10px solid #1d5733;
}

.back {
  height: 100%;
  width: 50%;
  border-left: 10px solid #1d5733;
}

.badge .title {
  font-size: 3rem;
  color: white;
  background-color: #1d5733;
  border-radius: 5px 5px 0 0;
  padding-bottom: 20px;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  margin: -10px 0 0 -10px;
}

.badge .frame {
  background-color: #fff;
  border-radius: 5px;
  border: 5px solid #1d5733;
  width: 150px;
  height: 64px;
  margin-left: auto;
  margin-right: auto;
  margin-top: -32px;
}

.badge .pic {
  width: 90%;
  height: 90%;
  margin-left: auto;
  margin-right: auto;
}

.badge__name,
.badge__surname {
  text-align: center;
  text-transform: uppercase;
  width: 100%;
  font-size: 3rem;
  color: #1d5733;
  text-wrap: nowrap;
  overflow: hidden;
  line-height: 3.5rem;
}

.badge__surname {
  font-weight: bold;
  padding: 0 0.5rem;
}
