* {
  font-family: 'Roboto', sans-serif;
}

:root {
  --d-content: none;
  --d-loading: flex;
  --color-1: #e52016; 
  --hover-1: #e52016bf;
}
html, body {
  width: 100%;
}
html {
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}
body{
  height: max-content;
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: 100%;
  grid-template-rows: 186px max-content 50px;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  transition: 0.5s;
}
body.on {
  min-height: 100vh;
  grid-template-rows: 186px auto 50px;
}
.header {
  width: 100%;
  height: 100%;
  padding: 16px;
  object-fit: contain;
  object-position: center;
}
main {
  display: grid;
  grid-auto-flow: row;
  grid-auto-rows: max-content;
  box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12) !important;
  margin: 0px auto;
  border-radius: 4px;
  width: 400px;
  overflow: hidden;
  position: relative;
  max-width: calc(100% - 32px);
}
body.on main {
  width: calc(100% - 36px);
  max-width: 700px;
  margin-bottom: auto;
}
main header {
  padding: 12px;
  background-color: var(--color-1);
  font-size: 20px;
  text-align: center;
  color: white;
}
body.on .header {
  background-color: #fafafa;
  box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);
}
main form {
  display: grid;
  grid-auto-flow: row;
  gap: 30px;
  padding: 16px;
  font-size: 16px;
}
main form input {
  border: none;
  border-bottom: 1px solid #757575;
  padding: 5px 0px;
  width: calc(100% - 30px);
}
main form input:focus {
  outline: none;
}
main form i {
  padding-right: 10px;
  color: #757575;
}
main form input[type="submit"] {
  margin-left: auto;
}

#content {
  display: var(--d-content);
}
#content img {
  border-radius: 4px;
  border: 1px solid #eee;
  margin: 20px 0px;
}
#content .button {
  margin: 5px;
}
#loading {
  display: var(--d-loading);
  justify-content: center;
  align-items: center;
  padding: 50px;
}
.sign-out {
  content: "\f2f5";
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 30px;
  color: white;
  transition: 0.1s;
}
.sign-out:hover {
  transform: scale(1.1);
  color: white;
}
.alert {
  text-align: center;
  background: rgba(0, 0, 0, 0.05);
  margin: 16px;
  font-weight: bold;
  border: 1px solid #eee;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  height: 100%;
  font-weight: bold;
}
body.on footer {
  background: #c7c7c7;
}

.button {
  width: max-content;
  color: white;
  background: var(--color-1);
  box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 5px 10px;
  font-weight: bold;
  transition: 0.25s;
  cursor: pointer;
  border: none;
}
.button:focus {
  outline: none;
}
.button:hover {
  background: var(--hover-1);
}


.margin20{margin:20px 0;}
.perguntastotais{width: 100%;display: inline-block;padding: 16px}
.totali{display: inline-block;width: 100%;}
.perg{
  display: grid;grid-template-columns: repeat(auto-fill, 30px);
  gap: 12px;
  margin:20px 0;
  padding: 0;
  list-style: none;
}
.perg a {
  transition: 0.1s;
  color: black;
}
.perg a:hover {
  text-decoration: none;
  transform: scale(1.1);
}
.perg li{
  border-radius: 4px;
  width: 34px;
  height: 34px;
  vertical-align: middle;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
}


.ative { border: 1px solid var(--color-1);}
.errado li { background:#ff0000 !important; color: white;}
.certo li { background:#33ce0d !important; color: white;}


.radio{margin-right: 10px;}
.resposta{display: inline-block;padding: 8px;background: #ffe000;border-radius: 4px;border: 1px solid #a09c07;}
.btn-autoes{background: #e52016;font-weight: bold;border: 1px solid #e52016;color: #eaeaea;padding: 6px;cursor: pointer;}
.dir{float: right !important; padding: 2px 12px !important;}
