* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #FFA500;
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    padding: 20px;
    background-color: #1a1a1a;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.binary {
    font-size: 18px;
    color: #ff7b00;
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
    white-space: nowrap;
}

.nav-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 25px;
}

.nav-left {
    display: flex;
    gap: 25px;
}

.nav-right {
    display: flex;
    gap: 25px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #FFA500;
    color: #000000;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 5px;
}

.nav-left .dropdown-content {
    left: 0;
}

.nav-right .dropdown-content {
    right: 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #FFA500;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap; /* Asegura que el texto no se divida en varias líneas */
}

.dropdown-content a:hover {
    background-color: #FFA500;
    color: #000000;
}

.dropdown:hover .dropbtn {
    background-color: #ff7b00;
}

.dropdown-submenu {
    position: relative;
}

.submenu-toggle {
    display: block;
    padding: 12px 16px;
    color: #FFA500;
    text-decoration: none;
}

.submenu-content {
    display: none;
    position: absolute;
    top: 0;
    background-color: #1a1a1a;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2;
    border-radius: 5px;
}

.nav-left .submenu-content {
    left: 100%;
}

.nav-right .submenu-content {
    right: 100%;
}

.dropdown-submenu:hover .submenu-content {
    display: block;
}

.submenu-content a {
    color: #FFA500;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.submenu-content a:hover {
    background-color: #FFA500;
    color: #000000;
}

.rpn-submenu {
    display: none;
    position: absolute;
    right: 100%;
    top: 0;
    background-color: #333;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2;
    border-radius: 5px;
}

.dropdown-submenu:hover .rpn-submenu {
    display: block;
}

main {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.code-line {
    position: absolute;
    color: #FFA500;
    font-size: 18px;
    white-space: nowrap;
    animation: fall linear infinite;
    -webkit-animation: fall linear infinite; /* Compatibilidad con Edge */
    z-index: 1;
}

.code-line:nth-child(odd) { color: #ff7b00; }
.code-line:nth-child(3n) { color: #ff9933; }
.code-line:nth-child(1) { left: 5%; animation-duration: 5s; }
.code-line:nth-child(2) { left: 15%; animation-duration: 6s; }
.code-line:nth-child(3) { left: 25%; animation-duration: 4s; }
.code-line:nth-child(4) { left: 35%; animation-duration: 7s; }
.code-line:nth-child(5) { left: 45%; animation-duration: 5.5s; }
.code-line:nth-child(6) { left: 55%; animation-duration: 6.5s; }
.code-line:nth-child(7) { left: 65%; animation-duration: 4.5s; }
.code-line:nth-child(8) { left: 75%; animation-duration: 6s; }
.code-line:nth-child(9) { left: 85%; animation-duration: 5s; }
.code-line:nth-child(10) { left: 95%; animation-duration: 7s; }
.code-line:nth-child(11) { left: 10%; animation-duration: 4.8s; }
.code-line:nth-child(12) { left: 20%; animation-duration: 6.2s; }
.code-line:nth-child(13) { left: 30%; animation-duration: 5.3s; }
.code-line:nth-child(14) { left: 40%; animation-duration: 7.5s; }
.code-line:nth-child(15) { left: 50%; animation-duration: 4.2s; }
.code-line:nth-child(16) { left: 60%; animation-duration: 6.8s; }
.code-line:nth-child(17) { left: 70%; animation-duration: 5.7s; }
.code-line:nth-child(18) { left: 80%; animation-duration: 6.3s; }
.code-line:nth-child(19) { left: 90%; animation-duration: 4.9s; }
.code-line:nth-child(20) { left: 8%; animation-duration: 5.4s; }
.code-line:nth-child(21) { left: 18%; animation-duration: 6.1s; }
.code-line:nth-child(22) { left: 28%; animation-duration: 4.6s; }
.code-line:nth-child(23) { left: 38%; animation-duration: 7.2s; }
.code-line:nth-child(24) { left: 48%; animation-duration: 5.8s; }
.code-line:nth-child(25) { left: 58%; animation-duration: 6.4s; }
.code-line:nth-child(26) { left: 12%; animation-duration: 5.1s; }
.code-line:nth-child(27) { left: 22%; animation-duration: 6.7s; }
.code-line:nth-child(28) { left: 32%; animation-duration: 4.3s; }
.code-line:nth-child(29) { left: 42%; animation-duration: 7.1s; }
.code-line:nth-child(30) { left: 52%; animation-duration: 5.6s; }
.code-line:nth-child(31) { left: 62%; animation-duration: 6.9s; }
.code-line:nth-child(32) { left: 72%; animation-duration: 4.7s; }
.code-line:nth-child(33) { left: 82%; animation-duration: 5.9s; }
.code-line:nth-child(34) { left: 92%; animation-duration: 6.6s; }
.code-line:nth-child(35) { left: 16%; animation-duration: 4.4s; }

@keyframes fall {
    0% { top: -50px; opacity: 1; }
    100% { top: 100%; opacity: 0.3; }
}

@-webkit-keyframes fall { /* Compatibilidad con Edge */
    0% { top: -50px; opacity: 1; }
    100% { top: 100%; opacity: 0.3; }
}

.paused .code-line {
    animation-play-state: paused;
    -webkit-animation-play-state: paused; /* Compatibilidad con Edge */
}

footer {
    background-color: #1a1a1a;
    padding: 10px 20px;
    position: relative;
    z-index: 10;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px; /* Espacio entre elementos */
}

.footer-left {
    display: flex;
    align-items: center;
}

footer a.github-link {
    color: #FFA500;
    text-decoration: none;
    font-size: 36px;
    margin-left: 10px;
}

footer a.github-link:hover {
    color: #ff7b00;
}

.footer-image {
    max-height: 50px;
    margin: 0 10px 0 0;
}

.footer-banner {
    display: block;
}

.footer-banner img {
    width: 320px;
    height: 50px;
    display: block;
}

.footer-right {
    text-align: right;
    margin-left: auto; /* Empuja al extremo derecho */
}

#visitCount {
    margin-left: 5px;
    font-weight: normal;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: #1a1a1a;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #FFA500;
    width: 80%;
    max-width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%); /* Compatibilidad con Edge */
    text-align: center;
    color: #FFA500;
}

.modal-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.modal-text {
    font-size: 16px;
}

.close {
    color: #FFA500;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ff7b00;
    text-decoration: none;
}

.email-input,
.email-textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background-color: #333;
    border: 1px solid #FFA500;
    color: #FFA500;
    font-family: 'Courier New', monospace;
    border-radius: 5px;
}

.email-textarea {
    height: 100px;
    resize: vertical;
}

.send-btn {
    background-color: #FFA500;
    color: #000000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.send-btn:hover {
    background-color: #ff7b00;
}

.seo-content {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 768px) {
    header { align-items: center; }
    .binary { margin-bottom: 10px; font-size: 14px; }
    .nav-container { flex-direction: column; align-items: center; }
    .nav-left, .nav-right { width: 100%; justify-content: center; gap: 10px; }
    .dropdown-content { width: 100%; min-width: 150px; }
    .nav-left .dropdown-content { left: 0; }
    .nav-right .dropdown-content { right: 0; }
    .submenu-content { width: 100%; }
    .nav-left .submenu-content { left: 0; }
    .nav-right .submenu-content { right: 0; }
    footer { padding: 8px 20px; }
    footer a.github-link { font-size: 30px; margin-left: 5px; }
    .footer-image { max-height: 40px; margin: 0 5px 0 0; }
    .footer-content {
        flex-direction: column; /* Apila los elementos en pantallas pequeñas */
        align-items: center;
    }
    .footer-right {
        text-align: center; /* Centrado en móviles */
        margin-left: 0; /* Reseteado para no afectar en columna */
    }
    #visitCount { margin-left: 3px; font-size: 12px; }
    .code-line { font-size: 14px; }
    .modal-content { width: 90%; padding: 15px; }
    .modal-image { max-height: 150px; }
    .modal-text { font-size: 14px; }
    .close { font-size: 24px; }
    .footer-banner img {
        width: 240px; /* Reducido para pantallas pequeñas */
        height: 38px; /* Proporcional */
    }
}

/* Ajuste específico para Credenciales */
.nav-left .dropdown-content {
    min-width: 300px; /* Aumenta el ancho mínimo para opciones largas */
    width: auto; /* Permite que el contenedor se ajuste al contenido */
}