/*<!-- style -->*/
:root {
 --primary-color: #001A66; /* v1: #001A66 */
 --secondary-color: #5080FA;
 --accent-color: #50FAB0;
 --light-color: #819cb6;
 --header-bg: #03396c; /* v1: #f1f1f1 */
 --text-color: #333;
 --section-bg: #f9f9f9;
 --border-color: #ddd;
 --header-text-color: #c0cdd8; /* v2 */
 --header-hove-text-color: #d0dde8; /* v2 */
 --background-color: #e9ecef; /* v2 */
 --botao-border-color: black; } /* v2 */
}
* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}
body {
 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 color: var(--text-color);
 line-height: 1.4;
 background-color: var(--background-color); /* v1: #fff */
}
header {
 background-color: var(--header-bg);
 color: var(--header-text-color); /* v2 */
 padding: 2px 30px; /* 15px 30px */
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header-left { 
 color: var(--header-text-color); /* v2 */
 font-size: 28px;
 font-weight: bold;
 display: flex;
 align-items: center;
}
.header-left b:nth-child(1) { color: #FF0; }
.header-left b:nth-child(2) { color: #5080FA; }
.header-left b:nth-child(3) { color: #50FAB0; }
.header-link ul {
 list-style: none;
 padding: 0; margin: 0; display: flex; gap: 20px;
}
.header-link a {
 text-decoration: none;
 color: var(--header-text-color); /* v1 var(--primary-color); */
 font-weight: 600;
 padding: 8px 12px;
 border-radius: 4px;
 transition: background-color 0.3s;
}
.header-link a:hover {
 color: var(--header-hove-text-color); /* v2 */
 background-color: rgba(0, 26, 102, 0.1);
}
.header-right {
 display: flex;
 align-items: center;
 gap: 15px;
 font-weight: 500;
 color: var(--light-color);
}
.header-right img {
 width: 30px;
 height: 20px;
 cursor: pointer;
 border: 1px solid var(--border-color);
 border-radius: 3px;
}
.nav-container {
 background-color: var(--primary-color);
 padding: 1px 30px; /* 10px 30px; */
}
.nav-menu {
 display: flex;
 list-style: none;
 gap: 15px;
 flex-wrap: wrap;
}
.nav-item { position: relative; }
.nav-item > a {
 color: white;
 text-decoration: none;
 padding: 8px 15px;
 display: block;
 border-radius: 4px;
 transition: background-color 0.3s;
}
.nav-item > a:hover { background-color: var(--secondary-color); }
.dropdown-content {
 display: none;
 position: absolute;
 background-color: white;
 min-width: 250px;
 box-shadow: 0 8px 16px rgba(0,0,0,0.2);
 border-radius: 4px;
 z-index: 100;
 top: 100%;
 left: 0;
}
.dropdown-content a {
 color: var(--text-color);
 padding: 12px 16px;
 text-decoration: none;
 display: block;
 border-bottom: 1px solid var(--border-color);
 transition: background-color 0.2s;
}
.dropdown-content a:last-child {
 border-bottom: none;
}
.dropdown-content a:hover {
 background-color: #f0f8ff;
}
.nav-item:hover .dropdown-content {
 display: block;
}
.main-content {
 max-width: 1200px;
 margin: 30px auto;
 padding: 0 20px;
}
.section-card {
 background-color: var(--section-bg);
 border-radius: 8px;
 padding: 30px;
 margin-bottom: 30px;
 box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.section-card h2 {
 color: var(--primary-color);
 margin-bottom: 20px;
 padding-bottom: 10px;
 border-bottom: 2px solid var(--accent-color);
}
.section-card p {
 margin-bottom: 15px;
}
.botao { border: 1px solid var(--botao-border-color); } /* v2 */
 .line-icon { border: 1px solid var(--botao-border-color); } /* v2 */
 .highlight {
 background-color: #e6f7ff;
 padding: 15px;
 border-left: 4px solid var(--secondary-color);
 margin: 20px 0;
 border-radius: 0 4px 4px 0;
}
.pixel-art-container {
 display: flex;
 justify-content: center;
 margin: 30px 0;
 flex-wrap: wrap;
 gap: 40px;
}
.pixel-art {
 display: grid;
 grid-template-columns: repeat(5, 30px);
 grid-template-rows: repeat(5, 30px);
 gap: 1px;
 margin: 10px;
}
.pixel {
 width: 30px;
 height: 30px;
 border: 1px solid var(--border-color);
}
.pixel.black {
 background-color: #000;
}
.pixel.white {
 background-color: #fff;
}
.interface-image {
 max-width: 100%;
 border: 1px solid var(--border-color);
 border-radius: 8px;
 box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.feature-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 20px;
 margin: 30px 0;
}
.feature-card {
 background: #d9dcdf; /* V1: white */
 border-radius: 8px;
 padding: 20px;
 box-shadow: 0 3px 3px rgba(1,1,1,0.08); /* V1: rgba(0,0,0,0.08) */
 border-top: 4px solid var(--secondary-color);
 transition: transform 0.3s;
}
.feature-card:hover {
 transform: translateY(-5px);
}
.feature-card h3 {
 color: var(--primary-color);
 margin-bottom: 10px;
}
.feature-card p {
 color: #555;
}
footer {
 background-color: var(--primary-color);
 color: white;
 text-align: center;
 padding: 5px;
 margin-top: 10px;
 line-height: 0.8em;
 font-size: 0.8em;
}
footer a {
 color: var(--accent-color);
 text-decoration: none;
}
footer a:hover {
 text-decoration: underline;
}
.caption {
 text-align: center;
 font-style: italic;
 color: #666;
 margin-top: 10px;
 font-size: 0.9em;
}

.sintaxe-exemplo { font-size:1.0em; font-weight:bold; }

porque{
 background: linear-gradient(#bfdfff, white);
 margin-left:5px;margin-right:5px; width:98%;
 padding-left:5px;padding-right:5px;border:1px solid#0000aa;display:block;
 }
.err-caso-teste { color: #dc3424; } /* laranja indicando casos-de-teste com erro */
/* Para coloracao de comando iVProg */
azul2 { color: #0000BA; } /* azul2 = comandos: repita_enquanto, repita_para, enquanto_verdadeiro, se, senao, pare, caso */
verd2 { color: #007500; } /* verd2 = "..." em comandos: leia, escreva */
verm { color: #BA0000; }  /* verm  = int, float, void, def, return, variaveis, inteiro, real, cadeia, caractere, logico */
cyan { color: #458A8A; }  /* comentarios // */
def { color: #a500a5; }   /* #define, funcao, programa, devolva, devolver */
incl1 { color: #a500a5; } /* #define, #include, import, from */


@media (max-width: 768px) {
 header {
  flex-direction: column;
  gap: 15px;
  text-align: center;
 }
.header-link ul {
  flex-wrap: wrap;
  justify-content: center;
 }
.nav-menu {
  flex-direction: column;
  gap: 5px;
 }
.pixel-art-container {
  flex-direction: column;
  align-items: center;
 }
}
