@font-face {
  font-family: 'OpenSans';
  src: url('fonts/OpenSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'OpenSans';
  src: url('fonts/OpenSans-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'OpenSans';
  src: url('fonts/OpenSans-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

body {
  font-family: 'OpenSans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  text-align: center;
}

header {
  background-color: #5A6AF1;
  padding: 10px;
}

header img {
  max-width: 20%;
}

.content {
  padding: 20px;
}

table {
  width: 50%;
  border-spacing: 0;
  border-radius: 10px;
  margin: 0 auto;
}

td, th {
  padding: 10px;
  border-radius: 5px 5px 0px 0px;
}


h1 {
  font-size: 50px;
  color: #333;
  margin-top: 20px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 25px;
}

p {
  font-size: 16px;
  color: #333;
  margin: 20px;
}


input:not([type="checkbox"]):not([type="submit"]):not([type="color"]), textarea, select {
  width: 300px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
}

select {
  appearance: none;
}

select:invalid {
  color: #A9A9A9;
}

input[type="color"] {
  width: 322px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

textarea[name="campi"] {
  height: 600px;
  width: 600px;
}

label[for="consenso_trattamento_dati"], label[for="consenso_foto"] {
  /*font-size: 10px;*/
  color: #333;
  cursor: pointer;
  display: block;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 10px;
  text-align: justify;
}

a {
  color: #5A6AF1;
  font-weight: bold;
}

.button, input[type="submit"], button {
  display: inline-block;
  color: #000;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
}

input[type="submit"], button {
  font-size: 16px;
  border: none;
  cursor: pointer;
}

canvas {
  border: 1px solid #000;
  border-radius: 10px;
  width: 300px;
}

#clear_canvas {
  visibility: hidden;
}

.hidden {
  display: none;
}

@media screen and (max-width: 768px) {
  table {
    width: 100%;
  }
  textarea, textarea[name="campi"] {
    width: 300px;
  }
  label[for="privacy"] {
    max-width: 300px;
  }
}
