@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Share+Tech+Mono&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Share Tech Mono', monospace;
}

body {
    min-height: 100vh;
    color: #e0e0e0;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 50px;
}


.matrix-container {
  position: fixed;        
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  overflow: hidden;
  z-index: -1;            
}

.matrix-pattern {
  position: relative;
  width: 33.33vw; 
  height: 100%;
  flex-shrink: 0;
}

.matrix-column {
  position: absolute;
  top: -100%;
  width: 20px;
  height: 100%;
  font-size: 16px;
  line-height: 18px;
  font-weight: bold;
  animation: fall linear infinite;
  white-space: nowrap;
}

.matrix-column::before {
  /*content: "アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲンABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";*/
  content: "PRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAM";
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 5%,
    #00ff41 10%,
    #00ff41 20%,
    #00dd33 30%,
    #00bb22 40%,
    #009911 50%,
    #007700 60%,
    #005500 70%,
    #003300 80%,
    rgba(0, 255, 65, 0.5) 90%,
    transparent 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  writing-mode: vertical-lr;
  letter-spacing: 1px;
}

.matrix-column:nth-child(1) { left: 5%; animation-duration: 2.5s; animation-delay: -1s; }
.matrix-column:nth-child(2) { left: 10%; animation-duration: 3.5s; animation-delay: -2.3s; }
.matrix-column:nth-child(3) { left: 15%; animation-duration: 2.8s; animation-delay: -1.7s; }
.matrix-column:nth-child(4) { left: 20%; animation-duration: 4.1s; animation-delay: -0.5s; }
.matrix-column:nth-child(5) { left: 25%; animation-duration: 3.2s; animation-delay: -3.1s; }
.matrix-column:nth-child(6) { left: 30%; animation-duration: 2.9s; animation-delay: -1.2s; }
.matrix-column:nth-child(7) { left: 35%; animation-duration: 3.7s; animation-delay: -2.8s; }
.matrix-column:nth-child(8) { left: 40%; animation-duration: 4.5s; animation-delay: -0.9s; }
.matrix-column:nth-child(9) { left: 45%; animation-duration: 3.0s; animation-delay: -1.5s; }
.matrix-column:nth-child(10) { left: 50%; animation-duration: 2.6s; animation-delay: -3.5s; }
.matrix-column:nth-child(11) { left: 55%; animation-duration: 3.8s; animation-delay: -0.2s; }
.matrix-column:nth-child(12) { left: 60%; animation-duration: 2.4s; animation-delay: -2.1s; }
.matrix-column:nth-child(13) { left: 65%; animation-duration: 3.3s; animation-delay: -1.8s; }
.matrix-column:nth-child(14) { left: 70%; animation-duration: 4.2s; animation-delay: -0.6s; }
.matrix-column:nth-child(15) { left: 75%; animation-duration: 2.7s; animation-delay: -3.3s; }
.matrix-column:nth-child(16) { left: 80%; animation-duration: 3.9s; animation-delay: -1.4s; }
.matrix-column:nth-child(17) { left: 85%; animation-duration: 3.1s; animation-delay: -2.6s; }
.matrix-column:nth-child(18) { left: 90%; animation-duration: 4.0s; animation-delay: -0.8s; }
.matrix-column:nth-child(19) { left: 95%; animation-duration: 2.9s; animation-delay: -3.0s; }
.matrix-column:nth-child(20) { left: 42%; animation-duration: 3.4s; animation-delay: -1.9s; }
/* more sexy positions */
.matrix-column:nth-child(21) { left: 3%; animation-duration: 3.6s; animation-delay: -0.4s; }
.matrix-column:nth-child(22) { left: 8%; animation-duration: 2.3s; animation-delay: -2.9s; }
.matrix-column:nth-child(23) { left: 18%; animation-duration: 4.3s; animation-delay: -1.1s; }
.matrix-column:nth-child(24) { left: 28%; animation-duration: 3.1s; animation-delay: -3.4s; }
.matrix-column:nth-child(25) { left: 38%; animation-duration: 2.8s; animation-delay: -0.7s; }
.matrix-column:nth-child(26) { left: 48%; animation-duration: 3.9s; animation-delay: -2.2s; }
.matrix-column:nth-child(27) { left: 58%; animation-duration: 2.5s; animation-delay: -1.6s; }
.matrix-column:nth-child(28) { left: 68%; animation-duration: 4.4s; animation-delay: -0.3s; }
.matrix-column:nth-child(29) { left: 78%; animation-duration: 3.5s; animation-delay: -2.7s; }
.matrix-column:nth-child(30) { left: 88%; animation-duration: 2.2s; animation-delay: -1.3s; }
.matrix-column:nth-child(31) { left: 12%; animation-duration: 3.7s; animation-delay: -2.4s; }
.matrix-column:nth-child(32) { left: 22%; animation-duration: 2.5s; animation-delay: -0.9s; }
.matrix-column:nth-child(33) { left: 32%; animation-duration: 4.0s; animation-delay: -3.2s; }
.matrix-column:nth-child(34) { left: 47%; animation-duration: 3.3s; animation-delay: -1.5s; }
.matrix-column:nth-child(35) { left: 52%; animation-duration: 2.8s; animation-delay: -2.1s; }
.matrix-column:nth-child(36) { left: 62%; animation-duration: 3.9s; animation-delay: -0.5s; }
.matrix-column:nth-child(37) { left: 72%; animation-duration: 2.6s; animation-delay: -3.4s; }
.matrix-column:nth-child(38) { left: 82%; animation-duration: 4.2s; animation-delay: -1.8s; }
.matrix-column:nth-child(39) { left: 92%; animation-duration: 3.1s; animation-delay: -2.9s; }
.matrix-column:nth-child(40) { left: 98%; animation-duration: 2.4s; animation-delay: -1.1s; }


.matrix-column:nth-child(odd)::before {
  /*content: "アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン123456789";*/
  content: "PRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAM";  
}
.matrix-column:nth-child(even)::before {
  /*content: "ガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポヴァィゥェォャュョッABCDEFGHIJKLMNOPQRSTUVWXYZ";*/
  content: "PRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAMPRATHAM";
}
@keyframes fall {
  0% { transform: translateY(-10%); opacity: 1; }
  100% { transform: translateY(110%); opacity: 0; }
}

/* --- Main UI Styles --- */

h1 {
    text-align: center;
    color: #00ff41;
    font-size: 2.5rem;
    margin-top: 40px;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.7), 0 0 20px rgba(0, 255, 65, 0.5);
    letter-spacing: 2px;
}

p {
    text-align: center;
    color: #a8f0b0;
    margin-bottom: 5px;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

p:last-of-type {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #008f11;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: pulsate 2s infinite ease-in-out;
}

@keyframes pulsate {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; text-shadow: 0 0 8px #00ff41; }
}

.container {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    background: rgba(10, 15, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #00ff41;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.15), inset 0 0 20px rgba(0, 50, 0, 0.5);
    position: relative;
    z-index: 10;
}

.container::before, .container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #00ff41;
    transition: all 0.3s ease;
}

.container::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.container::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

.container:hover::before, .container:hover::after {
    width: 30px;
    height: 30px;
    box-shadow: 0 0 10px #00ff41;
}

label {
    display: block;
    color: #00ff41;
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

select, input[type="text"], input[type="number"], textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #004411;
    color: #ccffcc;
    padding: 12px 15px;
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

select:focus, input:focus, textarea:focus {
    outline: none;
    border-color: #00ff41;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    background: rgba(0, 20, 5, 0.8);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300ff41%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

.method-selector, .key-container, .shift-container {
    margin-bottom: 5px;
}

.ipop {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.input, .output {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.output .lc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.output .lc label {
    margin-bottom: 0;
}

textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.5;
}

textarea[readonly] {
    background: rgba(0, 10, 0, 0.3);
    color: #00ff41;
    border-style: dashed;
}

.file {
    font-size: 0.85rem;
    color: #00cc33;
    margin: 5px 0;
    font-style: italic;
}

input[type="file"] {
    border: none;
    padding: 10px 0;
    color: #00ff41;
    background: transparent;
    font-size: 0.9rem;
}

input[type="file"]::file-selector-button {
    background: #003300;
    border: 1px solid #00ff41;
    color: #00ff41;
    padding: 5px 15px;
    margin-right: 15px;
    border-radius: 2px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.3s;
}

input[type="file"]::file-selector-button:hover {
    background: #00ff41;
    color: #000;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

button {
    padding: 14px 30px;
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.4), transparent);
    transition: 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.6);
    transform: translateY(-3px);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
    border-color: #004411;
    color: #004411;
    box-shadow: none;
    transform: none;
}

button:disabled:hover {
    background: transparent;
    color: #004411;
    box-shadow: none;
    transform: none;
}

button:disabled::before {
    display: none;
}

button.copy {
    padding: 5px 15px;
    font-size: 0.8rem;
    border-width: 1px;
    min-width: 80px;
}

button.clearAll {
    border-color: #ff3333;
    color: #ff3333;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.1);
}

button.clearAll:hover {
    background: #ff3333;
    color: #fff;
    box-shadow: 0 0 25px rgba(255, 51, 51, 0.6);
}

button.clearAll::before {
    background: linear-gradient(90deg, transparent, rgba(255, 51, 51, 0.4), transparent);
}

#notification {
    margin-top: 20px;
    min-height: 20px;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 0 5px currentColor;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#notification.show {
    opacity: 1;
}

#notification.success {
    color: #00ff41;
}

#notification.error {
    color: #ff3333;
    text-shadow: 0 0 5px #ff3333;
}

#notification.warning {
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

#notification.info {
    color: #0088ff;
    text-shadow: 0 0 5px #0088ff;
}

::placeholder {
    color: rgba(0, 255, 65, 0.3);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #001100;
}

::-webkit-scrollbar-thumb {
    background: #004400;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #008800;
}


@media (max-width: 768px) {
    .ipop {
        flex-direction: column;
        gap: 15px;
    }
    
    .container {
        padding: 20px;
        width: 95%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .buttons {
        gap: 10px;
    }
}
