html,
body {
  font-family: "Roboto", sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

/* Header/AppBar */
.appbar {
  background-color: #f7d736;
  padding: 8px 30px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  width: 90px;
  height: auto;
  margin-right: 30px;
}

.subtitle {
  font-size: 13px;
  color: #2c2c2c;
  font-weight: 500;
  margin-left: -13px; 
}

/* Container principal */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Formulário de criação */
.form-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin-bottom: 40px;
  max-width: 500px;
  height: 120px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}

.form-card-title {
  border: none;
  padding: 5px 0;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 500;
  color: #2c2c2c;
  outline: none;
  background: transparent;
}

.form-card-title::placeholder {
  color: #999;
  font-weight: 400;
}

.autoresize {
  border: none;
  outline: none;
  resize: none;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: #4c4c4c;
  line-height: 1.4;
  margin-bottom: 8px;
  background: transparent;
  flex: 1;
}

.autoresize::placeholder {
  color: #999;
}

.btn {
  padding: 8px;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  background-color: #f7d736;
  font-size: 16px;
  font-weight: 500;
  color: #2c2c2c;
  cursor: pointer;
}

/* Container dos cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 1350px;
  margin: 0 auto;
}

/* Primeiros 6 cards (linha de cima) */
.card:nth-child(-n+6) {
  width: 200px;
  height: 130px;
}

/* Últimos 4 cards (linha de baixo) */
.card:nth-child(n+7) {
  width: 190px;
  height: 110px;
  margin: 0 20px;
}

/* Estilo base dos cards */
.card {
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 120ms ease, background-color 120ms ease; /* transição suave */
}

/* === Cores e rotações  */
.card.card-color-1 { background-color: #fae890; } /* amarelo claro */
.card.card-color-2 { background-color: #ef89ba; } /* rosa */
.card.card-color-3 { background-color: #9de0f5; } /* azul claro */
.card.card-color-4 { background-color: #abe9c1; } /* verde menta */
.card.card-color-5 { background-color: #ead3a7; } /* bege */

/* Rotações sorteadas */
.card.card-rotation-1  { transform: rotate(-5deg); }
.card.card-rotation-2  { transform: rotate(-4deg); }
.card.card-rotation-3  { transform: rotate(-3deg); }
.card.card-rotation-4  { transform: rotate(-2deg); }
.card.card-rotation-5  { transform: rotate(-1deg); }
.card.card-rotation-6  { transform: rotate(0deg);  }
.card.card-rotation-7  { transform: rotate(1deg);  }
.card.card-rotation-8  { transform: rotate(2deg);  }
.card.card-rotation-9  { transform: rotate(3deg);  }
.card.card-rotation-10 { transform: rotate(4deg);  }
.card.card-rotation-11 { transform: rotate(5deg);  }

/* Títulos dos cards */
.card-title {
  font-family: 'Permanent Marker', cursive;
  font-size: 15px;
  color: #2c2c2c;
  margin-bottom: 6px;
  line-height: 1.2;
}

/* Conteúdo dos cards */
.card-content {
  font-family: 'Permanent Marker', cursive;
  font-size: 11px;
  color: #4c4c4c;
  line-height: 1.3;

  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-content p {
  margin: 0;
}

/* Responsividade */
@media (max-width: 900px) {
  .card-container {
    gap: 12px;
    max-width: 800px;
  }

  .card:nth-child(-n+6) {
    width: 130px;
    height: 95px;
  }

  .card:nth-child(n+7) {
    width: 120px;
    height: 80px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
  }

  .appbar {
    padding: 12px 25px;
  }

  .logo {
    width: 100px;
    margin-right: 20px;
  }

  .subtitle {
    font-size: 16px;
  }

  .form-card {
    max-width: 90%;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .card:nth-child(-n+6) {
    width: 110px;
    height: 80px;
  }

  .card:nth-child(n+7) {
    width: 100px;
    height: 70px;
  }

  .card-title {
    font-size: 13px;
  }

  .card-content {
    font-size: 10px;
  }
}
