* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box; /* Asegura que padding y border no afecten el tamaño total */
}

:root {
    --primary-color: #0F0;
    --background-color: rgba(0, 0, 0, 0.7);
    --font-family: Arial, sans-serif;
    --font-size: 18px;
  }
  
  body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-family);
    color: var(--primary-color);
  }
  
  canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
  }
  
  header {
    text-align: center;
    padding: 20px;
    background-color: var(--background-color);
  }
  
  h1 {
    font-size: 48px;
    margin: 0;
    color: var(--primary-color);
  }
  
  .section {
    padding: 50px;
    text-align: center;
    background-color: var(--background-color);
    margin: 20px;
  }
  
  .section h2 {
    font-size: 36px;
    color: var(--primary-color);
  }
  
  .section p {
    font-size: var(--font-size);
  }
  
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .portfolio-item {
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border: 1px solid var(--primary-color);
  }
  
  .portfolio-item h3 {
    color: var(--primary-color);
    font-size: 24px;
  }
  
  /* Agregar enlaces a LinkedIn y GitHub */
  .social-links {
    text-align: center;
    padding: 20px;
  }
  
  .social-links a {
    margin: 0 10px;
    font-size: 24px;
    color: var(--primary-color);
    -webkit-transition: color 0.3s ease;
    transition: color 0.3s ease;
  }
  
  .social-links a:hover {
    color: #fff;
  }
  
  .social-links i {
    font-size: 24px;
  }
  
  
  input, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background-color: black;
    color: #0F0; /* Texto blanco para mejor legibilidad */
    border: 1px solid #0F0; /* Puedes ajustar el borde si lo deseas */
    box-sizing: border-box;
}

button[type="submit"] {
    background-color: #0F0;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #2e2e2e;
}

.container__boton{
    background-color: #0F0;
}
.green-text {
    color: #0F0;
}

button[type="submit"]:hover {
    background-color: #0F0;
}
  #contact-form form {
    max-width: 600px;
    margin: auto;
 }
 

 
/*tiktak*/


#game {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    justify-content: center;
    grid-gap: 5px;
    margin-bottom: 20px;
}

.cell {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    background-color: rgb(28, 28, 28);
    cursor: pointer;
}

#message {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#reset {
    padding: 10px 20px;
    background-color: black;
    color: #0F0;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

#reset:hover {
    background-color: black;
}

/*Snake*/
#game-container {
    display: grid;
    align-items: center;
    justify-content: center;
    width: 340px;
    height: 340px;
    border: 2px solid #000;
    position: relative;
    margin: 0 auto;
}

#game-board {
    width: 100%;
    height: 100%;
    background-color: rgb(28, 28, 28);
    position: absolute;
}
.snake {
    width: 17px;
    height: 17px;
    background-color: #0F0;
    position: absolute;
}
.food {
    width: 17px;
    height: 17px;
    background-color: red;
    position: absolute;
}


.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-text {
  font-size: 14px;
  margin: 0;
  color: #ffffff;
}

.footer-music-button {
  padding: 6px 14px;
  font-size: 13px;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  /* Aquí irán tus colores personalizados */
}


/* Media Query para iPhones (pantallas pequeñas) */
@media (max-width: 375px) {
    h1 {
        font-size: 32px;
    }
    .section h2 {
        font-size: 28px;
    }
    .section p {
        font-size: 16px;
    }
    .portfolio-item h3 {
        font-size: 20px;
    }
    .social-links a {
        font-size: 20px;
    }
    input, textarea {
        font-size: 14px;
    }
}

@media (min-width: 414px) and (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    .section h2 {
        font-size: 32px;
    }
    .section p {
        font-size: 18px;
    }
    .portfolio-item h3 {
        font-size: 22px;
    }
    .social-links a {
        font-size: 22px;
    }
    input, textarea {
        font-size: 16px;
    }
    #game {
        grid-template-columns: repeat(3, 80px); /* Reducir tamaño de las celdas */
        grid-gap: 3px; /* Espacio entre celdas */
    }
    .snake, .food {
        width: 10px; /* Ajustar el tamaño de la serpiente y la comida */
        height: 10px; 
    }

    .cell {
        width: 80px; /* Reducir ancho */
        height: 80px; /* Reducir alto */
        font-size: 1.5rem; /* Reducir tamaño de fuente */
    }

    #message {
        font-size: 1.2rem; /* Reducir tamaño del mensaje */
    }

    #reset {
        padding: 8px 16px; /* Ajustar padding del botón de reinicio */
        font-size: 0.9rem; /* Reducir tamaño de fuente */
    }

    #game-container {
        width: 80%; /* Reducir el tamaño en dispositivos móviles */
        height: 80%;
    }
}

/* Media Query para tabletas (pantallas medianas) */
@media (min-width: 376px) and (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    .section h2 {
        font-size: 32px;
    }
    .section p {
        font-size: 18px;
    }
    .portfolio-item h3 {
        font-size: 22px;
    }
    .social-links a {
        font-size: 22px;
    }
    input, textarea {
        font-size: 16px;
    }
    #game {
        grid-template-columns: repeat(3, 80px); /* Reducir tamaño de las celdas */
        grid-gap: 3px; /* Espacio entre celdas */
    }
    .snake, .food {
        width: 10px; /* Ajustar el tamaño de la serpiente y la comida */
        height: 10px; 
    }

    .cell {
        width: 80px; /* Reducir ancho */
        height: 80px; /* Reducir alto */
        font-size: 1.5rem; /* Reducir tamaño de fuente */
    }

    #message {
        font-size: 1.2rem; /* Reducir tamaño del mensaje */
    }

    #reset {
        padding: 8px 16px; /* Ajustar padding del botón de reinicio */
        font-size: 0.9rem; /* Reducir tamaño de fuente */
    }

    #game-container {
        width: 80%; /* Reducir el tamaño en dispositivos móviles */
        height: 80%;
    }
}


/* Media Query para celulares Android (pantallas pequeñas) */
@media (max-width: 480px) {
    .section {
        padding: 20px;
    }
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .social-links a {
        font-size: 18px;
    }

    #game {
        grid-template-columns: repeat(3, 60px); /* Celdas más pequeñas */
        grid-gap: 2px; /* Espacio reducido entre celdas */
    }

    .cell {
        width: 60px; /* Tamaño de celdas aún más pequeño */
        height: 60px; /* Tamaño de celdas aún más pequeño */
        font-size: 1.2rem; /* Ajustar tamaño de fuente */
    }

    #message {
        font-size: 1rem; /* Ajustar tamaño del mensaje */
    }

    #reset {
        padding: 6px 12px; /* Ajustar padding del botón de reinicio */
        font-size: 0.8rem; /* Tamaño de fuente más pequeño */
    }
    .snake, .food {
        width: 8px; /* Ajustar aún más para pantallas muy pequeñas */
        height: 8px; 
    }

    #game-container {
        width: 220px; /* Ajustar ancho del contenedor del juego Snake */
        height: 220px; /* Ajustar alto del contenedor del juego Snake */
    }

    .portfolio-item h3 {
        font-size: 18px; /* Ajustar tamaño de fuente de los títulos en portafolio */
    }
}

/* Ajuste base del header */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* permite que se adapte en pantallas pequeñas */
    width: 100%;
    text-align: center;
}

.header-content h1 {
    font-size: 48px;
    margin: 0;
    color: var(--primary-color);
    white-space: nowrap;
}

.giveaway-container {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Estilo refinado y luminoso para el enlace Giveaway */
.giveaway-link {
    position: relative;
    color: #ff4d4d;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow:
        0 0 5px #ff0000,
        0 0 10px #ff4d4d,
        0 0 20px #ff0000;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Subrayado animado */
.giveaway-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff0000, #ff4d4d, #ff0000);
    box-shadow: 0 0 8px #ff0000;
    transition: width 0.4s ease-in-out;
}

.giveaway-link:hover {
    color: #ffffff;
    text-shadow:
        0 0 10px #ff0000,
        0 0 20px #ff4d4d,
        0 0 30px #ff0000;
}

.giveaway-link:hover::after {
    width: 100%;
}

/* Parpadeo leve tipo neón */
@keyframes neonPulse {
    0%, 100% {
        text-shadow:
            0 0 5px #ff0000,
            0 0 10px #ff4d4d;
    }
    50% {
        text-shadow:
            0 0 10px #ff4d4d,
            0 0 20px #ff0000;
    }
}

.giveaway-link {
    animation: neonPulse 1.5s ease-in-out infinite alternate;
}

/* Adaptación a móviles */
@media (max-width: 480px) {
    .giveaway-link {
        font-size: 1.1rem;
        text-shadow:
            0 0 3px #ff0000,
            0 0 6px #ff4d4d;
    }
}


/* Adaptaciones en pantallas pequeñas */
@media (max-width: 480px) {
    .giveaway-link {
        font-size: 1rem;
        padding: 6px 12px;
        border-radius: 8px;
    }
}

/* --- Media Queries --- */

/* 📱 Pantallas pequeñas (iPhone, Android) */
@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .header-content h1 {
        font-size: 28px;
    }

    .giveaway-link {
        font-size: 1rem;
        padding-left: 0;
    }
}

/* 📲 Pantallas medianas (tablets) */
@media (min-width: 481px) and (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }

    .header-content h1 {
        font-size: 36px;
    }

    .giveaway-link {
        font-size: 1.1rem;
    }
}

/* 💻 Escritorio (pantallas grandes) */
@media (min-width: 769px) {
    .header-content {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .header-content h1 {
        font-size: 48px;
    }

    .giveaway-link {
        font-size: 1.2rem;
    }
}

