/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.vt323-regular {
  font-family: "VT323", monospace;
  font-weight: 400;
  font-style: normal;
}

img {
  width: 100%; /* Default width for larger screens */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

body {
    font-family: "VT323", monospace;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ff51e5 0%, #ffffff 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header styles */
header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Main content */
main {
    padding: 0 20px;
}

.hero {
    margin-bottom: 40px;
}

.hero h2 {
    color: #4facfe;
    margin-bottom: 15px;
    font-size: 2em;
}

.hero > p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #666;
}

/* Demo sections */
.demo-section {
    background: #f8f9fa;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    border-left: 4px solid #4facfe;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.demo-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* Button styles */
button {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    margin: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

button:active {
    transform: translateY(0);
}

/* Counter styles */
#counter {
    display: inline-block;
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.2em;
    font-weight: bold;
    margin-left: 15px;
    min-width: 60px;
    text-align: center;
}

/* Result box styles */
.result-box {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    min-height: 50px;
    font-family: 'Courier New', monospace;
    color: #495057;
    transition: all 0.3s ease;
}

.result-box.loading {
    background: #fff3cd;
    border-color: #ffeeba;
}

.result-box.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.result-box.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Info section */
.info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

.info h2 {
    color: #4facfe;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.info ul {
    list-style: none;
}

.info li {
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 1.1em;
}

.info li:last-child {
    border-bottom: none;
}

.info li::before {
    content: "✓";
    color: #4facfe;
    margin-right: 10px;
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    background: #343a40;
    color: white;
    border-radius: 10px;
    margin-top: 30px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .demo-section {
        padding: 15px;
    }
    
    button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* Loading animation */
.loading {
    position: relative;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4facfe;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}