body {
    background-color: #000;
    color: #04d9ff;
    font-family: monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: right;
    align-items: right;
}

.terminal {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    max-width: 1000px;
    height: 500px;
    min-height: 300px;
    background: #000;
    padding: 20px;
    border: 2px solid #04d9ff;
    border-radius: 10px;
    box-shadow: 0 0 20px #04d9ff;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}
#terminal {
  font-family: monospace;
  overflow: hidden;
  white-space: pre; /* mantém os espaços e quebras de linha */
}
#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  display: none; 
  z-index: 0; 
  pointer-events: none; 
}


.dica {
    position: fixed;
    top: 15px;
    right: 15px;
    padding: 8px 12px;
    border-radius: 10px;
    background-color: rgba(4, 217, 255, 0.9);
    color: #000;
    font-size: 12px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(4, 217, 255, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 1px solid #04d9ff;
    backdrop-filter: blur(5px);
}

.dica:hover {
    background-color: rgba(4, 217, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(4, 217, 255, 0.5);
}

.output {
    flex-grow: 1;
    min-height: 100px;
    white-space: pre;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Courier New', monospace;
    overflow-y: auto;
    /* Esconde a barra de rolagem */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE e Edge */
}

.output::-webkit-scrollbar {
    display: none; /* Chrome, Safari e Opera */
}

.input-line {
    display: flex;
    align-items: center;
    width: 100%;
}

#prompt {
    color: #04d9ff;
    font-family: monospace;
    font-size: 16px;
    margin-right: 5px;
    white-space: nowrap;
}

input {
    flex-grow: 1;
    background: black;
    border: none;
    color: #04d9ff;
    font-family: monospace;
    font-size: 16px;
    padding: 10px;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none; /* Remove as setinhas */
    -webkit-appearance: none; /* Remove as setinhas no WebKit */
}

.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Media Queries para Responsividade do Terminal */

/* Tablets grandes (1024px - 1200px) */
@media (max-width: 1200px) {
    body {
        padding: 15px;
    }
    
    .terminal {
        max-width: 900px;
        height: 450px;
    }
    
    .dica {
        font-size: 11px;
        padding: 6px 10px;
        top: 10px;
        right: 10px;
    }
}

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    body {
        padding: 10px;
    }
    
    .terminal {
        max-width: 100%;
        height: 400px;
        padding: 15px;
    }
    
    .dica {
        font-size: 10px;
        padding: 5px 8px;
        top: 8px;
        right: 8px;
    }
    
    .output {
        font-size: 13px;
    }
    
    #prompt {
        font-size: 15px;
    }
    
    input {
        font-size: 15px;
        padding: 8px;
    }
}

/* Tablets pequenos (481px - 768px) */
@media (max-width: 768px) {
    body {
        padding: 8px;
    }
    
    .terminal {
        height: 350px;
        padding: 12px;
        border-radius: 8px;
    }
    
    .dica {
        font-size: 9px;
        padding: 4px 6px;
        top: 5px;
        right: 5px;
        border-radius: 6px;
    }
    
    .output {
        font-size: 12px;
        min-height: 80px;
    }
    
    #prompt {
        font-size: 14px;
    }
    
    input {
        font-size: 14px;
        padding: 6px;
    }
    
    #ascii-unimar {
        font-size: 8px;
    }
}

/* Smartphones (320px - 480px) */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .terminal {
        height: 300px;
        padding: 10px;
        border-radius: 5px;
    }
    
    .dica {
        font-size: 8px;
        padding: 3px 5px;
        top: 3px;
        right: 3px;
        border-radius: 4px;
    }
    
    .output {
        font-size: 11px;
        min-height: 60px;
        line-height: 1.3;
    }
    
    #prompt {
        font-size: 12px;
    }
    
    input {
        font-size: 12px;
        padding: 5px;
    }
    
    #ascii-unimar {
        font-size: 6px;
        line-height: 1;
    }
}

/* Smartphones muito pequenos (até 320px) */
@media (max-width: 320px) {
    body {
        padding: 3px;
    }
    
    .terminal {
        height: 280px;
        padding: 8px;
        border-radius: 4px;
    }
    
    .dica {
        font-size: 7px;
        padding: 2px 4px;
        top: 2px;
        right: 2px;
        border-radius: 3px;
    }
    
    .output {
        font-size: 10px;
        min-height: 50px;
    }
    
    #prompt {
        font-size: 11px;
    }
    
    input {
        font-size: 11px;
        padding: 4px;
    }
    
    #ascii-unimar {
        font-size: 5px;
    }
}

/* Landscape orientation para smartphones */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        padding: 5px;
    }
    
    .terminal {
        height: 250px;
        max-height: 80vh;
    }
    
    .dica {
        font-size: 8px;
        padding: 3px 5px;
    }
    
    .output {
        min-height: 40px;
    }
}