/* Reset CSS */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: rgb(255, 255, 255);
  line-height: 1.6;
}

/* Basic styles for all HTML elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: 0.5em;
  text-align: center; /* centrado por defecto */
}

p {
  margin-bottom: 1em;
}

a {
  color: #0077cc;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #005fa3;
  text-decoration: underline;
}

ul,
ol {
  margin-left: 2em;
  margin-bottom: 1em;
}

li {
  margin-bottom: 0.5em;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

th,
td {
  padding: 0.75em;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

form {
  margin-bottom: 1em;
}

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: 1em;
  padding: 0.5em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
}

button {
  background: #0077cc;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
button:hover {
  background: #005fa3;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em 0;
}

blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 4px solid #0077cc;
  color: #555;
  background: #f1f7fc;
}

pre,
code {
  font-family: "Fira Mono", "Consolas", monospace;
  background: #f4f4f4;
  padding: 0.5em;
  border-radius: 4px;
}

pre {
  overflow-x: auto;
  margin-bottom: 1em;
}

fieldset {
  border: 1px solid #ccc;
  padding: 1em;
  margin-bottom: 1em;
}

legend {
  font-weight: bold;
  padding: 0 0.5em;
}

details,
summary {
  cursor: pointer;
  margin-bottom: 1em;
}

main,
header,
footer,
nav,
section,
article,
aside {
  display: block;
  margin-bottom: 1em;
}

/* mis css */
body {
  /* AQUI DAMOS ESTILOS A TODO EL BODY DE NUESTRA WEB*/
  padding: 20px;

  background: #cf3ffb;
  /*gradiente de la pagina*/
  background: radial-gradient(
    circle,
    rgba(207, 63, 251, 1) 9%,
    rgba(143, 70, 252, 1) 76%
  );

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.container {
  /* CONTAINER  LO USAMOS PARA CREAR COMO UNA ESPECIE DE CAJA DONDE ENVOLVEMOS  */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  margin: 16px;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  background-color: #6e21cd77;
  box-shadow: inset 1.5px 1.5px 1px 0 rgb(255, 255, 255),
    inset -1px -1px 1px 0 rgba(0, 0, 0, 0.15),
    0.444584px 0.444584px 0.628737px -1px rgba(0, 0, 0, 0.26),
    1.21072px 1.21072px 1.71222px -1.5px rgba(0, 0, 0, 0.247),
    2.5px 2.5px 3.75px -2.5px rgba(0, 0, 0, 0.23),
    6px 6px 8px -3px rgba(0, 0, 0, 0.2), 10px 10px 22px -3px rgba(0, 0, 0, 0.06),
    -0.5px -0.5px 0 0 rgb(0 0 0 / 5%);
  margin-bottom: 20px;
}

a {
  /* estilos para los enlaces*/
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px;
}
a:hover {
  /* al pasar el mouse sobre los enlaces cambia de color*/
  color: #730e92;
}
img {
  /* estilos para las imagenes*/
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 300px;
  height: 300px;
}
table {
  /* estilos para las tablas*/
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}
th,
td {
  border: 1px solid rgb(74, 87, 85);
  padding: 10px;
  text-align: left;
}
th {
  color: rgb(43, 59, 56);
}
tr:nth-child(even) {
  background-color: #f2f2f2;
}
/* estilos para los formularios*/
form {
  margin-top: 20px;
}
form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
form input,
form textarea,
form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: border-color 0.3s;
}
/* estilos para el boton*/
.btn {
  background-color: hsl(302, 100%, 52%);
  color: white;
  font-weight: bold;
}

.btn:hover {
  background-color: hsl(253, 92%, 69%);
  color: rgb(126, 169, 163);
}

.text-center {
  /*para centrar el texto*/
  text-align: center;
}

.otros section {
  color: black;
}
code {
  /*estilos para los codigos*/
  color: black;
}
header {
  display: flex;
  box-sizing: border-box; /* para que el padding no afecte al ancho del header */
  justify-content: space-evenly;
  align-items: center;
  z-index: 1; /* para que el header esté por encima del resto de elementos */
  gap: 12px;
}
.navegacion {
  width: 100%;
  display: flex;
  gap: 20px;
}
.navegacion a {
  text-decoration: none;
  transition: all 0.5s ease;
  font-weight: bold;
}

.navegacion a:hover {
  transform: scale(
    1.1
  ); /* para que el enlace aumente de tamaño al pasar el ratón por encima */
}

footer {
  padding-bottom: 10px;
  margin: 10px;
}
.emojis {
  display: flex;
  flex-direction: row;
}
