* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f5f7fa;
  margin: 0;
  padding: 10px;
  line-height: 1.6;
  color: #333;
}

/* CONTAINER */

.container {
  max-width: 1000px;
  margin: auto;
}

/* MENU FLUTUANTE */

.menu-flutuante {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 9999;
}

.botao-menu {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #1f4e79;
  color: white;
  border: none;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.botao-menu:hover {
  transform: scale(1.05);
}

.opcoes-menu {
  display: none;
  position: absolute;
  right: 0;
  bottom: 75px;
  width: 220px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.opcoes-menu a {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: #1f4e79;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  transition: background 0.3s;
}

.opcoes-menu a:hover {
  background: #e3f2fd;
}

/* TÍTULOS */

h1 {
  background: #1f4e79;
  color: white;
  padding: 18px;
  border-radius: 10px;
  margin-top: 0;
  text-align: center;
}

h2 {
  color: #1f4e79;
  border-bottom: 2px solid #e3f2fd;
  padding-bottom: 5px;
}

h3 {
  color: #1f4e79;
}

/* CARDS */

.card {
  background: white;
  padding: 20px;
  margin-top: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* EXEMPLOS */

.exemplo {
  background: #eef7ff;
  padding: 15px;
  border-left: 5px solid #1f4e79;
  margin-top: 10px;
  border-radius: 5px;
}

/* DESTAQUES */

.destaque {
  background: #fff3cd;
  border-left: 5px solid #ffc107;
  padding: 15px;
  margin-top: 10px;
  border-radius: 5px;
}

.obs {
  background: #f8d7da;
  border-left: 5px solid #dc3545;
  padding: 15px;
  margin-top: 10px;
  border-radius: 5px;
}

/* QUIZ */

.quiz {
  background: #fff9e6;
}

/* BOTÕES */

button {
  background: #1f4e79;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: opacity 0.3s;
}

button:hover {
  opacity: 0.85;
}

/* RESULTADO */

#resultado {
  font-weight: bold;
  margin-top: 15px;
  font-size: 16px;
}

/* CÓDIGOS */

pre {
  background: #272822;
  color: #f8f8f2;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin-top: 10px;
}

code {
  font-family: Consolas, "Courier New", monospace;
}

/* TABELAS */

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: white;
}

table th {
  background: #1f4e79;
  color: white;
}

table,
th,
td {
  border: 1px solid #ccc;
}

th,
td {
  padding: 10px;
  text-align: left;
}

/* LISTAS */

ul,
ol {
  padding-left: 25px;
}

/* LINKS */

a {
  color: #1f4e79;
}

a:hover {
  text-decoration: underline;
}

/* IMAGENS */

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* CAMPOS DE FORMULÁRIO */

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 5px;
  margin-bottom: 10px;
  font-size: 15px;
}

label {
  font-weight: bold;
}

/* FINAL DA AULA */

.final {
  background: #e8f5e9;
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: center;
  font-weight: bold;
}

/* RESPONSIVO */

@media (max-width: 768px) {
  body {
    padding: 5px;
  }

  h1 {
    font-size: 22px;
    padding: 15px;
  }

  h2 {
    font-size: 20px;
  }

  .card {
    padding: 15px;
  }

  .botao-menu {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}