img{max-width: 100%; height: auto;}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}


:root {
  /*font family*/
  --ff1: "Roboto", sans-serif;

  /*font weights*/
  --fw1: 700; /*bold*/
  --fw2: 600; /*semi-bold*/
  --fw3: 400; /*regular*/
  --fw4: 300; /*light*/

  /*font sizes*/
  --maior: 4.25rem; /*68px*/
  --titulo: 2rem; /*32px*/
  --subtitulo: 1.375rem; /*22px*/
  --mcorpo: 1.5rem; /*24px*/
  --botnav: 1.25rem; /*20px*/
  --tx: 1.125rem; /*18px*/
  --pequeno: 1rem; /*16px*/
  --minifs: 0.875rem; /*14px*/

  /* font sizes tablet */
  --maior-tablet: 3.5rem; /* ~56px instead of 68px */
  --titulo-tablet: 2.5rem; /* ~40px instead of 32px */
  --subtitulo-tablet: 1.75rem; /* ~28px instead of 22px */
  --mcorpo-tablet: 1.5rem; /* same as desktop */

  /* font sizes smartphone */
  --maior-smartphone: 2rem; /* ~32px instead of 68px */
  --titulo-smartphone: 1.35rem; /* ~28px */
  --subtitulo-smartphone: 1.125rem; /* ~18px */
  --mcorpo-smartphone: 1.125rem; /* ~18px */
  --tx-smartphone: 1rem; /* 16px baseline for readability */

  /*colors*/
  --white: #ffffff;
  --black: #000000;
  --lightgray: #4a586a;
  --darkgray: #323232;
  --red: #c71a1a;

  /*espaçamento*/
  --esp: 130%;

  /*layout*/
  --containers-home-width: min(1350px, 96%);
}

/* global styles */

h1 {
  /*color undefined*/
  font-family: var(--ff1);
  font-weight: var(--fw1);
  font-size: var(--maior);
  line-height: var(--esp);
}

h2 {
  font-family: var(--ff1);
  font-weight: var(--fw1);
  font-size: var(--titulo);
  color: var(--black);
  line-height: var(--esp);
}

h3 {
  font-family: var(--ff1);
  font-weight: var(--fw1);
  font-size: var(--subtitulo);
  color: var(--black);
  line-height: var(--esp);
}

h4 {
  font-family: var(--ff1);
  font-weight: var(--fw2);
  font-size: var(--subtitulo);
  color: var(--black);
  line-height: var(--esp);
}

h5 {
  font-family: var(--ff1);
  font-weight: var(--fw3);
  font-size: var(--botnav);
  color: var(--black);
  line-height: var(--esp);
}

h6 {
  font-family: var(--ff1);
  font-weight: var(--fw4);
  font-size: var(--botnav);
  color: var(--black);
  line-height: var(--esp);
}

.txhp {
  /*text in homepage light*/
  font-family: var(--ff1);
  font-weight: var(--fw4);
  font-size: var(--subtitulo);
  color: var(--lightgray);
  line-height: var(--esp);
}

.botao {
  /*text 
    buttons and navbar*/ /*color undefined*/
  font-family: var(--ff1);
  font-weight: var(--fw3);
  font-size: var(--botnav);
  line-height: var(--esp);
}

.botaowhite {
  display: inline-block;
  white-space: nowrap;
  margin: 0 0.8rem 0 0.8rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--red);
  background-color: var(--white);
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.botaored {
  display: inline-block;
  white-space: nowrap;
  margin: 1rem 0 1rem 0;
  padding: 0.35rem 0.9rem;
  background-color: var(--red);
  color: var(--white);
  border: none;
  box-shadow: none;
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

p {
  /* p é black normal e cinza claro dentro dos quadros*/ /*color undefined*/
  font-family: var(--ff1);
  font-weight: var(--fw3);
  font-size: var(--tx);
  line-height: var(--esp);
  margin: 0;
}

.highlightparagraph {
  /*color undefined*/
  font-family: var(--ff1);
  font-weight: var(--fw2);
  font-size: var(--tx);
  line-height: var(--esp);
}

.mini {
  /*color undefined*/
  font-family: var(--ff1);
  font-weight: var(--fw3);
  font-size: var(--minifs);
  line-height: var(--esp);
}

/*class color*/
.txt-white {
  color: var(--white);
}
.txt-black {
  color: var(--black);
}
.txt-red {
  color: var(--red);
}
.txt-lightgray {
  color: var(--lightgray);
}
.txt-darkgray {
  color: var(--darkgray);
}

section {
  padding: 0 0 3rem 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0rem;
}

.hero > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
}

.hero > img:nth-of-type(2) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.hero > div {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  padding: 2% 5%;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}

.hero > div h1,
.hero > div p {
  margin: 0;
  pointer-events: auto;
}

.hero > div h1 {
  margin-bottom: 1%;
}

.hero > div p {
  max-width: 100%;
}

/* CARDS CONTAINER AND BASE CARD STYLING */

.cards-container {
  margin: 0 auto;
  width: var(--containers-home-width);
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  align-items: stretch;
  box-sizing: border-box;
}

.card {
  width: 100%;
  padding: 1.5rem;
  border-radius: 40px;
  box-shadow: 0.05rem 0.05rem 0.1rem 0.04rem rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.card h2,
.card p,
.card img {
  margin: 0;
}

.card img {
  flex-shrink: 0;
  object-fit: contain;
}

.cardlogin {
  margin: 0 auto;
  width: min(1000px, 96%);
  padding: 2rem 3%;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0.05rem 0.05rem 0.1rem 0.04rem rgba(0, 0, 0, 0.12);
  background-color: var(--white);
}

/*class color exercices*/


:root{
    /*colors*/
    --lightgreen: #F0FAE8;
    --green: #319801; 
    --lightyellow: #FAF4E8;
    --yellow: #986301;
    --lightred: #FAE8E8;
    --lightergray: #F8F8F8;
    --backgray: #ECECEC;
}

.txt-lightgreen {
  color: var(--lightgreen);
}

.txt-green {
  color: var(--green);
}

.txt-lightyellow {
  color: var(--lightyellow);
}

.txt-yellow {
  color: var(--yellow);
}

.txt-lightred {
  color: var(--lightred);
}

.txt-lightergray {
  color: var(--lightergray);
}

.txt-backgray {
  color: var(--backgray);
}

/* EXERCICES TABLE */

table {
  display: block;
  width: 100%;
  table-layout: auto;
  max-width: 100%;
  border-collapse: separate;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

th {
    font-family: var(--ff1);
    font-size: var(--tx);
    color: var(--darkgray);
    text-align: left;
  vertical-align: middle;
}

td {
    font-family: var(--ff1);
    font-weight: var(--fw3);
    font-size: var(--tx);
    color: var(--darkgray);
    background-color: var(--lightergray); /* Cor de fundo do retângulo */
    padding: 1rem;
    box-shadow: 0.05rem 0.05rem 0.1rem 0.04rem rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    text-align: left;

    padding: 0.8rem;
    width: auto;
    max-width: 1000px;
    white-space: nowrap;
    vertical-align: middle;
}

  td img {
    display: block;
    max-width: 100%;
    height: auto;
  }

@media (max-width: 900px) {
  table {
    table-layout: auto;
    width: 100%;
  }

  th,
  td {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
  }
}

/* missing stuff*/

ul, dt, dd, ol {
  font-family: var(--ff1);
  font-weight: var(--fw3);
  font-size: var(--tx);
  color: var(--lightgray);
}

form{
  font-family: var(--ff1);
  font-weight: var(--fw3);
  font-size: var(--tx);
  color: var(--lightgray);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 450px;
  align-items: flex-start;
  text-align: left;
}

button{
  font-family: var(--ff1);
  font-weight: var(--fw3);
  font-size: var(--botnav);
  color: var(--lightgray);
  background-color: var(--white);
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

code { background: var(--lightergray); padding: 2px 5px; font-family: monospace; border-radius: 3px; }

/* Bloco de citação */
blockquote {
    border-left: 5px solid var(--cor-primaria);
    margin: 20px 0;
    padding: 10px 20px;
    background: var(--lightergray);
    font-style: italic;
}

details { padding: 1rem; border-radius: 3px; margin-bottom: 1rem;   background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0.05rem 0.05rem 0.1rem 0.04rem rgba(0, 0, 0, 0.12);}
summary { font-family: var(--ff1); font-weight: var(--fw3); cursor: pointer;   display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease; }

strong, b { 
  font-family: var(--ff1); font-weight: var(--fw1);}

  em, i { font-family: var(--ff1);font-style: italic; }

  mark { background: var(--backgray); color:var(--black); font-weight: var(--fw3);}

  small { font-family: var(--ff1);font-size: var(--minifs); }

  sub { vertical-align: sub; font-size: var(--minifs); } /* Subscrito */
sup { vertical-align: super; font-size: var(--minifs); } /* Sobrescrito */
del { text-decoration: line-through; color: var(--red); } /* Cortado */
ins { text-decoration: underline; color: var(--green); } /* Inserido */

.message { padding: 1rem; border-radius: 3px; margin: 0.5rem 0; font-family: var(--ff1); font-weight: var(--fw1); }
.msg-success { color: var(--green); font-family: var(--ff1); font-weight: var(--fw3); }
.msg-error { color: var(--red);font-family:var(--ff1); font-weight: var(--fw2); }
.msg-warning { background: var(--lightred); color: var(--red); font-family:var(--ff1); font-weight: var(--fw1); }
.msg-empty { color:var(--lightgray); font-family:var(--ff1); font-weight: var(--fw2);}

.img-standalone {
    display: block;
    margin: 20px auto; 
    max-width: 100%;   
    height: auto;
    border-radius: 8px;
}

p a {
    color: var(--red);
    text-decoration: underline; 
    text-underline-offset: 2px; 
    transition: all 0.3s ease;  
    font-weight: var(--fw3);
}

cite {
    font-style: italic;
    color: var(--lightgray); 
    font-size: var(--tx);
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--lightgray);    
    border-radius: 8px;       
    box-sizing: border-box;
    font-family: var(--ff1);
    font-size: var(--tx);
}
