@font-face {
  font-family: 'HomeVideo';
  src: url('fonts/HomeVideo-BLG6G.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'electromagnetic-lungs';
  src: url('fonts/electromagnetic-lungs.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  text-align: center;
}

main {
  flex: 1;
  
}

.footer {
  background-color: #f0f0f0;
  align: center;
  margin-top: 1rem;
  padding: 15px;
}

.flag {
  width: 40px;
  margin-top: 10px;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #0066cc;
}

.hamburger-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.hamburger {
    font-size: 2.2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.hamburger:hover,
.hamburger:focus {
    background: #ddd;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100%;
    background: #2c3e50;
    color: white;
    transition: left 0.35s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.4);
    z-index: 999;
	overflow-y: auto;
}

.side-menu.active {
    left: 0;
}

.side-menu ul {
    list-style: none;
    padding: 60px 20px 20px;
    margin: 0;
}

.side-menu a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1rem;
    padding: 14px 18px;
    border-radius: 6px;
    margin: 6px 0;
    transition: all 0.2s;
}

.side-menu a:hover,
.side-menu a:focus {
    background: #34495e;
    color: white;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}

/*.highlight {
            background-color: #e0f7fa;
            padding: 5px;
            border-radius: 4px;
        }*/

:root {
  --bg: #fdfaf7;
  --text: #1a1a1a;
  --accent: #0d1985;
  --card: #ffffff;
  --shadow-sm: 0 6px 18px rgba(0,0,0,0.06);
  --shadow-hover: 0 14px 36px rgba(0,0,0,0.10);
  --primary-color: #f7df1e;
  --primary-text: #323330;
}

body.dark {
  --bg: #1a1a1a;
  --text: #fdfaf7;
  --accent: #4d68ff;
  --card: #2c2c2c;
  --shadow-sm: 0 6px 18px rgba(0,0,0,0.3);
  --shadow-hover: 0 14px 36px rgba(0,0,0,0.4);
  --details-bg: #2d3748;
  --details-border: #4a5568;
  --details-text: #e2e8f0;
  --summary-color: #60a5fa;
  --summary-hover: #3b82f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: url(images/bgtransparente.png);
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100vh;
  width: 100vw;
  opacity: 0.5;
}

body.dark::before {
  filter: brightness(1.3) contrast(1.15) saturate(1.4);
}

@media (min-width: 1400px) {
  body::before {
    background-size: 1000px auto;
  }
}

@media (max-width: 900px) {
  body::before {
    background-size: 85vw auto;
    opacity: 0.18;
  }
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 4vw;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 6vh 0;
}

main section,
main article,
main > div.container > *:not(h1):not(h2):not(h3):not(img),
.code-details,
main p, main li {
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

main p,
main li:not(.side-menu li):not(.badges li):not(.reference-list li),
.description,
.card-desc,
.intro-paragraph,
.code-details p,
.code-details li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  line-height: 1.65;
  margin: 1.1em 0;
}

@media (max-width: 900px) {
  .container {
    padding: 0 16px;
  }
  
  main section,
  main p, main li {
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 12px;
  }
}

header {
  flex: 1;
  max-width: 100%;
  text-align: left;
}

.content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 6vw;
  align-items: flex-start;
}

.cards-section {
  flex: 1;
  max-width: 50%;
  display: flex;
  justify-content: flex-end;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  padding-top: 3vh;
}

.overline {
  font-size: clamp(0.82rem, 1.5vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 1rem;
}

body.dark .overline {
  color: #aaa;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 5.8vw, 5.2rem);
  font-weight: 700;
  line-height: 0.92;
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.header h1 {
  font-family: 'electromagnetic-lungs', sans-serif;
  font-size: clamp(2.5rem, 3vw, 2rem);
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

.header {
  text-align: center;
  background-color: #f0f0f0;
  padding: 30px;
}

body.dark .header {
  background-color: #333;
}

.header h1 {
  display: inline-block;
  margin: 0 auto;
}

.container h1:not(.hero h1) {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h1 span {
  color: var(--accent);
  display: block;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 2rem 0 1rem;
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 1.6rem 0 0.8rem;
}

ul{
	list-style-type: none;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

th {
    background-color: var(--card);
}

.nota {
    background: #fff3cd;
    padding: 10px;
    border-left: 5px solid #ffc107;
    margin-top: 10px;
}

.pre {
    background: #2d3436;
    color: #fab1a0;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: auto;
	max-width: 30%;
	text-align: left;
}

.pre10a {
    background: #2d3436;
    color: #fab1a0;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: auto;
	max-width: 80%;
	text-align: left;
}

.code10a {
    font-family: 'Courier New', Courier, monospace;
    color: #007bff;
}

.passo {
    text-align: left;
    margin-bottom: 2.2rem;
}

.passo p {
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.passo span {
    display: block;
    text-align: left;
    font-size: 0.96rem;
    line-height: 1.5;
}

.subtitle {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 400;
  margin-bottom: 1.4rem;
  color: #222;
}

body.dark .subtitle {
  color: #ddd;
}

.description {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: #444;
  max-width: 90%;
  margin-bottom: 2.2rem;
}

body.dark .description {
  color: #bbb;
}

.badges {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(0,0,0,0.04);
  color: #666;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(0,0,0,0.07);
}

body.dark .badge {
  background: rgba(255,255,255,0.1);
  color: #ccc;
  border: 1px solid rgba(255,255,255,0.15);
}

.card {
  background: var(--card);
  border-radius: 1.4rem;
  padding: 1rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.52s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-12px) translateX(var(--tx, 0px));
  box-shadow: var(--shadow-hover);
}

.card:nth-child(1) { --tx-base: 14px; }
.card:nth-child(2) { --tx-base: -10px; }
.card:nth-child(3) { --tx-base: 12px; }
.card:nth-child(4) { --tx-base: -14px; }

.card:hover { --tx: var(--tx-base); }

.card-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  font-family: 'Playfair Display', serif;
}

.card-desc {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.3rem;
}

body.dark .card-desc {
  color: #ccc;
}

.card-author {
  font-size: 0.86rem;
  color: #777;
  font-weight: 500;
}

body.dark .card-author {
  color: #aaa;
}

.card-author::before {
  content: "— ";
}

.icon {
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  font-size: 2.2rem;
  opacity: 0.4;
  transition: all 0.5s ease;
}

.card:hover .icon {
  opacity: 0.8;
  transform: scale(1.25) rotate(12deg);
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
    padding: 10vh 0 14vh;
  }
  .content-wrapper {
    flex-direction: column;
    gap: 8vh;
  }
  header, .cards-section {
    max-width: 100%;
  }
  header {
    text-align: center;
  }
  .cards {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(2.6rem, 10vw, 5.6rem); }
  .subtitle { font-size: 1.3rem; }
  .card { padding: 1.6rem 1.5rem; }
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.popup {
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.2rem;
  max-width: 520px;
  width: 90%;
  box-shadow: var(--shadow-hover);
  animation: popupIn 0.4s ease;
  position: relative;
}

body.dark .popup {
  background: #2c2c2c;
  color: #fdfaf7;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #666;
}

body.dark .popup-close {
  color: #aaa;
}

.popup h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.popup p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

body.dark .popup p {
  color: #ccc;
}

@keyframes popupIn {
  from {
    transform: translateY(20px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.popup form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.4rem;
}

.popup label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
}

body.dark .popup label {
  color: #ddd;
}

.popup input {
  padding: 0.65rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  font-family: inherit;
}

body.dark .popup input {
  background: #3c3c3c;
  color: #fff;
  border: 1px solid #555;
}

.popup input:focus {
  outline: none;
  border-color: var(--accent);
}

.popup-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.popup-actions button {
  flex: 1;
  padding: 0.7rem;
  border-radius: 0.6rem;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.popup-actions button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn-login {
  background: var(--accent);
  color: #fff;
}

.btn-register {
  background: #eee;
  color: #333;
}

body.dark .btn-register {
  background: #444;
  color: #fff;
}

body.dark .footer {
  background-color: #333;
}

.side-menu {
  background: #2c3e50;
  color: white;
}

body.dark .side-menu {
  background: #1a1a1a;
}

.side-menu a {
  color: #ecf0f1;
}

body.dark .side-menu a {
  color: #fdfaf7;
}

.side-menu a:hover,
.side-menu a:focus {
  background: #34495e;
  color: white;
}

body.dark .side-menu a:hover,
body.dark .side-menu a:focus {
  background: #333;
  color: #fdfaf7;
}

.hamburger {
  color: #333;
}

body.dark .hamburger {
  color: #fdfaf7;
}

.hamburger:hover,
.hamburger:focus {
  background: #ddd;
}

body.dark .hamburger:hover,
body.dark .hamburger:focus {
  background: #444;
}

.close-btn {
  color: white;
}

body.dark .close-btn {
  color: #fdfaf7;
}

#dark-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

#dark-toggle:hover {
  background: rgba(0,0,0,0.1);
}

body.dark #dark-toggle:hover {
  background: rgba(255,255,255,0.1);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

.img-zoom {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  transition: transform 0.3s ease;
}

.img-zoom:hover {
  transform: scale(1.5);
}

.container img,
main img,
section img {
  max-width: 100%;
  height: auto;
}

main img:not(.flag) {
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  margin: 2.2rem auto;
}

.textarea {
			width: 100%;
			resize: none;
			overflow: hidden;
			box-sizing: border-box;
		}
		
/* Apenas elementos da pág. 7a */
.header-sample {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 1rem 4%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.header-sample .logo {
	width: 100px;
    flex-shrink: 0;
    order: 1;
}

.header-sample nav {
    order: 2;
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.header-sample .search-bar {
    order: 3;
    flex-shrink: 1;
    min-width: 220px; 
}

.header-sample h1 {
    order: 4;
    flex-basis: 100%;
    margin: 0.8rem 0 0.4rem 0;
    text-align: center;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 600;
	color: #2980b9;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.header-sample nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-sample nav li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .header-sample {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.2rem 5%;
    }

    .header-sample nav {
        order: 2;
        width: 100%;
        justify-content: center;
    }

    .header-sample .search-bar {
        order: 3;
        width: 100%;
        max-width: 500px;
    }

    .header-sample h1 {
        order: 4;
        margin: 0.6rem 0 0;
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
}

@media (max-width: 500px) {
    .header-sample nav ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .header-sample .search-bar form {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-sample .search-bar input[type="text"] {
        width: 100%;
    }
}

      .highlight-box {
          background-color: #ffeaa7;
          border: 1px solid #fab1a0;
          padding: 12px;
          margin-top: 10px;
          border-radius: 5px;
          font-size: 0.95em;
          color: #2d3436;
      }
	  
	  .highlight-box strong {
          color: #e74c3c;
          font-weight: bolder;
      }
	  
	  .nav-sample ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.nav-sample li {
    margin: 0;
}

.nav-sample a {
    text-decoration: none;
    color: red; 
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-sample a:hover {
    color: #ff4d4d;
}

@media (max-width: 768px) {
    .nav-sample ul {
        flex-direction: column;
        gap: 1rem;
    }
}

.main-sample {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 1rem 4%;
}

.main-sample nav {
    order: 2;
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-sample h1 {
    order: 1;
    flex-basis: 100%;
    margin: 0.8rem 0 0.4rem 0;
    text-align: center;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 600;
	color: #2980b9;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.main-sample nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.8rem;
    list-style: none;
}

.main-sample nav li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    white-space: nowrap;
}
.main-sample h2 {
color: #27ae60;
text-align: center;
}

.main-sample h3 {
color: #27ae60;
text-align: left;
}

.main-sample h4 {
text-align: left;
color: #2980b9;
}

.footer-links{
	text-align: center;
	color: #2980b9;
}

.social-media{
	text-align: center;
	color: #2980b9;
}

.copyright p{
	text-align: center;
	margin: 0 auto;
    max-width: 80%;
}

details {
  background: var(--details-bg, #f7f7f7);
  border: 1px solid var(--details-border, #ddd);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
  color: var(--details-text, #333);
  transition: background 0.2s ease, border-color 0.2s ease;
}

summary {
  font-weight: 600;
  color: var(--summary-color, #0066cc);
  cursor: pointer;
  transition: color 0.2s ease;
}

details[open] summary {
  list-style-type: disclosure-open;
}

summary:hover,
summary:focus {
  color: var(--summary-hover, #004080);
}

/* Apenas elementos da pág. 7b */

.layout-7b {
  display: flex;
  align-items: flex-start;
}

.conteudo-7b {
  background: var(--bg);
  color: var(--text);
  width: 100%;
  padding: 20px;
}

.conteudo-7b h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.conteudo-7b p,
.conteudo-7b li,
.conteudo-7b ul {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

#spa-wrapper {
  width: 100%;
}

#spa-frame {
  width: 100%;
  min-height: 800px;
  border: none;
  background: var(--bg);
}

.coluna-direita-7b {
  width: 25%;
  padding: 20px;
  border-left: 2px solid #ccc;
}

.coluna-direita-7b ul {
  list-style: none;
  padding: 0;
}

.coluna-direita-7b li {
  margin-bottom: 10px;
}

.coluna-direita-7b a {
  text-decoration: none;
  color: #0066cc;
  font-weight: 500;
}

.coluna-direita-7b a:hover {
  text-decoration: underline;
}

.coluna-direita-7b a.active {
  font-weight: bold;
  color: #000;
}

/* Apenas elementos da pág. 10a */

.intro-selectors {
    font-style: italic;
    color: #555;
}

.exemplo-classe {
    background-color: #e6f7ff;
    border: 1px solid #99daff;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

/* Seletor de ID */
#paragrafo-id {
    font-weight: bold;
    color: #c82333;
}

/* Seletores Descendentes */
.container-descendente p {
    background-color: #e0ffe0;
    padding: 5px;
    border-left: 3px solid #28a745;
}

/* Seletores de Filho */
.lista-filho>li {
    list-style-type: square;
    color: #6c757d;
}

/* Seletores de Irmão Adjacente */
h4+.irmao-adjacente {
    margin-top: 5px;
    border-top: 1px dashed #ccc;
    padding-top: 10px;
}

/* Seletores de Irmão Geral */
h4~.irmao-geral {
    text-decoration: underline;
    color: #17a2b8;
}

/* Seletores de Atributo */
a[target="_blank"] {
    color: #fd7e14;
    font-weight: bold;
}

input[type="text"] {
    border: 2px solid #007bff;
    padding: 5px;
    border-radius: 3px;
}

/* Pseudo-classes */
.pseudo-classe-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.pseudo-classe-btn:hover {
    background-color: #0056b3;
}

.pseudo-classe-btn:active {
    background-color: #004085;
    transform: translateY(1px);
}

.pseudo-classe-btn:focus {
    outline: 2px solid #28a745;
}

.grupo-paragrafos p:first-child {
    background-color: #ffeeba;
    font-style: italic;
}

/* Pseudo-elementos */
.pseudo-elemento-p::first-line {
    font-weight: bold;
    color: #d63384;
}

.pseudo-elemento-div::before {
    content: "Pseudo: ";
    color: #6f42c1;
    font-weight: bold;
}

.pseudo-elemento-div::after {
    content: " (Fim)";
    color: #6f42c1;
    font-style: italic;
}

/* --- PROPRIEDADES CSS --- */
/* Cores */
.cor-texto-blue {
    color: blue;
}

.cor-texto-red-hex {
    color: #FF0000;
}

.cor-texto-green-rgb {
    color: rgb(0, 128, 0);
}

.cor-texto-purple-rgba {
    color: rgba(128, 0, 128, 0.7);
}

.fundo-claro {
    background-color: lightgray;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

.borda-verde {
    border: 1px solid;
    border-color: green;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
}

/* Fontes */
.fonte-helvetica {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.tamanho-16px {
    font-size: 16px;
}

.tamanho-1-2em {
    font-size: 1.2em;
}

.tamanho-2vw {
    font-size: 2vw;
}

.peso-bold {
    font-weight: bold;
}

.peso-700 {
    font-weight: 700;
}

.estilo-italic {
    font-style: italic;
}

.alinhamento-centro {
    text-align: center;
    background-color: #f0f0f0;
    padding: 10px;
}

.altura-linha {
    line-height: 2;
    border: 1px dashed #ccc;
    padding: 5px;
}

/* Tamanhos */
.largura-200px {
    width: 200px;
    background-color: #ffe6e6;
    padding: 10px;
    margin: 10px 0;
}

.largura-50pct {
    width: 50%;
    background-color: #e6ffe6;
    padding: 10px;
    margin: 10px 0;
}

.altura-100px {
    height: 100px;
    background-color: #e6e6ff;
    padding: 10px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.max-largura {
    max-width: 80%;
    background-color: #fff0e6;
    padding: 10px;
    margin: 10px auto;
    border: 1px solid #f0ad4e;
}

.min-largura {
    min-width: 300px;
    background-color: #e0f7fa;
    padding: 10px;
    margin: 10px auto;
    border: 1px solid #00acc1;
    text-align: center;
}

/* --- BOX MODEL --- */
.exemplo-content {
    background-color: #a2d2ff;
    width: 200px;
    height: 50px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.exemplo-padding {
    background-color: #bde0fe;
    padding: 20px;
    /* 20px em todos os lados */
    border: 1px solid #6aa4cc;
    margin: 10px 0;
    color: #333;
}

.exemplo-border {
    background-color: #d7eaff;
    padding: 15px;
    border: 3px solid #4a75a3;
    /* Borda de 3px, sólida, azul escuro */
    margin: 10px 0;
    color: #333;
}

.exemplo-margin {
    background-color: #eaf6ff;
    padding: 10px;
    border: 1px dashed #89b4e0;
    margin: 30px;
    /* 30px em todos os lados */
    color: #333;
}

.exemplo-box-sizing-content {
    width: 200px;
    height: 50px;
    padding: 20px;
    border: 5px solid red;
    background-color: #ffe0e0;
    margin: 10px 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exemplo-box-sizing-border {
    width: 200px;
    height: 50px;
    padding: 20px;
    border: 5px solid green;
    background-color: #e0ffe0;
    margin: 10px 0;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- LAYOUT --- */
/* Flexbox */
.flex-container {
    display: flex;
    flex-direction: row;
    /* Padrão, mas explícito */
    justify-content: space-around;
    align-items: center;
    background-color: #f2f2f2;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    gap: 10px;
    /* Espaçamento entre os itens */
    flex-wrap: wrap;
    /* Permite que os itens quebrem a linha */
}

.flex-item {
    background-color: #66b3ff;
    color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    flex-grow: 1;
    /* Permite que os itens cresçam para preencher o espaço */
    max-width: 30%;
    /* Limita o tamanho máximo para melhor responsividade */
    min-width: 100px;
    /* Garante um tamanho mínimo */
}

/* Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    /* Colunas flexíveis e responsivas */
    gap: 15px;
    /* Espaçamento entre as células */
    background-color: #f2f2f2;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.grid-item {
    background-color: #ff9933;
    color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

/* --- RESPONSIVIDADE (Media Queries) --- */
.container-responsivo {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #e0f2f7;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    flex-wrap: wrap;
    /* Essencial para o empilhamento em telas menores */
    gap: 15px;
}

.item-responsivo {
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    text-align: center;
    min-width: 120px;
    flex-grow: 1;
    /* Permite que cresçam */
    flex-basis: auto;
    /* Padrão para flex-basis */
}

.texto-responsivo {
    text-align: center;
    font-size: 1em;
    /* Tamanho padrão */
    margin-top: 20px;
    padding: 10px;
    border: 1px dashed #999;
    border-radius: 5px;
}

/* --- TRANSIÇÕES E ANIMAÇÕES BÁSICAS --- */
.botao-transicao {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 15px;
    display: inline-block;
    /* Para aplicar transform */
    /* Propriedades de transição */
    transition-property: background-color, transform;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    /* ou shorthand: transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out; */
}

.botao-transicao:hover {
    background-color: #0056b3;
    /* Cor mais escura no hover */
    transform: scale(1.1);
    /* Aumenta o tamanho em 10% */
}

/* Animações */
/* Definição dos keyframes para a animação slideIn */
@keyframes slideIn {
    0% {
        transform: translateX(-100%);
        /* Começa fora da tela à esquerda */
        opacity: 0;
        /* Invisível no início */
    }

    50% {
        opacity: 0.7;
        /* Meio transparente no meio do caminho */
    }

    100% {
        transform: translateX(0);
        /* Termina na posição original */
        opacity: 1;
        /* Totalmente visível */
    }
}

.elemento-animado {
    background-color: #ffc107;
    color: #333;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
    opacity: 0;
    /* Inicialmente invisível antes da animação */
    /* Propriedades de animação */
    animation-name: slideIn;
    animation-duration: 1.5s;
    /* Duração da animação */
    animation-timing-function: ease-out;
    /* Velocidade da animação */
    animation-delay: 0.8s;
    /* Atraso antes de começar */
    animation-iteration-count: 1;
    /* Roda apenas uma vez */
    animation-fill-mode: forwards;
    /* Mantém o estilo do último keyframe (100%) */
}

#desafio {
            background: var(--card);
            padding: 30px;
			max-width: 50%;
            border-radius: 8px;
            margin-top: 40px;
            border: 2px dashed #4f46e5;
        }
		
.intro-p { 
            font-size: 1.2rem; 
            font-weight: 500;
			color: var(--card);
            background: var(--accent); 
			max-width: 50%;
			margin: auto;
            padding: 1.5rem; 
            border-left: 5px solid var(--primary);
            border-radius: 4px;
        }
		
.quiz-container {
            background: #eef2f3;
            padding: 20px;
            border-radius: 8px;
            border-left: 5px solid var(--accent-color);
            margin-top: 40px;
        }

.question {
            margin-bottom: 15px;
            background: var(--bg);
            padding: 15px;
            border-radius: 5px;
        }

.options label {
            display: block;
			text-align: left;
            margin: 5px 0;
            cursor: pointer;
        }
		
        button.btn-check {
            background-color: var(--accent);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
            transition: background 0.3s;
        }

        button.btn-check:hover {
            background-color: #2980b9;
        }
		
.referencias {
	max-width: 50%;
	margin: auto;
}

.keyword {
            color: #ff79c6;
        }

.string {
            color: #f1fa8c;
        }
		
.comment {
            color: #6272a4;
        }

.func {
            color: #50fa7b;
        }

.imgEstrutura {
            width: 80%;
            max-width: 800px;
            height: auto;
			margin: auto;
        }
		
.exercise-box {
            background-color: rgba(97, 218, 251, 0.1);
            border: 1px solid var(--accent-blue);
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
        }

.input-group {
            margin-bottom: 15px;
        }
		
button {
            background-color: var(--primary-color);
            color: var(--primary-text);
            border: none;
            padding: 10px 20px;
            font-weight: bold;
            cursor: pointer;
            border-radius: 5px;
            transition: 0.3s;
        }

button:hover {
            background-color: #e5cf10;
            transform: translateY(-2px);
        }
		
#resultado-demo {
            margin-top: 15px;
            padding: 10px;
            background: #333;
            color: var(--success-green);
            font-family: monospace;
            min-height: 40px;
            border-radius: 4px;
        }
		
.textarea12 {
            width: 100%;
            height: 100px;
            background: #333;
            color: white;
            border: 1px solid #555;
            padding: 10px;
            border-radius: 5px;
            font-family: monospace;
        }