/* Import Custom Font */
@font-face {
    font-family: 'ScreenMatrix';
    src: url('ScreenMatrix.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* General Styles */
body {
    font-family: 'ScreenMatrix', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px; /* Change font size for all text */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #000000;
    color: #00ff00;
    margin: 0;
    overflow: hidden; /* Prevent scrollbars */
}

/* Main App Container */
#app {
    background: #000000;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 350px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}



/* Message Elements */
.message {
    background-color: #000000;
    padding: 8px; /* Reduce padding */
    border-radius: 8px;
    text-align: left;
    margin-bottom: 8px; /* Reduce margin */
    font-size: 18px; /* Set font size */
    font-family: 'ScreenMatrix', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Use custom font */
    word-wrap: break-word;
}


/* Input Field */
input[type="text"] {
    width: calc(100% - 24px);
    padding: 12px;
    border: 1px solid #000000;
    background-color: #000000;
    color:#00ff00;
    border-radius: 8px;
    font-size: 18px;
    font-family: 'ScreenMatrix', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Use custom font */
}


/* CRT Effect */
.crt {
    animation: flicker 1.6s infinite;
    font-size: 18px; 
    font-family: 'ScreenMatrix', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Use custom font */
}


@keyframes flicker {
    0% {
      opacity: 0.27861;
    }
    5% {
      opacity: 0.34769;
    }
    10% {
      opacity: 0.23604;
    }
    15% {
      opacity: 0.90626;
    }
    20% {
      opacity: 0.18128;
    }
    25% {
      opacity: 0.83891;
    }
    30% {
      opacity: 0.65583;
    }
    35% {
      opacity: 0.67807;
    }
    40% {
      opacity: 0.26559;
    }
    45% {
      opacity: 0.84693;
    }
    50% {
      opacity: 0.96019;
    }
    55% {
      opacity: 0.08594;
    }
    60% {
      opacity: 0.20313;
    }
    65% {
      opacity: 0.71988;
    }
    70% {
      opacity: 0.53455;
    }
    75% {
      opacity: 0.37288;
    }
    80% {
      opacity: 0.71428;
    }
    85% {
      opacity: 0.70419;
    }
    90% {
      opacity: 0.7003;
    }
    95% {
      opacity: 0.36108;
    }
    100% {
      opacity: 0.24387;
    }
  }
 
  .crt::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    animation: flicker 0.15s infinite;
  }
  .crt::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
  }
  .crt {
    animation: textShadow 1.6s infinite;
  }
  

@media screen and (max-width:769px){
    body {
        font-size: 14px; /* Font size for mobile users */
    }

    input[type="text"] {
        font-size: 14px; /* Font size for input fields on mobile */
    }

    .message {
        font-size: 14px; /* Font size for messages on mobile */
    }

    .crt {
        font-size: 14px; /* Font size for CRT effect text on mobile */
    }
}