/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;

  --pallete-1: #1F4565;
  --pallete-2: #3498DB;
  --pallete-3: #6C757D;
  --pallete-4: #555555;
  --pallete-5: #F0F2F5;
  --pallete-white: #FFF;
  --pallete-black: #000;

  --navbar-height: 77px;
  --max-width-opt-button: 300px;
}

body {
  position:relative;
  background: var(--pallete-5);
  display: flex;
  justify-content: center;
  align-items:center;
  flex-wrap: wrap;
  height: 100vh;
}

p {
  margin:13px 0;
}

dest {
  color: var(--pallete-1);
  font-weight: 600;
  font-size: 1.15em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.block {
  width:100%; 
  max-width:575px; 
  margin:0 auto;
  margin-top:43px;
}

.tag-request{
  display:flex;
  flex-wrap: wrap;
  border:1px solid var(--pallete-3);
  border-radius:13px;
  padding:13px;
}

.tag-request div[divisor]{
  width:100%; 
  height:1px; 
  border-top:1px solid var(--pallete-3); 
  margin:13px 0;
}

.tag-request div[start-line]{
  width:100%; 
  max-width:calc(100% - 150px);
}

  .tag-request div[date]{
    width:100%;
    max-width:150px;
    padding-left:13px;
    text-align: center;
  }

/* Container padrão*/
.container {
  display: flex;
  justify-content: center;
  align-items: center; 
  width: 100%;
  max-width: 400px;
  text-align: left;
  padding: 23px;
  min-height: calc(100vh - var(--navbar-height));
}

.field-container{
  display:flex; 
  flex-wrap:nowrap; 
  margin:13px 0px;
}

.field-container label{
  width:45%;
  font-weight:600;
  text-align: right;
  margin-right: 13px;
}

req::after{
  content: "* ";
  font-weight: 600;
  color: red;
}

.button-container{
  width:100%; 
  text-align:right;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--pallete-3);
  border-radius: 7px;
  font-size: 14px;
}

option:disabled{
  color:#ccc;
}

textarea {
  resize: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--pallete-2);
  outline: none;
}

/* Botão */
button, input[type=submit] {
  width: 100%;
  padding: 12px;
  border: none;
  background: var(--pallete-1);
  color: #fff;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  margin:3px;
}

button:hover, input[type=submit]:hover {
  background: var(--pallete-2);
}

button:active, input[type=submit]:active{
  transform: scale(0.97, 0.97);
}

/*Botões de opção especiais*/
.opt-button{
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width:100%;
  max-width:300px;
  height: 92px;
  font-weight:600;
  color: var(--pallete-white);
  background-color: var(--pallete-1);
  border-radius: 13px;
}

.opt-button:hover{
  background-color: var(--pallete-2);
}

.opt-button:active {
  transform:scale(0.97, 0.97);
}

/* Links extras */
.links {
  margin-top: 15px;
  font-size: 14px;
}

a {
  color: var(--pallete-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

nav {
  position: sticky;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--navbar-height);
  background-color: var(--pallete-1);
}

nav img {
  position: absolute;
  left:0;
  width: 100%;
  max-width: 63px;
  background-color:var(--pallete-white);
  border-radius: 50%;
  padding:3px;
  margin:7px 13px;
}

nav #btn-exit{
  display:flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: absolute;
  right:0;
  width:100%;
  max-width: 100px;
  height: 51px;
  color: var(--pallete-1);
  font-weight: 600;
  background-color: var(--pallete-white);
  border-radius: 13px;
  padding: 13px;
  margin:13px;
}

nav #btn-exit:active{
  transform: scale(0.97, 0.97);
}

.grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--max-width-opt-button), 1fr));
  justify-items: center;
  gap: 13px;  
  margin: 92px 0 23px 0;
}

.grid a {
  text-decoration: none;
  width: 100%;
  max-width: var(--max-width-opt-button);
  display: flex;
  justify-content: center;
}

div[opt-title]{
  margin:0 0 23px 0;
}

div[opt-subtitle]{
  margin:0 0 23px 0;
}

div[opt-description]{
  max-width: 575px;
  margin:23px auto 23px auto;
  
  text-align: justify;
}

.error-msg {
  display:flex; 
  justify-content: center; 
  align-items: center; 
  color: white; 
  font-weight: 600;
  font-size: 0.9em; 
  background-color: #cc7777; 
  width:100%; 
  max-width: 300px; 
  height: 80px; 
  border-radius:7px;
  margin:23px auto;
  padding: 13px;
  animation: sys3im-msg-show .75s ease-in-out;
}

.confirm-msg {
  display:flex; 
  justify-content: center; 
  align-items: center; 
  color: white; 
  font-weight: 600;
  font-size: 0.9em; 
  background-color: #77cc77; 
  width:100%; 
  max-width: 300px; 
  height: 80px; 
  border-radius:7px;
  margin:23px auto;
  padding: 13px;
  animation: sys3im-msg-show .75s ease-in-out;
}

@keyframes sys3im-msg-show{
  0%{
    transform: translateX(-23px);
    opacity: 0;
  }
  100%{
    transform: translateX(0%);
    opacity: 1;
  }
}

@media screen and (max-width:500px){
  .tag-request div[start-line]{  
    max-width:100%;
  }

  .tag-request div[date]{
    max-width:100%;
    padding-left: 0px;
    margin-top:13px;
    text-align: left;
  }
}

@media screen and (max-width:400px){
  *{
    --max-width-opt-button: 200px;
  }

  .field-container {
    flex-wrap: wrap;
  }

  .field-container label{
    width:100%;
    text-align: center;
  }
}

@media screen and (max-width:300px){
  *{
    --max-width-opt-button: 150px;
  }

  .button-container{
    text-align:center;
  }
}

@media screen and (max-width:250px){
  *{
    --max-width-opt-button: 100px;
  } 
}