* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg,rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(0, 212, 255, 1) 100%);
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 30px 40px;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.sobre-trabalho {
    width: 90%;
    max-width: 1200px;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.4) 0%, rgba(43, 43, 43, 0.2) 92%, rgba(56, 56, 56, 0.2) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 30px 40px;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.sobre-trabalho h2 {
    color: rgba(255, 255, 255, 0.8);
}

.container h1 {
    font-family: 'BodoniXT';
    font-size: 64px;
    text-align: center;
}

.container h4 {
    text-align: center;
}

/* CONTAINER DE GRÁFICOS */
.graficos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 20px;
    margin: 20px 0;
}

/* BLOCOS DE GRÁFICOS */
.grafico1,
.grafico3 {
    flex: 1 1 48%;
    background: transparent;
    background-color: transparent;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    border-radius: 10px;
}

/* GRÁFICOS */
canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 300px;
    background-color: transparent;
    border-radius: 8px;
}

@media only screen and (max-width: 1024px) {
  body {
    flex-direction: column;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    background-color: transparent;
  }

  .graficos-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 40px;
    padding: 0 10px;
    margin: 40px 0;
  }

  .grafico1,
  .grafico3 {
    width: 100% !important;
    max-width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    border-radius: 12px;
    box-shadow: none;
  }

  canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2 !important; /* mais alto que largo para barras visíveis */
    min-height: 400px; /* garante visualização mínima */
    margin: 30px 0;
    background-color: transparent !important;
  }

  .container h1 {
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
  }

  .container h2,
  .subtitulo {
    font-size: 22px;
    text-align: center;
    margin-bottom: 25px;
  }

  .container,
  .sobre-trabalho {
    width: 100%;
    padding: 20px;
    background-color: transparent;
  }
}

